6f2017c08fc02213ae9be9f7f9dcaca49dcd0dbd
[gnulib.git] / ChangeLog
1 2011-05-21  Bruno Haible  <bruno@clisp.org>
2
3         tanl: Move AC_LIBOBJ invocations to module description.
4         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5         * modules/tanl (configure.ac): ... to here.
6
7 2011-05-21  Bruno Haible  <bruno@clisp.org>
8
9         cosl: Move AC_LIBOBJ invocations to module description.
10         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
11         * modules/cosl (configure.ac): ... to here.
12
13 2011-05-21  Bruno Haible  <bruno@clisp.org>
14
15         sinl: Move AC_LIBOBJ invocations to module description.
16         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17         * modules/sinl (configure.ac): ... to here.
18
19 2011-05-21  Bruno Haible  <bruno@clisp.org>
20
21         logl: Move AC_LIBOBJ invocations to module description.
22         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
23         * modules/logl (configure.ac): ... to here.
24
25 2011-05-21  Bruno Haible  <bruno@clisp.org>
26
27         expl: Move AC_LIBOBJ invocations to module description.
28         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
29         * modules/expl (configure.ac): ... to here.
30
31 2011-05-21  Bruno Haible  <bruno@clisp.org>
32
33         roundl: Move AC_LIBOBJ invocations to module description.
34         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
35         * modules/roundl (configure.ac): ... to here.
36
37 2011-05-21  Bruno Haible  <bruno@clisp.org>
38
39         round: Move AC_LIBOBJ invocations to module description.
40         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
41         * modules/round (configure.ac): ... to here.
42
43 2011-05-21  Bruno Haible  <bruno@clisp.org>
44
45         roundf: Move AC_LIBOBJ invocations to module description.
46         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
47         * modules/roundf (configure.ac): ... to here.
48
49 2011-05-21  Bruno Haible  <bruno@clisp.org>
50
51         truncl: Move AC_LIBOBJ invocations to module description.
52         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
53         * modules/truncl (configure.ac): ... to here.
54
55 2011-05-21  Bruno Haible  <bruno@clisp.org>
56
57         trunc: Move AC_LIBOBJ invocations to module description.
58         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
59         * modules/trunc (configure.ac): ... to here.
60
61 2011-05-21  Bruno Haible  <bruno@clisp.org>
62
63         truncf: Move AC_LIBOBJ invocations to module description.
64         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
65         * modules/truncf (configure.ac): ... to here.
66
67 2011-05-21  Bruno Haible  <bruno@clisp.org>
68
69         ceill: Move AC_LIBOBJ invocations to module description.
70         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
71         * modules/ceill (configure.ac): ... to here.
72
73 2011-05-21  Bruno Haible  <bruno@clisp.org>
74
75         ceil: Move AC_LIBOBJ invocations to module description.
76         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
77         * modules/ceil (configure.ac): ... to here.
78
79 2011-05-21  Bruno Haible  <bruno@clisp.org>
80
81         ceilf: Move AC_LIBOBJ invocations to module description.
82         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
83         * modules/ceilf (configure.ac): ... to here.
84
85 2011-05-21  Bruno Haible  <bruno@clisp.org>
86
87         floorl: Respect rules for use of AC_LIBOBJ.
88         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
89         * modules/floorl (configure.ac): ... to here.
90
91 2011-05-21  Bruno Haible  <bruno@clisp.org>
92
93         floor: Respect rules for use of AC_LIBOBJ.
94         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
95         * modules/floor (configure.ac): ... to here.
96
97 2011-05-21  Bruno Haible  <bruno@clisp.org>
98
99         floorf: Move AC_LIBOBJ invocations to module description.
100         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
101         * modules/floorf (configure.ac): ... to here.
102
103 2011-05-20  Bruno Haible  <bruno@clisp.org>
104
105         sqrtl: Respect rules for use of AC_LIBOBJ.
106         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
107         * modules/sqrtl (configure.ac): ... to here.
108
109 2011-05-20  Bruno Haible  <bruno@clisp.org>
110
111         ldexpl: Respect rules for use of AC_LIBOBJ.
112         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
113         * modules/ldexpl (configure.ac): ... to here.
114
115 2011-05-20  Bruno Haible  <bruno@clisp.org>
116
117         frexpl*: Respect rules for use of AC_LIBOBJ.
118         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
119         invocation from here...
120         * modules/frexpl (configure.ac): ... to here.
121         * modules/frexpl-nolibm (configure.ac): ... and here.
122
123 2011-05-20  Bruno Haible  <bruno@clisp.org>
124
125         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
126         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
127         invocation from here...
128         * modules/frexp (configure.ac): ... to here.
129         * modules/frexp-nolibm (configure.ac): ... and here.
130
131 2011-05-20  Bruno Haible  <bruno@clisp.org>
132
133         isnan: Respect rules for use of AC_LIBOBJ.
134         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
135         invocations here.
136         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
137         REPLACE_ISNAN.
138         * modules/isnand (configure.ac): Likewise.
139         * modules/isnanl (configure.ac): Likewise.
140
141 2011-05-20  Bruno Haible  <bruno@clisp.org>
142
143         isnanl*: Respect rules for use of AC_LIBOBJ.
144         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
145         invocation from here...
146         * modules/isnanl (configure.ac): ... to here.
147         * modules/isnanl-nolibm (configure.ac): ... and here.
148
149 2011-05-20  Bruno Haible  <bruno@clisp.org>
150
151         isnand*: Move AC_LIBOBJ invocations to module description.
152         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
153         invocation from here...
154         * modules/isnand (configure.ac): ... to here.
155         * modules/isnand-nolibm (configure.ac): ... and here.
156
157 2011-05-20  Bruno Haible  <bruno@clisp.org>
158
159         isnanf*: Move AC_LIBOBJ invocations to module description.
160         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
161         invocation from here...
162         * modules/isnanf (configure.ac): ... to here.
163         * modules/isnanf-nolibm (configure.ac): ... and here.
164
165 2011-05-20  Bruno Haible  <bruno@clisp.org>
166
167         isnan*: Separate the AC_LIBOBJ invocations.
168         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
169         AC_LIBOBJ invocation.
170         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
171         here.
172         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
173         AC_LIBOBJ invocation.
174         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
175         here.
176         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
177         AC_LIBOBJ invocation.
178         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
179         here.
180         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
181
182 2011-05-08  Bruno Haible  <bruno@clisp.org>
183
184         isinf: Move AC_LIBOBJ invocations to module description.
185         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
186         * modules/isinf (configure.ac): ... to here.
187
188 2011-05-08  Bruno Haible  <bruno@clisp.org>
189
190         isfinite: Move AC_LIBOBJ invocations to module description.
191         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
192         * modules/isfinite (configure.ac): ... to here.
193
194 2011-05-08  Bruno Haible  <bruno@clisp.org>
195
196         isblank: Move AC_LIBOBJ invocations to module description.
197         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
198         here...
199         * modules/isblank (configure.ac): ... to here.
200
201 2011-05-08  Bruno Haible  <bruno@clisp.org>
202
203         isapipe: Move AC_LIBOBJ invocations to module description.
204         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
205         gl_PREREQ_ISAPIPE invocations from here...
206         * modules/isapipe (configure.ac): ... to here.
207         (Depends-on): Update condition.
208
209 2011-05-08  Bruno Haible  <bruno@clisp.org>
210
211         ioctl: Move AC_LIBOBJ invocations to module description.
212         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
213         invocations from here...
214         * modules/ioctl (configure.ac): ... to here.
215         (Depends-on): Update condition.
216
217 2011-05-08  Bruno Haible  <bruno@clisp.org>
218
219         imaxdiv: Move AC_LIBOBJ invocations to module description.
220         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
221         invocations from here...
222         * modules/imaxdiv (configure.ac): ... to here.
223
224 2011-05-08  Bruno Haible  <bruno@clisp.org>
225
226         imaxabs: Move AC_LIBOBJ invocations to module description.
227         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
228         invocations from here...
229         * modules/imaxabs (configure.ac): ... to here.
230
231 2011-05-08  Bruno Haible  <bruno@clisp.org>
232
233         getaddrinfo: Move AC_LIBOBJ invocations to module description.
234         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
235         AC_LIBOBJ invocations from here...
236         * modules/getaddrinfo (configure.ac): ... to here.
237         (Depends-on): Add conditions.
238
239 2011-05-08  Bruno Haible  <bruno@clisp.org>
240
241         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
242         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
243         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
244         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
245         (gl_PREREQ_INET_PTON): ... from here.
246         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
247         gl_PREREQ_INET_PTON here.
248         (Depends-on): Update condition.
249
250 2011-05-08  Bruno Haible  <bruno@clisp.org>
251
252         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
253         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
254         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
255         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
256         (gl_PREREQ_INET_NTOP): ... from here.
257         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
258         gl_PREREQ_INET_NTOP here.
259         (Depends-on): Update condition.
260
261 2011-05-08  Bruno Haible  <bruno@clisp.org>
262
263         iconv_open: Move AC_LIBOBJ invocations to module description.
264         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
265         AC_LIBOBJ invocations from here...
266         * modules/iconv_open (configure.ac): ... to here.
267
268 2011-05-08  Bruno Haible  <bruno@clisp.org>
269
270         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
271         If module 'iconv_open' is among the main modules and module
272         'iconv_open-utf' is among the tests dependencies, then
273         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
274         return the special iconv_t values. Therefore iconv() and iconv_close()
275         must support these special iconv_t values, already in lib, not only in
276         tests.
277         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
278         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
279         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
280         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
281         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
282         (Depends-on): Add the dependencies of iconv_open-utf.
283         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
284         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
285         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
286
287 2011-05-08  Bruno Haible  <bruno@clisp.org>
288
289         group-member: Move AC_LIBOBJ invocations to module description.
290         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
291         gl_PREREQ_GROUP_MEMBER invocations from here...
292         * modules/group-member (configure.ac): ... to here.
293
294 2011-05-08  Bruno Haible  <bruno@clisp.org>
295
296         grantpt: Move AC_LIBOBJ invocations to module description.
297         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
298         invocations from here...
299         * modules/grantpt (configure.ac): ... to here.
300
301 2011-05-08  Bruno Haible  <bruno@clisp.org>
302
303         glob: Move AC_LIBOBJ invocations to module description.
304         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
305         from here...
306         * modules/glob (configure.ac): ... to here.
307
308 2011-05-08  Bruno Haible  <bruno@clisp.org>
309
310         getusershell: Move AC_LIBOBJ invocations to module description.
311         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
312         Move AC_LIBOBJ invocation from here...
313         * modules/getusershell (configure.ac): ... to here.
314         (Depends-on): Update condition.
315
316 2011-05-08  Bruno Haible  <bruno@clisp.org>
317
318         gettimeofday: Move AC_LIBOBJ invocations to module description.
319         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
320         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
321         gl_PREREQ_GETTIMEOFDAY invocations from here...
322         * modules/gettimeofday (configure.ac): ... to here.
323
324 2011-05-08  Bruno Haible  <bruno@clisp.org>
325
326         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
327         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
328         just gl_FUNC_TZSET.
329         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
330         (gl_FUNC_TZSET_CLOBBER): Remove actions.
331         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
332         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
333
334 2011-05-08  Bruno Haible  <bruno@clisp.org>
335
336         getsubopt: Move AC_LIBOBJ invocations to module description.
337         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
338         gl_PREREQ_GETSUBOPT invocations from here...
339         * modules/getsubopt (configure.ac): ... to here.
340
341 2011-05-08  Bruno Haible  <bruno@clisp.org>
342
343         getpass-gnu: Move AC_LIBOBJ invocations to module description.
344         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
345         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
346         * modules/getpass-gnu (configure.ac): ... to here.
347
348 2011-05-08  Bruno Haible  <bruno@clisp.org>
349
350         getpass: Move AC_LIBOBJ invocations to module description.
351         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
352         gl_PREREQ_GETPASS invocations from here...
353         * modules/getpass (configure.ac): ... to here.
354
355 2011-05-08  Bruno Haible  <bruno@clisp.org>
356
357         getpagesize: Move AC_LIBOBJ invocations to module description.
358         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
359         from here...
360         * modules/getpagesize (configure.ac): ... to here.
361
362 2011-05-08  Bruno Haible  <bruno@clisp.org>
363
364         getopt: Move AC_LIBOBJ invocations to module description.
365         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
366         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
367         invocations from here...
368         * modules/getopt-gnu (configure.ac): ... to here.
369         * modules/getopt-posix (configure.ac): ... and here.
370         (Depends-on): Update condition.
371
372 2011-05-08  Bruno Haible  <bruno@clisp.org>
373
374         getopt, argp: Respect rules for use of AC_LIBOBJ.
375         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
376         (gl_REPLACE_GETOPT_ALWAYS): New macro.
377         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
378         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
379
380 2011-05-08  Bruno Haible  <bruno@clisp.org>
381
382         getlogin_r: Move AC_LIBOBJ invocations to module description.
383         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
384         gl_PREREQ_GETLOGIN_R invocations from here...
385         * modules/getlogin_r (configure.ac): ... to here.
386
387 2011-05-08  Bruno Haible  <bruno@clisp.org>
388
389         getlogin: Move AC_LIBOBJ invocations to module description.
390         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
391         here...
392         * modules/getlogin (configure.ac): ... to here.
393
394 2011-05-08  Bruno Haible  <bruno@clisp.org>
395
396         getloadavg: Move AC_LIBOBJ invocations to module description.
397         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
398         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
399         * modules/getloadavg (configure.ac): ... to here.
400
401 2011-05-08  Bruno Haible  <bruno@clisp.org>
402
403         gethrxtime: Move AC_LIBOBJ invocations to module description.
404         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
405         LIB_GETHRXTIME from here...
406         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
407         invocations from here...
408         * modules/gethrxtime (configure.ac): ... to here.
409
410 2011-05-08  Bruno Haible  <bruno@clisp.org>
411
412         gethostname: Move AC_LIBOBJ invocations to module description.
413         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
414         gl_PREREQ_GETHOSTNAME invocations from here...
415         * modules/gethostname (configure.ac): ... to here.
416
417 2011-05-08  Bruno Haible  <bruno@clisp.org>
418
419         getgroups: Move AC_LIBOBJ invocations to module description.
420         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
421         here...
422         * modules/getgroups (configure.ac): ... to here.
423
424 2011-05-08  Bruno Haible  <bruno@clisp.org>
425
426         getdtablesize: Move AC_LIBOBJ invocations to module description.
427         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
428         invocation from here...
429         * modules/getdtablesize (configure.ac): ... to here.
430
431 2011-05-08  Bruno Haible  <bruno@clisp.org>
432
433         getdomainname: Move AC_LIBOBJ invocations to module description.
434         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
435         gl_PREREQ_GETDOMAINNAME invocations from here...
436         * modules/getdomainname (configure.ac): ... to here.
437
438 2011-05-08  Bruno Haible  <bruno@clisp.org>
439
440         getline: Move AC_LIBOBJ invocations to module description.
441         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
442         invocations from here...
443         * modules/getline (configure.ac): ... to here.
444
445 2011-05-08  Bruno Haible  <bruno@clisp.org>
446
447         getline: Simplify.
448         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
449         It's already handled through the module dependency.
450
451 2011-05-08  Bruno Haible  <bruno@clisp.org>
452
453         getdelim: Move AC_LIBOBJ invocations to module description.
454         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
455         and gl_PREREQ_GETDELIM invocations from here...
456         * modules/getdelim (configure.ac): ... to here.
457         (Depends-on): Fix condition.
458
459 2011-05-08  Bruno Haible  <bruno@clisp.org>
460
461         getcwd: Move AC_LIBOBJ invocations to module description.
462         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
463         invocations from here...
464         * modules/getcwd (configure.ac): ... to here.
465
466 2011-05-08  Bruno Haible  <bruno@clisp.org>
467
468         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
469         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
470         here...
471         * modules/getcwd-lgpl (configure.ac): ... to here.
472
473 2011-05-07  Bruno Haible  <bruno@clisp.org>
474
475         crypto/gc: Move AC_LIBOBJ invocations to module description.
476         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
477         * modules/crypto/gc (configure.ac): ... to here.
478
479 2011-05-07  Bruno Haible  <bruno@clisp.org>
480
481         fwriting: Move AC_LIBOBJ invocations to module description.
482         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
483         here...
484         * modules/fwriting (configure.ac): ... to here.
485
486 2011-05-07  Bruno Haible  <bruno@clisp.org>
487
488         fwritable: Move AC_LIBOBJ invocations to module description.
489         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
490         here...
491         * modules/fwritable (configure.ac): ... to here.
492
493 2011-05-07  Bruno Haible  <bruno@clisp.org>
494
495         futimens: Move AC_LIBOBJ invocations to module description.
496         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
497         here...
498         * modules/futimens (configure.ac): ... to here.
499
500 2011-05-07  Bruno Haible  <bruno@clisp.org>
501
502         ftruncate: Move AC_LIBOBJ invocations to module description.
503         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
504         gl_PREREQ_FTRUNCATE invocations from here...
505         * modules/ftruncate (configure.ac): ... to here.
506
507 2011-05-07  Bruno Haible  <bruno@clisp.org>
508
509         fsync: Move AC_LIBOBJ invocations to module description.
510         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
511         invocations from here...
512         * modules/fsync (configure.ac): ... to here.
513
514 2011-05-07  Bruno Haible  <bruno@clisp.org>
515
516         fsusage: Move AC_LIBOBJ invocations to module description.
517         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
518         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
519         * modules/fsusage (configure.ac): ... to here.
520
521 2011-05-07  Bruno Haible  <bruno@clisp.org>
522
523         freopen: Move AC_LIBOBJ invocations to module description.
524         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
525         invocations from here...
526         * modules/freopen (configure.ac): ... to here.
527
528 2011-05-07  Bruno Haible  <bruno@clisp.org>
529
530         free: Move AC_LIBOBJ invocations to module description.
531         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
532         invocations from here...
533         * modules/free (configure.ac): ... to here.
534
535 2011-05-07  Bruno Haible  <bruno@clisp.org>
536
537         freadable: Move AC_LIBOBJ invocations to module description.
538         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
539         here...
540         * modules/freadable (configure.ac): ... to here.
541
542 2011-05-07  Bruno Haible  <bruno@clisp.org>
543
544         fpurge: Move AC_LIBOBJ invocations to module description.
545         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
546         invocations from here...
547         * modules/fpurge (configure.ac): ... to here.
548
549 2011-05-07  Bruno Haible  <bruno@clisp.org>
550
551         fpending: Move AC_LIBOBJ invocations to module description.
552         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
553         gl_FUNC_FPENDING.
554         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
555         invocations from here...
556         * modules/fpending (configure.ac): ... to here.
557
558 2011-05-07  Bruno Haible  <bruno@clisp.org>
559
560         fopen: Move AC_LIBOBJ invocations to module description.
561         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
562         invocations from here...
563         * modules/fopen (configure.ac): ... to here.
564
565 2011-05-07  Bruno Haible  <bruno@clisp.org>
566
567         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
568         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
569         gl_FUNC_FNMATCH_POSIX.
570         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
571         invocations from here...
572         * modules/fnmatch (configure.ac): ... to here.
573         * modules/fnmatch-gnu (configure.ac): ... and here.
574
575 2011-05-07  Bruno Haible  <bruno@clisp.org>
576
577         flock: Move AC_LIBOBJ invocations to module description.
578         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
579         invocations from here...
580         * modules/flock (configure.ac): ... to here.
581
582 2011-05-07  Bruno Haible  <bruno@clisp.org>
583
584         fileblocks: Move AC_LIBOBJ invocations to module description.
585         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
586         gl_PREREQ_FILEBLOCKS invocations from here...
587         * modules/fileblocks (configure.ac): ... to here.
588
589 2011-05-06  Bruno Haible  <bruno@clisp.org>
590
591         fflush: Move AC_LIBOBJ invocations to module description.
592         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
593         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
594         invocations from here...
595         * modules/fflush (configure.ac): ... to here.
596
597 2011-05-06  Bruno Haible  <bruno@clisp.org>
598
599         fdopendir: Move AC_LIBOBJ invocations to module description.
600         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
601         here...
602         * modules/fdopendir (configure.ac): ... to here.
603         (Depends-on): Improve conditions.
604
605 2011-05-06  Bruno Haible  <bruno@clisp.org>
606
607         _Exit: Move AC_LIBOBJ invocations to module description.
608         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
609         invocations from here...
610         * modules/_Exit (configure.ac): ... to here.
611
612 2011-05-21  Bruno Haible  <bruno@clisp.org>
613
614         euidaccess: Respect rules for use of AC_LIBOBJ.
615         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
616         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
617         from here...
618         * modules/euidaccess (configure.ac): ... to here.
619
620 2011-05-06  Bruno Haible  <bruno@clisp.org>
621
622         error: Move AC_LIBOBJ invocations to module description.
623         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
624         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
625         invocations from here...
626         * modules/error (configure.ac): ... to here.
627
628 2011-05-06  Bruno Haible  <bruno@clisp.org>
629
630         duplocale: Move AC_LIBOBJ invocations to module description.
631         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
632         gl_PREREQ_DUPLOCALE invocations from here...
633         * modules/duplocale (configure.ac): ... to here.
634
635 2011-05-05  Bruno Haible  <bruno@clisp.org>
636
637         dirfd: Move AC_LIBOBJ invocations to module description.
638         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
639         gl_FUNC_DIRFD.
640         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
641         here...
642         * modules/dirfd (configure.ac): ... to here.
643         (Depends-on): Fix condition.
644
645 2011-05-05  Bruno Haible  <bruno@clisp.org>
646
647         chown: Respect rules for use of AC_LIBOBJ.
648         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
649         * modules/chown (configure.ac): ... to here.
650
651 2011-05-05  Bruno Haible  <bruno@clisp.org>
652
653         chdir-long: Move AC_LIBOBJ invocations to module description.
654         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
655         gl_PREREQ_CHDIR_LONG invocations from here...
656         * modules/chdir-long (configure.ac): ... to here.
657
658 2011-05-05  Bruno Haible  <bruno@clisp.org>
659
660         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
661         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
662         from here...
663         * modules/canonicalize-lgpl (configure.ac): ... to here.
664
665 2011-05-05  Bruno Haible  <bruno@clisp.org>
666
667         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
668         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
669         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
670         REPLACE_CALLOC.
671         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
672         * modules/calloc-gnu (configure.ac): Likewise.
673
674 2011-05-05  Bruno Haible  <bruno@clisp.org>
675
676         btowc: Move AC_LIBOBJ invocations to module description.
677         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
678         invocations from here...
679         * modules/btowc (configure.ac): ... to here.
680
681 2011-05-21  Bruno Haible  <bruno@clisp.org>
682
683         atexit: Move AC_LIBOBJ invocations to module description.
684         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
685         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
686         here...
687         * modules/atexit (configure.ac): ... to here.
688
689 2011-05-05  Bruno Haible  <bruno@clisp.org>
690
691         atoll: Move AC_LIBOBJ invocations to module description.
692         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
693         invocations from here...
694         * modules/atoll (configure.ac): ... to here.
695
696 2011-05-05  Bruno Haible  <bruno@clisp.org>
697
698         argz: Move AC_LIBOBJ invocations to module description.
699         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
700         * modules/argz (configure.ac): ... to here.
701
702 2011-05-05  Bruno Haible  <bruno@clisp.org>
703
704         alphasort: Move AC_LIBOBJ invocations to module description.
705         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
706         gl_PREREQ_ALPHASORT invocations from here...
707         * modules/alphasort (configure.ac): ... to here.
708
709 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
710
711         verify: new macro verify_expr; verify_true deprecated
712         * NEWS: Mention this.
713         * doc/verify.texi (Compile-time Assertions): Document this.
714         * lib/verify.h (verify_true): Deprecate.
715         (verify_expr): New macro.
716         * tests/test-verify.c (function): Test verify_expr.
717
718 2011-06-14  Jim Meyering  <meyering@redhat.com>
719
720         init.sh: give more portable redirection-related advice in a comment
721         * tests/init.sh (stderr_fileno_): Update the advice in comments.
722         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
723         for lots of discussion.  Stefano Lattarini suggested the solution
724         of putting "9>&2" after the command.  Reported by Bruno Haible.
725
726 2011-06-13  Bruno Haible  <bruno@clisp.org>
727
728         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
729         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
730         'none'.
731
732 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
733
734         ftoastr: use strtof only if HAVE_STRTOF
735         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
737         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
738         * modules/ftoastr (configure.ac): Check for strtof.
739
740 2011-06-13  Bruno Haible  <bruno@clisp.org>
741
742         gnulib-tool: Addendum to 2011-06-08 commit.
743         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
744         and --witness-c-macro have been given, augment AM_CPPFLAGS.
745
746 2011-06-13  Bruno Haible  <bruno@clisp.org>
747
748         fseeko: Provide a non-inline replacement of fseek().
749         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
750         * modules/fseeko (Depends-on): Add fseek.
751         * modules/fseek (License): Change to LGPLv2+.
752
753 2011-06-13  Bruno Haible  <bruno@clisp.org>
754
755         ftello: Provide a non-inline replacement of ftell().
756         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
757         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
758         not have ftello() (such as on mingw).
759         * modules/ftello (Depends-on): Add ftell.
760         * modules/ftell (License): Change to LGPLv2+.
761
762 2011-05-07  Bruno Haible  <bruno@clisp.org>
763
764         ftell: Move AC_LIBOBJ invocations to module description.
765         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
766         * modules/ftell (configure.ac): ... to here.
767
768 2011-05-07  Bruno Haible  <bruno@clisp.org>
769
770         ftello: Respect rules for use of AC_LIBOBJ.
771         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
772         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
773         here...
774         * modules/ftello (configure.ac): ... to here.
775
776 2011-05-07  Bruno Haible  <bruno@clisp.org>
777
778         fseeko: Simplify.
779         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
780         (gl_FUNC_FSEEKO): Inline it here.
781
782 2011-05-07  Bruno Haible  <bruno@clisp.org>
783
784         fseek: Move AC_LIBOBJ invocations to module description.
785         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
786         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
787         * modules/fseek (configure.ac): ... to here.
788
789 2011-05-07  Bruno Haible  <bruno@clisp.org>
790
791         fseek: Respect rules for use of AC_LIBOBJ.
792         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
793         here...
794         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
795
796 2011-05-07  Bruno Haible  <bruno@clisp.org>
797
798         fseeko: Respect rules for use of AC_LIBOBJ.
799         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
800         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
801         here...
802         * modules/fseeko (configure.ac): ... to here.
803
804 2011-06-13  Bruno Haible  <bruno@clisp.org>
805
806         gnulib-tool: Allow comments in the 'Depends-on' section.
807         * doc/gnulib.texi (Module description): Mention comment syntax in the
808         Depends-on section.
809         * gnulib-tool (func_get_dependencies): Filter out comment lines.
810
811 2011-06-13  Bruno Haible  <bruno@clisp.org>
812
813         file-set.h: guard __attibute__ use, now that it's not always defined
814         * lib/file-set.h (record_file): Use __attribute__ only with compiler
815         versions that support it.  This fixes a coreutils build failure with
816         the vendor cc on HP-UX 11.31.
817
818 2011-06-12  Bruno Haible  <bruno@clisp.org>
819
820         acl: Add support for HP-UX >= 11.11 JFS ACLs.
821         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
822         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
823         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
824         (acl, aclsort): New declarations.
825         (aclv_nontrivial): New declaration.
826         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
827         (file_has_acl): Read also the second kind of HP-UX ACLs.
828         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
829         kind of HP-UX ACLs if the first kind fails.
830         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
831         second kind of HP-UX ACLs.
832         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
833         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
834         agree.
835         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
836         hpuxjfs.
837         Handle hpuxjfs.
838         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
839         hpuxjfs.
840         Handle hpuxjfs.
841         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
842         (func_test_same_acls): Use both lsacl and getacl.
843         Handle hpuxjfs.
844         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
845         (func_test_same_acls): Use both lsacl and getacl.
846         Handle hpuxjfs.
847
848 2011-06-12  Bruno Haible  <bruno@clisp.org>
849
850         acl: Complete the 2010-08-10 fix.
851         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
852         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
853         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
854         explicitly.
855         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
856         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
857
858 2011-06-12  Bruno Haible  <bruno@clisp.org>
859
860         spawn-pipe tests: Comments.
861         * tests/test-spawn-pipe-child.c (main): Update comment.
862         Reported by James Youngman <jay@gnu.org>.
863
864 2011-06-11  James Youngman  <jay@gnu.org>
865
866         New module 'stat-size'.
867         * modules/stat-size: New module.  Provides macros for accessing
868         file size information in instances of struct stat.  Depends on the
869         fileblocks module because it calls st_blocks.
870         * lib/stat-size.h: New file, adapted from coreutils' system.h.
871         * doc/gnulib.texi: Include stat-size.texi.
872         * doc/stat-size.texi: Documentation for this module.
873         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
874         * m4/fileblocks.m4: Mention that stat-size depends on the call to
875         AC_STRUCT_ST_BLOCKS.
876
877 2011-06-09  Bruno Haible  <bruno@clisp.org>
878
879         thread: Support pthreads-win32.
880         * lib/glthread/thread.h (gl_thread_self): Define differently on
881         pthreads-win32.
882         (gl_null_thread): New declaration.
883         (gl_thread_self_pointer): New macro.
884         * lib/glthread/thread.c (gl_null_thread): New constant.
885         * tests/test-lock.c: Use gl_thread_self_pointer instead of
886         gl_thread_self.
887         * tests/test-tls.c: Likewise.
888         Suggested by Paul Eggert. Reported by Eric Blake.
889
890 2011-06-09  Bruno Haible  <bruno@clisp.org>
891
892         thread: Fix confusion between NULL and 0.
893         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
894         Reported by Paul Eggert.
895
896 2011-06-09  Bruno Haible  <bruno@clisp.org>
897
898         spawn-pipe tests: Avoid test failure on HP-UX 11.
899         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
900         is closed.
901
902 2011-06-09  Bruno Haible  <bruno@clisp.org>
903
904         acl tests: Fix compilation error on HP-UX 11.
905         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
906
907 2011-06-09  Bruno Haible  <bruno@clisp.org>
908
909         rmdir: Avoid test failure on HP-UX 10.20.
910         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
911         EEXIST.
912
913 2011-06-08  Eric Blake  <eblake@redhat.com>
914
915         perror: fix test on mingw
916         * modules/perror-tests (Depends-on): Add dup2.
917
918         strerror_r-posix: fix on MacOS
919         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
920         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
921         logic bug.
922         * lib/strerror_r.c (strerror_r): Fix the bug.
923         * lib/strerror.c (strerror): Likewise.
924         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
925         problem.
926         * doc/posix-functions/strerror.texi (strerror): Likewise.
927         * doc/posix-functions/perror.texi (perror): Likewise.
928         * tests/test-strerror.c (main): Enhance test.
929         * tests/test-strerror_r.c (main): Likewise.
930
931 2011-06-08  Bruno Haible  <bruno@clisp.org>
932
933         gnulib-tool: Better isolation between different gnulib-tool invocations.
934         * gnulib-tool: New option --witness-c-macro.
935         (witness_c_macro): New variable.
936         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
937         AM_CPPFLAGS define it as a C macro.
938         (func_emit_tests_Makefile_am): Likewise.
939         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
940         read it from there.
941         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
942         m4_define, not AC_DEFUN.
943         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
944         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
945         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
946         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
947         s|...|...|, to substitute the values of the GNULIB_* module indicator
948         variables.
949         * modules/dirent (Makefile.am): Likewise.
950         * modules/fcntl-h (Makefile.am): Likewise.
951         * modules/iconv-h (Makefile.am): Likewise.
952         * modules/langinfo (Makefile.am): Likewise.
953         * modules/locale (Makefile.am): Likewise.
954         * modules/math (Makefile.am): Likewise.
955         * modules/netdb (Makefile.am): Likewise.
956         * modules/poll-h (Makefile.am): Likewise.
957         * modules/pty (Makefile.am): Likewise.
958         * modules/search (Makefile.am): Likewise.
959         * modules/signal (Makefile.am): Likewise.
960         * modules/spawn (Makefile.am): Likewise.
961         * modules/stdio (Makefile.am): Likewise.
962         * modules/stdlib (Makefile.am): Likewise.
963         * modules/string (Makefile.am): Likewise.
964         * modules/sys_ioctl (Makefile.am): Likewise.
965         * modules/sys_select (Makefile.am): Likewise.
966         * modules/sys_socket (Makefile.am): Likewise.
967         * modules/sys_stat (Makefile.am): Likewise.
968         * modules/sys_times (Makefile.am): Likewise.
969         * modules/sys_utsname (Makefile.am): Likewise.
970         * modules/sys_wait (Makefile.am): Likewise.
971         * modules/termios (Makefile.am): Likewise.
972         * modules/time (Makefile.am): Likewise.
973         * modules/unistd (Makefile.am): Likewise.
974         * modules/wchar (Makefile.am): Likewise.
975
976 2011-06-08  Eric Blake  <eblake@redhat.com>
977
978         strerror: simplify replacement
979         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
980         * modules/strerror (configure.ac): No prereqs needed here...
981         * modules/strerror-override (configure.ac): ...but this needs it.
982         (Files): Add file for needed prereq macro.
983
984 2011-06-08  Bruno Haible  <bruno@clisp.org>
985
986         strerror_r-posix: Tweaks.
987         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
988         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
989         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
990         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
991         (gl_FUNC_STRERROR_R): ... to here.
992         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
993
994 2011-06-07  Eric Blake  <eblake@redhat.com>
995
996         perror: document fixed bugs
997         * doc/posix-functions/perror.texi (perror): Document recent
998         patches.
999
1000 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
1001
1002         stat-time: get_stat_birthtime failure is better-defined
1003         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
1004         return a timestamp whose tv_sec and tv_nsec values are both -1.
1005         Previously, the spec said only that the tv_nsec value was negative.
1006         This upward-compatible change simplifies GNU tar a bit.
1007
1008 2011-06-07  Eric Blake  <eblake@redhat.com>
1009
1010         strerror_r-posix: work around cygwin 1.7.9
1011         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
1012         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
1013         bug without replacing strerror_r.
1014         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
1015         strerror_r is buggy, but without requiring strerror_r compilation.
1016         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
1017
1018         test-perror: relax test to ignore cygwin bug
1019         * tests/test-perror2.c (main): Relax test on requiring detection
1020         of stream errors, and use unbuffered stream.
1021         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
1022         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
1023         * doc/posix-functions/fputc.texi (fputc): Likewise.
1024         * doc/posix-functions/fputs.texi (fputs): Likewise.
1025         * doc/posix-functions/fputws.texi (fputws): Likewise.
1026         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
1027         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
1028         * doc/posix-functions/getopt.texi (getopt): Likewise.
1029         * doc/posix-functions/perror.texi (perror): Likewise.
1030         * doc/posix-functions/printf.texi (printf): Likewise.
1031         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
1032         * doc/posix-functions/psignal.texi (psignal): Likewise.
1033         * doc/posix-functions/putc.texi (putc): Likewise.
1034         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
1035         Likewise.
1036         * doc/posix-functions/putchar.texi (putchar): Likewise.
1037         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
1038         Likewise.
1039         * doc/posix-functions/puts.texi (puts): Likewise.
1040         * doc/posix-functions/putwc.texi (putwc): Likewise.
1041         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
1042         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
1043         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1044         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
1045         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1046         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
1047         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
1048         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
1049
1050 2011-05-22  Bruno Haible  <bruno@clisp.org>
1051
1052         strerror: Move AC_LIBOBJ invocations to module description.
1053         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
1054         gl_PREREQ_STRERROR invocations from here...
1055         * modules/strerror (configure.ac): ... to here.
1056
1057 2011-05-21  Bruno Haible  <bruno@clisp.org>
1058
1059         perror: Use common idiom.
1060         * modules/perror (configure.ac): Reorder statements.
1061
1062 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1063
1064         tests: fix usage message in 'mktempd_'
1065         * tests/init.sh (mktempd_): In the usage message, use literal
1066         'mktempd_', not '$ME' (which is even undefined), as the name of
1067         the subroutine.
1068
1069 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1070
1071         tests init: new function 'fatal_', for hard errors
1072         Before this patch, the only way offered by tests/init.sh to
1073         properly signal a hard error was the `framework_failure_'
1074         function.  But the error message issued by that function,
1075         as its name would suggest, refers to a set-up failure in the
1076         testsuite, while hard errors can obviously also be due to
1077         other reasons.  The best way to fix this inconsistency is to
1078         introduce a new function with a more general error message.
1079         * tests/init.sh (fatal_): New function.
1080
1081 2011-06-06  Eric Blake  <eblake@redhat.com>
1082
1083         canonicalize-lgpl: use common idiom
1084         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
1085         over newer POSIX -Rf.
1086         Reported by Bruno Haible.
1087
1088         canonicalize-lgpl: work around AIX realpath bug
1089         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
1090         * doc/posix-functions/realpath.texi (realpath): Document it.
1091         Reported by Bruno Haible.
1092
1093         strerror: work around FreeBSD bug
1094         * lib/strerror.c (strerror): Special case 0.
1095         Reported by Bruno Haible.
1096
1097         strerror-override: avoid bloating errno module
1098         * modules/errno (Files, configure.ac): Move replacement strings...
1099         * modules/strerror-override: ...to new module.
1100         * modules/strerror (Depends-on): Add strerror-override.
1101         * modules/strerror_r-posix (Depends-on): Likewise.
1102         * MODULES.html.sh: Document new module.
1103         Reported by Bruno Haible.
1104
1105 2011-06-06  Bruno Haible  <bruno@clisp.org>
1106
1107         spawn-pipe tests: Rename program.
1108         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
1109         * tests/test-spawn-pipe-child.c: Update comment.
1110         * tests/test-spawn-pipe.sh: Update.
1111         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
1112
1113         spawn-pipe tests: Link the child program only against libc.
1114         * tests/test-spawn-pipe-child.c: New file, extracted from
1115         tests/test-spawn-pipe.c.
1116         (main): Expect only one argument.
1117         (is_open): New function, copied from tests/test-pipe.c.
1118         * tests/test-spawn-pipe.c: Don't include <errno.h>.
1119         (child_main): Remove function.
1120         (test_pipe): Pass only one argument to the child program.
1121         (main): Remove child process code. Expect the child program's name as
1122         first argument.
1123         * tests/test-spawn-pipe.sh: Pass the child program's name as first
1124         argument.
1125         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
1126         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
1127         test-spawn-pipe-child against no libraries.
1128
1129 2011-06-06  Bruno Haible  <bruno@clisp.org>
1130
1131         careadlinkat: Avoid mismatch between ssize_t and int.
1132         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
1133         * lib/careadlinkat.c (careadlinkatcwd): Define always.
1134
1135 2011-06-06  Jim Meyering  <meyering@redhat.com>
1136
1137         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
1138         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
1139         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
1140
1141 2011-06-05  Bruno Haible  <bruno@clisp.org>
1142
1143         ansi-c++-opt: Interoperability with libtool.
1144         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
1145         set the variable to "no", not to ":".
1146         * NEWS: Mention the change.
1147
1148 2011-06-05  Bruno Haible  <bruno@clisp.org>
1149
1150         acl: Fix test failure on AIX 7.
1151         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
1152         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
1153
1154 2011-06-05  Bruno Haible  <bruno@clisp.org>
1155
1156         pipe-filter-ii: Fix test failure on AIX and IRIX.
1157         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
1158         with EAGAIN, retry with a smaller buffer size.
1159
1160 2011-06-05  Bruno Haible  <bruno@clisp.org>
1161
1162         localename: Fix link dependencies.
1163         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
1164         * modules/localename-tests (Makefile.am): Link test-localename with
1165         $(LIBTHREAD).
1166
1167 2011-06-05  Bruno Haible  <bruno@clisp.org>
1168
1169         error: Avoid gcc warning.
1170         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
1171
1172 2011-06-05  Bruno Haible  <bruno@clisp.org>
1173
1174         unsetenv: Avoid gcc warning.
1175         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
1176
1177 2011-06-05  Bruno Haible  <bruno@clisp.org>
1178
1179         setenv: Avoid gcc warning.
1180         * lib/setenv.c (setenv): Provide declaration if system lacks it.
1181
1182 2011-06-05  Bruno Haible  <bruno@clisp.org>
1183
1184         sys_select: Ensure memset is declared also on AIX 7.
1185         * lib/sys_select.in.h: Include <string.h> also on AIX.
1186         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
1187         self-contained also on AIX 7.1.
1188
1189 2011-06-04  Jim Meyering  <meyering@redhat.com>
1190
1191         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
1192         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
1193         function name, "error".
1194         (_gl_translatable_diag_func_re): New configurable variable.
1195
1196 2011-06-04  Bruno Haible  <bruno@clisp.org>
1197
1198         getopt: Avoid gcc warning.
1199         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
1200
1201 2011-06-04  Bruno Haible  <bruno@clisp.org>
1202
1203         strerror_r: Fix comments.
1204         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
1205         commit.
1206
1207 2011-06-04  Bruno Haible  <bruno@clisp.org>
1208
1209         perror: Fix compilation error.
1210         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
1211         Undefine fprintf, not sprintf.
1212         * modules/perror (Depends-on): Remove intprops, verify.
1213
1214 2011-06-04  Bruno Haible  <bruno@clisp.org>
1215
1216         setlocale: Enable replacement on Cygwin 1.5.
1217         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
1218         Cygwin 1.5.x.
1219         * doc/posix-functions/setlocale.texi: Mention that the problem with the
1220         LC_CTYPE category also exists on Cygwin 1.5.x.
1221
1222 2011-06-04  Bruno Haible  <bruno@clisp.org>
1223
1224         strerror-override: Don't disable symbol renamings.
1225         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
1226         * lib/strerror-override.c: Include config.h.
1227         (strerror_override): Don't undefine.
1228
1229 2011-06-03  Bruno Haible  <bruno@clisp.org>
1230
1231         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
1232         * lib/localename.h: Update copyright header.
1233         * lib/localename.c: Likewise.
1234         * lib/relocatable.h: Likewise.
1235         * lib/relocatable.c: Likewise.
1236
1237 2011-06-02  Bruno Haible  <bruno@clisp.org>
1238
1239         doc: Fix a module name.
1240         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
1241
1242 2011-06-02  Bruno Haible  <bruno@clisp.org>
1243
1244         pipe2: Remove dependency on 'nonblocking' module.
1245         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
1246         O_NONBLOCK is defined by gnulib.
1247         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
1248         is zero.
1249         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
1250         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
1251         defined by gnulib.
1252         (get_nonblocking_flag): New function.
1253         (main): Test O_NONBLOCK flag only if it is nonzero.
1254         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
1255
1256 2011-06-03  Jim Meyering  <meyering@redhat.com>
1257
1258         maint: three new prohibit-header-without-use rules
1259         Prohibit use of cloexec.h, posixver.h, same.h without use.
1260         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
1261         (sc_prohibit_posixver_without_use): Likewise.
1262         (sc_prohibit_same_without_use): Likewise.
1263
1264 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1265
1266         allocator: 'die' routine is now given requested size
1267         * lib/allocator.h (struct allocator.die): New size arg.
1268         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
1269         If the actual problem is an ssize_t limitation, not a size_t or
1270         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
1271
1272 2011-06-01  Eric Blake  <eblake@redhat.com>
1273
1274         strerror: drop strerror_r dependency
1275         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
1276         * lib/strerror-override.c (strerror_override): ...to new file.
1277         * lib/strerror-override.h: Add prototype.
1278         * lib/strerror-impl.h: Delete.
1279         * lib/strerror.c (strerror): New implementation.
1280         * modules/errno (Files): Add new files.
1281         (configure.ac): Compile new file as appropriate.
1282         * modules/strerror (Files): Drop unused file.
1283         (Depends-on): Drop strerror_r-posix.
1284         * MODULES.html.sh: Document strerror_r-posix.
1285         Requested by Sam Steingold.
1286
1287         perror: call strerror_r directly
1288         * modules/perror (Files): Drop strerror-impl.h.
1289         * lib/perror.c (perror): Use our own stack buffer, rather than
1290         calling a wrapper that uses static storage.
1291         * doc/posix-functions/perror.texi (perror): Document a limitation
1292         of our replacement.
1293
1294         strerror_r: fix includes for FreeBSD
1295         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
1296         since we use abort on some platforms.
1297         Reported by Matthias Bolte.
1298
1299 2011-05-31  Bruno Haible  <bruno@clisp.org>
1300
1301         Fix link errors in tests: openat-die uses gettext-h.
1302         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
1303         against $(LIBINTL).
1304         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
1305         against $(LIBINTL).
1306         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
1307         $(LIBINTL).
1308         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
1309         against $(LIBINTL).
1310         * modules/linkat-tests (Makefile.am): Link test-linkat against
1311         $(LIBINTL).
1312         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
1313         $(LIBINTL).
1314         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
1315         against $(LIBINTL).
1316         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
1317         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
1318         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
1319         $(LIBINTL).
1320         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
1321         $(LIBINTL).
1322         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
1323         $(LIBINTL).
1324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1325
1326 2011-05-31  Bruno Haible  <bruno@clisp.org>
1327
1328         Fix link errors in tests: wait-process uses gettext-h.
1329         * modules/nonblocking-pipe-tests (Makefile.am): Set
1330         test_nonblocking_pipe_main_LDADD.
1331         * modules/nonblocking-socket-tests (Makefile.am): Link
1332         test-nonblocking-socket-main against $(LIBINTL).
1333         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1334
1335 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1336
1337         assert-h: work around 'verify' incompatibility
1338         * lib/verify.h: Use @...@ directives, not ifdef.
1339         * modules/assert-h (assert.h): Implement the directives.
1340         (assert.h): Substitute the symbol-prefix more consistently.
1341
1342 2011-05-29  Jim Meyering  <meyering@redhat.com>
1343
1344         trim: remove three superfluous assignments
1345         * lib/trim.c (trim2): Remove three superfluous assignments
1346         and correct brace positioning.
1347
1348 2011-05-29  Bruno Haible  <bruno@clisp.org>
1349
1350         wctype-h: Avoid namespace pollution on Solaris 2.6.
1351         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
1352         identifiers.
1353         * doc/posix-headers/wctype.texi: Mention the problem.
1354         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1355
1356 2011-05-28  Jim Meyering  <meyering@redhat.com>
1357
1358         parse-datetime.y: accommodate -Wstrict-overflow
1359         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
1360         placate -Wstrict-overflow.
1361
1362         trim: avoid a warning from -O2 -Wstrict-overflow
1363         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
1364
1365 2011-05-29  Bruno Haible  <bruno@clisp.org>
1366
1367         gnulib-tool: Fix bug in yesterday's commit.
1368         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
1369         twice.
1370
1371 2011-05-29  Bruno Haible  <bruno@clisp.org>
1372
1373         Allow multiple gnulib generated include files to be combined.
1374         * gnulib-tool (func_compute_include_guard_prefix): New function.
1375         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
1376         ${gl_include_guard_prefix} references.
1377         (func_import, func_create_testdir): Invoke
1378         func_compute_include_guard_prefix.
1379         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
1380         * lib/ctype.in.h: Likewise.
1381         * lib/dirent.in.h: Likewise.
1382         * lib/errno.in.h: Likewise.
1383         * lib/fcntl.in.h: Likewise.
1384         * lib/float.in.h: Likewise.
1385         * lib/getopt.in.h: Likewise.
1386         * lib/iconv.in.h: Likewise.
1387         * lib/langinfo.in.h: Likewise.
1388         * lib/locale.in.h: Likewise.
1389         * lib/math.in.h: Likewise.
1390         * lib/netdb.in.h: Likewise.
1391         * lib/netinet_in.in.h: Likewise.
1392         * lib/poll.in.h: Likewise.
1393         * lib/pthread.in.h: Likewise.
1394         * lib/pty.in.h: Likewise.
1395         * lib/sched.in.h: Likewise.
1396         * lib/se-selinux.in.h: Likewise.
1397         * lib/search.in.h: Likewise.
1398         * lib/signal.in.h: Likewise.
1399         * lib/spawn.in.h: Likewise.
1400         * lib/stdarg.in.h: Likewise.
1401         * lib/stddef.in.h: Likewise.
1402         * lib/stdint.in.h: Likewise.
1403         * lib/stdio.in.h: Likewise.
1404         * lib/stdlib.in.h: Likewise.
1405         * lib/string.in.h: Likewise.
1406         * lib/strings.in.h: Likewise.
1407         * lib/sys_file.in.h: Likewise.
1408         * lib/sys_ioctl.in.h: Likewise.
1409         * lib/sys_select.in.h: Likewise.
1410         * lib/sys_socket.in.h: Likewise.
1411         * lib/sys_stat.in.h: Likewise.
1412         * lib/sys_time.in.h: Likewise.
1413         * lib/sys_times.in.h: Likewise.
1414         * lib/sys_uio.in.h: Likewise.
1415         * lib/sys_utsname.in.h: Likewise.
1416         * lib/sys_wait.in.h: Likewise.
1417         * lib/sysexits.in.h: Likewise.
1418         * lib/termios.in.h: Likewise.
1419         * lib/time.in.h: Likewise.
1420         * lib/unistd.in.h: Likewise.
1421         * lib/wchar.in.h: Likewise.
1422         * lib/wctype.in.h: Likewise.
1423         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
1424         * modules/ctype (Makefile.am): Likewise.
1425         * modules/dirent (Makefile.am): Likewise.
1426         * modules/errno (Makefile.am): Likewise.
1427         * modules/fcntl-h (Makefile.am): Likewise.
1428         * modules/float (Makefile.am): Likewise.
1429         * modules/getopt-posix (Makefile.am): Likewise.
1430         * modules/iconv-h (Makefile.am): Likewise.
1431         * modules/langinfo (Makefile.am): Likewise.
1432         * modules/locale (Makefile.am): Likewise.
1433         * modules/math (Makefile.am): Likewise.
1434         * modules/netdb (Makefile.am): Likewise.
1435         * modules/netinet_in (Makefile.am): Likewise.
1436         * modules/poll-h (Makefile.am): Likewise.
1437         * modules/pthread (Makefile.am): Likewise.
1438         * modules/pty (Makefile.am): Likewise.
1439         * modules/sched (Makefile.am): Likewise.
1440         * modules/search (Makefile.am): Likewise.
1441         * modules/selinux-h (Makefile.am): Likewise.
1442         * modules/signal (Makefile.am): Likewise.
1443         * modules/spawn (Makefile.am): Likewise.
1444         * modules/stdarg (Makefile.am): Likewise.
1445         * modules/stddef (Makefile.am): Likewise.
1446         * modules/stdint (Makefile.am): Likewise.
1447         * modules/stdio (Makefile.am): Likewise.
1448         * modules/stdlib (Makefile.am): Likewise.
1449         * modules/string (Makefile.am): Likewise.
1450         * modules/strings (Makefile.am): Likewise.
1451         * modules/sys_file (Makefile.am): Likewise.
1452         * modules/sys_ioctl (Makefile.am): Likewise.
1453         * modules/sys_select (Makefile.am): Likewise.
1454         * modules/sys_socket (Makefile.am): Likewise.
1455         * modules/sys_stat (Makefile.am): Likewise.
1456         * modules/sys_time (Makefile.am): Likewise.
1457         * modules/sys_times (Makefile.am): Likewise.
1458         * modules/sys_uio (Makefile.am): Likewise.
1459         * modules/sys_utsname (Makefile.am): Likewise.
1460         * modules/sys_wait (Makefile.am): Likewise.
1461         * modules/sysexits (Makefile.am): Likewise.
1462         * modules/termios (Makefile.am): Likewise.
1463         * modules/time (Makefile.am): Likewise.
1464         * modules/unistd (Makefile.am): Likewise.
1465         * modules/wchar (Makefile.am): Likewise.
1466         * modules/wctype-h (Makefile.am): Likewise.
1467         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
1468
1469 2011-05-29  Bruno Haible  <bruno@clisp.org>
1470
1471         assert-h: Allow multiple gnulib generated replacements to coexist.
1472         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
1473
1474 2011-05-29  Bruno Haible  <bruno@clisp.org>
1475
1476         argp: Allow coexistence with strerror_r-posix module.
1477         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
1478         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
1479         by gnulib's <string.h> replacement), assume it has the POSIX signature,
1480         not the glibc signature.
1481
1482 2011-05-28  Bruno Haible  <bruno@clisp.org>
1483
1484         gnulib-tool: Alternative structure of testdirs, similar to --import.
1485         * gnulib-tool: New option --single-configure.
1486         (func_usage): Document it.
1487         (single_configure): New variable.
1488         (func_modules_transitive_closure_separately,
1489         func_modules_transitive_closure_separately,
1490         func_determine_use_libtests, func_modules_add_dummy_separately,
1491         func_modules_to_filelist_separately): New functions, extracted from
1492         func_import.
1493         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
1494         (func_import): Use the new functions.
1495         (func_create_testdir): Set final_modules. Handle $single_configure =
1496         true case.
1497
1498 2011-05-28  Bruno Haible  <bruno@clisp.org>
1499
1500         getloadavg: Remove an unreliable safety check.
1501         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
1502         getloadavg.c is in place.
1503         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
1504         Reported by Sam Steingold <sds@gnu.org>.
1505
1506 2011-05-28  Bruno Haible  <bruno@clisp.org>
1507
1508         doc: Cleanup yet another file produced by texinfo.tex.
1509         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
1510
1511 2011-05-28  Bruno Haible  <bruno@clisp.org>
1512
1513         Finish the conditional dependencies mechanism.
1514         * gnulib-tool: New option --no-conditional-dependencies.
1515         (func_usage): Document it. Don't mark --conditional-dependencies as
1516         experimental.
1517         (cond_dependencies): The possible values can now be true, false, empty.
1518         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
1519         (func_import): Store setting in gnulib-cache.m4 and read it from there.
1520         * doc/gnulib-tool.texi (Conditional dependencies): New section.
1521
1522 2011-05-28  Bruno Haible  <bruno@clisp.org>
1523
1524         doc: Use a recent texinfo.tex.
1525         * doc/Makefile (tex_opts): New variable.
1526         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
1527
1528 2011-05-28  Jim Meyering  <meyering@redhat.com>
1529
1530         intprops.h: adjust comment to match code change
1531         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
1532         only once, it *may* have side effects.  Also fix an unrelated typo.
1533         (_GL_INT_SIGNED): Likewise.
1534
1535 2011-05-26  Simon Josefsson  <simon@josefsson.org>
1536
1537         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
1538
1539 2011-05-26  Bruno Haible  <bruno@clisp.org>
1540
1541         mbsrchr: Avoid collision with system function on Interix.
1542         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
1543         Reported by Markus Duft <mduft@gentoo.org>.
1544
1545 2011-05-15  James Youngman  <jay@gnu.org>
1546
1547         getopt: for ambiguous options, enumerate the possibilities.
1548         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
1549         the ambiguous options when an ambiguous prefix is given. This was
1550         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
1551         glibc change was
1552         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
1553
1554 2011-05-25  Eric Blake  <eblake@redhat.com>
1555
1556         getcwd: work around mingw bug
1557         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
1558         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1559         Reported by Matthias Bolte.
1560
1561 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
1562
1563         test-intprops: disable -Wtype-limits diagnostics
1564         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
1565         diagnostics.  Otherwise, the integer overflow macros generate many
1566         diagnostics.  Reported by Jim Meyering in
1567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1568
1569         intprops: shorten, to pacify gcc -Woverlength-strings
1570         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
1571         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
1572         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
1573         likely to run afoul of C compiler limits for string constant lengths.
1574         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1575
1576 2011-05-24  Eric Blake  <eblake@redhat.com>
1577
1578         docs: document recently fixed glibc printf bug
1579         * doc/posix-functions/fprintf.texi (fprintf): Document it.
1580         * doc/posix-functions/printf.texi (printf): Likewise.
1581         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1582         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1583
1584         closein-tests: convert to init.sh
1585         * modules/closein-tests (Files): Add init.sh
1586         * tests/test-closein.sh Use it.
1587
1588         yesno-tests: convert to init.sh
1589         * modules/yesno-tests (Files): Add init.sh.
1590         * tests/test-yesno.sh: Use it.
1591
1592         atexit-tests: ensure reliable exit status
1593         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
1594         Reported by Bruno Haible.
1595
1596 2011-05-24  Bruno Haible  <bruno@clisp.org>
1597
1598         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
1599         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
1600         gl_PREREQ_STRERROR_R invocations from here...
1601         * modules/strerror_r-posix (configure.ac): ... to here.
1602
1603 2011-05-24  Eric Blake  <eblake@redhat.com>
1604
1605         strerror_r: fix missing header
1606         * lib/strerror_r.c: Avoid compiler warning about snprintf.
1607
1608         strerror_r: fix AIX test failures
1609         * lib/strerror_r.c (strerror_r): Convert silent truncation to
1610         ERANGE failure.
1611
1612         strerror_r: fix Solaris test failures
1613         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
1614         failures.
1615         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1616
1617         strerror_r: enforce POSIX recommendations
1618         * lib/strerror_r.c (safe_copy): New helper method.
1619         (strerror_r): Guarantee a non-empty string.
1620         * tests/test-strerror_r.c (main): Enhance tests to incorporate
1621         recent POSIX rulings and to match our strerror guarantees.
1622         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1623
1624 2011-05-24  Jim Meyering  <meyering@redhat.com>
1625
1626         test-perror2.c: avoid warning about unused variable
1627         * tests/test-perror2.c (main): Remove declaration of unused "fp".
1628
1629 2011-05-24  Eric Blake  <eblake@redhat.com>
1630
1631         perror: avoid spurious test failure on HP-UX
1632         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
1633
1634         tests: fix logic bug in init.sh
1635         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
1636         shell.
1637
1638 2011-05-24  Jim Meyering  <meyering@redhat.com>
1639
1640         utimensat: do not reference an out-of-scope buffer
1641         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
1642         declared in an inner scope, yet "times" would be dereferenced outside
1643         the scope in which "ts" was valid.
1644         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1645         of ts[2] "out/up", so that the use of aliased "times" (via
1646         "times = ts;") does not end up referencing an out-of-scope "ts"
1647
1648         opendir-safer.c: don't clobber errno; don't close negative FD
1649         * lib/opendir-safer.c (opendir_safer):
1650         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1651         file descriptor, and more importantly, don't clobber the
1652         offending errno value with EINVAL.  Before, upon failure
1653         of dup_safer, we would pass the negative file descriptor to
1654         fdopendir, which would clobber errno.
1655
1656 2011-05-23  Bruno Haible  <bruno@clisp.org>
1657
1658         idcache: Fix module description.
1659         * modules/idcache (Include): Set to "idcache.h".
1660
1661 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1662
1663         gnulib-tool: fix portability problem with MacOS sed
1664         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1665         before the "}".  Problem reported by Leo in
1666         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1667         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1668         sed_extract_condition1, sed_extract_condition2.
1669
1670 2011-05-23  Bruno Haible  <bruno@clisp.org>
1671
1672         hash: Simplify autoconf macro.
1673         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1674
1675 2011-05-23  Bruno Haible  <bruno@clisp.org>
1676
1677         getugroups: Fix module description.
1678         * modules/getugroups (Include): Set to "getugroups.h".
1679
1680 2011-05-23  Bruno Haible  <bruno@clisp.org>
1681
1682         linkat: Simplify autoconf macro.
1683         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1684
1685 2011-05-23  Bruno Haible  <bruno@clisp.org>
1686             Eric Blake  <eblake@redhat.com>
1687
1688         linkat, renameat: Update dependencies.
1689         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1690         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1691         symlinkat.
1692
1693 2011-05-23  Jim Meyering  <meyering@redhat.com>
1694
1695         maint.mk: more tight_scope improvements
1696         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1697         (_gl_TS_headers): Define only in if-0'd block.
1698         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1699         sometimes we must *not* use it.  Adjust uses accordingly.
1700         (sc_tight_scope): Use much simpler grep-based test to determine
1701         whether we skip this rule.
1702
1703         maint.mk: generalize/improve the tight-scope rule
1704         * top/maint.mk: Emit a warning when the test is skipped.
1705         (_gl_TS_dir): Add $(srcdir)/ prefix.
1706         (_gl_TS_function_match): Simplify, rather than trying
1707         to enumerate common types.  Otherwise, it would fail to match an
1708         "extern unsigned char const *" declaration in idutils.
1709         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1710         a way to support use of that type of macro.
1711         (_gl_TS_var_match): Simplify regexp.
1712         (_gl_TS_obj_files): New configurable variable.
1713         (_gl_TS_headers): Likewise.
1714
1715 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1716
1717         verify: fix bug when gnulib <assert.h> is also included
1718         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1719         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1720         Perhaps there's a better way, but this fixes the immediate problem.
1721         Problem reported by Bruno Haible in
1722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1723
1724 2011-05-22  Bruno Haible  <bruno@clisp.org>
1725
1726         xgetcwd: Simplify autoconf macro.
1727         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1728
1729 2011-05-22  Bruno Haible  <bruno@clisp.org>
1730
1731         New module 'mktime-internal'.
1732         * modules/mktime-internal: New file.
1733         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1734         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1735         mktime_internal as a C macro if libc has __mktime_internal.
1736         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1737         conditions.
1738         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1739
1740 2011-05-22  Bruno Haible  <bruno@clisp.org>
1741
1742         timegm: Correct mktime replacement statements.
1743         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1744         defining mktime as a C macro. This completes a 2009-07-28 commit.
1745
1746 2011-05-22  Bruno Haible  <bruno@clisp.org>
1747
1748         timegm: Simplify autoconf macro.
1749         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1750
1751 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1752
1753         clock-time: change to LGPLv2+.
1754         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1755         BSD-like but we have no mark for that; this is good enough for now.
1756
1757 2011-05-21  Bruno Haible  <bruno@clisp.org>
1758
1759         strerror_r: Fix comments.
1760         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1761
1762 2011-05-21  Bruno Haible  <bruno@clisp.org>
1763
1764         relocatable-prog-wrapper: Fix possible link error.
1765         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1766         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1767         (gl_FUNC_SETENV): ... to here.
1768         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1769         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1770
1771 2011-05-21  Bruno Haible  <bruno@clisp.org>
1772
1773         relocatable-prog-wrapper: Assume strerror() exists.
1774         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1775         m4/strerror.m4.
1776         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1777         * lib/relocwrapper.c: Remove mention of strerror module.
1778         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1779         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1780         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1781         C macro.
1782
1783 2011-05-21  Bruno Haible  <bruno@clisp.org>
1784
1785         select: Simplify replacement idiom.
1786         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1787         Win32 platforms.
1788         * lib/sys_select.in.h (select): Simplify accordingly.
1789         * modules/select (Depends-on): Likewise.
1790
1791 2011-05-21  Bruno Haible  <bruno@clisp.org>
1792
1793         mkdir-p: Simplify autoconf macro.
1794         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1795         gl_FUNC_LCHOWN.
1796
1797 2011-05-21  Eric Blake  <eblake@redhat.com>
1798
1799         strerror_r: avoid clobbering strerror on cygwin
1800         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1801         fall back instead to sys_errlist.
1802         * modules/strerror (configure.ac): Add witness.
1803         * tests/test-strerror_r.c (main): Enhance test.
1804         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1805         * tests/test-perror2.c (main): Free memory before exit.
1806
1807 2011-05-21  Bruno Haible  <bruno@clisp.org>
1808
1809         mkdtemp: Use gnulib naming conventions.
1810         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1811         * modules/mkdtemp (configure.ac): Update.
1812
1813 2011-05-20  Eric Blake  <eblake@redhat.com>
1814
1815         strerror_r: avoid corrupting errno on Solaris
1816         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1817         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1818
1819         strerror_r: avoid compiler warning
1820         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1821
1822         strerror_r: simplify AIX code
1823         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1824
1825         test-perror: avoid spurious failure on FreeBSD
1826         * modules/perror-tests (Depends-on): Add strerror, now that
1827         strerror_r no longer pulls it in.
1828
1829 2011-05-20  Bruno Haible  <bruno@clisp.org>
1830
1831         strerror_r-posix: Remove unused dependencies.
1832         * modules/strerror_r-posix (Depends-on): Remove strerror.
1833         Reported by Eric Blake.
1834
1835 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1836
1837         intprops: remove assumption about A|B representation
1838         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1839         is a valid integer if both A and B are.  Although this is true for
1840         all known practical hosts, the C standard doesn't guarantee it,
1841         and the code need not assume it.  Also, this change may work around
1842         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1844
1845 2011-05-20  Eric Blake  <eblake@redhat.com>
1846
1847         perror: work around FreeBSD bug
1848         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1849         is broken.  Move AC_LIBOBJ...
1850         * modules/perror (configure.ac): Here.
1851         * doc/posix-functions/perror.texi (perror): Document this.
1852         * tests/test-perror2.c (main): Enhance test.
1853
1854         test-perror: check for strerror interactions
1855         * tests/macros.h (STREQ): Add macro.
1856         * modules/perror-tests (Files): Add second test.
1857         * tests/test-perror2.c (main): New file.
1858         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1859
1860         test-perror: rewrite to use init script
1861         * modules/perror-tests (Files): Add init.sh.
1862         * tests/test-perror.sh: Use temporary directory.
1863
1864 2011-05-20  Jim Meyering  <meyering@redhat.com>
1865
1866         maint: replace misused "a" with "an"
1867         * doc/intprops.texi: "a integer"
1868         * doc/regex.texi: "a explanation"
1869         * lib/alignof.h: "a object"
1870         * lib/argmatch.h: "a explanation"
1871         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1872         * lib/stdint.in.h: "a integer"
1873         * lib/userspec.c: "a owner"
1874         * doc/gnulib.texi: Fix "a idea", and reword.
1875
1876 2011-05-19  Jim Meyering  <meyering@redhat.com>
1877
1878         maint: correct misuse of "a" and "an"
1879         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1880         * lib/argp-help.c: "an docum...": s/an/a/
1881         * lib/argp-parse.c: "An vector": s/An/A/
1882         * lib/execute.c: "an native": s/an/a/
1883         * lib/spawn-pipe.c: Likewise.
1884         * lib/gc.h: "an Gc_rc": s/an/a/
1885         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1886         * lib/fts.c: "an stat.st_dev": s/an/a/
1887
1888 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1889
1890         intprops-tests: work around HP-UX 11.23 cc bug with constants
1891         * tests/test-intprops.c (VERIFY): New macro.
1892         (main): Use it, instead of verify, to work around the compiler bug; see
1893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1894
1895         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1896         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1897         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1898         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1899         (_GL_REMAINDER_OVERFLOW): Use it.
1900
1901         intprops-tests: revert unsigned part of previous change
1902         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1903         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1904         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1906
1907 2011-05-19  Bruno Haible  <bruno@clisp.org>
1908
1909         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1910         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1911         strerror_r() returned without filling the buffer.
1912         Reported by Eric Blake.
1913
1914 2011-05-19  Eric Blake  <eblake@redhat.com>
1915
1916         strerror_r: guarantee unchanged errno
1917         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1918         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1919         failure.
1920         * tests/test-strerror_r.c (main): Enhance test.
1921
1922 2011-05-19  Bruno Haible  <bruno@clisp.org>
1923
1924         strerror_r: Reorder #if blocks.
1925         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1926         for consistency with the previous commit.
1927
1928 2011-05-19  Bruno Haible  <bruno@clisp.org>
1929
1930         perror: Avoid clobbering the strerror buffer when possible.
1931         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1932         * lib/strerror.c: Include it.
1933         * modules/strerror (Files): Add lib/strerror-impl.h.
1934         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1935         (my_strerror): New function, defined through lib/strerror-impl.h.
1936         (perror): Use it instead of strerror.
1937         * modules/perror (Files): Add lib/strerror-impl.h.
1938         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1939
1940 2011-05-19  Eric Blake  <eblake@redhat.com>
1941
1942         strerror_r: fix on newer cygwin
1943         * lib/strerror_r.c (strerror_r): Cygwin now has
1944         __xpg_strerror_r, use it.
1945
1946 2011-05-19  Bruno Haible  <bruno@clisp.org>
1947
1948         strerror_r: Avoid clobbering the strerror buffer when possible.
1949         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1950         (sys_nerr, sys_errlist): New declarations.
1951         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1952         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1953         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1954
1955 2011-05-19  Bruno Haible  <bruno@clisp.org>
1956
1957         strerror_r: Fix test failure on mingw.
1958         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1959         EXTEND_STRERROR_R.
1960         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1961         macros from errno.in.h instead.
1962
1963 2011-05-19  Eric Blake  <eblake@redhat.com>
1964
1965         strerror: relax test for Solaris
1966         * tests/test-strerror.c (main): Permit Solaris behavior.
1967         * tests/test-strerror_r.c (main): Likewise.
1968
1969         strerror: enforce POSIX ruling on strerror(0)
1970         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1971         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1972         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1973         * doc/posix-functions/strerror.texi (strerror): Document it.
1974         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1975         * tests/test-strerror.c (main): Strengthen test.
1976         * tests/test-strerror_r.c (main): Likewise.
1977
1978 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1979
1980         intprop-tests: port to older and more-pedantic compilers
1981         * modules/intprops-tests (Files): Add tests/macros.h.
1982         * tests/test-intprops.c: Include macros.h.
1983         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1984         it's no longer documented to expand to an integer constant expression.
1985         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1986         argument is floating point, as it's no longer documented to expand
1987         to an integer constant expression in that case.
1988         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1989         compiler bugs reported by Bruno Haible.  See
1990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1991         (U0, U1): New constants, to work around the same bugs.  Also,
1992         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1993
1994         intprops: work around C compiler bugs
1995         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1996         bug in Sun C 5.11 2010/08/13 and other compilers; see
1997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1998
1999         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
2000         * doc/intprops.texi (Integer Type Determination): Fix
2001         documentation for TYPE_IS_INTEGER: it returns an constant
2002         expression, not an integer constant expression.  Fix doc for
2003         TYPE_SIGNED: it returns an integer constant expression only if its
2004         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
2005         hardly worth documented that way....)
2006
2007 2011-05-18  Bruno Haible  <bruno@clisp.org>
2008
2009         strerror_r: Avoid clobbering the strerror buffer when possible.
2010         * lib/strerror_r.c (strerror_r): Merge the three implementations.
2011         Handle gnulib defined errno values here. When strerror() returns NULL
2012         or an empty string, return EINVAL.
2013         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
2014         gnulib defined errno values here.
2015         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
2016
2017 2011-05-18  Eric Blake  <eblake@redhat.com>
2018
2019         fnmatch: avoid compiler warning
2020         * lib/fnmatch_loop.c (FCT): Use correct type.
2021         Reported by Matthias Bolte.
2022
2023 2011-05-13  Jim Meyering  <meyering@redhat.com>
2024
2025         maint.mk: three new prohibit_<HDR>_without_use rules
2026         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
2027         (sc_prohibit_stdio-safer_without_use): Likewise.
2028         (sc_prohibit_xfreopen_without_use): Likewise.
2029
2030 2011-05-17  Jim Meyering  <meyering@redhat.com>
2031
2032         announce-gen: fail if the NEWS delta is empty
2033         If there's nothing noteworthy in NEWS, then either you forgot
2034         or you shouldn't be releasing.
2035         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
2036
2037 2011-05-17  Pádraig Brady <P@draigBrady.com>
2038
2039         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
2040         reserved symbols starting with double underscore from the check.
2041
2042 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
2043
2044         intprops: add doc
2045         * doc/intprops.texi: New file, documenting intprops.
2046         * doc/gnulib.texi (Particular Modules): Include it.
2047
2048         verify: add doc to gnulib manual and fix example
2049         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
2050         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
2051         (Compile-time Assertions): Fix example so it can't overflow.
2052
2053 2011-05-17  Jim Meyering  <meyering@redhat.com>
2054
2055         warnings.m4: don't usurp save_CPPFLAGS variable name
2056         * m4/warnings.m4: Prefix local temporary variable name with gl_.
2057
2058         doc: fix typo
2059         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
2060
2061 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2062             Bruno Haible  <bruno@clisp.org>
2063
2064         doc: Tweak recent change.
2065         * README (Portability guidelines): Tweak new text.
2066         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
2067         Interix 6.1.
2068
2069 2011-05-16  Eric Blake  <eblake@redhat.com>
2070
2071         inttypes: avoid autoconf warning
2072         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
2073         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2074
2075 2011-05-16  Sam Steingold <sds@gnu.org>
2076         and Eric Blake  <eblake@redhat.com>
2077
2078         vc-list-files: accept multiple directory operands
2079         * build-aux/vc-list-files: Iterate over all remaining operands.
2080
2081 2011-05-16  Bruno Haible  <bruno@clisp.org>
2082
2083         Fix confusion regarding deprecated modules.
2084         * modules/calloc (Status, Notice): Mark module as deprecated, not
2085         obsolete.
2086         * modules/fnmatch-posix (Status, Notice): Likewise.
2087         * modules/getdate (Status, Notice): Likewise.
2088         * modules/getopt (Status, Notice): Likewise.
2089         * modules/malloc (Status, Notice): Likewise.
2090         * modules/pipe (Status, Notice): Likewise.
2091         * modules/realloc (Status, Notice): Likewise.
2092         * modules/rename-dest-slash (Status, Notice): Likewise.
2093         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
2094         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
2095         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
2096         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
2097         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
2098
2099 2011-05-16  Bruno Haible  <bruno@clisp.org>
2100
2101         doc: List the target platforms.
2102         * doc/gnulib-intro.texi (Target Platforms): New section.
2103         * doc/gnulib.texi (Introduction): Update menu.
2104         * README (Portability guidelines): Refer to the new section. Update
2105         statement about oldest supported environment. Remove rationale why
2106         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
2107         unportable C89 function.
2108         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
2109         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
2110
2111 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2112
2113         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
2114
2115 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2116
2117         intprops-tests: new module
2118         * modules/intprops-tests, tests/test-intprops.c: New files.
2119
2120         intprops: add safe, portable integer overflow checking
2121         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
2122         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
2123         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
2124         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
2125         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
2126         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
2127         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
2128         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
2129         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
2130         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
2131         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
2132
2133 2011-05-12  James Youngman  <jay@gnu.org>
2134
2135         Add a test for glibc's Bugzilla bug #12378.
2136         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
2137         doesn't allow the literal matching of a lone "[" (which is
2138         required by POSIX).
2139         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
2140
2141 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
2142
2143         Sync glibc change fixing Bugzilla bug #12378.
2144         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
2145         beginning and fall back to matching as normal character if the
2146         string ends before the matching ']' is found.  This is what POSIX
2147         requires.
2148
2149 2011-05-13  Eric Blake  <eblake@redhat.com>
2150
2151         getcwd-lgpl: relax test for FreeBSD
2152         * doc/posix-functions/getcwd.texi (getcwd): Document portability
2153         issue.
2154         * tests/test-getcwd-lgpl.c (main): Relax test.
2155         Reported by Matthias Bolte.
2156
2157 2011-05-11  Eric Blake  <eblake@redhat.com>
2158
2159         test-fflush: silence compiler warning
2160         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
2161
2162 2011-05-11  Bruno Haible  <bruno@clisp.org>
2163
2164         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
2165         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
2166         * modules/canonicalize (Depends-on): Add 'nocrash'.
2167         * modules/canonicalize-lgpl (Depends-on): Likewise.
2168         * doc/posix-functions/realpath.texi: Update platforms list.
2169         Reported by Ryan Schmidt <ryandesign@macports.org>.
2170
2171 2011-05-11  Bruno Haible  <bruno@clisp.org>
2172
2173         group-member: Declare function in <unistd.h>.
2174         * lib/unistd.in.h (group_member): New declaration.
2175         * lib/group-member.h: Remove file.
2176         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
2177         * tests/test-unistd-c++.cc: Check signature of group_member.
2178         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
2179         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
2180         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
2181         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
2182         HAVE_GROUP_MEMBER.
2183         * modules/group-member (Files): Remove lib/group-member.h.
2184         (Depends-on): Add unistd. Specify conditions.
2185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2186         (Include): Change to <unistd.h>.
2187         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
2188         HAVE_GROUP_MEMBER.
2189         * NEWS: Mention the change.
2190         * lib/euidaccess.c: Don't include group-member.h.
2191
2192 2011-05-11  Bruno Haible  <bruno@clisp.org>
2193
2194         group-member: Document module.
2195         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
2196         module.
2197
2198 2011-05-11  Bruno Haible  <bruno@clisp.org>
2199
2200         fclose: Fix mistake earlier today.
2201         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
2202
2203 2011-05-11  Eric Blake  <eblake@redhat.com>
2204
2205         fclose: preserve fflush errors
2206         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
2207         Reported by Jim Meyering.
2208
2209         bootstrap: support a prereq of 'rpcgen -' on RHEL5
2210         * build-aux/bootstrap (check_versions): When no specific version
2211         is required, merely check that the app produces an exit status
2212         that indicates its existence.
2213
2214         maint.mk: drop redundant check
2215         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
2216         the same but better.
2217
2218 2011-05-11  Bruno Haible  <bruno@clisp.org>
2219
2220         fclose: Fix possible link error.
2221         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
2222         unregister_shadow_fd. Improve comments.
2223         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
2224         Eric Blake.
2225
2226 2011-05-11  Jim Meyering  <meyering@redhat.com>
2227
2228         maint.mk: improve "can not" detection and generalize rule name
2229         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
2230         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
2231         Use the same technique as in sc_prohibit_doubled_word, so that
2232         we recognize "can not" also when the words are separated by a newline.
2233         Suggested by Eric Blake.
2234         (perl_filename_lineno_text_): Define.  Factored out of...
2235         (prohibit_doubled_word_): ...here.  Use the new definition.
2236         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
2237         (prohibit_undesirable_word_seq_RE_): New overridable variable.
2238         (ignore_undesirable_word_sequence_RE_): New overridable variable.
2239
2240 2011-05-10  Eric Blake  <eblake@redhat.com>
2241
2242         fclose: avoid double close race when possible
2243         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
2244         all but WINDOWS_SOCKETS.
2245
2246 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2247
2248         openat: correct new comment
2249         * lib/openat-proc.c (openat_proc_name): Correct the comment.
2250
2251 2011-05-10  Jim Meyering  <meyering@redhat.com>
2252
2253         openat: add comments
2254         * lib/openat-proc.c (openat_proc_name): Add comments,
2255         mostly from Eric Blake.
2256
2257 2011-05-09  Eric Blake  <eblake@redhat.com>
2258
2259         openat: reduce syscalls in first probe of /proc
2260         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
2261         be a directory.  Simplify the probe for .. bugs.
2262         * modules/openat (Depends-on): Drop same-inode.
2263         Reported by Bastien ROUCARIES.
2264
2265 2011-05-09  Jim Meyering  <meyering@redhat.com>
2266
2267         maint.mk: change semantics/name of tight_scope variables
2268         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
2269         Rename variables to align with semantics that make them more useful.
2270
2271         maint.mk: tweak new rule's name not to impinge
2272         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
2273         (sc_tight_scope): Use new rule name rather than $@-0.
2274
2275         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
2276         * top/maint.mk (sc_tight_scope): New rule.
2277         (sc_tight_scope-0): New rule, ifdef'd out.
2278         (_gl_TS_dir): Default.
2279         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
2280         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
2281
2282 2011-05-09  Simon Josefsson  <simon@josefsson.org>
2283
2284         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
2285         Haible <bruno@clisp.org>.
2286
2287 2011-05-08  Bruno Haible  <bruno@clisp.org>
2288
2289         Comments.
2290         * m4/isnanf.m4: Add comment.
2291         * m4/isnanl.m4: Likewise.
2292
2293 2011-05-08  Bruno Haible  <bruno@clisp.org>
2294
2295         glob: Remove obsolete macro.
2296         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
2297
2298 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2299
2300         intprops: Sun C 5.11 supports __typeof__
2301         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
2302         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
2303         which is new.
2304         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
2305
2306         intprops: switch to usual gnulib indenting and naming
2307         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
2308         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
2309
2310         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
2311
2312 2011-05-08  Jim Meyering  <meyering@redhat.com>
2313
2314         maint.mk: suppress "Entering/Leaving directory" diag in announcement
2315         * top/maint.mk (release-prep): Use make's --no-print-directory
2316         option when generating the announcement.  This eliminates the
2317         pesky "make[2]: Entering/Leaving directory" diagnostics in the
2318         generated announcement template.
2319
2320 2011-05-08  Bruno Haible  <bruno@clisp.org>
2321
2322         tzset: Fix gettimeofday wrapper on Solaris 2.6.
2323         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
2324         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
2325
2326 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2327
2328         ignore-value, verify: Omit include files from lib_SOURCES.
2329         * modules/ignore-value, modules/verify (Makefile.am):
2330         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
2331         that leads Automake to duplicate use of am__objects_... variables
2332         in Makefile.in.  See
2333         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
2334
2335 2011-05-07  Bruno Haible  <bruno@clisp.org>
2336
2337         fclose: Simplify autoconf macro.
2338         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
2339         defined.
2340
2341 2011-05-07  Bruno Haible  <bruno@clisp.org>
2342
2343         canonicalize-lgpl: Fix autoconf macro ordering bug.
2344         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
2345         gl_STDLIB_H_DEFAULTS.
2346
2347 2011-05-06  Eric Blake  <eblake@redhat.com>
2348
2349         maintainer-makefile: make sc_po_check easier to tune
2350         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
2351         to probe for strings, such as an alternate location for gnulib.
2352
2353         fclose: guarantee behavior on seekable stdin
2354         * modules/fclose (Depends-on): Add fflush.
2355         * doc/posix-functions/fclose.texi (fclose): Document this.
2356         * tests/test-fclose.c (main): Make test for this unconditional.
2357
2358 2011-05-06  Bruno Haible  <bruno@clisp.org>
2359
2360         fflush, fpurge: Relicense under LGPLv2+.
2361         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
2362         * modules/fpurge (License): Likewise.
2363         With permission from Eric Blake and Jim Meyering.
2364         Suggested by Eric Blake.
2365
2366 2011-05-06  Karl Berry  <karl@gnu.org>
2367
2368         * MODULES.html.sh (func_all_modules): remove exit.
2369
2370 2011-05-06  Jim Meyering  <meyering@redhat.com>
2371
2372         maint.mk: use info-gnu@ as the default only for a stable release
2373         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
2374         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
2375         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
2376         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
2377
2378 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2379
2380         assert-h: new module, which supports C1X-style static_assert
2381         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
2382         * lib/verify.h: Revamp so that this can be copied into assert.h,
2383         while retaining the ability to use it standalone as before.
2384         Rename private identifiers so as not to encroach on the
2385         standard C namespace, since this is now used by assert.h.
2386         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
2387         the old verify_true.
2388         (_GL_VERIFY_TRUE): New macro, with much of the contents of
2389         the old verify_true.  Use _GL_VERIFY_TYPE.
2390         (_GL_VERIFY): New macro, with much of the contents of the old verify.
2391         (static_assert): New macro, if _GL_STATIC_ASSERT_H
2392         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
2393         defined when this file is copied into the replacement assert.h.
2394         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
2395         and _Static_assert is not built in.
2396         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
2397         defined, and use the new macros mentioned above.
2398         * doc/posix-headers/assert.texi: Document this.
2399
2400 2011-05-05  Bruno Haible  <bruno@clisp.org>
2401
2402         fclose, fflush: Respect rules for use of AC_LIBOBJ.
2403         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
2404         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
2405         gl_REPLACE_FCLOSE here.
2406         * modules/fflush (Depends-on): Remove fclose.
2407         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
2408         combination with module 'fclose'.
2409
2410 2011-05-05  Bruno Haible  <bruno@clisp.org>
2411
2412         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
2413         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
2414         gl_FUNC_FFLUSH.
2415         (gl_FUNC_FFLUSH): Use it.
2416         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
2417         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
2418         gl_REPLACE_FSEEKO here.
2419
2420 2011-05-05  Bruno Haible  <bruno@clisp.org>
2421
2422         tzset: Relicense under LGPL.
2423         * modules/tzset (License): Change to LGPL.
2424         No agreement needed; it's a no-op.
2425
2426         strtoimax, strtoumax: Relicense under LGPL.
2427         * modules/strtoimax (License): Change to LGPL.
2428         * modules/strtoumax (License): Likewise.
2429         With permission from Jim Meyering, Paul Eggert:
2430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
2431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
2432
2433         getgroups: Relicense under LGPL.
2434         * modules/getgroups (License): Change to LGPL.
2435         With permission from Jim Meyering, Paul Eggert, Eric Blake:
2436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2439
2440         nanosleep: Relicense under LGPL.
2441         * modules/nanosleep (License): Change to LGPL.
2442         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
2443         Haible:
2444         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2448
2449         futimens: Relicense under LGPL.
2450         * modules/futimens (License): Change to LGPL.
2451         With permission from Eric Blake:
2452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2453
2454         fflush: Relicense under LGPL.
2455         * modules/fflush (License): Change to LGPL.
2456         With permission from Eric Blake, Bruno Haible, Jim Meyering:
2457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
2460
2461         tmpfile: Relicense under LGPL.
2462         * modules/tmpfile (License): Change to LGPL.
2463         With permission from Ben Pfaff:
2464         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2465
2466         isfinite: Relicense under LGPL.
2467         * modules/isfinite (License): Change to LGPL.
2468         With permission from Ben Pfaff, Bruno Haible:
2469         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
2471
2472         acosl..tanl: Relicense under LGPL.
2473         * modules/acosl (License): Change to LGPL.
2474         * modules/asinl (License): Likewise.
2475         * modules/atanl (License): Likewise.
2476         * modules/cosl (License): Likewise.
2477         * modules/expl (License): Likewise.
2478         * modules/logl (License): Likewise.
2479         * modules/sinl (License): Likewise.
2480         * modules/sqrtl (License): Likewise.
2481         * modules/tanl (License): Likewise.
2482         Source code originally from glibc and Paolo Bonzini. Agreements:
2483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
2484         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
2485
2486 2011-05-05  Bruno Haible  <bruno@clisp.org>
2487
2488         signal: Define sighandler_t.
2489         * lib/signal.in.h (sighandler_t): New type.
2490         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
2491         whether sighandler_t is defined.
2492         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
2493         * modules/signal (Depends-on): Add extensions.
2494         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
2495         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
2496         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
2497
2498 2011-05-05  Eric Blake  <eblake@redhat.com>
2499
2500         maint: remove useless REPLACE_*_H macros
2501         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
2502         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2503         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2504         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
2505         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2506         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2507         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
2508         * m4/btowc.m4: Update callers.
2509         * m4/dirfd.m4: Likewise.
2510         * m4/duplocale.m4: Likewise.
2511         * m4/fchdir.m4: Likewise.
2512         * m4/fdopendir.m4: Likewise.
2513         * m4/inet_ntop.m4: Likewise.
2514         * m4/inet_pton.m4: Likewise.
2515         * m4/ioctl.m4: Likewise.
2516         * m4/mbrlen.m4: Likewise.
2517         * m4/mbrtowc.m4: Likewise.
2518         * m4/mbsinit.m4: Likewise.
2519         * m4/mbsnrtowcs.m4: Likewise.
2520         * m4/mbsrtowcs.m4: Likewise.
2521         * m4/poll.m4: Likewise.
2522         * m4/setlocale.m4: Likewise.
2523         * m4/wcrtomb.m4: Likewise.
2524         * m4/wcsnrtombs.m4: Likewise.
2525         * m4/wcsrtombs.m4: Likewise.
2526         * m4/wctob.m4: Likewise.
2527         * m4/wcwidth.m4: Likewise.
2528         * modules/posix_spawn: Likewise.
2529         * modules/posix_spawn_file_actions_addclose: Likewise.
2530         * modules/posix_spawn_file_actions_adddup2: Likewise.
2531         * modules/posix_spawn_file_actions_addopen: Likewise.
2532         * modules/posix_spawn_file_actions_destroy: Likewise.
2533         * modules/posix_spawn_file_actions_init: Likewise.
2534         * modules/posix_spawnattr_destroy: Likewise.
2535         * modules/posix_spawnattr_getflags: Likewise.
2536         * modules/posix_spawnattr_getpgroup: Likewise.
2537         * modules/posix_spawnattr_getschedparam: Likewise.
2538         * modules/posix_spawnattr_getschedpolicy: Likewise.
2539         * modules/posix_spawnattr_getsigdefault: Likewise.
2540         * modules/posix_spawnattr_getsigmask: Likewise.
2541         * modules/posix_spawnattr_init: Likewise.
2542         * modules/posix_spawnattr_setflags: Likewise.
2543         * modules/posix_spawnattr_setpgroup: Likewise.
2544         * modules/posix_spawnattr_setschedparam: Likewise.
2545         * modules/posix_spawnattr_setschedpolicy: Likewise.
2546         * modules/posix_spawnattr_setsigdefault: Likewise.
2547         * modules/posix_spawnattr_setsigmask: Likewise.
2548         * modules/posix_spawnp: Likewise.
2549
2550 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
2551
2552         Add option to do-release-commit-and-tag to specify branch.
2553         * build-aux/do-release-commit-and-tag: Add --branch.
2554
2555 2011-05-03  Bruno Haible  <bruno@clisp.org>
2556
2557         Avoid unnecessary compilation units, through conditional dependencies.
2558         * modules/accept (Depends-on): Add conditions to the dependencies.
2559         * modules/acosl (Depends-on): Likewise.
2560         * modules/argz (Depends-on): Likewise.
2561         * modules/asinl (Depends-on): Likewise.
2562         * modules/atanl (Depends-on): Likewise.
2563         * modules/atoll (Depends-on): Likewise.
2564         * modules/bind (Depends-on): Likewise.
2565         * modules/btowc (Depends-on): Likewise.
2566         * modules/canonicalize-lgpl (Depends-on): Likewise.
2567         * modules/ceil (Depends-on): Likewise.
2568         * modules/ceilf (Depends-on): Likewise.
2569         * modules/ceill (Depends-on): Likewise.
2570         * modules/chdir-long (Depends-on): Likewise.
2571         * modules/chown (Depends-on): Likewise.
2572         * modules/close (Depends-on): Likewise.
2573         * modules/connect (Depends-on): Likewise.
2574         * modules/cosl (Depends-on): Likewise.
2575         * modules/dirfd (Depends-on): Likewise.
2576         * modules/dprintf (Depends-on): Likewise.
2577         * modules/dprintf-posix (Depends-on): Likewise.
2578         * modules/error (Depends-on): Likewise.
2579         * modules/euidaccess (Depends-on): Likewise.
2580         * modules/expl (Depends-on): Likewise.
2581         * modules/faccessat (Depends-on): Likewise.
2582         * modules/fchdir (Depends-on): Likewise.
2583         * modules/fclose (Depends-on): Likewise.
2584         * modules/fcntl (Depends-on): Likewise.
2585         * modules/fdopendir (Depends-on): Likewise.
2586         * modules/fflush (Depends-on): Likewise.
2587         * modules/floor (Depends-on): Likewise.
2588         * modules/floorf (Depends-on): Likewise.
2589         * modules/floorl (Depends-on): Likewise.
2590         * modules/fnmatch (Depends-on): Likewise.
2591         * modules/fopen (Depends-on): Likewise.
2592         * modules/fprintf-posix (Depends-on): Likewise.
2593         * modules/frexp (Depends-on): Likewise.
2594         * modules/frexp-nolibm (Depends-on): Likewise.
2595         * modules/frexpl (Depends-on): Likewise.
2596         * modules/frexpl-nolibm (Depends-on): Likewise.
2597         * modules/fseek (Depends-on): Likewise.
2598         * modules/fsusage (Depends-on): Likewise.
2599         * modules/ftell (Depends-on): Likewise.
2600         * modules/ftello (Depends-on): Likewise.
2601         * modules/futimens (Depends-on): Likewise.
2602         * modules/getcwd (Depends-on): Likewise.
2603         * modules/getcwd-lgpl (Depends-on): Likewise.
2604         * modules/getdelim (Depends-on): Likewise.
2605         * modules/getdomainname (Depends-on): Likewise.
2606         * modules/getgroups (Depends-on): Likewise.
2607         * modules/gethostname (Depends-on): Likewise.
2608         * modules/getline (Depends-on): Likewise.
2609         * modules/getlogin_r (Depends-on): Likewise.
2610         * modules/getopt-posix (Depends-on): Likewise.
2611         * modules/getpeername (Depends-on): Likewise.
2612         * modules/getsockname (Depends-on): Likewise.
2613         * modules/getsockopt (Depends-on): Likewise.
2614         * modules/getsubopt (Depends-on): Likewise.
2615         * modules/getusershell (Depends-on): Likewise.
2616         * modules/glob (Depends-on): Likewise.
2617         * modules/grantpt (Depends-on): Likewise.
2618         * modules/iconv_open (Depends-on): Likewise.
2619         * modules/iconv_open-utf (Depends-on): Likewise.
2620         * modules/inet_ntop (Depends-on): Likewise.
2621         * modules/inet_pton (Depends-on): Likewise.
2622         * modules/ioctl (Depends-on): Likewise.
2623         * modules/isapipe (Depends-on): Likewise.
2624         * modules/isfinite (Depends-on): Likewise.
2625         * modules/isinf (Depends-on): Likewise.
2626         * modules/lchown (Depends-on): Likewise.
2627         * modules/ldexpl (Depends-on): Likewise.
2628         * modules/link (Depends-on): Likewise.
2629         * modules/linkat (Depends-on): Likewise.
2630         * modules/listen (Depends-on): Likewise.
2631         * modules/logl (Depends-on): Likewise.
2632         * modules/lstat (Depends-on): Likewise.
2633         * modules/mbrlen (Depends-on): Likewise.
2634         * modules/mbrtowc (Depends-on): Likewise.
2635         * modules/mbsinit (Depends-on): Likewise.
2636         * modules/mbsnrtowcs (Depends-on): Likewise.
2637         * modules/mbsrtowcs (Depends-on): Likewise.
2638         * modules/mbtowc (Depends-on): Likewise.
2639         * modules/memcmp (Depends-on): Likewise.
2640         * modules/mkdir (Depends-on): Likewise.
2641         * modules/mkdtemp (Depends-on): Likewise.
2642         * modules/mkfifo (Depends-on): Likewise.
2643         * modules/mkfifoat (Depends-on): Likewise.
2644         * modules/mknod (Depends-on): Likewise.
2645         * modules/mkostemp (Depends-on): Likewise.
2646         * modules/mkostemps (Depends-on): Likewise.
2647         * modules/mkstemp (Depends-on): Likewise.
2648         * modules/mkstemps (Depends-on): Likewise.
2649         * modules/mktime (Depends-on): Likewise.
2650         * modules/nanosleep (Depends-on): Likewise.
2651         * modules/open (Depends-on): Likewise.
2652         * modules/openat (Depends-on): Likewise.
2653         * modules/perror (Depends-on): Likewise.
2654         * modules/poll (Depends-on): Likewise.
2655         * modules/popen (Depends-on): Likewise.
2656         * modules/posix_spawn (Depends-on): Likewise.
2657         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2658         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2659         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2660         * modules/posix_spawnp (Depends-on): Likewise.
2661         * modules/pread (Depends-on): Likewise.
2662         * modules/printf-posix (Depends-on): Likewise.
2663         * modules/ptsname (Depends-on): Likewise.
2664         * modules/putenv (Depends-on): Likewise.
2665         * modules/pwrite (Depends-on): Likewise.
2666         * modules/readline (Depends-on): Likewise.
2667         * modules/readlink (Depends-on): Likewise.
2668         * modules/readlinkat (Depends-on): Likewise.
2669         * modules/recv (Depends-on): Likewise.
2670         * modules/recvfrom (Depends-on): Likewise.
2671         * modules/regex (Depends-on): Likewise.
2672         * modules/remove (Depends-on): Likewise.
2673         * modules/rename (Depends-on): Likewise.
2674         * modules/renameat (Depends-on): Likewise.
2675         * modules/rmdir (Depends-on): Likewise.
2676         * modules/round (Depends-on): Likewise.
2677         * modules/roundf (Depends-on): Likewise.
2678         * modules/roundl (Depends-on): Likewise.
2679         * modules/rpmatch (Depends-on): Likewise.
2680         * modules/select (Depends-on): Likewise.
2681         * modules/send (Depends-on): Likewise.
2682         * modules/sendto (Depends-on): Likewise.
2683         * modules/setenv (Depends-on): Likewise.
2684         * modules/setlocale (Depends-on): Likewise.
2685         * modules/setsockopt (Depends-on): Likewise.
2686         * modules/shutdown (Depends-on): Likewise.
2687         * modules/sigaction (Depends-on): Likewise.
2688         * modules/signbit (Depends-on): Likewise.
2689         * modules/sigprocmask (Depends-on): Likewise.
2690         * modules/sinl (Depends-on): Likewise.
2691         * modules/sleep (Depends-on): Likewise.
2692         * modules/snprintf (Depends-on): Likewise.
2693         * modules/snprintf-posix (Depends-on): Likewise.
2694         * modules/socket (Depends-on): Likewise.
2695         * modules/sprintf-posix (Depends-on): Likewise.
2696         * modules/sqrtl (Depends-on): Likewise.
2697         * modules/stat (Depends-on): Likewise.
2698         * modules/strchrnul (Depends-on): Likewise.
2699         * modules/strdup-posix (Depends-on): Likewise.
2700         * modules/strerror (Depends-on): Likewise.
2701         * modules/strerror_r-posix (Depends-on): Likewise.
2702         * modules/strndup (Depends-on): Likewise.
2703         * modules/strnlen (Depends-on): Likewise.
2704         * modules/strptime (Depends-on): Likewise.
2705         * modules/strsep (Depends-on): Likewise.
2706         * modules/strsignal (Depends-on): Likewise.
2707         * modules/strstr-simple (Depends-on): Likewise.
2708         * modules/strtod (Depends-on): Likewise.
2709         * modules/strtoimax (Depends-on): Likewise.
2710         * modules/strtok_r (Depends-on): Likewise.
2711         * modules/strtoumax (Depends-on): Likewise.
2712         * modules/symlink (Depends-on): Likewise.
2713         * modules/symlinkat (Depends-on): Likewise.
2714         * modules/tanl (Depends-on): Likewise.
2715         * modules/tcgetsid (Depends-on): Likewise.
2716         * modules/tmpfile (Depends-on): Likewise.
2717         * modules/trunc (Depends-on): Likewise.
2718         * modules/truncf (Depends-on): Likewise.
2719         * modules/truncl (Depends-on): Likewise.
2720         * modules/uname (Depends-on): Likewise.
2721         * modules/unlink (Depends-on): Likewise.
2722         * modules/unlockpt (Depends-on): Likewise.
2723         * modules/unsetenv (Depends-on): Likewise.
2724         * modules/usleep (Depends-on): Likewise.
2725         * modules/utimensat (Depends-on): Likewise.
2726         * modules/vasprintf (Depends-on): Likewise.
2727         * modules/vdprintf (Depends-on): Likewise.
2728         * modules/vdprintf-posix (Depends-on): Likewise.
2729         * modules/vfprintf-posix (Depends-on): Likewise.
2730         * modules/vprintf-posix (Depends-on): Likewise.
2731         * modules/vsnprintf (Depends-on): Likewise.
2732         * modules/vsnprintf-posix (Depends-on): Likewise.
2733         * modules/vsprintf-posix (Depends-on): Likewise.
2734         * modules/wcrtomb (Depends-on): Likewise.
2735         * modules/wcscasecmp (Depends-on): Likewise.
2736         * modules/wcscspn (Depends-on): Likewise.
2737         * modules/wcsdup (Depends-on): Likewise.
2738         * modules/wcsncasecmp (Depends-on): Likewise.
2739         * modules/wcsnrtombs (Depends-on): Likewise.
2740         * modules/wcspbrk (Depends-on): Likewise.
2741         * modules/wcsrtombs (Depends-on): Likewise.
2742         * modules/wcsspn (Depends-on): Likewise.
2743         * modules/wcsstr (Depends-on): Likewise.
2744         * modules/wcstok (Depends-on): Likewise.
2745         * modules/wcswidth (Depends-on): Likewise.
2746         * modules/wctob (Depends-on): Likewise.
2747         * modules/wctomb (Depends-on): Likewise.
2748         * modules/wctype (Depends-on): Likewise.
2749         * modules/wcwidth (Depends-on): Likewise.
2750         * modules/write (Depends-on): Likewise.
2751
2752 2011-05-03  Bruno Haible  <bruno@clisp.org>
2753
2754         Support for conditional dependencies.
2755         * doc/gnulib.texi (Module description): Document the syntax of
2756         conditional dependencies.
2757         * gnulib-tool: New option --conditional-dependencies.
2758         (func_usage): Document it.
2759         (cond_dependencies): New variable.
2760         (func_get_automake_snippet_conditional,
2761         func_get_automake_snippet_unconditional): New functions, extracted from
2762         func_get_automake_snippet.
2763         (func_get_automake_snippet): Use them.
2764         (sed_first_32_chars): New variable.
2765         (func_module_shellfunc_name): New function.
2766         (func_module_shellvar_name): New function.
2767         (func_module_conditional_name): New function.
2768         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2769         func_cond_module_condition): New functions.
2770         (func_modules_transitive_closure): Add support for conditional
2771         dependencies.
2772         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2773         conditional automake snippet in an automake conditional.
2774         (func_emit_autoconf_snippets): Emit shell functions that contain the
2775         code for conditional modules.
2776         (func_import, func_create_testdir): Update specification.
2777
2778 2011-05-03  Eric Blake  <eblake@redhat.com>
2779
2780         test-getaddrinfo: report error information
2781         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2782
2783 2011-05-03  Jim Meyering  <meyering@redhat.com>
2784
2785         bootstrap: avoid build failure when $GZIP is set
2786         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2787         program name.  If defined at all, it is supposed to list gzip options.
2788         Reported by Alan Curry in http://debbugs.gnu.org/8609
2789
2790 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2791
2792         readme-release: new module with release instructions
2793         * modules/readme-release: New module.
2794         * top/README-release: New file, from coreutils, grep, diffutils.
2795         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2796
2797 2011-05-02  Eric Blake  <eblake@redhat.com>
2798
2799         fflush: also replace fclose when fixing fflush
2800         * modules/fflush (Depends-on): Add fclose.
2801         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2802         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2803         memstreams with no backing fd.
2804         * doc/posix-functions/fclose.texi (fclose): Document the use of
2805         fflush module to fix the bug.
2806         * tests/test-fclose.c (main): Relax test when fclose is used in
2807         isolation.
2808
2809         fclose: add some tests
2810         * modules/fclose-tests: New test module.
2811         * tests/test-fclose.c: New file.
2812         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2813
2814         fclose: reduced dependencies
2815         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2816         simpler lseek.
2817         * lib/fclose.c (rpl_fclose): Likewise.
2818         Reported by Simon Josefsson.
2819
2820         exit: drop remaining clients
2821         * modules/argmatch (Depends-on): Replace exit with stdlib.
2822         * modules/copy-file (Depends-on): Likewise.
2823         * modules/execute (Depends-on): Likewise.
2824         * modules/exitfail (Depends-on): Likewise.
2825         * modules/obstack (Depends-on): Likewise.
2826         * modules/pagealign_alloc (Depends-on): Likewise.
2827         * modules/pipe-filter-gi (Depends-on): Likewise.
2828         * modules/pipe-filter-ii (Depends-on): Likewise.
2829         * modules/savewd (Depends-on): Likewise.
2830         * modules/spawn-pipe (Depends-on): Likewise.
2831         * modules/wait-process (Depends-on): Likewise.
2832         * modules/xsetenv (Depends-on): Likewise.
2833         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2834         * modules/git-merge-changelog (Depends-on): Likewise.
2835         * modules/long-options (Depends-on): Likewise.
2836         * modules/pt_chown (Depends-on): Likewise.
2837         * modules/sysexits (Depends-on): Likewise.
2838
2839         freading: relax license from LGPLv3+ to LGPLv2+
2840         * modules/freading (License): Relax LGPL version.
2841
2842 2011-05-02  Bruno Haible  <bruno@clisp.org>
2843
2844         fchdir: Remove unused dependencies.
2845         * modules/fchdir (Depends-on): Remove include_next.
2846
2847 2011-05-02  Bruno Haible  <bruno@clisp.org>
2848
2849         gnulib-tool: Refactor.
2850         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2851         from func_emit_autoconf_snippets.
2852         (func_emit_autoconf_snippets): Use it.
2853
2854 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2855
2856         * NEWS: Document removal of 'exit'.
2857         * modules/exit: Remove file.
2858
2859 2011-05-01  Bruno Haible  <bruno@clisp.org>
2860
2861         Update DEPENDENCIES.
2862         * DEPENDENCIES (gettext): Recommend the newest release.
2863         Reported by Simon Josefsson.
2864
2865 2011-05-01  Bruno Haible  <bruno@clisp.org>
2866
2867         gnulib-tool: Reduce code duplication.
2868         * gnulib-tool (func_emit_autoconf_snippets): New function.
2869         (func_import, func_create_testdir): Use it.
2870
2871 2011-04-30  Eric Blake  <eblake@redhat.com>
2872
2873         fclose: don't fail on non-seekable input stream
2874         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2875         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2876         since fflush is allowed to fail in that case.
2877
2878 2011-04-30  Bruno Haible  <bruno@clisp.org>
2879
2880         dup3: cleanup
2881         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2882
2883 2011-04-30  Bruno Haible  <bruno@clisp.org>
2884
2885         netdb: Make it work in C++ mode.
2886         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2887         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2888         module.
2889         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2890         gl_MODULE_INDICATOR_FOR_TESTS.
2891         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2892         * modules/netdb-c++-tests: New file.
2893         * tests/test-netdb-c++.cc: New file.
2894
2895 2011-04-30  Bruno Haible  <bruno@clisp.org>
2896
2897         New modules 'vfscanf', 'vscanf'.
2898         * modules/vfscanf: New file.
2899         * modules/vscanf: New file.
2900         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2901         here.
2902         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2903         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2904
2905 2011-04-30  Bruno Haible  <bruno@clisp.org>
2906
2907         passfd: Add comments.
2908         * lib/passfd.c: Add comments about platforms.
2909
2910 2011-04-30  Bruno Haible  <bruno@clisp.org>
2911
2912         sys_uio: Make <sys/uio.h> self-contained.
2913         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2914         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2915
2916 2011-04-30  Bruno Haible  <bruno@clisp.org>
2917
2918         sys_socket: Ensure 'struct iovec' definition.
2919         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2920         <sys/socket.h>.
2921         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2922
2923 2011-04-30  Bruno Haible  <bruno@clisp.org>
2924
2925         sys_uio: Protect definition of 'struct iovec'.
2926         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2927         it as a C struct.
2928
2929 2011-04-30  Bruno Haible  <bruno@clisp.org>
2930
2931         manywarnings: fix indentation
2932         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2933
2934 2011-04-30  Pádraig Brady <P@draigBrady.com>
2935
2936         manywarnings: add -Wno-missing-field-initializers if needed.
2937         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2938         option if it's needed to allow initialization with { 0, }
2939
2940 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2941
2942         announce-gen: cosmetic improvement
2943         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2944
2945 2011-04-29  Jim Meyering  <meyering@redhat.com>
2946
2947         vc-list-files: indent with spaces, not TABs
2948         * build-aux/vc-list-files: Convert leading TABs to spaces,
2949         to match the style of most other files in gnulib.
2950
2951         announce-gen: indent with spaces, not TABs
2952         * build-aux/announce-gen: Convert all TABs to spaces, to match
2953         the style of most other files in gnulib.
2954
2955 2011-04-29  Eric Blake  <eblake@redhat.com>
2956
2957         quotearg: avoid uninitialized variable use
2958         * lib/quotearg.c (quoting_options_from_style): Initialize
2959         remaining fields, and ensure that custom styles are only used via
2960         quoting_options rather than quoting_style.
2961
2962 2011-04-29  Jim Meyering  <meyering@redhat.com>
2963
2964         maint.mk: remove unused VC-tag variable
2965         * top/maint.mk (VC-tag): Remove unused variable.
2966
2967 2011-04-29  Bruno Haible  <bruno@clisp.org>
2968
2969         netdb: fix gai_strerror replacements
2970         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2971         * modules/netdb: Substitute it.
2972
2973 2011-04-29  Jim Meyering  <meyering@redhat.com>
2974
2975         test-getcwd.c: avoid new set-but-not-used warning
2976         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2977         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2978         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2979         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2980
2981         test-hash.c: avoid a new shadowing warning
2982         * tests/test-hash.c (main): Don't shadow "dup".
2983
2984 2011-04-28  Eric Blake  <eblake@redhat.com>
2985
2986         getaddrinfo: fix gai_strerror signature
2987         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2988         and work around mingw with UNICODE defined.
2989         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2990         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2991         * modules/netdb (Makefile.am): Substitute it.
2992         * lib/netdb.in.h (gai_strerror): Declare replacement.
2993         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2994         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2995         the fix.
2996
2997         getsockopt: avoid compiler warning
2998         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2999         Reported by Matthias Bolte.
3000
3001         tests: drop unused link dependency
3002         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
3003         * modules/dirent-safer-tests (Makefile.am): Likewise.
3004         * modules/fdopendir-tests (Makefile.am): Likewise.
3005         * modules/mkfifoat-tests (Makefile.am): Likewise.
3006         * modules/openat-safer-tests (Makefile.am): Likewise.
3007         * modules/openat-tests (Makefile.am): Likewise.
3008         * modules/readlinkat-tests (Makefile.am): Likewise.
3009         * modules/symlinkat-tests (Makefile.am): Likewise.
3010         * modules/linkat-tests (Makefile.am): Likewise.
3011         (Depends-on): Switch to filenamecat-lgpl.
3012         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
3013         LIBINTL.
3014         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
3015         * tests/test-linkat.c (main): Don't require xalloc.
3016
3017         hash, mgetgroups: drop xalloc dependency
3018         * lib/hash.c (includes): Adjust includes.
3019         * lib/mgetgroups.c (includes): Likewise.
3020         (xgetgroups): Move...
3021         * lib/xgetgroups.c: ...to new file.
3022         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
3023         * modules/xgetgroups: New file, split from...
3024         * modules/mgetgroups: ...here.
3025         (Depends-on): Add xalloc-oversized.
3026         * modules/hash (Depends-on): Likewise.
3027         * modules/hash-tests (Depends-on): Drop xalloc.
3028         (test_hash_LDADD): Drop unused library.
3029         * tests/test-hash.c (main): Break xalloc dependency.
3030         (includes): Drop unused include.
3031
3032         xalloc-oversized: new module
3033         * modules/xalloc-oversized: New module.
3034         * modules/xalloc (Depends-on): Add it.
3035         * lib/xalloc.h (xalloc_oversized): Move...
3036         * lib/xalloc-oversized.h: ...into new file.
3037
3038         utimecmp: drop dependency on xmalloc
3039         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
3040         due to memory pressure.
3041         * modules/utimecmp (Depends-on): Drop xalloc.
3042
3043 2011-04-27  Eric Blake  <eblake@redhat.com>
3044
3045         getcwd: fix mingw bugs
3046         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
3047         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
3048         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
3049
3050 2011-04-27  Bruno Haible  <bruno@clisp.org>
3051
3052         mkstemps: Ensure declaration on MacOS X 10.5.
3053         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
3054         * doc/glibc-functions/mkstemps.texi: Document header file problem on
3055         MacOS X.
3056
3057 2011-04-27  Bruno Haible  <bruno@clisp.org>
3058
3059         mkstemp: More documentation.
3060         * doc/posix-functions/mkstemp.texi: Document header file problem on
3061         MacOS X.
3062
3063 2011-04-27  Bruno Haible  <bruno@clisp.org>
3064
3065         mkstemp: Tweak configure message when cross-compiling.
3066         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
3067         result as a guess.
3068
3069 2011-04-27  Bruno Haible  <bruno@clisp.org>
3070
3071         clean-temp: Clarify what it does.
3072         * lib/clean-temp.h: Add more comments.
3073         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
3074         module.
3075         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
3076         * doc/glibc-functions/mkstemps.texi: Likewise.
3077         * doc/glibc-functions/mkostemps.texi: Likewise.
3078
3079 2011-04-27  Eric Blake  <eblake@redhat.com>
3080
3081         fchdir: avoid extra chdir and fix test
3082         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
3083         getcwd-lgpl.
3084         * lib/fchdir.c (get_name): Any absolute name will do; it does not
3085         have to be canonical.
3086         (canonicalize_file_name): Drop unused macro.
3087         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
3088
3089         filenamecat-lgpl: fix licence
3090         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
3091         when it was first created.
3092
3093         linkat, renameat: add missing dependency
3094         * modules/linkat (Depends-on): Require getcwd-lgpl.
3095         * modules/renameat (Depends-on): Likewise.
3096
3097         tests: reduce dependencies
3098         * tests/test-linkat.c (main): Use lighter-weight getcwd.
3099         * tests/test-renameat.c (main): Likewise.
3100         * modules/linkat-tests (Depends-on): Relax dependency.
3101         * modules/renameat-tests (Depends-on): Likewise.
3102         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
3103         dependency explicit.
3104
3105         save-cwd: reduce default dependency
3106         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
3107         * lib/save-cwd.c: Update comments.
3108         * NEWS: Document the semantic change.
3109
3110         getcwd: enhance tests
3111         * tests/test-getcwd-lgpl.c: New file, taken from...
3112         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
3113         repeat long path stress tests from m4 probe.
3114         * modules/getcwd-lgpl-tests: New module.
3115         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
3116         * m4/getcwd-abort-bug.m4: Update comment.
3117         * m4/getcwd-path-max.m4: Likewise.
3118
3119         getcwd-lgpl: new module
3120         * modules/getcwd-lgpl: New module.
3121         * lib/getcwd-lgpl.c: New file.
3122         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3123         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3124         * modules/getcwd (configure.ac): Set C witness.
3125         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
3126
3127         getcwd: tweak comments
3128         * m4/getcwd-abort-bug.m4: Fix comments.
3129         * m4/getcwd-path-max.m4: Likewise.
3130         * m4/getcwd.m4: Likewise.
3131
3132 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3133         and Eric Blake  <eblake@redhat.com>
3134
3135         mkstemp: replace if system version uses wrong permissions
3136         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
3137         read/write mode bits set in file created by mkstemp.
3138         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
3139
3140 2011-04-27  Eric Blake  <eblake@redhat.com>
3141
3142         passfd: avoid compiler warning
3143         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
3144         Reported by Laine Stump.
3145
3146 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
3147
3148         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
3149         required by the NetBSD (and perhaps other 4.4BSD derived) join.
3150
3151 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3152         and Eric Blake  <eblake@redhat.com>
3153
3154         mkstemp: mention clean-temp module
3155         * lib/mkstemp.c: Add comment.
3156         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
3157
3158 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3159
3160         inttypes: also provide default values for 32-bit tests
3161         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
3162         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
3163
3164 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3165
3166         strtoumax: remove dependency on strtoimax
3167         This is like the strtoull change of yesterday.
3168         * modules/strtoumax (Files): Add lib/strtoimax.c.
3169         (Depends-on): Remove strtoimax and add verify.
3170
3171         inttypes-incomplete: new module
3172         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
3173         all but the PRI* and SCN* parts of gl_INTTYPES_H.
3174         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
3175         of gl_INTTYPES_H.
3176         (gl_INTTYPES_H): Rewrite in terms of these new macros.
3177         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
3178         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
3179         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
3180         * modules/strtoumax, modules/xstrtol (Depends-on):
3181         Depend on inttypes-incomplete, not inttypes.
3182         * modules/inttypes-incomplete: New module, containing the contents
3183         of the old modules/inttypes module, except that the Files: section
3184         omits m4/inttypes-pri.m4, and the configure.ac section invokes
3185         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
3186         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
3187         (Depends-on): Depend only on inttypes-incomplete.
3188         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
3189
3190         inttypes: omit now-redundant strtoimax and strtoumax work
3191         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
3192         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
3193
3194         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
3195         This supports apps that need pointers to strtoimax and strtoumax,
3196         and ports to HP-UX 11.00 64.bit, which has macros that expand to
3197         nonexistent functions.  See
3198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
3199         et seq.
3200         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
3201         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
3202         a macro.
3203         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3204
3205 2011-04-25  Simon Josefsson  <simon@josefsson.org>
3206
3207         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
3208
3209 2011-04-25  Bruno Haible  <bruno@clisp.org>
3210
3211         strtol, strtoul: Mark modules as obsolete.
3212         * modules/strtol (Status, Notice): New sections.
3213         * modules/strtoul (Status, Notice): New sections.
3214
3215 2011-04-25  Bruno Haible  <bruno@clisp.org>
3216
3217         strtod: Remove check for strtod, unless supporting old platforms.
3218         * modules/strtod-obsolete: New file.
3219         * m4/strtod-obsolete.m4: New file.
3220         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
3221         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
3222         * modules/strtod (Depends-on): Add strtod-obsolete.
3223         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
3224
3225 2011-04-25  Bruno Haible  <bruno@clisp.org>
3226
3227         strcase: Make module obsolete.
3228         * modules/strcase (Status, Notice): New sections.
3229
3230 2011-04-25  Bruno Haible  <bruno@clisp.org>
3231
3232         dup2: Remove check for dup2, unless supporting old obsolete platforms.
3233         * modules/dup2-obsolete: New file.
3234         * m4/dup2-obsolete.m4: New file.
3235         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
3236         gl_FUNC_DUP2_OBSOLETE is not also defined.
3237         * modules/dup2 (Depends-on): Add dup2-obsolete.
3238         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
3239
3240 2011-04-25  Bruno Haible  <bruno@clisp.org>
3241
3242         strnlen: Avoid memchr related link error on old obsolete platforms.
3243         * modules/memchr-obsolete: New file.
3244         * m4/memchr-obsolete.m4: New file.
3245         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
3246         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
3247         * modules/memchr (Depends-on): Add memchr-obsolete.
3248         * modules/strnlen (Depends-on): Likewise.
3249         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
3250
3251 2011-04-25  Jim Meyering  <meyering@redhat.com>
3252
3253         maint.mk: makefile_at_at_check extend and clean up
3254         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
3255         in addition to */Makefile.am.
3256         Exempt legitimate uses of @VAR@ notation, e.g.,
3257         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
3258         Remove obsolete coreutils-specific comment.
3259         Prompted by discussion here:
3260         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
3261
3262 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
3263
3264         strtoul: remove dependency on strtol
3265         This is so that 'configure' need not check for strtol merely because
3266         the application needs strtoul.
3267         * modules/strtoul (Files): Add lib/strtol.c.
3268         (Depends-on): Remove strtol.
3269
3270         strtoull: remove dependency on strtoul
3271         This is like the strtoll change.
3272         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
3273         (Depends-on): Remove strtoul.
3274
3275         strtoll: remove dependency on strtol
3276         This is so that 'configure' need not check for strtol merely because
3277         the application needs strtoll.
3278         * modules/strtoll (Files): Add lib/strtol.c.
3279         (Depends-on): Remove strtol.
3280
3281 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3282
3283         inttypes: Move some configure check to module 'imaxdiv'.
3284         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
3285         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
3286         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
3287
3288 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3289
3290         inttypes: Move some configure check to module 'imaxabs'.
3291         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
3292         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
3293         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
3294
3295 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3296
3297         inttypes: Remove configure tests that are not needed since 2009-12-31.
3298         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
3299         gl_cv_header_working_inttypes_h.
3300
3301 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3302
3303         * modules/strnlen (Depends-on): Remove memchr.
3304         The strnlen implementation doesn't need the memchr module's fixes; see
3305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
3306
3307         strtol: remove dependency on wchar
3308         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
3309         * modules/strtol (Depends-on): Remove wchar.
3310
3311 2011-04-21  Eric Blake  <eblake@redhat.com>
3312
3313         passfd: fix test regression on Linux
3314         * modules/passfd-tests (configure.ac): Correct socketpair check.
3315
3316         passfd: speed up configure and drop unused code
3317         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
3318         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
3319         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
3320         Instead of probing at configure for unix_scm_rights_bsd44_way,
3321         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
3322         check to a struct member probe.
3323         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
3324         (sendfd, recvfd): Update preprocessor checks.
3325         * modules/passfd (Files): Reflect rename, and drop unused file.
3326         (Depends-on): Drop unused dependency.
3327
3328         passfd: allow compilation on mingw
3329         * modules/sys_socket (Depends-on): Add sys_uio.
3330         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
3331         iovec and a minimal struct msghdr.
3332         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
3333         * tests/test-sys_socket.c (main): Enhance test.
3334         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
3335         guaranteed to provide what we need.
3336         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
3337         * modules/passfd-tests (Depends-on): Add sys_wait.
3338         * tests/test-passfd.c (main): Skip test on mingw, for now.
3339         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
3340         partial 'struct msghdr' implementation.
3341
3342         sys_uio: new module
3343         * modules/sys_uio: New module.
3344         * modules/sys_uio-tests: Likewise.
3345         * lib/sys_uio.in.h: New file.
3346         * m4/sys_uio_h.m4: Likewise.
3347         * tests/test-sys_uio.c: Likewise.
3348         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
3349         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
3350
3351 2011-04-20  Jim Meyering  <meyering@redhat.com>
3352
3353         useless-if-before-free: avoid false-positive
3354         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
3355         disjunct so that it too requires a terminating ";".  Without that,
3356         this script would identify as useless one statement from gcc that
3357         was not:
3358           if (aligned_ptr)
3359             free (((void **) aligned_ptr) [-1]);
3360
3361 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
3362
3363         doc: update users.txt.
3364         * users.txt: Add barcode.
3365
3366 2011-04-19  Bruno Haible  <bruno@clisp.org>
3367
3368         ioctl: Remove link dependency on native Windows.
3369         * lib/fd-hook.h: Renamed from lib/close-hook.h.
3370         (gl_close_fn, gl_ioctl_fn): New types.
3371         (struct fd_hook): Renamed from struct close_hook. Change type of
3372         private_close_fn field. Add private_ioctl_fn field.
3373         (close_hook_fn): Add parameter for primary close method.
3374         (execute_close_hooks, execute_all_close_hooks): Likewise.
3375         (ioctl_hook_fn): New type.
3376         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
3377         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3378         argument.
3379         (unregister_fd_hook): Renamed from unregister_close_hook.
3380         * lib/fd-hook.c: Renamed from lib/close-hook.c.
3381         Don't include <unistd.h>.
3382         (close): Remove undef.
3383         (anchor): Update.
3384         (execute_close_hooks): Add argument for primary close method.
3385         (execute_all_close_hooks): Likewise.
3386         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
3387         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3388         argument. Allow each argument to be NULL.
3389         (unregister_fd_hook): Renamed from unregister_close_hook.
3390         * lib/close.c (rpl_close): Pass 'close' function pointer to
3391         execute_all_close_hooks.
3392         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
3393         (primary_ioctl): New function.
3394         (ioctl): Don't call ioctlsocket here. Instead, call
3395         execute_all_ioctl_hooks.
3396         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
3397         close method.
3398         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
3399         (fd_sockets_hook): Renamed from close_sockets_hook.
3400         (gl_sockets_startup, gl_sockets_cleanup): Update.
3401         * modules/fd-hook: Renamed from modules/close-hook. Update.
3402         * modules/close (Depends-on): Add fd-hook, remove close-hook.
3403         * modules/sockets (Depends-on): Likewise.
3404         * modules/ioctl (Depends-on): Add fd-hook.
3405         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
3406         GNULIB_SOCKET.
3407
3408 2011-04-19  Bruno Haible  <bruno@clisp.org>
3409
3410         Move the support of O_NONBLOCK in open() to the 'open' module.
3411         * modules/nonblocking (Depends-on): Remove 'open'.
3412         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
3413         gl_cv_have_open_O_NONBLOCK.
3414         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
3415         O_NONBLOCK support.
3416         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
3417
3418 2011-04-17  Bruno Haible  <bruno@clisp.org>
3419
3420         pipe2: Simplify code.
3421         * lib/pipe2.c (pipe2): Reduce code duplication.
3422
3423 2011-04-17  Bruno Haible  <bruno@clisp.org>
3424
3425         nonblocking: Add comment.
3426         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
3427
3428 2011-04-17  Bruno Haible  <bruno@clisp.org>
3429
3430         nonblocking: Add tests for sockets.
3431         * tests/test-nonblocking-socket.sh: New file.
3432         * tests/test-nonblocking-socket-main.c: New file.
3433         * tests/test-nonblocking-socket-child.c: New file.
3434         * tests/test-nonblocking-socket.h: New file.
3435         * tests/socket-server.h: New file.
3436         * tests/socket-client.h: New file.
3437         * modules/nonblocking-socket-tests: New file.
3438         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
3439
3440 2011-04-17  Bruno Haible  <bruno@clisp.org>
3441
3442         nonblocking: Add tests for pipes.
3443         * tests/test-nonblocking-pipe.sh: New file.
3444         * tests/test-nonblocking-pipe-main.c: New file.
3445         * tests/test-nonblocking-pipe-child.c: New file.
3446         * tests/test-nonblocking-pipe.h: New file.
3447         * tests/test-nonblocking-writer.h: New file.
3448         * tests/test-nonblocking-reader.h: New file.
3449         * tests/test-nonblocking-misc.h: New file.
3450         * modules/nonblocking-pipe-tests: New file.
3451         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
3452
3453 2011-04-16  Bruno Haible  <bruno@clisp.org>
3454
3455         gettext: Clarify the needed programmer actions.
3456         * modules/gettext (Notice): New field.
3457         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3458
3459 2011-04-16  Bruno Haible  <bruno@clisp.org>
3460
3461         strchrnul: Tweak last commit.
3462         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
3463         bug.
3464         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
3465         as in _GL_FUNCDECL_SYS.
3466         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
3467         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
3468
3469 2011-04-15  Eric Blake  <eblake@redhat.com>
3470
3471         strchrnul: work around cygwin bug
3472         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
3473         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
3474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
3475         * modules/string (Makefile.am): Substitute it.
3476         * lib/string.in.h (strchrnul): Use it.
3477
3478 2011-04-15  Bruno Haible  <bruno@clisp.org>
3479
3480         Don't require lib/stdio-write.c when only module 'stdio' is used.
3481         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
3482         invocation.
3483         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
3484
3485 2011-04-14  Bruno Haible  <bruno@clisp.org>
3486
3487         Support non-blocking pipe I/O in read() on native Windows.
3488         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
3489         (read): New declaration.
3490         * lib/read.c: New file.
3491         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
3492         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
3493         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
3494         vscanf): New declarations.
3495         * lib/stdio-read.c: New file.
3496         * m4/read.m4: New file.
3497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
3498         REPLACE_READ.
3499         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
3500         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3501         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
3502         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
3503         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
3504         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3505         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3506         * modules/read: New file.
3507         * modules/nonblocking (Files): Add lib/stdio-read.c.
3508         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
3509         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
3510         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3511         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3512         * modules/pread (Depends-on): Add read.
3513         * modules/safe-read (Depends-on): Likewise.
3514         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
3515         gets, scanf, vfscanf, vscanf): Verify signatures.
3516         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
3517         problem with non-blocking pipes.
3518         * doc/posix-functions/fgetc.texi: Likewise.
3519         * doc/posix-functions/fgets.texi: Likewise.
3520         * doc/posix-functions/fread.texi: Likewise.
3521         * doc/posix-functions/fscanf.texi: Likewise.
3522         * doc/posix-functions/getc.texi: Likewise.
3523         * doc/posix-functions/getchar.texi: Likewise.
3524         * doc/posix-functions/gets.texi: Likewise.
3525         * doc/posix-functions/scanf.texi: Likewise.
3526         * doc/posix-functions/vfscanf.texi: Likewise.
3527         * doc/posix-functions/vscanf.texi: Likewise.
3528
3529 2011-04-14  Bruno Haible  <bruno@clisp.org>
3530
3531         Support non-blocking pipe I/O in write() on native Windows.
3532         * lib/write.c (rpl_write): Split a write request that failed merely
3533         because the byte count was larger than the pipe buffer's size.
3534         * doc/posix-functions/write.texi: Mention the problem with large byte
3535         counts.
3536
3537 2011-04-14  Bruno Haible  <bruno@clisp.org>
3538
3539         wchar: Ensure that wchar_t gets defined on uClibc.
3540         * lib/wchar.in.h: On uClibc, include <stddef.h>.
3541         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
3542
3543 2011-04-13  Bruno Haible  <bruno@clisp.org>
3544
3545         safe-write, full-read: Avoid unnecessary compilation units.
3546         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
3547         (Depends-on): Remove safe-read. Add ssize_t.
3548         * modules/full-read (Files): Add lib/full-write.c.
3549         (Depends-on): Add full-write.
3550
3551 2011-04-13  Bruno Haible  <bruno@clisp.org>
3552
3553         Support non-blocking pipe I/O and SIGPIPE in pwrite().
3554         * modules/pwrite (Depends-on): Add 'write'.
3555
3556 2011-04-13  Bruno Haible  <bruno@clisp.org>
3557
3558         Support non-blocking pipe I/O in write() on native Windows.
3559         * lib/unistd.in.h (write): Enable replacement also if
3560         GNULIB_UNISTD_H_NONBLOCKING is 1.
3561         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
3562         (rpl_write): When failing to write on a non-blocking pipe, change
3563         errno from ENOSPC to EAGAIN.
3564         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
3565         putchar, puts, vfprintf, vprintf): Enable replacement also if
3566         GNULIB_STDIO_H_NONBLOCKING is 1.
3567         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
3568         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
3569         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
3570         CALL_WITH_SIGPIPE_EMULATION.
3571         (CALL_WITH_SIGPIPE_EMULATION): Use them.
3572         * m4/nonblocking.m4: New file.
3573         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
3574         for non-blocking I/O support.
3575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3576         GNULIB_UNISTD_H_NONBLOCKING.
3577         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
3578         required for non-blocking I/O support.
3579         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
3580         * modules/nonblocking (Files): Add m4/nonblocking.m4,
3581         lib/stdio-write.c, m4/asm-underscore.m4.
3582         (Depends-on): Add stdio, unistd.
3583         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
3584         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
3585         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
3586         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
3587         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
3588         problem with non-blocking pipes.
3589         * doc/posix-functions/fputc.texi: Likewise.
3590         * doc/posix-functions/fputs.texi: Likewise.
3591         * doc/posix-functions/fwrite.texi: Likewise.
3592         * doc/posix-functions/printf.texi: Likewise.
3593         * doc/posix-functions/putc.texi: Likewise.
3594         * doc/posix-functions/putchar.texi: Likewise.
3595         * doc/posix-functions/puts.texi: Likewise.
3596         * doc/posix-functions/vfprintf.texi: Likewise.
3597         * doc/posix-functions/vprintf.texi: Likewise.
3598         * doc/posix-functions/write.texi: Likewise.
3599
3600 2011-04-10  Jim Meyering  <meyering@redhat.com>
3601
3602         maint.mk: prohibit doubled words
3603         Detect them also when they're separated by a newline.
3604         There are 3 ways to customize it:
3605           - disable the test on a per file basis, as usual with rules using
3606             $(VC_LIST_EXCEPT)
3607           - replace the default doubled-word-selecting regexp (affects all files)
3608           - ignore a particular file-vs-doubled-word match
3609         I nearly used that last one to ignore the "is is" match in
3610         coreutils' NEWS file, since the text was "ls -is is ..."
3611         To do that, I would have added this line to cfg.mk:
3612           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
3613         but it would have ignored any "is is" match in NEWS.
3614         Low probability, but still...
3615         Instead, I changed the text, slightly:
3616           -  ls -is is now consistent with ls -lis in ignoring values returned
3617           +  "ls -is" is now consistent with ls -lis in ignoring values returned
3618         * top/maint.mk (prohibit_double_word_RE_): Provide default.
3619         (prohibit_doubled_word_): Define.
3620         (sc_prohibit_doubled_word): New rule.
3621         (sc_prohibit_the_the): Remove.  Subsumed by the above.
3622
3623 2011-04-10  Jim Meyering  <meyering@redhat.com>
3624
3625         maint: fix doubled-word typo in comment
3626         * m4/gethostname.m4: s/is is/it is/
3627         * m4/getdomainname.m4: Likewise.
3628
3629 2011-04-10  Jim Meyering  <meyering@redhat.com>
3630
3631         maint: remove doubled word: s/it it/it/
3632         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
3633
3634 2011-04-10  Jim Meyering  <meyering@redhat.com>
3635
3636         maint.mk: remove useless semicolon and backslash
3637         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
3638         semicolon and backslash.
3639
3640 2011-04-10  Bruno Haible  <bruno@clisp.org>
3641
3642         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
3643         * modules/stdint-tests (Depends-on): Add wchar.
3644
3645 2011-04-10  Jim Meyering  <meyering@redhat.com>
3646
3647         maint: remove doubled words in comments, e.g., s/a a/a/
3648         * lib/strptime.c (day_of_the_week): s/the the/the/
3649         * tests/test-chown.h (test_chown): s/a a/a/
3650
3651         test-chown.h: correct a cast
3652         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3653         when the destination is a stat.st_gid.
3654
3655 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3656
3657         getaddrinfo: Fix test for sa_len member.
3658         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3659         include <sys/types.h> before <sys/socket.h>.
3660
3661 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3662
3663         maint: change "can not" to "cannot"
3664         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3665         boundaries.
3666
3667 2011-04-09  Jim Meyering  <meyering@redhat.com>
3668
3669         maint: change "a a" to "a"
3670         * tests/test-lchown.h (test_lchown): s/a a/a/
3671
3672         maint.mk: prohibit \<the the\>
3673         * top/maint.mk (sc_prohibit_the_the): New rule.
3674
3675         maint: fix "the the" in comment
3676         * lib/count-one-bits.h: s/the the/the/
3677
3678         maint: change "can not" to "cannot"
3679         But do not change the occurrences in maintain.texi or in
3680         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3681         * doc/gnulib-tool.texi: s/can not/cannot/
3682         * doc/posix-functions/accept.texi (accept): Likewise.
3683         * doc/posix-functions/socket.texi (socket): Likewise.
3684         * lib/mbrtowc.c: Likewise.
3685
3686         maint.mk: prohibit use of "can not"
3687         * top/maint.mk (sc_prohibit_can_not): New rule.
3688         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3689
3690 2011-04-09  Bruno Haible  <bruno@clisp.org>
3691
3692         careadlinkat: Guard against misuse of careadlinkatcwd.
3693         * lib/careadlinkat.c: Include <stdlib.h>.
3694         (careadlinkatcwd): Check that the fd argument is as expected.
3695
3696 2011-04-09  Bruno Haible  <bruno@clisp.org>
3697
3698         careadlinkat: Use common coding style.
3699         * lib/careadlinkat.c: Move gnulib includes after system includes.
3700
3701 2011-04-09  Bruno Haible  <bruno@clisp.org>
3702
3703         careadlinkat: Clarify specification.
3704         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3705         (careadlinkatcwd): Add comment.
3706         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3707
3708 2011-04-09  Bruno Haible  <bruno@clisp.org>
3709
3710         areadlinkat: Avoid link error on many platforms.
3711         * modules/areadlinkat (Depends-on): Add areadlink.
3712
3713 2011-04-09  Bruno Haible  <bruno@clisp.org>
3714
3715         allocator, careadlinkat: Fix double-inclusion guard.
3716         * lib/allocator.h: Fix double-inclusion guard.
3717         * lib/careadlinkat.h: Likewise.
3718
3719 2011-04-09  Bruno Haible  <bruno@clisp.org>
3720
3721         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3722         * lib/relocwrapper.c: Update dependencies hierarchy.
3723         * build-aux/install-reloc: Update list of files to be compiled.
3724         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3725         lib/allocator.[hc].
3726
3727 2011-04-08  Eric Blake  <eblake@redhat.com>
3728
3729         strftime: silence gnulib-tool warning
3730         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3731
3732 2011-04-08  Bruno Haible  <bruno@clisp.org>
3733
3734         verify: Fix syntax error with GCC 4.6 in C++ mode.
3735         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3736         (HAVE_STATIC_ASSERT): New macro.
3737         (verify_true, verify): Use 'static_assert' if it is supported and
3738         '_Static_assert' is not supported.
3739
3740 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3741
3742         allocator: New module.
3743         * modules/allocator, lib/allocator.c: New files.
3744         * lib/allocator.h (stdlib_allocator): New decl.
3745         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3746         Remove.  Do not include <stdlib.h>.
3747         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3748         * modules/careadlinkat (Files): Remove lib/allocator.h.
3749         (Depends-on): Add allocator.
3750
3751         stdlib: let modules use system malloc, realloc
3752         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3753         if !_GL_USE_STDLIB_ALLOC.
3754         (malloc, realloc): Limit this change to a smaller scope.
3755
3756         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3757         (malloc, realloc): Don't #undef; no longer needed.
3758         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3759         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3760         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3761         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3762         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3763         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3764         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3765         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3766
3767         careadlinkat: rename members to avoid problem
3768         * lib/allocator.h (struct allocator): Rename members from
3769         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3770         and realloc are #define'd.  Reported by Eric Blake in
3771         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3772         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3773
3774 2011-04-08  Eric Blake  <eblake@redhat.com>
3775
3776         nonblocking: reduce dependency
3777         * tests/test-nonblocking.c: Only test sockets when in use.
3778         * modules/nonblocking-tests (Depends-on): Drop socket.
3779         (Makefile.am): Link even if sockets are not present.
3780         * modules/pipe2-tests (Makefile.am): Likewise.
3781         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3782
3783         pipe2: fix O_NONBLOCK support on mingw
3784         * modules/pipe2 (Depends-on): Add nonblocking.
3785         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3786         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3787         * tests/test-nonblocking.c (main): Likewise.
3788         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3789
3790         fcntl-h: fix O_ACCMODE on cygwin
3791         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3792         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3793
3794         pipe-filter: drop O_NONBLOCK workarounds
3795         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3796         * modules/pipe-filter-ii (Depends-on): Likewise.
3797         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3798
3799         nonblocking: provide O_NONBLOCK for mingw
3800         * modules/nonblocking (Depends-on): Add open.
3801         (configure.ac): Set new witness macro.
3802         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3803         * modules/fcntl-h (Makefile.am): Substitute it.
3804         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3805         nonblocking module is in use.
3806         * lib/nonblocking.c: Adjust portability test.
3807         * lib/open.c (open): Don't let native open see gnulib flag.
3808         * tests/test-fcntl-h.c (main): Enhance test.
3809         * tests/test-open.h (test_open): Likewise.
3810         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3811
3812         careadlinkat: fix compilation error on mingw
3813         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3814         within struct allocator.
3815
3816 2011-04-06  Eric Blake  <eblake@redhat.com>
3817
3818         binary-io: relicense under LGPLv2+
3819         * modules/binary-io (License): Relax to LGPLv2+.
3820         Requested for libvirt, and required by pipe2.
3821
3822 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3823
3824         verify: use _Static_assert if available
3825         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3826         (verify_true, verify): Use it if available.  This generates better
3827         diagnostics with GCC 4.6.0 and later.
3828
3829 2011-04-05  Bruno Haible  <bruno@clisp.org>
3830
3831         Remove leftover generated .h files after config.status changed.
3832
3833         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3834         GL_GENERATE_ALLOCA_H.
3835         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3836         GL_GENERATE_ALLOCA_H evaluates to false.
3837
3838         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3839         GL_GENERATE_ARGZ_H.
3840         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3841         evaluates to false.
3842
3843         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3844         GL_GENERATE_BYTESWAP_H.
3845         * modules/byteswap (Makefile.am): Remove byteswap.h if
3846         GL_GENERATE_BYTESWAP_H evaluates to false.
3847
3848         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3849         GL_GENERATE_ERRNO_H.
3850         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3851         evaluates to false.
3852
3853         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3854         GL_GENERATE_FLOAT_H.
3855         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3856         evaluates to false.
3857
3858         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3859         GL_GENERATE_FNMATCH_H.
3860         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3861         GL_GENERATE_FNMATCH_H evaluates to false.
3862
3863         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3864         GL_GENERATE_GLOB_H.
3865         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3866         evaluates to false.
3867
3868         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3869         automake conditional GL_GENERATE_ICONV_H.
3870         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3871         evaluates to false.
3872
3873         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3874         GL_GENERATE_NETINET_IN_H.
3875         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3876         GL_GENERATE_NETINET_IN_H evaluates to false.
3877
3878         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3879         conditional GL_GENERATE_PTHREAD_H.
3880         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3881         * modules/pthread (Makefile.am): Remove pthread.h if
3882         GL_GENERATE_PTHREAD_H evaluates to false.
3883
3884         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3885         GL_GENERATE_SCHED_H.
3886         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3887         evaluates to false.
3888
3889         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3890         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3891         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3892         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3893
3894         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3895         GL_GENERATE_STDARG_H.
3896         * modules/stdarg (Makefile.am): Remove stdarg.h if
3897         GL_GENERATE_STDARG_H evaluates to false.
3898
3899         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3900         GL_GENERATE_STDBOOL_H.
3901         * modules/stdbool (Makefile.am): Remove stdbool.h if
3902         GL_GENERATE_STDBOOL_H evaluates to false.
3903
3904         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3905         conditional GL_GENERATE_STDDEF_H.
3906         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3907         * modules/stddef (Makefile.am): Remove stddef.h if
3908         GL_GENERATE_STDDEF_H evaluates to false.
3909
3910         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3911         GL_GENERATE_STDINT_H.
3912         * modules/stdint (Makefile.am): Remove stdint.h if
3913         GL_GENERATE_STDINT_H evaluates to false.
3914
3915         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3916         GL_GENERATE_SYSEXITS_H.
3917         * modules/sysexits (Makefile.am): Remove sysexits.h if
3918         GL_GENERATE_SYSEXITS_H evaluates to false.
3919
3920         Reported by Karl Berry and Ralf Wildenhues.
3921
3922 2011-04-05  Bruno Haible  <bruno@clisp.org>
3923
3924         Ensure to rebuild generated .h files when config.status has changed.
3925         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3926         config.status.
3927         * modules/ctype (Makefile.am): Likewise.
3928         * modules/dirent (Makefile.am): Likewise.
3929         * modules/errno (Makefile.am): Likewise.
3930         * modules/fcntl-h (Makefile.am): Likewise.
3931         * modules/float (Makefile.am): Likewise.
3932         * modules/getopt-posix (Makefile.am): Likewise.
3933         * modules/glob (Makefile.am): Likewise.
3934         * modules/iconv-h (Makefile.am): Likewise.
3935         * modules/inttypes (Makefile.am): Likewise.
3936         * modules/langinfo (Makefile.am): Likewise.
3937         * modules/locale (Makefile.am): Likewise.
3938         * modules/math (Makefile.am): Likewise.
3939         * modules/netdb (Makefile.am): Likewise.
3940         * modules/netinet_in (Makefile.am): Likewise.
3941         * modules/poll-h (Makefile.am): Likewise.
3942         * modules/pthread (Makefile.am): Likewise.
3943         * modules/pty (Makefile.am): Likewise.
3944         * modules/sched (Makefile.am): Likewise.
3945         * modules/search (Makefile.am): Likewise.
3946         * modules/selinux-h (Makefile.am): Likewise.
3947         * modules/signal (Makefile.am): Likewise.
3948         * modules/spawn (Makefile.am): Likewise.
3949         * modules/stdarg (Makefile.am): Likewise.
3950         * modules/stdbool (Makefile.am): Likewise.
3951         * modules/stddef (Makefile.am): Likewise.
3952         * modules/stdint (Makefile.am): Likewise.
3953         * modules/stdio (Makefile.am): Likewise.
3954         * modules/stdlib (Makefile.am): Likewise.
3955         * modules/string (Makefile.am): Likewise.
3956         * modules/strings (Makefile.am): Likewise.
3957         * modules/sys_file (Makefile.am): Likewise.
3958         * modules/sys_ioctl (Makefile.am): Likewise.
3959         * modules/sys_select (Makefile.am): Likewise.
3960         * modules/sys_socket (Makefile.am): Likewise.
3961         * modules/sys_stat (Makefile.am): Likewise.
3962         * modules/sys_time (Makefile.am): Likewise.
3963         * modules/sys_times (Makefile.am): Likewise.
3964         * modules/sys_utsname (Makefile.am): Likewise.
3965         * modules/sys_wait (Makefile.am): Likewise.
3966         * modules/sysexits (Makefile.am): Likewise.
3967         * modules/termios (Makefile.am): Likewise.
3968         * modules/time (Makefile.am): Likewise.
3969         * modules/unistd (Makefile.am): Likewise.
3970         * modules/wchar (Makefile.am): Likewise.
3971         * modules/wctype-h (Makefile.am): Likewise.
3972         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3973
3974 2011-04-05  Bruno Haible  <bruno@clisp.org>
3975
3976         pipe2: Relicense under LGPLv2+.
3977         * modules/pipe2 (License): Change to LGPLv2+.
3978         Requested by Eric Blake, for libvirt.
3979
3980 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3981
3982         bootstrap: compute gnulib_extra_files after updating build_aux
3983         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3984         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3985
3986 2011-04-05  Eric Blake  <eblake@redhat.com>
3987
3988         bootstrap: preserve git whitelist item sorting
3989         * build-aux/bootstrap (sort_patterns): New function.
3990         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3991
3992 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3993
3994         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3995         sc_space_tab check.
3996
3997 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3998
3999         areadlink, areadlinkat: rewrite in terms of careadlinkat
4000         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
4001         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
4002         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
4003         (malloc, realloc): Remove #undefs.
4004         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
4005         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
4006         readlink, ssize_t, stdint, unistd.
4007         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
4008         areadlink, stdint.
4009
4010         careadlinkat: new module
4011         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
4012         * modules/careadlinkat: New files, written by me with
4013         a review and feedback from Ben Pfaff in
4014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
4015
4016 2011-04-01  Bruno Haible  <bruno@clisp.org>
4017
4018         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
4019         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
4020         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
4021         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4022         Reported by Bruce Korb <bruce.korb@gmail.com>.
4023
4024 2011-04-01  Bruno Haible  <bruno@clisp.org>
4025
4026         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
4027         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
4028         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
4029         * modules/wcpcpy (Depends-on): Add extensions.
4030         * modules/wcpncpy (Depends-on): Likewise.
4031         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
4032         systems.
4033         * doc/posix-functions/wcpncpy.texi: Likewise.
4034         * doc/posix-functions/wcwidth.texi: Likewise.
4035
4036 2011-03-31  Eric Blake  <eblake@redhat.com>
4037
4038         nonblocking: fix mingw test failures
4039         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
4040         non-blocking flag on regular file.
4041         (get_nonblocking_flag): Set errno on invalid fd.
4042         * tests/test-nonblocking.c (main): Avoid test failure on
4043         directories if fchdir is not active.
4044         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
4045
4046 2011-03-31  Bruno Haible  <bruno@clisp.org>
4047
4048         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
4049         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
4050         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
4051         Reported by Simon Josefsson <simon@josefsson.org>.
4052
4053 2011-03-31  Bruno Haible  <bruno@clisp.org>
4054         and Eric Blake  <eblake@redhat.com>
4055
4056         nonblocking: new module
4057         * modules/nonblocking: New module.
4058         * modules/nonblocking-tests: Likewise.
4059         * lib/nonblocking.h: New file.
4060         * lib/nonblocking.c: Likewise.
4061         * tests/test-nonblocking.c: New test.
4062         * lib/ioctl.c (ioctl) [mingw]: Update comment.
4063
4064 2011-03-30  Bruno Haible  <bruno@clisp.org>
4065
4066         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
4067         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
4068         instead of 'printf' format for GCC >= 4.4.
4069         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
4070         (fprintf, printf, vfprintf, vprintf): Declare with
4071         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
4072         the system's vfprintf() function.
4073         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
4074
4075 2011-03-30  Eric Blake  <eblake@redhat.com>
4076
4077         passfd: fix scoping bug
4078         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
4079         before sendmsg/recvmsg.
4080
4081         passfd: standardize coding conventions
4082         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
4083         can be learned at compile time.
4084         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
4085         ifdefs.
4086         (sendfd, recvfd): Follow gnulib code conventions.
4087
4088         passfd: fix incorrect sendmsg arguments
4089         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
4090         incorrect msg_controllen value.
4091         * modules/passfd-tests (Depends-on): Check for alarm.
4092         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
4093         Reported by Bastien ROUCARIES.
4094
4095 2011-03-30  Bruno Haible  <bruno@clisp.org>
4096
4097         c-strcasestr: Relicense under LGPLv2+.
4098         * modules/c-strcasestr (License): Change to LGPLv2+.
4099         Requested by Eric Blake, for libvirt.
4100
4101 2011-03-30  Simon Josefsson  <simon@josefsson.org>
4102
4103         * users.txt: Add libidn2.  Fix libtasn1 link.
4104
4105 2011-03-30  Jim Meyering  <meyering@redhat.com>
4106
4107         tests: readlink* ("",... fails with EINVAL on newer kernels
4108         readlink and readlinkat have typically failed with ENOENT for
4109         the invalid, empty file name,  "".  However, with the advent
4110         of linux-2.6.39, they fail with EINVAL.
4111         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
4112         when operating on the empty file name.
4113         * tests/test-readlink.h (test_readlink): Likewise.
4114
4115 2011-03-29  Bruno Haible  <bruno@clisp.org>
4116
4117         Relicense some modules under LGPLv2+, for libidn2.
4118         * modules/array-mergesort (License): Change to LGPLv2+.
4119         * modules/c-strcaseeq (License): Likewise.
4120         * modules/striconveh (License): Likewise.
4121         * modules/striconveha (License): Likewise.
4122         * modules/uniconv/base (License): Likewise.
4123         * modules/uniconv/u8-conv-from-enc (License): Likewise.
4124         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
4125         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
4126         * modules/unictype/base (License): Likewise.
4127         * modules/unictype/bidiclass-of (License): Likewise.
4128         * modules/unictype/category-M (License): Likewise.
4129         * modules/unictype/category-none (License): Likewise.
4130         * modules/unictype/category-of (License): Likewise.
4131         * modules/unictype/category-test (License): Likewise.
4132         * modules/unictype/category-test-withtable (License): Likewise.
4133         * modules/unictype/combining-class (License): Likewise.
4134         * modules/unictype/joiningtype-of (License): Likewise.
4135         * modules/unictype/scripts (License): Likewise.
4136         * modules/uninorm/base (License): Likewise.
4137         * modules/uninorm/canonical-decomposition (License): Likewise.
4138         * modules/uninorm/composition (License): Likewise.
4139         * modules/uninorm/decompose-internal (License): Likewise.
4140         * modules/uninorm/decomposition-table (License): Likewise.
4141         * modules/uninorm/nfc (License): Likewise.
4142         * modules/uninorm/nfd (License): Likewise.
4143         * modules/uninorm/u32-normalize (License): Likewise.
4144         * modules/unistr/base (License): Likewise.
4145         * modules/unistr/u32-cpy (License): Likewise.
4146         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
4147         * modules/unistr/u32-to-u8 (License): Likewise.
4148         * modules/unistr/u32-uctomb (License): Likewise.
4149         * modules/unistr/u8-check (License): Likewise.
4150         * modules/unistr/u8-mblen (License): Likewise.
4151         * modules/unistr/u8-mbtouc (License): Likewise.
4152         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
4153         * modules/unistr/u8-mbtoucr (License): Likewise.
4154         * modules/unistr/u8-prev (License): Likewise.
4155         * modules/unistr/u8-strlen (License): Likewise.
4156         * modules/unistr/u8-to-u32 (License): Likewise.
4157         * modules/unistr/u8-uctomb (License): Likewise.
4158         * modules/unitypes (License): Likewise.
4159         Requested by Simon Josefsson.
4160
4161 2011-03-29  Simon Josefsson  <simon@josefsson.org>
4162
4163         lib-symbol-visibility: Add a notice.
4164         * modules/lib-symbol-visibility (Notice): New field.
4165
4166 2011-03-29  Bruno Haible  <bruno@clisp.org>
4167
4168         getaddrinfo: Doc fix.
4169         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
4170         section "fixed in Gnulib".
4171
4172 2011-03-28  Simon Josefsson  <simon@josefsson.org>
4173
4174         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
4175         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
4176
4177 2011-03-26  Bruno Haible  <bruno@clisp.org>
4178
4179         unictype/property-byname: Reduce the number of load-time relocations.
4180         * lib/unictype/pr_byname.c: Include <stdlib.h>.
4181         (UC_PROPERTY_INDEX_*): New enumeration values.
4182         (uc_property_byname): Convert an index from the lookup table to an
4183         uc_property_t.
4184         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
4185         values.
4186
4187 2011-03-26  Bruno Haible  <bruno@clisp.org>
4188
4189         unictype/property-byname: Allow omitted word separators and aliases.
4190         * lib/unictype/pr_byname.gperf: Add property names without word
4191         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
4192         for 'space'.
4193
4194 2011-03-26  Bruno Haible  <bruno@clisp.org>
4195
4196         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
4197         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
4198         also hyphens to space.
4199         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
4200         without spaces.
4201         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
4202
4203 2011-03-26  Bruno Haible  <bruno@clisp.org>
4204
4205         unictype/joiningtype-byname: Recognize long names as well.
4206         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
4207         a long name.
4208         * lib/unictype/joiningtype_byname.c: Include <string.h>,
4209         unictype/joiningtype_byname.h.
4210         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
4211         * lib/unictype/joiningtype_byname.gperf: New file.
4212         * modules/unictype/joiningtype-byname (Files): Add
4213         lib/unictype/joiningtype_byname.gperf.
4214         (Depends-on): Add gperf.
4215         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
4216         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
4217         long names.
4218
4219         Tests for module 'unictype/joiningtype-longname'.
4220         * modules/unictype/joiningtype-longname-tests: New file.
4221         * tests/unictype/test-joiningtype_longname.c: New file.
4222
4223         New module 'unictype/joiningtype-longname'.
4224         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
4225         * lib/unictype/joiningtype_longname.c: New file.
4226         * modules/unictype/joiningtype-longname: New file.
4227         * modules/unictype/joiningtype-all (Depends-on): Add
4228         unictype/joiningtype-longname.
4229
4230 2011-03-26  Bruno Haible  <bruno@clisp.org>
4231
4232         unictype/bidiclass-byname: Recognize long names as well.
4233         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
4234         name.
4235         * lib/unictype/bidi_byname.c: Include <string.h>,
4236         unictype/bidi_byname.h.
4237         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
4238         * lib/unictype/bidi_byname.gperf: New file.
4239         * modules/unictype/bidiclass-byname (Files): Add
4240         lib/unictype/bidi_byname.gperf.
4241         (Depends-on): Add gperf.
4242         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
4243         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
4244         long names.
4245
4246         Tests for module 'unictype/bidiclass-longname'.
4247         * modules/unictype/bidiclass-longname-tests: New file.
4248         * tests/unictype/test-bidi_longname.c: New file.
4249
4250         New module 'unictype/bidiclass-longname'.
4251         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
4252         * lib/unictype/bidi_longname.c: New file.
4253         * modules/unictype/bidiclass-longname: New file.
4254         * modules/unictype/bidiclass-all (Depends-on): Add
4255         unictype/bidiclass-longname.
4256
4257 2011-03-26  Bruno Haible  <bruno@clisp.org>
4258
4259         unictype/bidi*: Rename modules.
4260         * modules/unictype/bidiclass-all: Renamed from
4261         modules/unictype/bidicategory-all.
4262         * modules/unictype/bidiclass-name: Renamed from
4263         modules/unictype/bidiclass-name.
4264         (Description): Update.
4265         * modules/unictype/bidiclass-name-tests: Renamed from
4266         modules/unictype/bidicategory-name-tests.
4267         * modules/unictype/bidiclass-byname: Renamed from
4268         modules/unictype/bidicategory-byname.
4269         (Description): Update.
4270         * modules/unictype/bidiclass-byname-tests: Renamed from
4271         modules/unictype/bidicategory-byname-tests.
4272         * modules/unictype/bidiclass-of: Renamed from
4273         modules/unictype/bidicategory-of.
4274         (Description): Update.
4275         * modules/unictype/bidiclass-of-tests: Renamed from
4276         modules/unictype/bidicategory-of-tests.
4277         * modules/unictype/bidiclass-test: Renamed from
4278         modules/unictype/bidicategory-test.
4279         (Description): Update.
4280         * modules/unictype/bidiclass-test-tests: Renamed from
4281         modules/unictype/bidicategory-test-tests.
4282         * modules/unictype/bidicategory-all: New file, a simple redirection.
4283         * modules/unictype/bidicategory-name: Likewise.
4284         * modules/unictype/bidicategory-byname: Likewise.
4285         * modules/unictype/bidicategory-of: Likewise.
4286         * modules/unictype/bidicategory-test: Likewise.
4287         * modules/unictype/property-bidi-* (Dependencies): Update.
4288         * lib/unictype/bidi_*.c: Update comment.
4289
4290 2011-03-26  Bruno Haible  <bruno@clisp.org>
4291
4292         unictype/bidi*: Rename functions, part 2.
4293         * modules/unictype/bidicategory-name (configure.ac): Update required
4294         libunistring version.
4295         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
4296
4297 2011-03-25  Bruno Haible  <bruno@clisp.org>
4298
4299         New module 'unictype/combining-class-all'.
4300         * modules/unictype/combining-class-all: New file.
4301
4302         Tests for module 'unictype/combining-class-byname'.
4303         * modules/unictype/combining-class-byname-tests: New file.
4304         * tests/unictype/test-combiningclass_byname.c: New file.
4305
4306         New module 'unictype/combining-class-byname'.
4307         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
4308         * lib/unictype/combiningclass_byname.c: New file.
4309         * lib/unictype/combiningclass_byname.gperf: New file.
4310         * modules/unictype/combining-class-byname: New file.
4311
4312         Tests for module 'unictype/combining-class-longname'.
4313         * modules/unictype/combining-class-longname-tests: New file.
4314         * tests/unictype/test-combiningclass_longname.c: New file.
4315
4316         New module 'unictype/combining-class-longname'.
4317         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
4318         * lib/unictype/combiningclass_longname.c: New file.
4319         * modules/unictype/combining-class-longname: New file.
4320
4321         Tests for module 'unictype/combining-class-name'.
4322         * modules/unictype/combining-class-name-tests: New file.
4323         * tests/unictype/test-combiningclass_name.c: New file.
4324
4325         New module 'unictype/combining-class-name'.
4326         * lib/unictype.in.h (uc_combining_class_name): New declaration.
4327         * lib/unictype/combiningclass_name.c: New file.
4328         * modules/unictype/combining-class-name: New file.
4329
4330 2011-03-25  Bruno Haible  <bruno@clisp.org>
4331
4332         unictype/combining-class: Rename source files.
4333         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
4334         of unictype/combining.h.
4335         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
4336         Update.
4337         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
4338         * modules/unictype/combining-class (Description): Fix.
4339         (Files, Makefile.am): Update.
4340         * tests/unictype/test-combiningclass.c: Renamed from
4341         tests/unictype/test-combining.c.
4342         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
4343
4344 2011-03-25  Bruno Haible  <bruno@clisp.org>
4345
4346         unictype: Update list of canonical combining classes.
4347         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
4348
4349 2011-03-25  Bruno Haible  <bruno@clisp.org>
4350
4351         unictype/category-byname: Recognize long names as well.
4352         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
4353         a long name.
4354         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
4355         unictype/categ_byname.h.
4356         (UC_CATEGORY_INDEX_*): New enumeration values.
4357         (uc_general_category_byname): Use uc_general_category_lookup and
4358         convert from index to value.
4359         * lib/unictype/categ_byname.gperf: New file.
4360         * modules/unictype/category-byname (Files): Add
4361         lib/unictype/categ_byname.gperf.
4362         (Depends-on): Add gperf.
4363         (Makefile.am): Add rule for generating unictype/categ_byname.h.
4364         * tests/unictype/test-categ_byname.c (main): Test the recognition of
4365         long names.
4366
4367         Tests for module 'unictype/category-longname'.
4368         * modules/unictype/category-longname-tests: New file.
4369         * tests/unictype/test-categ_longname.c: New file.
4370
4371         New module 'unictype/category-longname'.
4372         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
4373         * lib/unictype/categ_longname.c: New file.
4374         * modules/unictype/category-longname: New file.
4375         * modules/unictype/category-all (Depends-on): Add it.
4376
4377 2011-03-25  Bruno Haible  <bruno@clisp.org>
4378
4379         Tests for module 'unictype/category-LC'.
4380         * modules/unictype/category-LC-tests: New file.
4381         * tests/unictype/test-categ_LC.c: New file, automatically generated.
4382
4383         New module 'unictype/category-LC'.
4384         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
4385         (UC_CATEGORY_LC): New declaration.
4386         (UC_CASED_LETTER): New macro.
4387         * lib/gen-uni-tables.c (is_category_LC): New function.
4388         (output_categories): Also handle category LC.
4389         (UC_CATEGORY_MASK_LC): New enumeration value.
4390         (general_category_byname): Also handle category LC.
4391         * lib/unictype/categ_LC.c: New file.
4392         * lib/unictype/categ_LC.h: New file, automatically generated.
4393         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
4394         category LC.
4395         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
4396         * modules/unictype/category-LC: New file.
4397         * modules/unictype/category-byname (Depends-on): Add
4398         unictype/category-LC.
4399         * modules/unictype/category-all (Depends-on): Likewise.
4400
4401 2011-03-25  Eric Blake  <eblake@redhat.com>
4402
4403         xmalloc: revert yesterday's regression
4404         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
4405         realloc's underlying behavior (allowing allocation of zero-size
4406         objects, especially if malloc-gnu is also in use).
4407
4408 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
4409
4410         maint.mk: add missing version to VC-tag
4411         * top/maint.mk: git tag was missing actual tag name; add it.
4412
4413         valgrind: do leak checking, and exit with code 1 on error (not 0)
4414         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
4415         to VALGRIND.
4416
4417 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
4418
4419         posix-modules: say what it does.
4420         * posix-modules: Add a line to the --help output saying what it does.
4421
4422 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
4423
4424         xmalloc: Do not leak if underlying realloc is C99 compatible.
4425         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
4426         This avoids a leak on C99-based systems.  See
4427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
4428
4429 2011-03-24  Eric Blake  <eblake@redhat.com>
4430
4431         realloc: document portability problem
4432         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
4433         passing 0 size to realloc.
4434
4435 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
4436
4437         doc: update users.txt
4438         * users.txt: Add cvsps, tmpwatch
4439
4440 2011-03-23  Matt Rice  <ratmice@gmail.com>
4441
4442         doc: update users.txt
4443         * users.txt: Add gdb.
4444
4445 2011-03-23  Jim Meyering  <meyering@redhat.com>
4446
4447         doc: update users.txt
4448         Looking through matches up to the following URL (there are still
4449         several more pages), I found several projects that use gnulib:
4450         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
4451         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
4452         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
4453
4454 2011-03-22  Bruno Haible  <bruno@clisp.org>
4455
4456         unictype/bidi*: Rename functions.
4457         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
4458         uc_bidi_class, uc_is_bidi_class): New declarations.
4459         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
4460         uc_bidi_category_byname.
4461         (uc_bidi_category_byname): New function.
4462         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
4463         u_bidi_category_name.
4464         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
4465         (uc_bidi_category_name): New function.
4466         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
4467         uc_bidi_category.
4468         (uc_bidi_category): New function.
4469         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
4470         uc_is_bidi_category. Invoke uc_bidi_class.
4471         (uc_is_bidi_category): New function.
4472         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
4473         instead of uc_bidi_category_byname.
4474         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
4475         instead of uc_bidi_category_name.
4476         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
4477         uc_bidi_category.
4478         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
4479         instead of uc_is_bidi_category.
4480
4481 2011-03-21  Bruno Haible  <bruno@clisp.org>
4482
4483         New module 'unictype/joininggroup-all'.
4484         * modules/unictype/joininggroup-all: New file.
4485
4486         Tests for module 'unictype/joininggroup-of'.
4487         * modules/unictype/joininggroup-of-tests: New file.
4488         * tests/unictype/test-joininggroup_of.c: New file.
4489         * tests/unictype/test-joininggroup_of.h: New file, automatically
4490         generated by gen-uni-tables.
4491
4492         New module 'unictype/joininggroup-of'.
4493         * modules/unictype/joininggroup-of: New file.
4494         * lib/unictype/joininggroup_of.c: New file.
4495         * lib/unictype/joininggroup_of.h: New file, automatically generated by
4496         gen-uni-tables.
4497
4498         Tests for module 'unictype/joininggroup-byname'.
4499         * modules/unictype/joininggroup-byname-tests: New file.
4500         * tests/unictype/test-joininggroup_byname.c: New file.
4501
4502         New module 'unictype/joininggroup-byname'.
4503         * modules/unictype/joininggroup-byname: New file.
4504         * lib/unictype/joininggroup_byname.c: New file.
4505         * lib/unictype/joininggroup_byname.gperf: New file.
4506
4507         Tests for module 'unictype/joininggroup-name'.
4508         * modules/unictype/joininggroup-name-tests: New file.
4509         * tests/unictype/test-joininggroup_name.c: New file.
4510
4511         New module 'unictype/joininggroup-name'.
4512         * modules/unictype/joininggroup-name: New file.
4513         * lib/unictype/joininggroup_name.c: New file.
4514         * lib/unictype/joininggroup_name.h: New file.
4515
4516         New module 'unictype/joiningtype-all'.
4517         * modules/unictype/joiningtype-all: New file.
4518
4519         Tests for module 'unictype/joiningtype-of'.
4520         * modules/unictype/joiningtype-of-tests: New file.
4521         * tests/unictype/test-joiningtype_of.c: New file.
4522         * tests/unictype/test-joiningtype_of.h: New file, automatically
4523         generated by gen-uni-tables.
4524
4525         New module 'unictype/joiningtype-of'.
4526         * modules/unictype/joiningtype-of: New file.
4527         * lib/unictype/joiningtype_of.c: New file.
4528         * lib/unictype/joiningtype_of.h: New file, automatically generated by
4529         gen-uni-tables.
4530
4531         Tests for module 'unictype/joiningtype-byname'.
4532         * modules/unictype/joiningtype-byname-tests: New file.
4533         * tests/unictype/test-joiningtype_byname.c: New file.
4534
4535         New module 'unictype/joiningtype-byname'.
4536         * modules/unictype/joiningtype-byname: New file.
4537         * lib/unictype/joiningtype_byname.c: New file.
4538
4539         Tests for module 'unictype/joiningtype-name'.
4540         * modules/unictype/joiningtype-name-tests: New file.
4541         * tests/unictype/test-joiningtype_name.c: New file.
4542
4543         New module 'unictype/joiningtype-name'.
4544         * modules/unictype/joiningtype-name: New file.
4545         * lib/unictype/joiningtype_name.c: New file.
4546
4547         unictype: Add support for Arabic shaping properties.
4548         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
4549         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
4550         declarations.
4551         (UC_JOINING_GROUP_*): New enumeration values.
4552         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
4553         declarations.
4554         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
4555         (unicode_joining_type): New variable.
4556         (UC_JOINING_GROUP_*): New enumeration values.
4557         (unicode_joining_group): New variable.
4558         (fill_arabicshaping, joining_type_as_c_identifier,
4559         output_joining_type_test, output_joining_type,
4560         joining_group_as_c_identifier, output_joining_group_test,
4561         output_joining_group): New functions.
4562         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
4563         fill_arabicshaping and output_joining_type_test, output_joining_type,
4564         output_joining_group_test, output_joining_group.
4565         Reported by Simon Josefsson.
4566
4567 2011-03-21  Jim Meyering  <meyering@redhat.com>
4568
4569         strftime: fix a bug in yesterday's change
4570         * lib/strftime.c (add): Accommodate width's initial value of -1.
4571         Otherwise, nstrftime would copy uninitialized data into
4572         the result buffer.
4573
4574 2011-03-21  Jim Meyering  <meyering@redhat.com>
4575
4576         tests: add strftime-tests module
4577         * tests/test-strftime.c: New file.
4578         * modules/strftime-tests: New module.
4579
4580 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4581
4582         strftime: don't assume a byte count fits in 'int'
4583         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
4584         found this problem by static analysis, using gcc -Wstrict-overflow
4585         (GCC 4.5.2, x86-64).  This reported an optimization that depended
4586         on an integer overflow having undefined behavior, but it turns out
4587         that the argument is a size, which might not fit in 'int' anyway,
4588
4589 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4590
4591         stdio: don't require ignore_value around fwrite
4592
4593         This patch works around libc bug 11959
4594         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
4595         Without this patch, applications must often write
4596         ignore_value (fwrite (...)) even though the ignore_value is
4597         not helpful here.  It's common to write many objects, using
4598         fwrite/printf/etc., and then use ferror to detect output error.
4599
4600         I considered making this patch optional, but decided against it,
4601         because libc is obviously being inconsistent here: there is no
4602         reason libc should insist that user code must inspect fwrite
4603         return's value without also insisting that it inspect printf's,
4604         putchar's, etc.  If user code wants to have a strict style where
4605         all these functions' values are checked (so that ferror need not
4606         be checked), we could add support for that style in a new gnulib
4607         module, but in the meantime it's better to be consistent and to
4608         support common usage.
4609
4610         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
4611         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
4612         that we are compiling in checking mode, and if not C++, and
4613         if not already wrapping fwrite for some other reason.
4614         (fwrite): #define to rpl_fwrite if the latter is defined.
4615
4616 2011-03-20  Bruno Haible  <bruno@clisp.org>
4617
4618         verror: Fix compilation error introduced on 2011-02-13.
4619         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
4620         instead of __attribute__.
4621         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4622
4623 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4624             Bruno Haible  <bruno@clisp.org>
4625
4626         socklen: do not depend on sys_socket
4627         While trying to modify Emacs to use gnulib's socklen module,
4628         I discovered a circular dependency: socklen depends on sys_socket
4629         and vice versa.  Emacs can use socklen, but it does not need
4630         sys_socket because it has its own substitute for sys/socket.h.
4631         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
4632         gl_TYPE_SOCKLEN_T.
4633         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
4634         gl_PREREQ_SYS_H_SOCKET.
4635         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
4636         gl_PREREQ_SYS_H_SOCKET.
4637         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
4638         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
4639         * modules/socklen (Depends-on): Do not depend on sys_socket.
4640         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
4641
4642 2011-03-20  Jim Meyering  <meyering@redhat.com>
4643
4644         maint.mk: sort file names *after* new transformation
4645         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4646         prefix would have led to an unwarranted failure in GNU parted.
4647         Sort after that transformation.
4648
4649 2011-03-19  Jim Meyering  <meyering@redhat.com>
4650
4651         maint.mk: fix po-file syntax-check rule
4652         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4653         Patch by Bruno Haible.
4654
4655 2011-03-19  Bruno Haible  <bruno@clisp.org>
4656
4657         socklen: Update comment.
4658         * m4/socklen.m4: Update comment about platforms.
4659
4660 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4661             Bruno Haible  <bruno@clisp.org>
4662
4663         inet_ntop, inet_pton: Simplify.
4664         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4665         documented to provide socklen_t and we already depend on sys_socket.
4666         * modules/inet_pton (Depends-on): Likewise.
4667         * lib/arpa_inet.in.h: Adjust comment.
4668
4669 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4670             Bruno Haible  <bruno@clisp.org>
4671
4672         netdb: Simplify.
4673         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4674         documented to provide socklen_t and we already depend on sys_socket.
4675         * lib/netdb.in.h: Adjust comment.
4676
4677 2011-03-19  Bruno Haible  <bruno@clisp.org>
4678
4679         sys_socket, netdb: Document problem with socklen_t.
4680         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4681         platforms.
4682         * doc/posix-headers/netdb.texi: Likewise.
4683
4684 2011-03-18  Eric Blake  <eblake@redhat.com>
4685
4686         maint.mk: let po check work in VPATH build
4687         * top/maint.mk (po_file): Allow cfg.mk override.
4688         (sc_po_check): Allow VPATH use.
4689         Reported by Jiri Denemark.
4690
4691 2011-03-16  Jim Meyering  <meyering@redhat.com>
4692
4693         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4694         Before, you would have had to create one .x-sc_ file per rule in order
4695         to exempt offending files.  Now, you may instead use a Make variable --
4696         usually defined in cfg.mk -- whose name identifies the affected rule.
4697         * top/maint.mk (_sc_excl): Define.
4698         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4699         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4700
4701 2011-03-13  Bruno Haible  <bruno@clisp.org>
4702
4703         ignore-value tests: Avoid warnings.
4704         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4705         empty for gcc < 3.4.
4706
4707 2011-03-13  Bruno Haible  <bruno@clisp.org>
4708
4709         passfd: Fix link error on Solaris.
4710         * modules/passfd (Description): Correct.
4711         (Depends-on): Add socketlib.
4712         (Link): New section.
4713         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4714
4715 2011-03-13  Bruno Haible  <bruno@clisp.org>
4716
4717         passfd: Fix link error on AIX 5.2.
4718         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4719
4720 2011-03-13  Bruno Haible  <bruno@clisp.org>
4721
4722         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4723         * lib/sys_socket.in.h: Include <stddef.h>.
4724         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4725         CMSG_FIRSTHDR. Remove unused variable.
4726
4727 2011-03-13  Bruno Haible  <bruno@clisp.org>
4728
4729         passfd: Fix compilation error on OpenBSD.
4730         * lib/passfd.c: Include <sys/uio.h>.
4731
4732 2011-03-13  Bruno Haible  <bruno@clisp.org>
4733
4734         passfd test: Fix warnings.
4735         * tests/test-passfd.c: Include <sys/wait.h>.
4736         (main): Fix typo.
4737
4738 2011-03-13  Bruno Haible  <bruno@clisp.org>
4739
4740         passfd module, part 4, tweaks.
4741         * tests/test-passfd.c: Reorder includes.
4742         (main): Fix perror and printf calls.
4743
4744 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4745
4746         passfd module, part 4.
4747         * modules/passfd-tests: New file.
4748         * tests/test-passfd.c: New file.
4749
4750 2011-03-13  Jim Meyering  <meyering@redhat.com>
4751
4752         Makefile: rely on GNU make; derive syntax-check rule names
4753         Rather than requiring that each sc_ rule be listed as a dependent
4754         of "check", use features of GNU make to derive the list.
4755         * Makefile (syntax-check-rules): Define.
4756         (check): Depend on the new variable, not the hard-coded list.
4757
4758 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4759             Bruno Haible  <bruno@clisp.org>
4760
4761         passfd module, part 3.
4762         * lib/passfd.h (recvfd): Add a flags argument.
4763         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4764         (recvfd): Add a flags argument.
4765         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4766         exists.
4767         * modules/passfd (Depends-on): Add cloexec.
4768         Suggested by Eric Blake.
4769
4770 2011-03-13  Bruno Haible  <bruno@clisp.org>
4771
4772         passfd module, part 2, tweaks.
4773         * modules/passfd (Files): Reorder.
4774         (Depends-on): Remove errno.
4775         (Include): Remove <sys/socket.h>, <sys/un.h>.
4776         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4777         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4778         specification header. Include <sys/socket.h> always. Don't include
4779         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4780         (sendfd): Clarify that it sets errno when it fails.
4781         (recvfd): Fix specification.
4782
4783 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4784
4785         passfd module, part 2.
4786         * modules/passfd: New file.
4787         * lib/passfd.h: New file.
4788         * lib/passfd.c: New file.
4789
4790 2011-03-12  Bruno Haible  <bruno@clisp.org>
4791
4792         wcswidth, mbswidth: Avoid integer overflow.
4793         * lib/wcswidth.c: Include <limits.h>.
4794         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4795         * lib/mbswidth.c: Include <limits.h>.
4796         (mbsnwidth): Avoid 'int' overflow.
4797         Reported by Jim Meyering.
4798
4799 2011-03-12  Bruno Haible  <bruno@clisp.org>
4800
4801         futimens, utimensat: Avoid endless recursion on Solaris 10.
4802         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4803         Solaris.
4804         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4805         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4806
4807 2011-03-11  Jim Meyering  <meyering@redhat.com>
4808
4809         maint.mk: relax a regexp to accommodate other formatting styles
4810         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4811         between "ngettext" and the following "(".
4812
4813 2011-03-11  Pádraig Brady <P@draigBrady.com>
4814
4815         maint.mk: suppress a false positive warning
4816         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4817         diagnostics are marked with ngettext.
4818
4819 2011-03-10  Eric Blake  <eblake@redhat.com>
4820
4821         wchar: add explicit dependencies, for Tru64
4822         * modules/mbmemcasecoll (Depends-on): Add wchar.
4823         * modules/mbtowc (Depends-on): Likewise.
4824         * modules/vasnprintf (Depends-on): Likewise.
4825         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4826         * modules/wctomb (Depends-on): Likewise.
4827         Reported by Peter O'Gorman.
4828
4829 2011-03-08  Bruno Haible  <bruno@clisp.org>
4830
4831         passfd module, part 1, tweaks.
4832         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4833         Improve indentation. Improve AC_MSG_CHECKING messages.
4834         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4835         gl_SOCKET_FAMILIES.
4836
4837 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4838
4839         passfd module, part 1.
4840         * m4/afunix.m4: New file.
4841         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4842         sockets.
4843
4844 2011-03-08  Bruno Haible  <bruno@clisp.org>
4845
4846         regex-quote: New API.
4847         * lib/regex-quote.h: Include <stdbool.h>.
4848         (struct regex_quote_spec): New type.
4849         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4850         New declarations.
4851         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4852         'const struct regex_quote_spec *' argument.
4853         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4854         (pcre_special): New constant.
4855         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4856         New functions.
4857         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4858         'const struct regex_quote_spec *' argument.
4859         * modules/regex-quote (Depends-on): Add stdbool.
4860         * tests/test-regex-quote.c (check): Update for new API. Add test for
4861         anchored results.
4862         * NEWS: Mention the API change.
4863         Reported by Reuben Thomas and Eric Blake.
4864
4865 2011-03-06  Bruno Haible  <bruno@clisp.org>
4866
4867         regex-quote: Fix creation of POSIX extended regular expressions.
4868         * lib/regex-quote.c (ere_special): Add grouping and alternation
4869         operators.
4870
4871 2011-03-05  Bruno Haible  <bruno@clisp.org>
4872
4873         doc: Improve doc regarding autopoint vs. gnulib.
4874         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4875         disable autopoint while running autoreconf.
4876         Suggested by Ralf Wildenhues.
4877
4878 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4879
4880         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4881         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4882
4883 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4884
4885         parse-duration: remove xalloc.h dependency
4886         * lib/parse-duration.c (parse_period): handle NULL return from
4887         strdup instead of calling xstrdup().
4888         * modules/parse-duration: remove "xalloc" dependency
4889
4890 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4891
4892         bootstrap: honor m4_base when running aclocal
4893         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4894
4895 2011-03-02  Jim Meyering  <meyering@redhat.com>
4896
4897         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4898         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4899         on request from Matt Booth.
4900
4901 2011-03-01  Eric Blake  <eblake@redhat.com>
4902
4903         test-link: work on Hurd
4904         * tests/test-link.h (test_link): Hurd rejects linking directories
4905         with EISDIR instead of the POSIX-mandated EPERM.
4906
4907 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4908
4909         stdio: simplify by moving files to printf-posix, sigpipe
4910         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4911         since this symbol is needed only if printf is replaced.
4912         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4913         Require gl_ASM_SYMBOL_PREFIX.
4914         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4915         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4916         (Depends-on): Add 'raise'.
4917         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4918         * modules/stdio (Files): Remove lib/stdio-write.c,
4919         m4/asm-underscore.m4.
4920         (Depends-on): Remove 'raise'.
4921
4922         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4923         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4924         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4925         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4926
4927 2011-02-28  Bruno Haible  <bruno@clisp.org>
4928
4929         localcharset: Assume ANSI C behaviour of free().
4930         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4931         calling free().
4932         Suggested by Simon Josefsson <simon@josefsson.org>.
4933
4934 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4935             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4936             Bruno Haible  <bruno@clisp.org>  (tiny change)
4937
4938         On Cygwin, use /proc file system instead of win32 API.
4939         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4940         Win32 file names.
4941         (DllMain): Simplify by removing Cygwin specific code.
4942         (find_shared_library_fullname): Use Linux specific implementation also
4943         for Cygwin.
4944         (get_shared_library_fullname): Update accordingly.
4945         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4946         Win32 file names.
4947         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4948         Cygwin specific code.
4949
4950 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4951             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4952
4953         Fix OpenMP flag detection for various Fortran compilers.
4954         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4955         OpenMP-conditional compilation construct, to force compile
4956         failure with missing OpenMP flag.
4957         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4958
4959 2011-02-25  Eric Blake  <eblake@redhat.com>
4960
4961         strstr: expand test coverage
4962         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4963         compilation.
4964         * tests/test-memmem.c (main): Duplicate tests.
4965         * tests/test-strcasestr.c (main): Likewise.
4966         * tests/test-c-strcasestr.c (main): Likewise.
4967
4968 2011-02-25  Jim Meyering  <meyering@redhat.com>
4969
4970         maint.mk: detect missing-NL-at-EOF, too
4971         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4972         it also detects when a file lacks a newline at EOF.
4973         (require_exactly_one_NL_at_EOF_): Renamed from
4974         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4975         since people may well have .x-sc_... file names tied to the
4976         existing name.  Suggested by Eric Blake.
4977
4978 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4979
4980         dirname: move m4/dos.m4 functionality into lib/dosname.h
4981
4982         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4983         extracts symbols from it, puts them into config.h; but it's much
4984         easier to use the symbols directly.  filename.h already does this,
4985         but it disagrees with dos.m4 in some respects.  This patch
4986         introduces a different include file dosname.h that packages up
4987         dos.m4, and then later we can work on merging filename.h and
4988         dosname.h.  Applications that need only the easy-to-configure
4989         symbols should consider including dosname.h rather than dirname.h.
4990         * NEWS: Mention incompatible changes.
4991         * m4/dos.m4: Remove.
4992         * lib/dosname.h, modules/dosname: New files.
4993         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4994         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4995         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4996         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4997         Include dosname.h, not dirname.h.
4998         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4999         Include dosname.h, for definitions of symbols like ISSLASH
5000         that used to be in config.h.
5001         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
5002         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5003         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5004         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5005         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
5006         * modules/rmdir (Files): Likewise.
5007         * modules/stat (Files): Likewise.
5008         * modules/unlink (Files): Likewise.
5009         * modules/dirname-lgpl (Depends-on): Add dosname.
5010         * modules/lstat (Depends-on): Likewise.
5011         * modules/openat (Depends-on): Likewise.
5012         * modules/rmdir (Depends-on): Likewise.
5013         * modules/savewd (Depends-on): Likewise.
5014         * modules/stat (Depends-on): Likewise.
5015         * modules/unlink (Depends-on): Likewise.
5016         * modules/openat (Depends-on): Remove dirname-lgpl.
5017         * modules/savewd (Depends-on): Likewise.
5018         * tests/test-dirname.c: Do not use removed symbols like
5019         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
5020         the remaining symbols, e.g., ISSLASH ('\\').
5021
5022 2011-02-25  Eric Blake  <eblake@redhat.com>
5023
5024         strstr: revert patches that introduced bug and pessimization
5025         * lib/str-two-way.h: Add another reference.
5026         (two_way_short_needle, two_way_long_needle): Revert changes from
5027         2011-02-24; they pessimize search speed.
5028         (critical_factorization): Partially revert changes from
5029         2010-06-22; they violate the requirement that the left half of the
5030         needle be smaller than the period of the needle.
5031
5032 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5033
5034         filenamecat: remove unnecessary dependency on dirname-lgpl
5035         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
5036         is no direct dependency, just an indirect one via filenamecat-lgpl.
5037
5038         remove: remove unnecessary use of m4/dos.m4
5039         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
5040         * modules/remove (FILES): Remove m4/dos.m4.
5041
5042         * lib/openat-proc.c: Don't include dirname.h; not needed.
5043
5044         backupfile: remove unnecessary use of m4/dos.m4
5045         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
5046         of its symbols are used by the backupfile code.  backupfile.c does
5047         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
5048         for the rare case of programs that want all their backup file
5049         names to live within 8+3 limits, and dos.m4 doesn't address that.
5050         * modules/backupfile (Files): Remove m4/dos.m4.
5051
5052 2011-02-24  Jim Meyering  <meyering@redhat.com>
5053
5054         strstr: fix a bug whereby strstr would mistakenly return NULL
5055         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
5056         in period calculation.
5057         (two_way_long_needle): Likewise.
5058         The original problem was reported by Mike Stump in
5059         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
5060         Ralf Wildenhues provided the short needle and haystack.
5061         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
5062         Add a more involved test to trigger the bug in two_way_long_needle.
5063
5064 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5065
5066         gnulib-tool: remove use of bold display in help screen
5067         * gnulib-tool (func_usage): Do not use bold display anymore in the
5068         help screen.  That was just meant to be a temporary emphasis for a
5069         backward-incompatible change.
5070
5071 2011-02-23  Bruno Haible  <bruno@clisp.org>
5072
5073         Fix misindentation of preprocessor directives.
5074         * lib/argp-namefrob.h: Reindent preprocessor directives.
5075         * lib/getopt_int.h (struct _getopt_data): Likewise.
5076         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
5077         * lib/vasnprintf.c (decode_long_double): Likewise.
5078         * tests/test-argmatch.c: Insert blank lines, for clarity.
5079         * tests/test-exclude.c: Likewise.
5080
5081 2011-02-22  Bruno Haible  <bruno@clisp.org>
5082
5083         ioctl: Fix for MacOS X in 64-bit mode.
5084         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
5085         value.
5086         Suggested by Eric Blake.
5087         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
5088
5089 2011-02-22  Jim Meyering  <meyering@redhat.com>
5090
5091         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
5092         * Makefile (sc_cpp_indent_check): Don't limit the check to files
5093         in lib/.
5094
5095 2011-02-22  Eric Blake  <eblake@redhat.com>
5096
5097         maint: avoid any CDPATH issue
5098         * Makefile (sc_cpp_indent_check): Anchor cd argument.
5099
5100         maint: adjust cpp indentation for my modules, as well
5101         * Makefile (sc_cpp_indent_check): Add my name.
5102         * lib/fbufmode.c: Filter through cppi.
5103         * lib/fpurge.c: Likewise.
5104         * lib/freadable.c: Likewise.
5105         * lib/freading.c: Likewise.
5106         * lib/fwritable.c: Likewise.
5107         * lib/fwriting.c: Likewise.
5108         * lib/sigaction.c: Likewise.
5109
5110 2011-02-22  Jim Meyering  <meyering@redhat.com>
5111
5112         maint: adjust cpp indentation to reflect nesting depth
5113         I.e., in a block of code that begins with an unnested "#if",
5114         put one space between the "#" in column 1 and following token.
5115         For example,
5116         -#include <sys/vfs.h>
5117         +# include <sys/vfs.h>
5118         Do this only in .c files that are part of a module I maintain.
5119         * lib/linkat.c: Filter through cppi.
5120         * lib/nanosleep.c: Likewise.
5121         * lib/openat.c: Likewise.
5122         * lib/openat-die.c: Likewise.
5123         * lib/dup3.c: Likewise.
5124         * lib/fchownat.c: Likewise.
5125         * lib/flock.c: Likewise.
5126         * lib/fsync.c: Likewise.
5127         * lib/fts.c: Likewise.
5128         * lib/getpass.c: Likewise.
5129         * lib/gettimeofday.c: Likewise.
5130         * lib/userspec.c: Likewise.
5131         * Makefile (sc_cpp_indent_check): New rule, to check this.
5132
5133 2011-02-22  Bruno Haible  <bruno@clisp.org>
5134
5135         New module 'wctomb'.
5136         * lib/stdlib.in.h (wctomb): New declaration.
5137         * lib/wctomb.c: New file.
5138         * lib/wctomb-impl.h: New file.
5139         * m4/wctomb.m4: New file.
5140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
5141         REPLACE_WCTOMB.
5142         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
5143         REPLACE_WCTOMB.
5144         * modules/wctomb: New file.
5145         * tests/test-stdlib-c++.cc: Test signature of wctomb.
5146         * doc/posix-functions/wctomb.texi: Mention the new module.
5147         * modules/wctob (Depends-on): Add wctomb.
5148
5149 2011-02-22  Bruno Haible  <bruno@clisp.org>
5150
5151         New module 'mbtowc'.
5152         * lib/stdlib.in.h (mbtowc): New declaration.
5153         * lib/mbtowc.c: New file.
5154         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
5155         * m4/mbtowc.m4: New file.
5156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
5157         REPLACE_MBTOWC.
5158         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
5159         REPLACE_MBTOWC.
5160         * modules/mbtowc: New file.
5161         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
5162         * doc/posix-functions/mbtowc.texi: Mention the new module.
5163         * modules/btowc (Depends-on): Add mbtowc.
5164
5165 2011-02-22  Bruno Haible  <bruno@clisp.org>
5166
5167         wcrtomb: Add more tests for native Windows platforms.
5168         * tests/test-wcrtomb-w32-1.sh: New file.
5169         * tests/test-wcrtomb-w32-2.sh: New file.
5170         * tests/test-wcrtomb-w32-3.sh: New file.
5171         * tests/test-wcrtomb-w32-4.sh: New file.
5172         * tests/test-wcrtomb-w32-5.sh: New file.
5173         * tests/test-wcrtomb-w32.c: New file.
5174         * modules/wcrtomb-tests (Files): Add them.
5175         (Makefile.am): Arrange to run these tests.
5176         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
5177         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
5178
5179 2011-02-20  Bruno Haible  <bruno@clisp.org>
5180
5181         wcrtomb: Enhance test.
5182         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
5183
5184 2011-02-20  Bruno Haible  <bruno@clisp.org>
5185
5186         mbrtowc: Tiny optimization.
5187         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
5188
5189 2011-02-20  Jim Meyering  <meyering@redhat.com>
5190
5191         test-exclude.c: remove unmatched #endif
5192         * tests/test-exclude.c: Remove stray #endif, left over from
5193         the change of a week ago.
5194
5195 2011-02-19  Jim Meyering  <meyering@redhat.com>
5196
5197         git-version-gen: skip "-dirty" check when appropriate
5198         * build-aux/git-version-gen: Don't run any git commands when the
5199         version string comes from .tarball-version.  Prior to this, we
5200         would run git update-index --refresh even from a just-unpacked
5201         tarball directory, and that could affect a .git/ directory in a
5202         parent of the build directory.  Reported by Mike Frysinger.
5203
5204 2011-02-19  Bruno Haible  <bruno@clisp.org>
5205
5206         unictype/property-byname: Reduce the size of the 'data' segment.
5207         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
5208
5209 2011-02-19  Bruno Haible  <bruno@clisp.org>
5210
5211         unictype/scripts: Reduce the size of the 'data' segment.
5212         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
5213         '%pic'.
5214         * lib/unictype/scripts_byname.gperf: Regenerated.
5215
5216 2011-02-19  Bruno Haible  <bruno@clisp.org>
5217
5218         stdint: Update documentation.
5219         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
5220
5221 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
5222
5223         stdint: omit redundant check for wchar.h
5224         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
5225         always tests whether wchar.h exists, so remove the now-redundant test.
5226
5227 2011-02-18  Bruno Haible  <bruno@clisp.org>
5228
5229         stdint: Cut dependency to module 'wchar'.
5230         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
5231         include the necessary prerequisites.
5232         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
5233         * modules/stdint (Depends-on): Remove wchar.
5234         (Makefile.am): Substitute HAVE_WCHAR_H.
5235         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
5236
5237 2011-02-18  Eric Blake  <eblake@redhat.com>
5238
5239         longlong: skip, rather than fail, on cross-compilation
5240         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
5241         when cross-compiling; regression from 2011-02-16.
5242
5243 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5244
5245         * NEWS: Mention 2011-02-08 change to stdlib.
5246
5247 2011-02-17  Bruno Haible  <bruno@clisp.org>
5248
5249         getloadavg: Add comments about platforms.
5250         * m4/getloadavg.m4: Add comment.
5251         * lib/getloadavg.c: Likewise.
5252
5253 2011-02-17  Bruno Haible  <bruno@clisp.org>
5254
5255         getloadavg: Fix link error on Solaris 2.6.
5256         * modules/getloadavg (Link): New section.
5257         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
5258         linking test-getloadavg.
5259         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
5260         getloadavg.
5261
5262 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5263
5264         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
5265         It was 'int', but this doesn't match the IRIX 6.5 manual.
5266         Suggested by Bruno Haible in
5267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
5268
5269 2011-02-17  Bruno Haible  <bruno@clisp.org>
5270
5271         havelib: Fix comments.
5272         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
5273         change.
5274
5275 2011-02-17  Bruno Haible  <bruno@clisp.org>
5276
5277         havelib: Update config.rpath.
5278         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
5279
5280 2011-02-17  Bruno Haible  <bruno@clisp.org>
5281
5282         getloadavg test: Add some plausibility checks.
5283         * tests/test-getloadavg.c (check_avg): Print a warning when the value
5284         is improbable.
5285
5286 2011-02-16  Eric Blake  <eblake@redhat.com>
5287
5288         maintainer-makefile: make syntax-check a no-op from tarballs
5289         * top/maint.mk (no-vc-detected): New rule.
5290         (local-checks-available): Use it to avoid hanging if someone tries
5291         'make syntax-check' from a tarball.  Also append to any non-syntax
5292         checks already defined in cfg.mk.
5293
5294 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5295
5296         longlong: tune, particularly for common case of c99
5297
5298         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
5299         or running anything if c99, or if unsigned long long int does not
5300         work.  In either case, we know the answer without further tests.
5301         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
5302         it at most once, and use its results for both long long int and
5303         unsigned long long int.  This is more likely to be efficient in
5304         the common case where the program wants to check for both long
5305         long int and unsigned long long int.
5306         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
5307         since the answer is already known.
5308
5309 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5310
5311         getloadavg: set errno
5312         * lib/getloadavg.c: Set errno when returning -1.  If no other
5313         error number looks appropriate, set it to ENOSYS if the getloadavg
5314         looks like it can't possibly ever work, ENOTSUP otherwise.
5315         Suggested by Bruno Haible in
5316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
5317
5318         getloadavg: trim unused parts and speed up 'configure'
5319         * NEWS: Document this.
5320         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
5321         always compiled if getloadavg is absent.
5322         Move test code to ...
5323         * tests/test-getloadavg.c: New file, containing previous
5324         contents of test from lib/getloadavg.c.  It also contains
5325         suggestions by Bruno Haible in
5326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
5327         * modules/getloadavg-tests: New file.
5328         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
5329         Do tests in the same order as they're needed for getloadavg.c.
5330         Omit setgid-related tests that generate symbols KMEM_GROUP,
5331         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
5332         Do only the tests that are needed to see whether the system has
5333         getloadavg, moving the other tests into ...
5334         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
5335         NLIST_NAME_UNION; nobody should be using it.  Do not define
5336         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
5337         relevant, as the user of this module shouldn't care how getloadavg
5338         is implemented.
5339
5340         getloadavg: omit unused var
5341         * lib/getloadavg.c (getloadavg): Omit unused local variable.
5342
5343 2011-02-15  Jim Meyering  <meyering@redhat.com>
5344
5345         doc: update users.txt
5346         * users.txt: Update iwhd's URL.
5347
5348 2011-02-13  Bruno Haible  <bruno@clisp.org>
5349
5350         Consistent macro naming for macros that use GCC __attribute__.
5351         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
5352         _ATTRIBUTE_NONNULL_.
5353         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
5354         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
5355         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
5356         ATTRIBUTE_DEPRECATED.
5357         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
5358         ATTRIBUTE_NORETURN.
5359         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5360         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5361         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5362         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5363         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
5364         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
5365         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
5366         ATTRIBUTE_SENTINEL.
5367         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
5368         ATTRIBUTE_RETURN_CHECK.
5369         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
5370         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
5371         ATTRIBUTE_NORETURN.
5372         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
5373         Reported by Paul Eggert.
5374
5375 2011-02-13  Bruno Haible  <bruno@clisp.org>
5376
5377         Don't interfere with a program's definition of __attribute__.
5378         * lib/argp.h (__attribute__): Remove definition.
5379         (_GL_ATTRIBUTE_FORMAT): New macro.
5380         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
5381         * lib/argp-fmtstream.h (__attribute__): Remove definition.
5382         (_GL_ATTRIBUTE_FORMAT): New macro.
5383         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
5384         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
5385         GCC 3 or newer.
5386         * lib/error.h (__attribute__): Remove definition.
5387         (_GL_ATTRIBUTE_FORMAT): New macro.
5388         (error, error_at_line): Use it.
5389         * lib/hash.h (__attribute__): Remove definition.
5390         (ATTRIBUTE_WUR): Update definition. Define always.
5391         * lib/openat.h (__attribute__): Remove definition.
5392         (ATTRIBUTE_NORETURN): Update definition. Define always.
5393         * lib/sigpipe-die.h (__attribute__): Remove definition.
5394         (ATTRIBUTE_NORETURN): Update definition. Define always.
5395         * lib/vasnprintf.h (__attribute__): Remove definition.
5396         (_GL_ATTRIBUTE_FORMAT): New macro.
5397         (asnprintf, vasnprintf): Use it.
5398         * lib/xalloc.h (__attribute__): Remove definition.
5399         (ATTRIBUTE_NORETURN): Update definition. Define always.
5400         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
5401         * lib/xmemdup0.h (__attribute__): Remove definition.
5402         (ATTRIBUTE_NORETURN): Update definition. Define always.
5403         * lib/xprintf.h (__attribute__): Remove definition.
5404         (_GL_ATTRIBUTE_FORMAT): New macro.
5405         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
5406         * lib/xstrtol.h (__attribute__): Remove definition.
5407         (ATTRIBUTE_NORETURN): Update definition. Define always.
5408         * lib/xvasprintf.h (__attribute__): Remove definition.
5409         (_GL_ATTRIBUTE_FORMAT): New macro.
5410         (xasprintf, xvasprintf): Use it.
5411         * tests/test-argmatch.c (__attribute__): Remove definition.
5412         (ATTRIBUTE_NORETURN): Update definition. Define always.
5413         * tests/test-exclude.c (__attribute__): Remove definition.
5414         (ATTRIBUTE_NORETURN): Update definition. Define always.
5415         Reported by Paul Eggert.
5416
5417 2011-02-13  Bruno Haible  <bruno@clisp.org>
5418
5419         mbrtowc: Add more tests for native Windows platforms.
5420         * tests/test-mbrtowc-w32-1.sh: New file.
5421         * tests/test-mbrtowc-w32-2.sh: New file.
5422         * tests/test-mbrtowc-w32-3.sh: New file.
5423         * tests/test-mbrtowc-w32-4.sh: New file.
5424         * tests/test-mbrtowc-w32-5.sh: New file.
5425         * tests/test-mbrtowc-w32.c: New file.
5426         * modules/mbrtowc-tests (Files): Add them.
5427         (Makefile.am): Arrange to run these tests.
5428         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
5429         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
5430
5431 2011-02-13  Bruno Haible  <bruno@clisp.org>
5432
5433         mbrtowc: Work around native Windows bug.
5434         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
5435         guess when no suitable locale for testing was found.
5436         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
5437
5438 2011-02-13  Bruno Haible  <bruno@clisp.org>
5439
5440         mbsinit: Work around mingw bug.
5441         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
5442         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
5443         Windows.
5444         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
5445
5446 2011-02-13  Bruno Haible  <bruno@clisp.org>
5447
5448         mbsinit: Don't crash for a NULL argument.
5449         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
5450         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
5451
5452 2011-02-13  Bruno Haible  <bruno@clisp.org>
5453
5454         Don't interfere with a program's definition of __attribute__.
5455         * lib/stdio.in.h (__attribute__): Remove definition.
5456         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
5457         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
5458         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
5459         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
5460         * lib/string.in.h (__attribute__): Remove definition.
5461         Reported by Paul Eggert.
5462
5463 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5464
5465         stdlib: don't get in the way of non-GCC __attribute__
5466         See thread starting at
5467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
5468         Revert previous stdlib change, installing the following instead:
5469         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
5470         to get in the way of a non-GCC compiler that supports __attribute__.
5471         (_GL_ATTRIBUTE_RETURN): New macro.
5472         (_Exit): Use it instead of __attribute__.
5473
5474 2011-02-12  Bruno Haible  <bruno@clisp.org>
5475
5476         quotearg test: Avoid test failure on mingw.
5477         * tests/test-quotearg.sh: Convert the locale identifier from native
5478         Windows syntax to Unix syntax.
5479
5480 2011-02-12  Bruno Haible  <bruno@clisp.org>
5481
5482         setlocale: Prefer gnulib's override over libintl's override.
5483         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
5484         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
5485         GNULIB_defined_setlocale is set.
5486
5487 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5488
5489         stdlib: support non-GCC __attribute__
5490
5491         Fix a serious and tricky problem encountered when attempting to
5492         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
5493         5.5, but it crashed due to memory corruption on Solaris 10 with
5494         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
5495         bits that are otherwise zero.  This tagging is optional inside
5496         Emacs but is preferred and is used when __attribute__ ((__aligned
5497         (8))) works, as it does with both recent-enough GCC and with Sun C
5498         5.11.  However, Sun C 5.11 is not GCC and does not #define
5499         __GNUC__ and __GNUC_MINOR__.
5500
5501         When I added the getloadavg module to Emacs, it brought in
5502         stdlib.in.h, which contained this fragment:
5503
5504            #ifndef __attribute__
5505            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
5506            #  define __attribute__(Spec)   /* empty */
5507            # endif
5508            #endif
5509
5510         When files that include <stdlib.h> were compiled with Sun C 5.11,
5511         the above code disabled __attribute__ ((__aligned (8))), which
5512         caused variables to not be properly aligned, which eventually led
5513         to the pointer corruption mentioned above.  (This was a bit hard
5514         to diagnose, unfortunately.)
5515
5516         Several "#define __attribute__(X) /* empty */" code snippets need
5517         to be eradicated from Gnulib to work with non-GCC compilers that
5518         support __attribute__.  The Autoconf way to do this is to test for
5519         each kind of attribute that we want support for, and selectively
5520         enable that in source code.
5521
5522         Fix this problem just for stdlib.h, by adding a test for the
5523         __noreturn__ attribute, and change stdlib.in.h to use that test
5524         when needed.  This technique can be easily generalized to the
5525         other *.in.h files and attributes, and a similar technique can be
5526         used for *.h and *.c files.  This patch is enough to solve the
5527         problem for Emacs + getloadavg, and I thought I'd publish it for
5528         feedback before undertaking further, similar fixes in other
5529         modules.
5530
5531         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
5532         because it's not needed for stdlib.h.  It merely substitutes the
5533         value directly into stdlib.h.  We may well need to #define it, or
5534         similar symbols, for other modules, but it's nice to also have an
5535         option to not #define it for applications like Emacs that do not
5536         need it.
5537
5538         * lib/stdlib.in.h (__attribute__): Do not #define.
5539         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
5540         be defined only if the _Exit module is also used.
5541         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
5542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
5543         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
5544         platforms.
5545         * modules/_Exit (Files): Add m4/attribute.m4.
5546         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
5547         * m4/attribute.m4: New file.
5548
5549 2011-02-12  Bruno Haible  <bruno@clisp.org>
5550
5551         wcsrtombs: Work around bug on native Windows.
5552         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
5553         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
5554         instead of len.
5555         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
5556
5557 2011-02-12  Bruno Haible  <bruno@clisp.org>
5558
5559         mbsrtowcs: Work around bug on native Windows.
5560         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
5561         against mingw bug.
5562         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
5563
5564 2011-02-12  Bruno Haible  <bruno@clisp.org>
5565
5566         Avoid setlocale bugs in tests.
5567         * modules/btowc (Dependencies): Add setlocale.
5568         * modules/c-strcase (Dependencies): Likewise.
5569         * modules/mbmemcasecmp (Dependencies): Likewise.
5570         * modules/mbmemcasecoll (Dependencies): Likewise.
5571         * modules/mbrtowc (Dependencies): Likewise.
5572         * modules/mbscasecmp (Dependencies): Likewise.
5573         * modules/mbscasestr (Dependencies): Likewise.
5574         * modules/mbschr (Dependencies): Likewise.
5575         * modules/mbscspn (Dependencies): Likewise.
5576         * modules/mbsinit (Dependencies): Likewise.
5577         * modules/mbsncasecmp (Dependencies): Likewise.
5578         * modules/mbsnrtowcs (Dependencies): Likewise.
5579         * modules/mbspbrk (Dependencies): Likewise.
5580         * modules/mbspcasecmp (Dependencies): Likewise.
5581         * modules/mbsrchr (Dependencies): Likewise.
5582         * modules/mbsrtowcs (Dependencies): Likewise.
5583         * modules/mbsspn (Dependencies): Likewise.
5584         * modules/mbsstr (Dependencies): Likewise.
5585         * modules/nl_langinfo (Dependencies): Likewise.
5586         * modules/quotearg (Dependencies): Likewise.
5587         * modules/unicase/locale-language (Dependencies): Likewise.
5588         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
5589         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
5590         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
5591         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
5592         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
5593         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
5594         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
5595         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
5596         * modules/vasnprintf-posix (Dependencies): Likewise.
5597         * modules/wcrtomb (Dependencies): Likewise.
5598         * modules/wcsnrtombs (Dependencies): Likewise.
5599         * modules/wcsrtombs (Dependencies): Likewise.
5600
5601 2011-02-12  Bruno Haible  <bruno@clisp.org>
5602
5603         setlocale: Workaround native Windows bug.
5604         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
5605         succeeds but sets LC_CTYPE to "C", report a failure.
5606         * tests/test-setlocale2.sh: New file.
5607         * tests/test-setlocale2.c: New file.
5608         * modules/setlocale-tests (Files): Add the new files.
5609         (Makefile.am): Enable test-setlocale2.sh test.
5610         * doc/posix-functions/setlocale.texi: Mention workaround.
5611
5612 2011-02-11  Bruno Haible  <bruno@clisp.org>
5613
5614         Tests for module 'setlocale'.
5615         * modules/setlocale-tests: New file.
5616         * tests/test-setlocale1.sh: New file.
5617         * tests/test-setlocale1.c: New file.
5618
5619         New module 'setlocale'.
5620         * lib/locale.in.h (setlocale): New declaration.
5621         * lib/setlocale.c: New file, based on
5622         gettext/gettext-runtime/intl/setlocale.c.
5623         * m4/setlocale.m4: New file.
5624         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
5625         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
5626         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
5627         REPLACE_SETLOCALE.
5628         * modules/setlocale: New file.
5629         * tests/test-locale-c++.cc: Test the declaration of setlocale.
5630         * doc/posix-functions/setlocale.texi: Mention the new module.
5631
5632 2011-02-11  Bruno Haible  <bruno@clisp.org>
5633
5634         Prepare for locale dependent tests on mingw.
5635         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
5636         because it has the wrong locale encoding.
5637         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
5638         French_France.1252 instead of "fr".
5639         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
5640         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
5641         because it has the wrong locale encoding.
5642         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
5643         native Windows, try Turkish_Turkey.65001.
5644         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5645         Chinese_China.54936.
5646
5647         Prepare for locale dependent tests on mingw.
5648         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5649         differently.
5650         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5651         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5652         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5653         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5654
5655 2011-02-11  Eric Blake  <eblake@redhat.com>
5656
5657         strptime: avoid compiler warnings
5658         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5659         compiler warnings about dead code.
5660         Reported by Daniel P. Berrange.
5661
5662 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5663
5664         doc: update users.txt
5665         * users.txt: Add rcs.
5666
5667 2011-02-10  John W. Eaton  <jwe@gnu.org>
5668
5669         doc: update users.txt
5670         * users.txt: Add octave.
5671
5672 2011-02-10  Jim Meyering  <meyering@redhat.com>
5673
5674         doc: update users.txt
5675         * users.txt: Add iwhd.
5676
5677 2011-02-09  Bruno Haible  <bruno@clisp.org>
5678
5679         gnulib-tool: Make copyright notice adjustment more robust.
5680         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5681         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5682         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5683         License".
5684         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5685
5686 2011-02-06  Bruno Haible  <bruno@clisp.org>
5687
5688         New module 'towctrans'.
5689         * modules/towctrans: New file.
5690         * lib/wctype.in.h (towctrans): New declaration.
5691         * lib/towctrans.c: New file.
5692         * lib/towctrans-impl.h: New file.
5693         * m4/towctrans.m4: New file.
5694         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5695         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5696         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5697         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5698         * doc/posix-functions/towctrans.texi: Mention the new module.
5699
5700 2011-02-06  Bruno Haible  <bruno@clisp.org>
5701
5702         New module 'wctrans'.
5703         * modules/wctrans: New file.
5704         * lib/wctype.in.h (wctrans): New declaration.
5705         * lib/wctrans.c: New file.
5706         * lib/wctrans-impl.h: New file.
5707         * m4/wctrans.m4: New file.
5708         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5709         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5710         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5711         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5712         * doc/posix-functions/wctrans.texi: Mention the new module.
5713
5714 2011-02-06  Bruno Haible  <bruno@clisp.org>
5715
5716         New module 'iswctype'.
5717         * modules/iswctype: New file.
5718         * lib/wctype.in.h (iswctype): New declaration.
5719         * lib/iswctype.c: New file.
5720         * lib/iswctype-impl.h: New file.
5721         * m4/iswctype.m4: New file.
5722         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5723         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5724         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5725         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5726         * doc/posix-functions/iswctype.texi: Mention the new module and the
5727         HP-UX 11.00 problem.
5728
5729 2011-02-06  Bruno Haible  <bruno@clisp.org>
5730
5731         New module 'wctype'.
5732         * modules/wctype: Change to represent the wctype() substitute.
5733         * lib/wctype.in.h (wctype): New declaration.
5734         * lib/wctype.c: New file.
5735         * lib/wctype-impl.h: New file.
5736         * m4/wctype.m4: New file.
5737         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5738         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5739         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5740         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5741         * doc/posix-functions/wctype.texi: Mention the new module and the
5742         HP-UX 11.00 problem.
5743
5744 2011-02-06  Bruno Haible  <bruno@clisp.org>
5745
5746         wctype-h: Ensure wctype_t and wctrans_t are defined.
5747         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5748         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5749         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5750         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5751         HAVE_WCTRANS_T.
5752         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5753
5754 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5755
5756         flock: fix license typo
5757
5758         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5759         omitted.
5760
5761 2011-02-08  Bruno Haible  <bruno@clisp.org>
5762
5763         Split large sed scripts, for HP-UX sed.
5764         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5765         to avoid HP-UX limit of 99 commands, in the near future.
5766         * modules/stdlib (Makefile.am): Likewise.
5767         * modules/unistd (Makefile.am): Likewise.
5768         * modules/wchar (Makefile.am): Likewise.
5769         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5770         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5771         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5772
5773 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5774             Bruno Haible  <bruno@clisp.org>
5775
5776         stdlib: improve random_r modularization
5777         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5778         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5779         you also need the random_r module to get this material right.
5780         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5781         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5782         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5783
5784 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5785
5786         stdlib: don't depend on stdint
5787         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5788         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5789         be independent of whether stdint.h is needed.
5790         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5791         here, instead of ...
5792         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5793         struct random_data should be using the random_r module, not just
5794         the stdlib module (which wouldn't make sense: what package needs
5795         just struct random_data without also needing random_r?).
5796         * modules/stdlib (Depends-on): Remove stdint.
5797
5798         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5799         See the thread rooted at
5800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5801         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5802         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5803         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5804         __VMS)); previously it was always included (via fcntl--.h).
5805         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5806         hand; this is good enough for load averages.  Also, do not use
5807         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5808         flags directly if available and don't bother otherwise.  (Packages
5809         that need the extra reliability should use the modules that define
5810         these flags on older platforms that lack them.)
5811         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5812         fcntl-safer.
5813
5814 2011-02-08  Jim Meyering  <meyering@redhat.com>
5815
5816         di-set.h, ino-map.h: add multiple-inclusion guard
5817         Technically, the guard is required only for ino-map.h, due to its
5818         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5819         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5820         * lib/ino-map.h: Likewise.
5821
5822 2011-02-06  Bruno Haible  <bruno@clisp.org>
5823
5824         iswblank: Ensure declaration on glibc systems.
5825         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5826         * modules/iswblank (Dependencies): Add 'extensions'.
5827         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5828
5829 2011-02-06  Bruno Haible  <bruno@clisp.org>
5830
5831         New module 'iswblank'.
5832         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5833         * modules/iswblank: New file.
5834         * modules/wctype-h (Files): Remove lib/iswblank.c.
5835         (Makefile.am): Substitute GNULIB_ISWBLANK.
5836         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5837         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5838         (gl_WCTYPE_H_DEFAULTS): New macro.
5839         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5840         * modules/iswblank-tests: New file.
5841         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5842         * tests/test-wctype-h.c (main): Remove iswblank tests.
5843         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5844         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5845         of 'wctype-h'.
5846         * NEWS: Mention the change.
5847         * modules/mbchar (Depends-on): Add iswblank.
5848
5849 2011-02-08  Bruno Haible  <bruno@clisp.org>
5850
5851         di-set tests: Refactor.
5852         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5853         unnecessary includes.
5854         (ASSERT): Remove macro.
5855         (main): Make C90 compliant by avoiding variable declaration after
5856         statement.
5857         * modules/di-set-tests (Files): Add tests/macros.h.
5858
5859 2011-02-08  Bruno Haible  <bruno@clisp.org>
5860
5861         ino-map tests: Refactor.
5862         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5863         unnecessary includes.
5864         (ASSERT): Remove macro.
5865         (main): Make C90 compliant by avoiding variable declaration after
5866         statement.
5867         * modules/ino-map-tests (Files): Add tests/macros.h.
5868
5869 2011-02-08  Jim Meyering  <meyering@redhat.com>
5870
5871         di-set: add "const" to a cast
5872         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5873         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5874
5875 2011-02-06  Bruno Haible  <bruno@clisp.org>
5876
5877         Rename module 'wctype' to 'wctype-h'.
5878         * modules/wctype-h: Renamed from modules/wctype.
5879         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5880         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5881         (Files, Depends-on, Makefile.am): Update.
5882         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5883         (Files, Makefile.am): Update.
5884         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5885         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5886         * doc/posix-headers/wctype.texi: Update.
5887         * doc/posix-functions/iswalnum.texi: Update.
5888         * doc/posix-functions/iswalpha.texi: Update.
5889         * doc/posix-functions/iswblank.texi: Update.
5890         * doc/posix-functions/iswcntrl.texi: Update.
5891         * doc/posix-functions/iswdigit.texi: Update.
5892         * doc/posix-functions/iswgraph.texi: Update.
5893         * doc/posix-functions/iswlower.texi: Update.
5894         * doc/posix-functions/iswprint.texi: Update.
5895         * doc/posix-functions/iswpunct.texi: Update.
5896         * doc/posix-functions/iswspace.texi: Update.
5897         * doc/posix-functions/iswupper.texi: Update.
5898         * doc/posix-functions/iswxdigit.texi: Update.
5899         * doc/posix-functions/towlower.texi: Update.
5900         * doc/posix-functions/towupper.texi: Update.
5901         * NEWS: Mention the change.
5902         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5903         * modules/mbchar (Dependencies): Likewise.
5904         * modules/mbswidth (Dependencies): Likewise.
5905         * modules/quotearg (Dependencies): Likewise.
5906         * modules/regex (Dependencies): Likewise.
5907         * modules/wcscasecmp (Dependencies): Likewise.
5908         * modules/wcsncasecmp (Dependencies): Likewise.
5909         * modules/wcwidth (Dependencies): Likewise.
5910
5911 2011-02-06  Bruno Haible  <bruno@clisp.org>
5912
5913         New module 'wcswidth'.
5914         * modules/wcswidth: New file.
5915         * lib/wchar.in.h (wcswidth): New declaration.
5916         * lib/wcswidth.c: New file.
5917         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5918         * m4/wcswidth.m4: New file.
5919         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5920         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5921         REPLACE_WCSWIDTH.
5922         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5923         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5924         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5925         * doc/posix-functions/wcswidth.texi: Mention the new module.
5926
5927 2011-02-06  Bruno Haible  <bruno@clisp.org>
5928
5929         New module 'wcstok'.
5930         * modules/wcstok: New file.
5931         * lib/wchar.in.h (wcstok): New declaration.
5932         * lib/wcstok.c: New file.
5933         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5934         * m4/wcstok.m4: New file.
5935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5938         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5939         * doc/posix-functions/wcstok.texi: Mention the new module.
5940
5941 2011-02-06  Bruno Haible  <bruno@clisp.org>
5942
5943         New module 'wcsstr'.
5944         * modules/wcsstr: New file.
5945         * lib/wchar.in.h (wcsstr): New declaration.
5946         * lib/wcsstr.c: New file.
5947         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5948         * m4/wcsstr.m4: New file.
5949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5952         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5953         * doc/posix-functions/wcsstr.texi: Mention the new module.
5954
5955 2011-02-06  Bruno Haible  <bruno@clisp.org>
5956
5957         New module 'wcspbrk'.
5958         * modules/wcspbrk: New file.
5959         * lib/wchar.in.h (wcspbrk): New declaration.
5960         * lib/wcspbrk.c: New file.
5961         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5962         * m4/wcspbrk.m4: New file.
5963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5965         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5966         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5967         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5968
5969 2011-02-06  Bruno Haible  <bruno@clisp.org>
5970
5971         New module 'wcsspn'.
5972         * modules/wcsspn: New file.
5973         * lib/wchar.in.h (wcsspn): New declaration.
5974         * lib/wcsspn.c: New file.
5975         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5976         * m4/wcsspn.m4: New file.
5977         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5978         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5979         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5980         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5981         * doc/posix-functions/wcsspn.texi: Mention the new module.
5982
5983 2011-02-06  Bruno Haible  <bruno@clisp.org>
5984
5985         New module 'wcscspn'.
5986         * modules/wcscspn: New file.
5987         * lib/wchar.in.h (wcscspn): New declaration.
5988         * lib/wcscspn.c: New file.
5989         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5990         * m4/wcscspn.m4: New file.
5991         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5992         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5993         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5994         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5995         * doc/posix-functions/wcscspn.texi: Mention the new module.
5996
5997 2011-02-06  Bruno Haible  <bruno@clisp.org>
5998
5999         New module 'wcsrchr'.
6000         * modules/wcsrchr: New file.
6001         * lib/wchar.in.h (wcsrchr): New declaration.
6002         * lib/wcsrchr.c: New file.
6003         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
6004         * m4/wcsrchr.m4: New file.
6005         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
6006         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
6007         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
6008         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
6009         * doc/posix-functions/wcsrchr.texi: Mention the new module.
6010
6011 2011-02-06  Bruno Haible  <bruno@clisp.org>
6012
6013         New module 'wcschr'.
6014         * modules/wcschr: New file.
6015         * lib/wchar.in.h (wcschr): New declaration.
6016         * lib/wcschr.c: New file.
6017         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
6018         * m4/wcschr.m4: New file.
6019         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
6020         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
6021         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
6022         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
6023         * doc/posix-functions/wcschr.texi: Mention the new module.
6024
6025 2011-02-06  Bruno Haible  <bruno@clisp.org>
6026
6027         New module 'wcsdup'.
6028         * modules/wcsdup: New file.
6029         * lib/wchar.in.h (wcsdup): New declaration.
6030         * lib/wcsdup.c: New file.
6031         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
6032         * m4/wcsdup.m4: New file.
6033         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
6034         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
6035         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
6036         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
6037         * doc/posix-functions/wcsdup.texi: Mention the new module.
6038
6039 2011-02-06  Bruno Haible  <bruno@clisp.org>
6040
6041         New module 'wcsxfrm'.
6042         * modules/wcsxfrm: New file.
6043         * lib/wchar.in.h (wcsxfrm): New declaration.
6044         * lib/wcsxfrm.c: New file.
6045         * lib/wcsxfrm-impl.h: New file.
6046         * m4/wcsxfrm.m4: New file.
6047         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
6048         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
6049         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
6050         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
6051         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
6052
6053 2011-02-06  Bruno Haible  <bruno@clisp.org>
6054
6055         New module 'wcscoll'.
6056         * modules/wcscoll: New file.
6057         * lib/wchar.in.h (wcscoll): New declaration.
6058         * lib/wcscoll.c: New file.
6059         * lib/wcscoll-impl.h: New file.
6060         * m4/wcscoll.m4: New file.
6061         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
6062         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
6063         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
6064         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
6065         * doc/posix-functions/wcscoll.texi: Mention the new module.
6066
6067 2011-02-06  Bruno Haible  <bruno@clisp.org>
6068
6069         New module 'wcsncasecmp'.
6070         * modules/wcsncasecmp: New file.
6071         * lib/wchar.in.h (wcsncasecmp): New declaration.
6072         * lib/wcsncasecmp.c: New file.
6073         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
6074         * m4/wcsncasecmp.m4: New file.
6075         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
6076         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
6077         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
6078         HAVE_WCSNCASECMP.
6079         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
6080         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
6081
6082 2011-02-06  Bruno Haible  <bruno@clisp.org>
6083
6084         New module 'wcscasecmp'.
6085         * modules/wcscasecmp: New file.
6086         * lib/wchar.in.h (wcscasecmp): New declaration.
6087         * lib/wcscasecmp.c: New file.
6088         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
6089         * m4/wcscasecmp.m4: New file.
6090         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
6091         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
6092         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
6093         HAVE_WCSCASECMP.
6094         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
6095         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
6096
6097 2011-02-05  Bruno Haible  <bruno@clisp.org>
6098
6099         New module 'wcsncmp'.
6100         * modules/wcsncmp: New file.
6101         * lib/wchar.in.h (wcsncmp): New declaration.
6102         * lib/wcsncmp.c: New file.
6103         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
6104         * m4/wcsncmp.m4: New file.
6105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
6106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
6107         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
6108         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
6109         * doc/posix-functions/wcsncmp.texi: Mention the new module.
6110
6111 2011-02-05  Bruno Haible  <bruno@clisp.org>
6112
6113         New module 'wcscmp'.
6114         * modules/wcscmp: New file.
6115         * lib/wchar.in.h (wcscmp): New declaration.
6116         * lib/wcscmp.c: New file.
6117         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
6118         * m4/wcscmp.m4: New file.
6119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
6120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
6121         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
6122         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
6123         * doc/posix-functions/wcscmp.texi: Mention the new module.
6124
6125 2011-02-05  Bruno Haible  <bruno@clisp.org>
6126
6127         New module 'wcsncat'.
6128         * modules/wcsncat: New file.
6129         * lib/wchar.in.h (wcsncat): New declaration.
6130         * lib/wcsncat.c: New file.
6131         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
6132         * m4/wcsncat.m4: New file.
6133         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
6134         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
6135         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
6136         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
6137         * doc/posix-functions/wcsncat.texi: Mention the new module.
6138
6139 2011-02-05  Bruno Haible  <bruno@clisp.org>
6140
6141         New module 'wcscat'.
6142         * modules/wcscat: New file.
6143         * lib/wchar.in.h (wcscat): New declaration.
6144         * lib/wcscat.c: New file.
6145         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
6146         * m4/wcscat.m4: New file.
6147         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
6148         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
6149         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
6150         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
6151         * doc/posix-functions/wcscat.texi: Mention the new module.
6152
6153 2011-02-05  Bruno Haible  <bruno@clisp.org>
6154
6155         New module 'wcpncpy'.
6156         * modules/wcpncpy: New file.
6157         * lib/wchar.in.h (wcpncpy): New declaration.
6158         * lib/wcpncpy.c: New file.
6159         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
6160         * m4/wcpncpy.m4: New file.
6161         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
6162         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
6163         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
6164         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
6165         * doc/posix-functions/wcpncpy.texi: Mention the new module.
6166
6167 2011-02-05  Bruno Haible  <bruno@clisp.org>
6168
6169         New module 'wcsncpy'.
6170         * modules/wcsncpy: New file.
6171         * lib/wchar.in.h (wcsncpy): New declaration.
6172         * lib/wcsncpy.c: New file.
6173         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
6174         * m4/wcsncpy.m4: New file.
6175         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
6176         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
6177         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
6178         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
6179         * doc/posix-functions/wcsncpy.texi: Mention the new module.
6180
6181 2011-02-05  Bruno Haible  <bruno@clisp.org>
6182
6183         New module 'wcpcpy'.
6184         * modules/wcpcpy: New file.
6185         * lib/wchar.in.h (wcpcpy): New declaration.
6186         * lib/wcpcpy.c: New file.
6187         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
6188         * m4/wcpcpy.m4: New file.
6189         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
6190         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
6191         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
6192         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
6193         * doc/posix-functions/wcpcpy.texi: Mention the new module.
6194
6195 2011-02-05  Bruno Haible  <bruno@clisp.org>
6196
6197         New module 'wcscpy'.
6198         * modules/wcscpy: New file.
6199         * lib/wchar.in.h (wcscpy): New declaration.
6200         * lib/wcscpy.c: New file.
6201         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
6202         * m4/wcscpy.m4: New file.
6203         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
6204         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
6205         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
6206         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
6207         * doc/posix-functions/wcscpy.texi: Mention the new module.
6208
6209 2011-02-05  Bruno Haible  <bruno@clisp.org>
6210
6211         New module 'wcsnlen'.
6212         * modules/wcsnlen: New file.
6213         * lib/wchar.in.h (wcsnlen): New declaration.
6214         * lib/wcsnlen.c: New file.
6215         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
6216         * m4/wcsnlen.m4: New file.
6217         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
6218         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
6219         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
6220         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
6221         * doc/posix-functions/wcsnlen.texi: Mention the new module.
6222
6223 2011-02-05  Bruno Haible  <bruno@clisp.org>
6224
6225         New module 'wcslen'.
6226         * modules/wcslen: New file.
6227         * lib/wchar.in.h (wcslen): New declaration.
6228         * lib/wcslen.c: New file.
6229         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
6230         * m4/wcslen.m4: New file.
6231         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
6232         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
6233         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
6234         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
6235         * doc/posix-functions/wcslen.texi: Mention the new module.
6236
6237 2011-02-05  Bruno Haible  <bruno@clisp.org>
6238
6239         New module 'wmemset'.
6240         * modules/wmemset: New file.
6241         * lib/wchar.in.h (wmemset): New declaration.
6242         * lib/wmemset.c: New file.
6243         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
6244         * m4/wmemset.m4: New file.
6245         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
6246         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
6247         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
6248         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
6249         * doc/posix-functions/wmemset.texi: Mention the new module.
6250
6251 2011-02-05  Bruno Haible  <bruno@clisp.org>
6252
6253         New module 'wmemmove'.
6254         * modules/wmemmove: New file.
6255         * lib/wchar.in.h (wmemmove): New declaration.
6256         * lib/wmemmove.c: New file.
6257         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
6258         * m4/wmemmove.m4: New file.
6259         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
6260         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
6261         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
6262         HAVE_WMEMMOVE.
6263         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
6264         * doc/posix-functions/wmemmove.texi: Mention the new module.
6265
6266 2011-02-05  Bruno Haible  <bruno@clisp.org>
6267
6268         New module 'wmemcpy'.
6269         * modules/wmemcpy: New file.
6270         * lib/wchar.in.h (wmemcpy): New declaration.
6271         * lib/wmemcpy.c: New file.
6272         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
6273         * m4/wmemcpy.m4: New file.
6274         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
6275         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
6276         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
6277         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
6278         * doc/posix-functions/wmemcpy.texi: Mention the new module.
6279
6280 2011-02-05  Bruno Haible  <bruno@clisp.org>
6281
6282         New module 'wmemcmp'.
6283         * modules/wmemcmp: New file.
6284         * lib/wchar.in.h (wmemcmp): New declaration.
6285         * lib/wmemcmp.c: New file.
6286         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
6287         * m4/wmemcmp.m4: New file.
6288         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
6289         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
6290         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
6291         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
6292         * doc/posix-functions/wmemcmp.texi: Mention the new module.
6293
6294 2011-02-07  Jim Meyering  <meyering@redhat.com>
6295
6296         di-set, ino-map: new modules, from coreutils
6297         * lib/di-set.c: New file.
6298         * lib/di-set.h: Likewise.
6299         * lib/ino-map.c: Likewise.
6300         * lib/ino-map.h: Likewise.
6301         * modules/di-set: Likewise.
6302         * modules/di-set-tests: Likewise.
6303         * modules/ino-map: Likewise.
6304         * modules/ino-map-tests: Likewise.
6305         * tests/test-di-set.c: Likewise.
6306         * tests/test-ino-map.c: Likewise.
6307
6308 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6309
6310         getloadavg: merge minor changes from Emacs
6311
6312         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
6313         (getloadavg): Use memset, not bzero.
6314
6315         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6316         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6317         clash (bug#86).
6318
6319 2010-11-14  Bruno Haible  <bruno@clisp.org>
6320
6321         Allow multiple gnulib generated replacements to coexist.
6322         * lib/getopt.in.h (struct option): Avoid identical redefinition.
6323         * lib/inttypes.in.h (imaxdiv_t): Likewise.
6324         * lib/langinfo.in.h (nl_item): Likewise.
6325         * lib/math.in.h (_NaN, NAN): Likewise.
6326         * lib/netdb.in.h (struct addrinfo): Likewise.
6327         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
6328         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
6329         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
6330         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
6331         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
6332         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
6333         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
6334         pthread_mutexattr_init, pthread_mutexattr_settype,
6335         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
6336         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
6337         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
6338         pthread_spin_trylock, pthread_spin_unlock): Likewise.
6339         * lib/sched.in.h (struct sched_param): Likewise.
6340         * lib/se-selinux.in.h (security_class_t, security_context_t,
6341         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
6342         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
6343         lsetfilecon, fsetfilecon, security_check_context,
6344         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
6345         Likewise.
6346         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
6347         Likewise.
6348         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
6349         _gl_function_taking_int_returning_void_t, union sigval,
6350         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
6351         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
6352         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6353         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
6354         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
6355         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
6356         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
6357         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
6358         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
6359         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
6360         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
6361         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
6362         socklen_t, rpl_fd_isset): Likewise.
6363         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
6364         * lib/sys_time.in.h (struct timeval): Likewise.
6365         * lib/sys_times.in.h (struct tms): Likewise.
6366         * lib/sys_utsname.in.h (struct utsname):
6367         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
6368         * lib/unistd.in.h (getpagesize): Likewise.
6369         * lib/wchar.in.h (mbstate_t): Likewise.
6370         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6371         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
6372         towlower, towupper): Likewise.
6373         Reported by Sam Steingold <sds@gnu.org>.
6374
6375 2011-02-05  Eric Blake  <eblake@redhat.com>
6376
6377         unsetenv: work around Haiku issues
6378         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
6379         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
6380
6381 2010-12-30  Bruce Korb  <bkorb@gnu.org>
6382
6383         libposix: avoid calling error() within libposix
6384         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
6385         is defined.
6386
6387 2011-02-05  Eric Blake  <eblake@redhat.com>
6388
6389         strerror_r-posix: port to cygwin
6390         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
6391         implementation.
6392         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
6393         * tests/test-strerror_r.c (main): Fix test.
6394         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6395         issue.
6396
6397 2011-02-05  Bruno Haible  <bruno@clisp.org>
6398
6399         New module 'wmemchr'.
6400         * modules/wmemchr: New file.
6401         * lib/wchar.in.h (wmemchr): New declaration.
6402         * lib/wmemchr.c: New file.
6403         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
6404         * m4/wmemchr.m4: New file.
6405         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
6406         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
6407         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
6408         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
6409         * doc/posix-functions/wmemchr.texi: Mention the new module.
6410
6411 2011-02-04  Eric Blake  <eblake@redhat.com>
6412
6413         fdopendir: detect FreeBSD bug
6414         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
6415         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
6416
6417 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6418
6419         stdbool: do not define HAVE_STDBOOL_H
6420         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
6421         AC_HEADER_STDBOOL.  All uses changed.  Do not define
6422         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
6423         imported from the latest Autoconf git.  It was motivated by Emacs,
6424         which uses gnulib but does not need HAVE_STDBOOL_H.
6425
6426 2011-02-04  Bruno Haible  <bruno@clisp.org>
6427
6428         wcsnrtombs: Prepare for new module wwcsnrtombs.
6429         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
6430         * lib/wcsnrtombs.c: Include it.
6431         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
6432
6433         wcsrtombs: Prepare for new module wwcsrtombs.
6434         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
6435         * lib/wcsrtombs.c: Include it.
6436         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
6437
6438         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
6439         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
6440         * lib/mbsnrtowcs.c: Include it.
6441         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
6442
6443         mbsrtowcs: Prepare for new module mbsrtowwcs.
6444         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
6445         * lib/mbsrtowcs.c: Include it.
6446         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
6447
6448 2011-02-04  Bruno Haible  <bruno@clisp.org>
6449
6450         vasnprintf: Reduce use of malloc for small format strings.
6451         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
6452         (arguments): Add room for the first 7 arguments.
6453         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
6454         (char_directives, u8_directives, u16_directives, u32_directives): Add
6455         room for the first 7 directives.
6456         * lib/printf-parse.c: Include <string.h>.
6457         (PRINTF_PARSE): Change memory handling code so that it uses the first
6458         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
6459         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
6460         Reported by Pádraig Brady <P@draigbrady.com>.
6461
6462 2011-01-31  Eric Blake  <eblake@redhat.com>
6463
6464         dup2: work around Haiku bug
6465         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
6466         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
6467         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6468         * tests/test-dup2.c (main): Enhance test.
6469
6470 2011-01-31  Simon Josefsson  <simon@josefsson.org>
6471
6472         doc: off_t is not available in eglibc 2.11.2 stdio.h.
6473         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
6474         declared by eglibc 2.11.2.
6475         * lib/stdio.in.h: Likewise.
6476
6477 2011-01-31  Eric Blake  <eblake@redhat.com>
6478
6479         ignore-value: add missing test dependency
6480         * tests/test-ignore-value.c: Revert previous change; stdio.h
6481         provides off_t.
6482         * modules/ignore-value-tests (Depends-on): Add missing dependency.
6483
6484 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6485
6486         mktime: clarify long_int width checking
6487         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
6488         the top level, to make it clearer that the assumption about
6489         long_int width is being checked.  See
6490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
6491
6492 2011-01-30  Simon Josefsson  <simon@josefsson.org>
6493
6494         ignore-value: Fix self-test.
6495         * tests/test-ignore-value.c: Include sys/types.h for off_t.
6496
6497 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
6498
6499         TYPE_MAXIMUM: avoid theoretically undefined behavior
6500         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
6501         negative number, which the C Standard says has undefined behavior.
6502         In practice this is not a problem, but might as well do it by the book.
6503         Reported by Rich Felker and Eric Blake; see
6504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
6505         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
6506         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6507         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6508         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
6509         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6510         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
6511
6512         mktime: #undef mktime before #defining it
6513         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
6514
6515         mktime: systematically normalize tm_isdst comparisons
6516         * lib/mktime.c (isdst_differ): New function.
6517         (__mktime_internal): Use it systematically for all isdst comparisons.
6518         This completes the fix for libc BZ #6723, and removes the need for
6519         normalizing tm_isdst.  See
6520         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
6521         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
6522
6523         mktime: fix some integer overflow issues and sidestep the rest
6524
6525         This was prompted by a bug report by Benjamin Lindner for MinGW
6526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
6527         His bug is due to signed integer overflow (0 - INT_MIN), and I
6528         I scanned through mktime.c looking for other integer overflow
6529         problems, fixing all the bugs I found.
6530
6531         Although the C Standard says the resulting code is still not safe
6532         in the presence of integer overflow, in practice it should be good
6533         enough for all real-world two's-complement implementations, except
6534         for debugging environments that deliberately trap on integer
6535         overflow (e.g., gcc -ftrapv).
6536
6537         * lib/mktime.c (WRAPV): New macro.
6538         (SHR): Also check that long_int and time_t shift right in the
6539         usual way, before using the fast-but-unportable method.
6540         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
6541         used.  The code already assumed two's complement, so there's
6542         no need to test for alternatives.  All uses removed.
6543         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
6544         the C standard.  Problem reported by Rich Felker in
6545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
6546         (twos_complement_arithmetic): Also check long_int and time_t.
6547         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
6548         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
6549         (__mktime_internal): Avoid integer overflow with unary subtraction
6550         in two instances where -1 - X is an adequate replacement for -X,
6551         since the calculations are approximate.
6552
6553 2011-01-29  Eric Blake  <eblake@redhat.com>
6554
6555         mktime: avoid infinite loop
6556         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
6557         type; behavior is still undefined but portable to all known targets.
6558         Reported by Rich Felker.
6559
6560 2011-01-29  Simon Josefsson  <simon@josefsson.org>
6561
6562         rename, unlink, same-inode: Relicense.
6563         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
6564         * modules/unlink (License): Likewise.
6565         * modules/same-inode (License): Likewise.
6566
6567 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6568
6569         mktime: avoid problems on NetBSD 5 / i386
6570         * lib/mktime.c (long_int): New type.  This works around a problem
6571         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
6572         but time_t is 64 bits, and where I expect the existing code is
6573         wrong in some cases.
6574         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
6575         (ydhms_diff): Bring back the compile-time check for wide-enough
6576         year and yday.
6577
6578         mktime: fix misspelling in comment
6579         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
6580         This merges all recent glibc changes of importance.
6581
6582 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6583
6584         move-if-change: cope with concurrent mv of identical file.
6585         * build-aux/move-if-change (CMPPROG): Accept environment
6586         variable as an override for `cmp'.
6587         (usage): Document CMPPROG.
6588         Adjust comparison to drop stdout.  Cope with failure of mv if
6589         the target file exists and is identical to the source, for
6590         parallel builds.
6591         Report from H.J. Lu against binutils in PR binutils/12283.
6592
6593 2011-01-28  Bruce Korb  <bkorb@gnu.org>
6594
6595         * users.txt: Mention sharutils.
6596
6597 2011-01-28  Simon Josefsson  <simon@josefsson.org>
6598
6599         * users.txt: Mention OATH Toolkit.
6600
6601 2011-01-27  Bruno Haible  <bruno@clisp.org>
6602
6603         Prepare for supporting FreeBSD 10.
6604         * build-aux/config.libpath: Remove handling of freebsd1*.
6605
6606 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
6607
6608         Prepare for supporting FreeBSD 10.
6609         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
6610         match FreeBSD 10.0.
6611
6612 2011-01-27  Bruno Haible  <bruno@clisp.org>
6613
6614         vma-iter, get-rusage-as: Add OpenBSD support.
6615         * modules/vma-iter (configure.ac): Test for mquery.
6616         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
6617         * lib/vma-iter.c: Include <sys/mman.h>.
6618         (vma_iterate): Add an implementation based on mquery().
6619         * lib/resource-ext.h (get_rusage_as): Update comments.
6620         * lib/get-rusage-as.c: Likewise.
6621         * lib/get-rusage-data.c: Likewise.
6622
6623 2011-01-26  Karl Berry  <karl@gnu.org>
6624
6625         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
6626         variables to make it easier to override the makeinfo program used.
6627
6628 2011-01-26  Eric Blake  <eblake@redhat.com>
6629
6630         fcntl: work around Haiku F_DUPFD bugs
6631         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
6632         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
6633         cloexec bit on duplication.
6634         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
6635
6636 2011-01-26  Bruno Haible  <bruno@clisp.org>
6637
6638         Enable memory leak tests on AIX.
6639         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
6640         * tests/test-fprintf-posix3.c (main): Likewise.
6641
6642 2011-01-26  Bruno Haible  <bruno@clisp.org>
6643
6644         Tests for module 'get-rusage-data'.
6645         * modules/get-rusage-data-tests: New file.
6646         * tests/test-get-rusage-data.c: New file.
6647
6648         New module 'get-rusage-data'.
6649         * lib/resource-ext.h (get_rusage_data): New declaration.
6650         * lib/get-rusage-data.c: New file.
6651         * modules/get-rusage-data: New file.
6652
6653 2011-01-25  Bruno Haible  <bruno@clisp.org>
6654
6655         get-rusage-as: Allow for easier testing.
6656         * lib/resource-ext.h (get_rusage_as): Add comment.
6657         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6658         (main): New function for interactive testing.
6659
6660 2011-01-25  Bruno Haible  <bruno@clisp.org>
6661
6662         vma-iter: Treat Haiku like BeOS.
6663         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6664         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6665
6666 2011-01-25  Eric Blake  <eblake@redhat.com>
6667
6668         c-stack: fix regression on cygwin when libsigsegv is present
6669         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6670
6671 2011-01-24  Bruno Haible  <bruno@clisp.org>
6672
6673         vma-iter: Avoid empty intervals.
6674         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6675         on an empty interval.
6676
6677 2011-01-24  Jim Meyering  <meyering@redhat.com>
6678
6679         u64: remove unnecessary #include
6680         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6681
6682 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6683
6684         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6685         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6686
6687 2011-01-23  Bruno Haible  <bruno@clisp.org>
6688
6689         New module 'vma-iter'.
6690         * lib/vma-iter.h: New file.
6691         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6692         * modules/vma-iter: New file.
6693         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6694         for get_rusage_as_via_iterator.
6695         (vma_iterate_callback): New function.
6696         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6697         * modules/get-rusage-as (Depends-on): Add vma-iter.
6698
6699 2011-01-23  Bruno Haible  <bruno@clisp.org>
6700
6701         uninorm: Tweak includes.
6702         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6703         Reported by Jim Meyering.
6704
6705 2011-01-23  Bruno Haible  <bruno@clisp.org>
6706
6707         get-rusage-as: Improve on NetBSD.
6708         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6709         /proc, like on FreeBSD.
6710
6711 2011-01-23  Jim Meyering  <meyering@redhat.com>
6712
6713         xreadlink.h: remove unnecessary #include
6714         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6715
6716         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6717         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6718
6719 2011-01-23  Bruno Haible  <bruno@clisp.org>
6720
6721         get-rusage-as: Fix bug.
6722         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6723         original limit when aborting the first loop.
6724
6725 2011-01-23  Bruno Haible  <bruno@clisp.org>
6726
6727         wctype: Ensure valid C syntax.
6728         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6729         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6730
6731 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6732
6733         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6734         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6735         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6736         as they are needed only for configure's test case.
6737         This removes two unnecessary symbols from config.h.
6738
6739         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6740         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6741         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6742         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6743         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6744         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6745         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6746         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6747         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6748         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6749         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6750         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6751         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6752         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6753         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6754         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6755         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6756         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6757
6758 2011-01-21  Eric Blake  <eblake@redhat.com>
6759
6760         maintainer-makefile: work with older git for submodule check
6761         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6762         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6763         Reported by Matthias Bolte.
6764
6765         bootstrap: minor portability fixes
6766         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6767         (usage): Omit leading capital and trailing . on help phrases, per
6768         GNU Coding Standards.
6769         (check_versions, top level): Prefix messages with script name.
6770
6771 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6772
6773         bootstrap: support --no-git option
6774         * build-aux/bootstrap: Add --no-git option, to be used when
6775         --gnulib-srcdir points to the exact desired checkout.
6776
6777 2011-01-21  Eric Blake  <eblake@redhat.com>
6778
6779         strerror_r-posix: work with glibc 2.13
6780         * lib/strerror_r.c (strerror_r): Fix return type.
6781
6782 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6783             Bruno Haible  <bruno@clisp.org>
6784
6785         uN_strstr: New unit tests.
6786         * modules/unistr/u8-strstr-tests: New file.
6787         * modules/unistr/u16-strstr-tests: New file.
6788         * modules/unistr/u32-strstr-tests: New file.
6789         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6790         * tests/unistr/test-u8-strstr.c: New file.
6791         * tests/unistr/test-u16-strstr.c: New file.
6792         * tests/unistr/test-u32-strstr.c: New file.
6793
6794 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6795             Bruno Haible  <bruno@clisp.org>
6796
6797         Make uN_strstr functions O(n) worst-case.
6798         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6799         16-bit and 32-bit unit cases, use the unibyte algorithm from
6800         lib/mbsstr.c.
6801         * lib/unistr/u8-strstr.c: Include <string.h>.
6802         (UNIT_IS_UINT8_T): New macro.
6803         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6804         (U_STRLEN, U_STRNLEN): New macros.
6805         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6806         (U_STRLEN, U_STRNLEN): New macros.
6807         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6808         (configure.ac): Update required libunistring version.
6809         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6810         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6811         malloca.
6812         (configure.ac): Update required libunistring version.
6813         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6814         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6815         malloca.
6816         (configure.ac): Update required libunistring version.
6817
6818 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6819             Bruno Haible  <bruno@clisp.org>
6820
6821         Prepare for faster uN_strstr functions.
6822         * lib/str-kmp.h: Support definable UNITs.
6823         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6824         needle_len argument.
6825         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6826         * lib/mbscasestr.c (mbscasestr): Likewise.
6827
6828 2011-01-21  Pádraig Brady <P@draigBrady.com>
6829
6830         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6831         * tests/test-malloca.c (main): Unset the environment variable
6832         to greatly speed up the test.
6833         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6834         * modules/malloca-tests: Depend on unsetenv.
6835
6836 2011-01-21  Pádraig Brady <P@draigBrady.com>
6837
6838         ignore-value: remove stdint dependency
6839         * lib/ignore-value.h: Remove <stdint.h>
6840         * modules/ignore-value: Remove stdint dependency.
6841
6842 2011-01-21  Jim Meyering  <meyering@redhat.com>
6843
6844         maint.mk: adjust variable name to be consistent with other gl_ vars
6845         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6846         to be lower case.
6847
6848 2011-01-20  Jim Meyering  <meyering@redhat.com>
6849
6850         maint.mk: make "check" depend on public-submodule-commit by default
6851         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6852
6853 2011-01-20  Bruno Haible  <bruno@clisp.org>
6854
6855         mbfile, mbiter: Complete change from 2008-12-21.
6856         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6857         * m4/mbiter.m4 (gl_MBITER): Likewise.
6858
6859 2011-01-20  Jim Meyering  <meyering@redhat.com>
6860
6861         init.sh: insert space between each function name and "()"
6862         * tests/init.sh: Make it a little easier to see that a function's
6863         name is "warn_", and not "warn" when looking at the first part of
6864         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6865
6866 2011-01-20  Jim Meyering  <meyering@redhat.com>
6867
6868         mountlist: clean up code formatting
6869         * lib/mountlist.c (read_file_system_list): Split a long line,
6870         correct bracing style, use NULL in place of "(struct statfs *)0",
6871         don't parenthesize return value, add spaces around "=" and after
6872         ";-in-for-stmt".
6873
6874 2011-01-14  Markus Duft <mduft@gentoo.org>
6875
6876         mountlist: add support for Interix
6877         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6878         Apply statvfs to all entries of /dev/fs.
6879         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6880         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6881
6882 2011-01-20  Jim Meyering  <meyering@redhat.com>
6883
6884         maint.mk: improve the public-submodule-commit rule
6885         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6886         to suppress printing of its commands... unless V=1.
6887         Add git submodule's --quiet option to suppress printing of e.g.,
6888         "Entering gnulib" output.
6889         "cd" into $(srcdir) before running git submodule.
6890
6891 2011-01-20  Bruno Haible  <bruno@clisp.org>
6892
6893         include_next: Fix bug introduced on 2011-01-18.
6894         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6895         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6896         ac_cv_header_... variable if the second argument is not 'check'.
6897         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6898         gl_NEXT_HEADERS_INTERNAL.
6899
6900 2011-01-20  Bruno Haible  <bruno@clisp.org>
6901
6902         Allow the user to avoid the GNULIB_TEST_* macros.
6903         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6904         Suggested by Paul Eggert.
6905
6906 2011-01-14  Jim Meyering  <meyering@redhat.com>
6907
6908         bootstrap: avoid failure when there is no .gitmodules file
6909         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6910         has been assigned to, even when its value is the empty string.
6911         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6912         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6913         Reported by John W. Eaton <jwe@gnu.org>.
6914
6915 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6916
6917         assume <ctype.h>, ..., <time.h> exist
6918         For years gnulib has been assuming the existence of the headers
6919         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6920         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6921         them, since they don't appear to be needed.
6922         * README (Portability guidelines): Document this.
6923         * lib/flock.c: Assume <fcntl.h> exists.
6924         * lib/regex_internal.h: Assume <locale.h> exists.
6925         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6926         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6927         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6928         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6929         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6930         * m4/regex.m4 (gl_REGEX): Likewise.
6931         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6932         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6933         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6934         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6935         * tests/test-argp.c: Likewise.
6936         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6937
6938         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6939         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6940         AA_APPLE_UNIVERSAL_BUILD.  See
6941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6942         * NEWS: Document this.
6943
6944 2011-01-19  Eric Blake  <eblake@redhat.com>
6945
6946         c-stack: assume stack overflow if SA_SIGINFO unsupported
6947         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6948         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6949         sigaction will work.
6950         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6951         behavior match Linux.
6952         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6953
6954         stdbool-tests: accomodate Haiku
6955         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6956
6957         binary-io: fix O_TEXT on Haiku
6958         * modules/binary-io (Depends-on): Add fcntl-h.
6959         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6960         than blindly undefining O_TEXT.
6961         Reported by Scott McCreary.
6962
6963 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6964
6965         include_next: do not check for standard headers like stddef.h
6966
6967         I found this problem when modifying Emacs to use gnulib.
6968         I noticed that it added HAVE_STDDEF_H to config.h, even though
6969         gnulib always assumes <stddef.h> exists as per README and this
6970         symbol is unnecessary.
6971         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6972         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6973         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6974         faster for headers like stddef.h that are known to exist.
6975         (gl_CHECK_NEXT_HEADERS): Use it.
6976         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6977         rather than gl_CHECK_NEXT_HEADERS.
6978         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6979         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6980
6981 2011-01-18  Eric Blake  <eblake@redhat.com>
6982
6983         ansi-c++-opt: skip C++ dependency style if C++ is unused
6984         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6985         tests when we know C++ compilation is not desired.
6986         Reported by Scott McCreary.
6987
6988 2011-01-18  Bruno Haible  <bruno@clisp.org>
6989
6990         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6991         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6992         (main): Perform test also when getrlimit and setrlimit don't exist or
6993         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6994         limiting the address space size using setrlimit, compare the address
6995         space size before and after the the test.
6996         * tests/test-dprintf-posix2.c: Likewise.
6997         * tests/test-fprintf-posix3.sh: Update skip messages.
6998         * tests/test-dprintf-posix2.sh: Likewise.
6999         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
7000         * modules/dprintf-posix-tests (Depends-on): Likewise.
7001         Reported by Bruce Korb <bkorb@gnu.org> and
7002         Gary V. Vaughan <gary@gnu.org>.
7003
7004 2011-01-18  Bruno Haible  <bruno@clisp.org>
7005
7006         get-rusage-as: Improvement for Cygwin.
7007         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
7008         areas that are merely reserved.
7009
7010 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7011
7012         strftime: remove dependencies on multibyte modules
7013
7014         strftime depended on mbrlen, mbsinit, and wchar, but these modules
7015         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
7016         only if __osf__ is defined, and I suspect OSF doesn't need these
7017         other modules.  If my guess is wrong, we'll need to come up with a
7018         variant of strftime that doesn't need the multibyte modules.
7019
7020         I discovered this problem when attempting modify Emacs to use the
7021         strftime module.  With the previous gnulib, this caused Emacs to
7022         need 31 new files, ranging from lib/config.charset to
7023         m4/wint_t.m4.  This was overkill and I expect would be offputting
7024         to the Emacs maintainers.  After this change, only 6 new files are
7025         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
7026         stdbool.m4, and tm_gmtoff.m4.
7027
7028         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
7029         Suggested by Bruno Haible in
7030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
7031         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
7032         and do not check for wchar.h.
7033         * modules/strftime (Files): Remove m4/mbstate_t.m4.
7034         (Depends-on): Remove mbrlen, mbsinit, wchar.
7035
7036 2011-01-18  Bruno Haible  <bruno@clisp.org>
7037
7038         Tests for module 'get-rusage-as'.
7039         * modules/get-rusage-as-tests: New file.
7040         * tests/test-get-rusage-as.c: New file.
7041
7042         New module 'get-rusage-as'.
7043         * modules/get-rusage-as: New file.
7044         * lib/resource-ext.h: New file.
7045         * lib/get-rusage-as.c: New file.
7046
7047 2011-01-17  Eric Blake  <eblake@redhat.com>
7048
7049         sigaction: relax license from LGPLv3+ to LGPLv2+
7050         * modules/sigaction (License): Relax to LGPLv2+.
7051
7052 2011-01-14  Bruno Haible  <bruno@clisp.org>
7053
7054         filemode: Make function declarations usable in C++ mode.
7055         * lib/filemode.h: Enclose function declarations in extern "C" block.
7056         Reported by John W. Eaton <jwe@gnu.org>.
7057
7058 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
7059
7060         save-cwd: no longer include "xgetcwd.h"
7061         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
7062         This avoids a compilation failure in projects that use save-cwd
7063         without also using the xgetcwd module.
7064
7065 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7066
7067         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
7068         This is so that a program like Emacs, which needs only dtoastr,
7069         does not have to bother with distributing and compiling ftoastr
7070         and ldtoastr.
7071         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
7072         * modules/dtoastr, modules/ldtoastr: New files.
7073         * modules/ftoastr: Now works just for 'float'.
7074         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
7075         (Makefile.am): Remove ftoastr.h (not needed and no effect),
7076         dtoastr.c, ldtoastr.c.
7077
7078 2011-01-11  Jim Meyering  <meyering@redhat.com>
7079
7080         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
7081         There is no need to work around the lack of the fchdir function,
7082         since gnulib can now provide a replacement when required.
7083         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
7084         * modules/save-cwd (Depends-on): Add fchdir.
7085
7086 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7087
7088         openat, save-cwd: avoid xmalloc
7089
7090         This removes a direct (but undocumented) dependency of openat on
7091         xalloc, along with an indirect dependency via save-cwd.  It also
7092         removes a dependency of save-cwd on xgetcwd, and thereby
7093         indirectly on xalloc.  This change causes the openat substitute
7094         to fall back on save_cwd when memory is tight, and for save_cwd to
7095         fail instead of dying when memory is tight, but that's good enough.
7096         Problem and initial idea for fix reported by Bastien Roucaries in
7097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
7098
7099         * lib/openat-proc.c: Include stdlib.h (for malloc), not
7100         xalloc.h (for xmalloc).
7101         (openat_proc_name): Use malloc, not xmalloc.
7102         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
7103         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
7104
7105         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
7106         This avoids heap allocation for file names whose lengths are in
7107         the range 512..1023, with the upper bound increasing to at most
7108         4031 depending on the platform's PATH_MAX.  (We do not want
7109         pathmax.h here as it might supply a non-constant PATH_MAX.)
7110         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
7111         Perhaps they should be moved to malloca.h?
7112         (OPENAT_BUFFER_SIZE): Use them.
7113
7114 2011-01-10  Bruno Haible  <bruno@clisp.org>
7115
7116         doc: Update users.txt.
7117         * users.txt: Add recutils.
7118
7119 2011-01-09  Karl Berry  <karl@gnu.org>
7120
7121         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
7122
7123         * doc/configmake.texi: New file.
7124         * doc/gnulib.texi: Include it.
7125         * modules/configmake: Move documentation from here.
7126
7127 2011-01-09  Bruno Haible  <bruno@clisp.org>
7128
7129         Update to Unicode 6.0.0.
7130         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
7131         (get_lbp): Update for Unicode 6.0.0.
7132         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
7133         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
7134         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
7135         U+11001, U+11038..U+11046. Remove U+06DE.
7136         (uc_width): Fix bounds of planes.
7137         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7138         lib/uniwidth/width.c.
7139         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
7140         trailing whitespace removed.
7141         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
7142         without comments, but with the original copyright notice.
7143         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
7144         * lib/unicase/ignorable.h: Likewise.
7145         * lib/unicase/tocasefold.h: Likewise.
7146         * lib/unicase/tolower.h: Likewise.
7147         * lib/unicase/totitle.h: Likewise.
7148         * lib/unicase/toupper.h: Likewise.
7149         * lib/unictype/bidi_of.h: Likewise.
7150         * lib/unictype/blocks.h: Likewise.
7151         * lib/unictype/categ_C.h: Likewise.
7152         * lib/unictype/categ_Cn.h: Likewise.
7153         * lib/unictype/categ_L.h: Likewise.
7154         * lib/unictype/categ_Ll.h: Likewise.
7155         * lib/unictype/categ_Lm.h: Likewise.
7156         * lib/unictype/categ_Lo.h: Likewise.
7157         * lib/unictype/categ_Lu.h: Likewise.
7158         * lib/unictype/categ_M.h: Likewise.
7159         * lib/unictype/categ_Mc.h: Likewise.
7160         * lib/unictype/categ_Me.h: Likewise.
7161         * lib/unictype/categ_Mn.h: Likewise.
7162         * lib/unictype/categ_N.h: Likewise.
7163         * lib/unictype/categ_Nd.h: Likewise.
7164         * lib/unictype/categ_No.h: Likewise.
7165         * lib/unictype/categ_P.h: Likewise.
7166         * lib/unictype/categ_Po.h: Likewise.
7167         * lib/unictype/categ_S.h: Likewise.
7168         * lib/unictype/categ_Sc.h: Likewise.
7169         * lib/unictype/categ_Sk.h: Likewise.
7170         * lib/unictype/categ_Sm.h: Likewise.
7171         * lib/unictype/categ_So.h: Likewise.
7172         * lib/unictype/categ_of.h: Likewise.
7173         * lib/unictype/combining.h: Likewise.
7174         * lib/unictype/ctype_alnum.h: Likewise.
7175         * lib/unictype/ctype_alpha.h: Likewise.
7176         * lib/unictype/ctype_graph.h: Likewise.
7177         * lib/unictype/ctype_lower.h: Likewise.
7178         * lib/unictype/ctype_print.h: Likewise.
7179         * lib/unictype/ctype_punct.h: Likewise.
7180         * lib/unictype/ctype_upper.h: Likewise.
7181         * lib/unictype/decdigit.h: Likewise.
7182         * lib/unictype/digit.h: Likewise.
7183         * lib/unictype/numeric.h: Likewise.
7184         * lib/unictype/pr_alphabetic.h: Likewise.
7185         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7186         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7187         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7188         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7189         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7190         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7191         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7192         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7193         * lib/unictype/pr_case_ignorable.h: Likewise.
7194         * lib/unictype/pr_cased.h: Likewise.
7195         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
7196         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
7197         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
7198         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
7199         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
7200         * lib/unictype/pr_combining.h: Likewise.
7201         * lib/unictype/pr_composite.h: Likewise.
7202         * lib/unictype/pr_currency_symbol.h: Likewise.
7203         * lib/unictype/pr_decimal_digit.h: Likewise.
7204         * lib/unictype/pr_deprecated.h: Likewise.
7205         * lib/unictype/pr_format_control.h: Likewise.
7206         * lib/unictype/pr_grapheme_base.h: Likewise.
7207         * lib/unictype/pr_grapheme_extend.h: Likewise.
7208         * lib/unictype/pr_grapheme_link.h: Likewise.
7209         * lib/unictype/pr_id_continue.h: Likewise.
7210         * lib/unictype/pr_id_start.h: Likewise.
7211         * lib/unictype/pr_ideographic.h: Likewise.
7212         * lib/unictype/pr_lowercase.h: Likewise.
7213         * lib/unictype/pr_math.h: Likewise.
7214         * lib/unictype/pr_numeric.h: Likewise.
7215         * lib/unictype/pr_other_alphabetic.h: Likewise.
7216         * lib/unictype/pr_other_id_continue.h: Likewise.
7217         * lib/unictype/pr_other_math.h: Likewise.
7218         * lib/unictype/pr_punctuation.h: Likewise.
7219         * lib/unictype/pr_sentence_terminal.h: Likewise.
7220         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7221         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7222         * lib/unictype/pr_unified_ideograph.h: Likewise.
7223         * lib/unictype/pr_uppercase.h: Likewise.
7224         * lib/unictype/pr_xid_continue.h: Likewise.
7225         * lib/unictype/pr_xid_start.h: Likewise.
7226         * lib/unictype/scripts.h: Likewise.
7227         * lib/unictype/scripts_byname.gperf: Likewise.
7228         * lib/unictype/sy_java_ident.h: Likewise.
7229         * lib/unigbrk/gbrkprop.h: Likewise.
7230         * lib/unilbrk/lbrkprop1.h: Likewise.
7231         * lib/unilbrk/lbrkprop2.h: Likewise.
7232         * lib/uninorm/decomposition-table2.h: Likewise.
7233         * lib/uniwbrk/wbrkprop.h: Likewise.
7234         * tests/unicase/test-cased.c: Likewise.
7235         * tests/unicase/test-ignorable.c: Likewise.
7236         * tests/unicase/test-uc_tolower.c: Likewise.
7237         * tests/unicase/test-uc_totitle.c: Likewise.
7238         * tests/unicase/test-uc_toupper.c: Likewise.
7239         * tests/unictype/test-categ_C.c: Likewise.
7240         * tests/unictype/test-categ_Cn.c: Likewise.
7241         * tests/unictype/test-categ_L.c: Likewise.
7242         * tests/unictype/test-categ_Ll.c: Likewise.
7243         * tests/unictype/test-categ_Lm.c: Likewise.
7244         * tests/unictype/test-categ_Lo.c: Likewise.
7245         * tests/unictype/test-categ_Lu.c: Likewise.
7246         * tests/unictype/test-categ_M.c: Likewise.
7247         * tests/unictype/test-categ_Mc.c: Likewise.
7248         * tests/unictype/test-categ_Me.c: Likewise.
7249         * tests/unictype/test-categ_Mn.c: Likewise.
7250         * tests/unictype/test-categ_N.c: Likewise.
7251         * tests/unictype/test-categ_Nd.c: Likewise.
7252         * tests/unictype/test-categ_No.c: Likewise.
7253         * tests/unictype/test-categ_P.c: Likewise.
7254         * tests/unictype/test-categ_Po.c: Likewise.
7255         * tests/unictype/test-categ_S.c: Likewise.
7256         * tests/unictype/test-categ_Sc.c: Likewise.
7257         * tests/unictype/test-categ_Sk.c: Likewise.
7258         * tests/unictype/test-categ_Sm.c: Likewise.
7259         * tests/unictype/test-categ_So.c: Likewise.
7260         * tests/unictype/test-ctype_alnum.c: Likewise.
7261         * tests/unictype/test-ctype_alpha.c: Likewise.
7262         * tests/unictype/test-ctype_graph.c: Likewise.
7263         * tests/unictype/test-ctype_lower.c: Likewise.
7264         * tests/unictype/test-ctype_print.c: Likewise.
7265         * tests/unictype/test-ctype_punct.c: Likewise.
7266         * tests/unictype/test-ctype_upper.c: Likewise.
7267         * tests/unictype/test-decdigit.h: Likewise.
7268         * tests/unictype/test-digit.h: Likewise.
7269         * tests/unictype/test-numeric.h: Likewise.
7270         * tests/unictype/test-pr_alphabetic.c: Likewise.
7271         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7272         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7273         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7274         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7275         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7276         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7277         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7278         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7279         * tests/unictype/test-pr_case_ignorable.c: Likewise.
7280         * tests/unictype/test-pr_cased.c: Likewise.
7281         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
7282         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
7283         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
7284         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
7285         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
7286         * tests/unictype/test-pr_combining.c: Likewise.
7287         * tests/unictype/test-pr_composite.c: Likewise.
7288         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7289         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7290         * tests/unictype/test-pr_deprecated.c: Likewise.
7291         * tests/unictype/test-pr_format_control.c: Likewise.
7292         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7293         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7294         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7295         * tests/unictype/test-pr_id_continue.c: Likewise.
7296         * tests/unictype/test-pr_id_start.c: Likewise.
7297         * tests/unictype/test-pr_ideographic.c: Likewise.
7298         * tests/unictype/test-pr_lowercase.c: Likewise.
7299         * tests/unictype/test-pr_math.c: Likewise.
7300         * tests/unictype/test-pr_numeric.c: Likewise.
7301         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7302         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7303         * tests/unictype/test-pr_other_math.c: Likewise.
7304         * tests/unictype/test-pr_punctuation.c: Likewise.
7305         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7306         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7307         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7308         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7309         * tests/unictype/test-pr_uppercase.c: Likewise.
7310         * tests/unictype/test-pr_xid_continue.c: Likewise.
7311         * tests/unictype/test-pr_xid_start.c: Likewise.
7312         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7313         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7314         changes.
7315         * lib/unictype/categ_Cc.h: Likewise.
7316         * lib/unictype/categ_Cf.h: Likewise.
7317         * lib/unictype/categ_Co.h: Likewise.
7318         * lib/unictype/categ_Cs.h: Likewise.
7319         * lib/unictype/categ_Lt.h: Likewise.
7320         * lib/unictype/categ_Nl.h: Likewise.
7321         * lib/unictype/categ_Pc.h: Likewise.
7322         * lib/unictype/categ_Pd.h: Likewise.
7323         * lib/unictype/categ_Pe.h: Likewise.
7324         * lib/unictype/categ_Pf.h: Likewise.
7325         * lib/unictype/categ_Pi.h: Likewise.
7326         * lib/unictype/categ_Ps.h: Likewise.
7327         * lib/unictype/categ_Z.h: Likewise.
7328         * lib/unictype/categ_Zl.h: Likewise.
7329         * lib/unictype/categ_Zp.h: Likewise.
7330         * lib/unictype/categ_Zs.h: Likewise.
7331         * lib/unictype/ctype_blank.h: Likewise.
7332         * lib/unictype/ctype_cntrl.h: Likewise.
7333         * lib/unictype/ctype_digit.h: Likewise.
7334         * lib/unictype/ctype_space.h: Likewise.
7335         * lib/unictype/ctype_xdigit.h: Likewise.
7336         * lib/unictype/mirror.h: Likewise.
7337         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7338         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7339         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7340         * lib/unictype/pr_bidi_control.h: Likewise.
7341         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7342         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7343         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7344         * lib/unictype/pr_bidi_pdf.h: Likewise.
7345         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7346         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7347         * lib/unictype/pr_dash.h: Likewise.
7348         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7349         * lib/unictype/pr_diacritic.h: Likewise.
7350         * lib/unictype/pr_extender.h: Likewise.
7351         * lib/unictype/pr_hex_digit.h: Likewise.
7352         * lib/unictype/pr_hyphen.h: Likewise.
7353         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7354         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7355         * lib/unictype/pr_ignorable_control.h: Likewise.
7356         * lib/unictype/pr_iso_control.h: Likewise.
7357         * lib/unictype/pr_join_control.h: Likewise.
7358         * lib/unictype/pr_left_of_pair.h: Likewise.
7359         * lib/unictype/pr_line_separator.h: Likewise.
7360         * lib/unictype/pr_logical_order_exception.h: Likewise.
7361         * lib/unictype/pr_non_break.h: Likewise.
7362         * lib/unictype/pr_not_a_character.h: Likewise.
7363         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7364         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7365         * lib/unictype/pr_other_id_start.h: Likewise.
7366         * lib/unictype/pr_other_lowercase.h: Likewise.
7367         * lib/unictype/pr_other_uppercase.h: Likewise.
7368         * lib/unictype/pr_paired_punctuation.h: Likewise.
7369         * lib/unictype/pr_paragraph_separator.h: Likewise.
7370         * lib/unictype/pr_pattern_syntax.h: Likewise.
7371         * lib/unictype/pr_pattern_white_space.h: Likewise.
7372         * lib/unictype/pr_private_use.h: Likewise.
7373         * lib/unictype/pr_quotation_mark.h: Likewise.
7374         * lib/unictype/pr_radical.h: Likewise.
7375         * lib/unictype/pr_soft_dotted.h: Likewise.
7376         * lib/unictype/pr_space.h: Likewise.
7377         * lib/unictype/pr_titlecase.h: Likewise.
7378         * lib/unictype/pr_variation_selector.h: Likewise.
7379         * lib/unictype/pr_white_space.h: Likewise.
7380         * lib/unictype/pr_zero_width.h: Likewise.
7381         * lib/unictype/sy_c_ident.h: Likewise.
7382         * lib/unictype/sy_c_whitespace.h: Likewise.
7383         * lib/unictype/sy_java_whitespace.h: Likewise.
7384         * lib/uninorm/composition-table.gperf: Likewise.
7385         * lib/uninorm/decomposition-table1.h: Likewise.
7386         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
7387         LB8.
7388         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7389         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7390         * modules/unictype/*: Bump version number of expected libunistring
7391         version.
7392
7393 2011-01-09  Bruno Haible  <bruno@clisp.org>
7394
7395         Update to Unicode 5.2.0.
7396         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
7397         trailing whitespace removed.
7398
7399 2011-01-09  Bruno Haible  <bruno@clisp.org>
7400
7401         New Unicode character properties, from Unicode 5.2.0.
7402         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
7403         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
7404         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
7405         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
7406         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
7407         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
7408         uc_is_property_cased, uc_is_property_case_ignorable,
7409         uc_is_property_changes_when_lowercased,
7410         uc_is_property_changes_when_uppercased,
7411         uc_is_property_changes_when_titlecased,
7412         uc_is_property_changes_when_casefolded,
7413         uc_is_property_changes_when_casemapped): New declarations.
7414         * lib/unictype/pr_byname.gperf: Add the new properties.
7415         * modules/unictype/property-byname (Depends-on): Depend on the new
7416         properties modules.
7417         * modules/unictype/property-all (Depends-on): Likewise.
7418         * MODULES.html.sh (Unicode string functions): Add
7419         unictype/property-case-ignorable, unictype/property-cased,
7420         unictype/property-changes-when-casefolded,
7421         unictype/property-changes-when-casemapped,
7422         unictype/property-changes-when-lowercased,
7423         unictype/property-changes-when-titlecased,
7424         unictype/property-changes-when-uppercased.
7425
7426         New module 'unictype/property-changes-when-casemapped'.
7427         * modules/unictype/property-changes-when-casemapped: New file.
7428         * lib/unictype/pr_changes_when_casemapped.c: New file.
7429         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
7430         generated by gen-uni-tables.
7431         * modules/unictype/property-changes-when-casemapped-tests: New file.
7432         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
7433         automatically generated by gen-uni-tables.
7434
7435         New module 'unictype/property-changes-when-casefolded'.
7436         * modules/unictype/property-changes-when-casefolded: New file.
7437         * lib/unictype/pr_changes_when_casefolded.c: New file.
7438         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
7439         generated by gen-uni-tables.
7440         * modules/unictype/property-changes-when-casefolded-tests: New file.
7441         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
7442         automatically generated by gen-uni-tables.
7443
7444         New module 'unictype/property-changes-when-titlecased'.
7445         * modules/unictype/property-changes-when-titlecased: New file.
7446         * lib/unictype/pr_changes_when_titlecased.c: New file.
7447         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
7448         generated by gen-uni-tables.
7449         * modules/unictype/property-changes-when-titlecased-tests: New file.
7450         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
7451         automatically generated by gen-uni-tables.
7452
7453         New module 'unictype/property-changes-when-uppercased'.
7454         * modules/unictype/property-changes-when-uppercased: New file.
7455         * lib/unictype/pr_changes_when_uppercased.c: New file.
7456         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
7457         generated by gen-uni-tables.
7458         * modules/unictype/property-changes-when-uppercased-tests: New file.
7459         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
7460         automatically generated by gen-uni-tables.
7461
7462         New module 'unictype/property-changes-when-lowercased'.
7463         * modules/unictype/property-changes-when-lowercased: New file.
7464         * lib/unictype/pr_changes_when_lowercased.c: New file.
7465         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
7466         generated by gen-uni-tables.
7467         * modules/unictype/property-changes-when-lowercased-tests: New file.
7468         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
7469         automatically generated by gen-uni-tables.
7470
7471         New module 'unictype/property-case-ignorable'.
7472         * modules/unictype/property-case-ignorable: New file.
7473         * lib/unictype/pr_case_ignorable.c: New file.
7474         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
7475         by gen-uni-tables.
7476         * modules/unictype/property-case-ignorable-tests: New file.
7477         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
7478         generated by gen-uni-tables.
7479
7480         New module 'unictype/property-cased'.
7481         * modules/unictype/property-cased: New file.
7482         * lib/unictype/pr_cased.c: New file.
7483         * lib/unictype/pr_cased.h: New file, automatically generated by
7484         gen-uni-tables.
7485         * modules/unictype/property-cased-tests: New file.
7486         * tests/unictype/test-pr_cased.c: New file, automatically generated by
7487         gen-uni-tables.
7488
7489 2011-01-09  Bruno Haible  <bruno@clisp.org>
7490
7491         Update to Unicode 5.2.0.
7492         * lib/gen-uni-tables.c (output_predicate, output_category,
7493         output_combclass, output_bidi_category, output_decimal_digit_test,
7494         output_decimal_digit, output_digit_test, output_digit,
7495         output_numeric_test, output_numeric, output_mirror, output_scripts,
7496         output_scripts_byname, output_blocks, output_ident_category): Fix
7497         comment header.
7498         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
7499         get_wbp.
7500         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
7501         items.
7502         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
7503         Changes_When_Lowercased, Changes_When_Uppercased,
7504         Changes_When_Titlecased, Changes_When_Casefolded,
7505         Changes_When_Casemapped.
7506         (is_property_alphabetic, is_property_default_ignorable_code_point):
7507         Update for Unicode 5.2.0.
7508         (is_property_cased, is_property_case_ignorable,
7509         is_property_changes_when_lowercased,
7510         is_property_changes_when_uppercased,
7511         is_property_changes_when_titlecased,
7512         is_property_changes_when_casefolded,
7513         is_property_changes_when_casemapped): New functions.
7514         (output_properties): Output also the properties cased, case_ignorable,
7515         changes_when_lowercased, changes_when_uppercased,
7516         changes_when_titlecased, changes_when_casefolded,
7517         changes_when_casemapped.
7518         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
7519         Unicode TR#11 revision 17 -> 19.
7520         (LBP_CP): New enumeration value.
7521         (LBP_*): Adjust values accordingly.
7522         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7523         TR#14 revision 22 -> 24.
7524         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
7525         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
7526         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7527         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
7528         is_WBP_MIDLETTER.
7529         (output_composition_tables): Allow for 24 bits instead of 16 bits in
7530         the code1 and code2 of each composition rule.
7531         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
7532         * lib/unicase/ignorable.h: Likewise.
7533         * lib/unicase/tocasefold.h: Likewise.
7534         * lib/unicase/tolower.h: Likewise.
7535         * lib/unicase/totitle.h: Likewise.
7536         * lib/unicase/toupper.h: Likewise.
7537         * lib/unictype/bidi_of.h: Likewise.
7538         * lib/unictype/blocks.h: Likewise.
7539         * lib/unictype/categ_C.h: Likewise.
7540         * lib/unictype/categ_Cf.h: Likewise.
7541         * lib/unictype/categ_Cn.h: Likewise.
7542         * lib/unictype/categ_L.h: Likewise.
7543         * lib/unictype/categ_Ll.h: Likewise.
7544         * lib/unictype/categ_Lm.h: Likewise.
7545         * lib/unictype/categ_Lo.h: Likewise.
7546         * lib/unictype/categ_Lu.h: Likewise.
7547         * lib/unictype/categ_M.h: Likewise.
7548         * lib/unictype/categ_Mc.h: Likewise.
7549         * lib/unictype/categ_Mn.h: Likewise.
7550         * lib/unictype/categ_N.h: Likewise.
7551         * lib/unictype/categ_Nd.h: Likewise.
7552         * lib/unictype/categ_Nl.h: Likewise.
7553         * lib/unictype/categ_No.h: Likewise.
7554         * lib/unictype/categ_P.h: Likewise.
7555         * lib/unictype/categ_Pd.h: Likewise.
7556         * lib/unictype/categ_Po.h: Likewise.
7557         * lib/unictype/categ_S.h: Likewise.
7558         * lib/unictype/categ_Sc.h: Likewise.
7559         * lib/unictype/categ_So.h: Likewise.
7560         * lib/unictype/categ_of.h: Likewise.
7561         * lib/unictype/combining.h: Likewise.
7562         * lib/unictype/ctype_alnum.h: Likewise.
7563         * lib/unictype/ctype_alpha.h: Likewise.
7564         * lib/unictype/ctype_graph.h: Likewise.
7565         * lib/unictype/ctype_lower.h: Likewise.
7566         * lib/unictype/ctype_print.h: Likewise.
7567         * lib/unictype/ctype_punct.h: Likewise.
7568         * lib/unictype/ctype_upper.h: Likewise.
7569         * lib/unictype/decdigit.h: Likewise.
7570         * lib/unictype/digit.h: Likewise.
7571         * lib/unictype/numeric.h: Likewise.
7572         * lib/unictype/pr_alphabetic.h: Likewise.
7573         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7574         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7575         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7576         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7577         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7578         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7579         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7580         * lib/unictype/pr_combining.h: Likewise.
7581         * lib/unictype/pr_composite.h: Likewise.
7582         * lib/unictype/pr_currency_symbol.h: Likewise.
7583         * lib/unictype/pr_dash.h: Likewise.
7584         * lib/unictype/pr_decimal_digit.h: Likewise.
7585         * lib/unictype/pr_deprecated.h: Likewise.
7586         * lib/unictype/pr_diacritic.h: Likewise.
7587         * lib/unictype/pr_extender.h: Likewise.
7588         * lib/unictype/pr_grapheme_base.h: Likewise.
7589         * lib/unictype/pr_grapheme_extend.h: Likewise.
7590         * lib/unictype/pr_grapheme_link.h: Likewise.
7591         * lib/unictype/pr_id_continue.h: Likewise.
7592         * lib/unictype/pr_id_start.h: Likewise.
7593         * lib/unictype/pr_ideographic.h: Likewise.
7594         * lib/unictype/pr_ignorable_control.h: Likewise.
7595         * lib/unictype/pr_logical_order_exception.h: Likewise.
7596         * lib/unictype/pr_lowercase.h: Likewise.
7597         * lib/unictype/pr_numeric.h: Likewise.
7598         * lib/unictype/pr_other_alphabetic.h: Likewise.
7599         * lib/unictype/pr_punctuation.h: Likewise.
7600         * lib/unictype/pr_sentence_terminal.h: Likewise.
7601         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7602         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7603         * lib/unictype/pr_unified_ideograph.h: Likewise.
7604         * lib/unictype/pr_uppercase.h: Likewise.
7605         * lib/unictype/pr_xid_continue.h: Likewise.
7606         * lib/unictype/pr_xid_start.h: Likewise.
7607         * lib/unictype/pr_zero_width.h: Likewise.
7608         * lib/unictype/scripts.h: Likewise.
7609         * lib/unictype/scripts_byname.gperf: Likewise.
7610         * lib/unictype/sy_java_ident.h: Likewise.
7611         * lib/unigbrk/gbrkprop.h: Likewise.
7612         * lib/unilbrk/lbrkprop1.h: Likewise.
7613         * lib/unilbrk/lbrkprop2.h: Likewise.
7614         * lib/unilbrk/lbrktables.h: Likewise.
7615         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
7616         LBP_CP. Implement rule LB30.
7617         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
7618         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
7619         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
7620         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
7621         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
7622         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
7623         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
7624         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
7625         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
7626         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
7627         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
7628         bits instead of 16 bits in the code1 and code2 of each composition
7629         rule.
7630         (uc_composition): Update for Unicode 5.2.0.
7631         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
7632         * lib/uninorm/decomposition-table2.h: Likewise.
7633         * lib/uniwbrk/wbrkprop.h: Likewise.
7634         * tests/unicase/test-cased.c: Likewise.
7635         * tests/unicase/test-ignorable.c: Likewise.
7636         * tests/unicase/test-uc_tolower.c: Likewise.
7637         * tests/unicase/test-uc_totitle.c: Likewise.
7638         * tests/unicase/test-uc_toupper.c: Likewise.
7639         * tests/unictype/test-categ_C.c: Likewise.
7640         * tests/unictype/test-categ_Cf.c: Likewise.
7641         * tests/unictype/test-categ_Cn.c: Likewise.
7642         * tests/unictype/test-categ_L.c: Likewise.
7643         * tests/unictype/test-categ_Ll.c: Likewise.
7644         * tests/unictype/test-categ_Lm.c: Likewise.
7645         * tests/unictype/test-categ_Lo.c: Likewise.
7646         * tests/unictype/test-categ_Lu.c: Likewise.
7647         * tests/unictype/test-categ_M.c: Likewise.
7648         * tests/unictype/test-categ_Mc.c: Likewise.
7649         * tests/unictype/test-categ_Mn.c: Likewise.
7650         * tests/unictype/test-categ_N.c: Likewise.
7651         * tests/unictype/test-categ_Nd.c: Likewise.
7652         * tests/unictype/test-categ_Nl.c: Likewise.
7653         * tests/unictype/test-categ_No.c: Likewise.
7654         * tests/unictype/test-categ_P.c: Likewise.
7655         * tests/unictype/test-categ_Pd.c: Likewise.
7656         * tests/unictype/test-categ_Po.c: Likewise.
7657         * tests/unictype/test-categ_S.c: Likewise.
7658         * tests/unictype/test-categ_Sc.c: Likewise.
7659         * tests/unictype/test-categ_So.c: Likewise.
7660         * tests/unictype/test-ctype_alnum.c: Likewise.
7661         * tests/unictype/test-ctype_alpha.c: Likewise.
7662         * tests/unictype/test-ctype_graph.c: Likewise.
7663         * tests/unictype/test-ctype_lower.c: Likewise.
7664         * tests/unictype/test-ctype_print.c: Likewise.
7665         * tests/unictype/test-ctype_punct.c: Likewise.
7666         * tests/unictype/test-ctype_upper.c: Likewise.
7667         * tests/unictype/test-decdigit.h: Likewise.
7668         * tests/unictype/test-digit.h: Likewise.
7669         * tests/unictype/test-numeric.h: Likewise.
7670         * tests/unictype/test-pr_alphabetic.c: Likewise.
7671         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7672         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7673         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7674         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7675         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7676         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7677         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7678         * tests/unictype/test-pr_combining.c: Likewise.
7679         * tests/unictype/test-pr_composite.c: Likewise.
7680         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7681         * tests/unictype/test-pr_dash.c: Likewise.
7682         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7683         * tests/unictype/test-pr_deprecated.c: Likewise.
7684         * tests/unictype/test-pr_diacritic.c: Likewise.
7685         * tests/unictype/test-pr_extender.c: Likewise.
7686         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7687         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7688         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7689         * tests/unictype/test-pr_id_continue.c: Likewise.
7690         * tests/unictype/test-pr_id_start.c: Likewise.
7691         * tests/unictype/test-pr_ideographic.c: Likewise.
7692         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7693         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7694         * tests/unictype/test-pr_lowercase.c: Likewise.
7695         * tests/unictype/test-pr_numeric.c: Likewise.
7696         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7697         * tests/unictype/test-pr_punctuation.c: Likewise.
7698         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7699         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7700         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7701         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7702         * tests/unictype/test-pr_uppercase.c: Likewise.
7703         * tests/unictype/test-pr_xid_continue.c: Likewise.
7704         * tests/unictype/test-pr_xid_start.c: Likewise.
7705         * tests/unictype/test-pr_zero_width.c: Likewise.
7706         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7707         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7708         changed behaviour: line breaking is now disallowed between a letter
7709         or '=' and '('.
7710         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7711         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7712         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7713         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7714         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7715         lib/uniwidth/width.c.
7716         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7717         without comments, but with the original copyright notice.
7718         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7719         changes.
7720         * lib/unictype/categ_Cc.h: Likewise.
7721         * lib/unictype/categ_Co.h: Likewise.
7722         * lib/unictype/categ_Cs.h: Likewise.
7723         * lib/unictype/categ_Lt.h: Likewise.
7724         * lib/unictype/categ_Me.h: Likewise.
7725         * lib/unictype/categ_Pc.h: Likewise.
7726         * lib/unictype/categ_Pe.h: Likewise.
7727         * lib/unictype/categ_Pf.h: Likewise.
7728         * lib/unictype/categ_Pi.h: Likewise.
7729         * lib/unictype/categ_Ps.h: Likewise.
7730         * lib/unictype/categ_Sk.h: Likewise.
7731         * lib/unictype/categ_Sm.h: Likewise.
7732         * lib/unictype/categ_Z.h: Likewise.
7733         * lib/unictype/categ_Zl.h: Likewise.
7734         * lib/unictype/categ_Zp.h: Likewise.
7735         * lib/unictype/categ_Zs.h: Likewise.
7736         * lib/unictype/ctype_blank.h: Likewise.
7737         * lib/unictype/ctype_cntrl.h: Likewise.
7738         * lib/unictype/ctype_digit.h: Likewise.
7739         * lib/unictype/ctype_space.h: Likewise.
7740         * lib/unictype/ctype_xdigit.h: Likewise.
7741         * lib/unictype/mirror.h: Likewise.
7742         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7743         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7744         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7745         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7746         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7747         * lib/unictype/pr_bidi_control.h: Likewise.
7748         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7749         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7750         * lib/unictype/pr_bidi_pdf.h: Likewise.
7751         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7752         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7753         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7754         * lib/unictype/pr_format_control.h: Likewise.
7755         * lib/unictype/pr_hex_digit.h: Likewise.
7756         * lib/unictype/pr_hyphen.h: Likewise.
7757         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7758         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7759         * lib/unictype/pr_iso_control.h: Likewise.
7760         * lib/unictype/pr_join_control.h: Likewise.
7761         * lib/unictype/pr_left_of_pair.h: Likewise.
7762         * lib/unictype/pr_line_separator.h: Likewise.
7763         * lib/unictype/pr_math.h: Likewise.
7764         * lib/unictype/pr_non_break.h: Likewise.
7765         * lib/unictype/pr_not_a_character.h: Likewise.
7766         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7767         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7768         * lib/unictype/pr_other_id_continue.h: Likewise.
7769         * lib/unictype/pr_other_id_start.h: Likewise.
7770         * lib/unictype/pr_other_lowercase.h: Likewise.
7771         * lib/unictype/pr_other_math.h: Likewise.
7772         * lib/unictype/pr_other_uppercase.h: Likewise.
7773         * lib/unictype/pr_paired_punctuation.h: Likewise.
7774         * lib/unictype/pr_paragraph_separator.h: Likewise.
7775         * lib/unictype/pr_pattern_syntax.h: Likewise.
7776         * lib/unictype/pr_pattern_white_space.h: Likewise.
7777         * lib/unictype/pr_private_use.h: Likewise.
7778         * lib/unictype/pr_quotation_mark.h: Likewise.
7779         * lib/unictype/pr_radical.h: Likewise.
7780         * lib/unictype/pr_soft_dotted.h: Likewise.
7781         * lib/unictype/pr_space.h: Likewise.
7782         * lib/unictype/pr_titlecase.h: Likewise.
7783         * lib/unictype/pr_variation_selector.h: Likewise.
7784         * lib/unictype/pr_white_space.h: Likewise.
7785         * lib/unictype/sy_c_ident.h: Likewise.
7786         * lib/unictype/sy_c_whitespace.h: Likewise.
7787         * lib/unictype/sy_java_whitespace.h: Likewise.
7788         * modules/uni*/*: Bump version number of expected libunistring version.
7789         Reported by Simon Josefsson.
7790
7791 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7792
7793         useless-if-before-free: fix typo in --help and make the internal,
7794         automatic version date update process work once again.
7795         --help output contained a NUL character instead of the
7796         backslash-zero that was intended.  Also, the "must lie within
7797         the first 8 lines" line is on line 9, and hence not getting
7798         automatically updated.
7799         * build-aux/useless-if-before-free: Fix the former by adding a
7800         backslash, and the latter by condensing the three lines of what-it-does
7801         to a single line, leaving one line of slack for the future.
7802
7803 2011-01-09  Bruno Haible  <bruno@clisp.org>
7804
7805         uniwidth/width: Fix width of U+1D173..U+1D17A.
7806         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7807         symbolic_width, output_width_property_test): New functions.
7808         (main): Invoke output_nonspacing_property, output_width_property_test.
7809         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7810         U+1D173..U+1D17A.
7811         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7812         1.
7813         * modules/uniwidth/*: Bump version number of expected libunistring
7814         version.
7815         * modules/unilbrk/*: Likewise.
7816
7817 2011-01-08  Bruno Haible  <bruno@clisp.org>
7818
7819         uninorm tests: Preserve copyright of Unicode data file.
7820         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7821         Mention modifications.
7822
7823 2011-01-08  Bruno Haible  <bruno@clisp.org>
7824
7825         gen-uni-tables: Prepare for Unicode 5.2.0.
7826         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7827         (debug_output_lbp, output_lbp): Update.
7828
7829 2011-01-08  Bruno Haible  <bruno@clisp.org>
7830
7831         unilbrk: Clarify gen-uni-tables.c code.
7832         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7833         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7834         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7835
7836 2011-01-07  Bruno Haible  <bruno@clisp.org>
7837
7838         strtod: Restore errno when successfully parsing Infinity or NaN.
7839         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7840         restore the original errno.
7841
7842 2011-01-07  Bruno Haible  <bruno@clisp.org>
7843
7844         remove test: Avoid failure on HP-UX 11.
7845         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7846
7847 2011-01-07  Bruno Haible  <bruno@clisp.org>
7848
7849         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7850         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7851         error code.
7852
7853 2011-01-07  Pádraig Brady <P@draigBrady.com>
7854
7855         ignore-value: fixup comments, and add Eric Blake
7856         as an author since he rewrote the macros.
7857         * lib/ignore-value.h (ignore_value):  State that
7858         we now support aggregates.  Also specify exactly
7859         when the GCC warn_unused_result feature was added.
7860
7861 2011-01-06  Eric Blake  <eblake@redhat.com>
7862
7863         ignore-value: support aggregate types
7864         * lib/ignore-value.h (ignore_value): Provide separate gcc
7865         definition.
7866         * modules/ignore-value-tests: New test module.
7867         * tests/test-ignore-value.c: New test.
7868
7869         maint.mk: improve sc_prohibit_strcmp regex
7870         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7871         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7872         definition of STRNEQ.
7873
7874         signal: work around Haiku issue with SIGBUS
7875         * lib/siglist.h: Add comment.
7876         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7877         strsignal's favoring of SIGSEGV.
7878         * tests/test-signal.c (main): Avoid test failure.
7879         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7880         Reported by Scott McCreary.
7881
7882         maint.mk: add pre-release check to ensure submodule commits are public
7883         * top/maint.mk (public-submodule-commit): New rule.
7884         (submodule-checks): New variable.
7885         (alpha beta stable): Depend on the variable.
7886
7887 2011-01-05  Pádraig Brady <P@draigBrady.com>
7888         and Jim Meyering  <meyering@redhat.com>
7889
7890         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7891         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7892         (ATTRIBUTE_DEPRECATED): Define.
7893         (_ignore_case): New function.
7894         (ignore_value): New macro, to replace the old function.
7895         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7896         * modules/ignore-value (Depends-on): Add stdint.
7897
7898 2011-01-04  Eric Blake  <eblake@redhat.com>
7899
7900         doc: regenerate INSTALL
7901         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7902         @firstparagraphindent support, now that autoconf dropped it.
7903         (INSTALL_PRELUDE): Reinstate old macro.
7904         * doc/install.texi: Resync from autoconf.
7905         * doc/INSTALL: Reflect recent autoconf update.
7906         * doc/INSTALL.ISO: Likewise.
7907         * doc/INSTALL.UTF-8: Likewise.
7908         Reported by Karl Berry.
7909
7910 2011-01-04  Bruce Korb  <address@hidden>
7911
7912         git-version-gen: avoid a sub-shell
7913         * build-aux/git-version-gen: Redirect stderr in `...` via
7914         "exec 2>...", rather than via an added sub-shell.
7915
7916 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7917
7918         git-version-gen: use (...) rather than sh -c '...'
7919         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7920         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7921
7922 2011-01-03  Jim Meyering  <meyering@redhat.com>
7923
7924         git-version-gen: convert leading TABs to spaces
7925         * build-aux/git-version-gen: Expand leading TABs.
7926
7927         git-version-gen: handle failed "git rev-list"
7928         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7929         from git and proceeding as if it had succeeded but printed no SHA1
7930         checksums, suppress the diagnostic and handle the failure.
7931         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7932
7933         git-version-gen: include command name in one more diagnostic
7934         * build-aux/git-version-gen: When the required .tarball-version file
7935         was missing or unreadable, you might see the diagnostic from "cat",
7936         but no trace of the name of the invoking script.  Now, you still see
7937         the diagnostic from cat, but also get one from "git-version-gen: ".
7938         Inspired by a patch from Bruce Korb.
7939
7940         update-copyright: adjust test to match changed code
7941         * tests/test-update-copyright.sh: Change test's expected output
7942         to match new actual output.
7943
7944 2011-01-02  Bruno Haible  <bruno@clisp.org>
7945
7946         getlogin_r: Avoid test failure on HP-UX 11.
7947         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7948         ERANGE when the second argument is zero.
7949         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7950         portability problem.
7951
7952 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7953
7954         * build-aux/update-copyright: doc Simon's changes
7955
7956 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7957
7958         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7959         environment variable.
7960
7961 2011-01-02  Bruno Haible  <bruno@clisp.org>
7962
7963         unigbrk: Avoid gcc warnings.
7964         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7965         unused variable.
7966         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7967         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7968         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7969         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7970         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7971         Change type of first argument to 'const char *'.
7972         (main): Remove unused variable.
7973         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7974         type of first argument to 'const char *'.
7975         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7976         Likewise.
7977         (main): Change type of variable 's'.
7978         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7979         to 'int'.
7980
7981 2011-01-02  Bruno Haible  <bruno@clisp.org>
7982
7983         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7984         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7985         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7986         bug.
7987         * lib/pwrite.c: Undo 2010-12-31 patch.
7988         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7989
7990 2011-01-02  Bruno Haible  <bruno@clisp.org>
7991
7992         pread: Fix test whether it works.
7993         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7994
7995 2011-01-02  Bruno Haible  <bruno@clisp.org>
7996
7997         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7998         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7999         ends in "6". Don't require a specific month name. Try also the locale
8000         names found on HP-UX 11 and Solaris 7.
8001
8002 2011-01-02  Bruno Haible  <bruno@clisp.org>
8003
8004         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
8005         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
8006         C linkage.
8007         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
8008
8009 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8010
8011         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
8012         for consistency, since the "cluster" term is not used elsewhere.
8013         * lib/unigbrk.in.h: Update name.
8014         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
8015         * lib/unigbrk/u16-grapheme-next.c: Update name.
8016         * lib/unigbrk/u16-grapheme-prev.c: Update name.
8017         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
8018         * lib/unigbrk/u32-grapheme-next.c: Update name.
8019         * lib/unigbrk/u32-grapheme-prev.c: Update name.
8020         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
8021         * lib/unigbrk/u8-grapheme-next.c: Update name.
8022         * lib/unigbrk/u8-grapheme-prev.c: Update name.
8023         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
8024         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
8025         Suggested by Bruno Haible.
8026
8027 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8028
8029         Remove module 'u8-grapheme-len' as too redundant with
8030         'u8-grapheme-next'.
8031         * modules/unigbrk/u8-grapheme-len: Delete file.
8032         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
8033         * lib/unigbrk.in.h: Remove prototype for deleted function.
8034         * lib/unigbrk/u8-grapheme-len.c: Delete file.
8035         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
8036
8037         Remove module 'u16-grapheme-len' as too redundant with
8038         'u16-grapheme-next'.
8039         * modules/unigbrk/u16-grapheme-len: Delete file.
8040         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
8041         * lib/unigbrk.in.h: Remove prototype for deleted function.
8042         * lib/unigbrk/u16-grapheme-len.c: Delete file.
8043         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
8044
8045         Remove module 'u32-grapheme-len' as too redundant with
8046         'u32-grapheme-next'.
8047         * modules/unigbrk/u32-grapheme-len: Delete file.
8048         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
8049         * lib/unigbrk.in.h: Remove prototype for deleted function.
8050         * lib/unigbrk/u32-grapheme-len.c: Delete file.
8051         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
8052
8053         Suggested by Bruno Haible.
8054
8055 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8056
8057         * unigbrk.in.h: Fix typo: "ben" => "been".
8058         Reported by Bruno Haible.
8059
8060 2011-01-01  Jim Meyering  <meyering@redhat.com>
8061
8062         maint: update almost all copyright ranges to include 2011
8063         Run the new "make update-copyright" rule.
8064
8065 2011-01-01  Jim Meyering  <meyering@redhat.com>
8066
8067         maint: update-copyright: exempt doc/INSTALL*
8068         * Makefile (update-copyright): Also exclude doc/INSTALL*,
8069         since they are generated.  Suggested by Bruno Haible.
8070
8071 2011-01-01  Jim Meyering  <meyering@redhat.com>
8072
8073         maint: refine the update-copyright rule
8074         * Makefile (update-copyright): Also exclude any file that includes
8075         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
8076         code that merely generates the comment.
8077
8078 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8079
8080         New module 'u8-grapheme-len'.
8081         * modules/unigbrk/u8-grapheme-len: New file.
8082         * modules/unigbrk/u8-grapheme-len-tests: New file.
8083         * lib/unigbrk.in.h: Add prototype for new function.
8084         * lib/unigbrk/u8-grapheme-len.c: New file.
8085         * tests/unigbrk/test-u8-grapheme-len.c: New file.
8086
8087         New module 'u16-grapheme-len'.
8088         * modules/unigbrk/u16-grapheme-len: New file.
8089         * modules/unigbrk/u16-grapheme-len-tests: New file.
8090         * lib/unigbrk.in.h: Add prototype for new function.
8091         * lib/unigbrk/u16-grapheme-len.c: New file.
8092         * tests/unigbrk/test-u16-grapheme-len.c: New file.
8093
8094         New module 'u32-grapheme-len'.
8095         * modules/unigbrk/u32-grapheme-len: New file.
8096         * modules/unigbrk/u32-grapheme-len-tests: New file.
8097         * lib/unigbrk.in.h: Add prototype for new function.
8098         * lib/unigbrk/u32-grapheme-len.c: New file.
8099         * tests/unigbrk/test-u32-grapheme-len.c: New file.
8100
8101         New module 'u8-grapheme-next'.
8102         * modules/unigbrk/u8-grapheme-next: New file.
8103         * modules/unigbrk/u8-grapheme-next-tests: New file.
8104         * lib/unigbrk.in.h: Add prototype for new function.
8105         * lib/unigbrk/u8-grapheme-next.c: New file.
8106         * tests/unigbrk/test-u8-grapheme-next.c: New file.
8107
8108         New module 'u16-grapheme-next'.
8109         * modules/unigbrk/u16-grapheme-next: New file.
8110         * modules/unigbrk/u16-grapheme-next-tests: New file.
8111         * lib/unigbrk.in.h: Add prototype for new function.
8112         * lib/unigbrk/u16-grapheme-next.c: New file.
8113         * tests/unigbrk/test-u16-grapheme-next.c: New file.
8114
8115         New module 'u32-grapheme-next'.
8116         * modules/unigbrk/u32-grapheme-next: New file.
8117         * modules/unigbrk/u32-grapheme-next-tests: New file.
8118         * lib/unigbrk.in.h: Add prototype for new function.
8119         * lib/unigbrk/u32-grapheme-next.c: New file.
8120         * tests/unigbrk/test-u32-grapheme-next.c: New file.
8121
8122         New module 'u8-grapheme-prev'.
8123         * modules/unigbrk/u8-grapheme-prev: New file.
8124         * modules/unigbrk/u8-grapheme-prev-tests: New file.
8125         * lib/unigbrk.in.h: Add prototype for new function.
8126         * lib/unigbrk/u8-grapheme-prev.c: New file.
8127         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
8128
8129         New module 'u16-grapheme-prev'.
8130         * modules/unigbrk/u16-grapheme-prev: New file.
8131         * modules/unigbrk/u16-grapheme-prev-tests: New file.
8132         * lib/unigbrk.in.h: Add prototype for new function.
8133         * lib/unigbrk/u16-grapheme-prev.c: New file.
8134         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
8135
8136         New module 'u32-grapheme-prev'.
8137         * modules/unigbrk/u32-grapheme-prev: New file.
8138         * modules/unigbrk/u32-grapheme-prev-tests: New file.
8139         * lib/unigbrk.in.h: Add prototype for new function.
8140         * lib/unigbrk/u32-grapheme-prev.c: New file.
8141         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
8142
8143         New module 'u8-grapheme-breaks'.
8144         * modules/unigbrk/u8-grapheme-breaks: New file.
8145         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
8146         * lib/unigbrk.in.h: Add prototype for new function.
8147         * lib/unigbrk/u8-grapheme-breaks.c: New file.
8148         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
8149
8150         New module 'u16-grapheme-breaks'.
8151         * modules/unigbrk/u16-grapheme-breaks: New file.
8152         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
8153         * lib/unigbrk.in.h: Add prototype for new function.
8154         * lib/unigbrk/u16-grapheme-breaks.c: New file.
8155         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
8156
8157         New module 'u32-grapheme-breaks'.
8158         * modules/unigbrk/u32-grapheme-breaks: New file.
8159         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
8160         * lib/unigbrk.in.h: Add prototype for new function.
8161         * lib/unigbrk/u32-grapheme-breaks.c: New file.
8162         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
8163
8164         New module 'ulc-grapheme-breaks'.
8165         * modules/unigbrk/ulc-grapheme-breaks: New file.
8166         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
8167         * m4/locale-ar.m4: New file.
8168         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
8169         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
8170         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
8171
8172 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8173
8174         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
8175         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
8176         modified how this file was generated before I initially submitted
8177         the module, but failed to regenerate it.  This meant that several
8178         of the level2 entries were wrong.
8179         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
8180         Remove the division-by-2 that is folded into the table now that
8181         gbrkprop.h has been regenerated properly.  Now -1 entries are
8182         handled correctly.
8183
8184         New module 'unigbrk/uc-gbrk-prop-tests'.
8185         * modules/unigbrk/uc-gbrk-prop-tests: New file.
8186         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
8187         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
8188         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
8189
8190 2011-01-01  Bruno Haible  <bruno@clisp.org>
8191
8192         Avoid use of hexadecimal escapes.
8193         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
8194         instead of hexadecimal escapes.
8195
8196 2011-01-01  Jim Meyering  <meyering@redhat.com>
8197
8198         maint: new rule to update copyright year ranges
8199         * Makefile (update-copyright): New rule.
8200
8201         maint: indent with TABs in Makefile
8202         * Makefile: Expand leading sequences of spaces to TABs
8203
8204         version-etc: update the copyright year it reports
8205         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
8206
8207 2010-12-31  Bruno Haible  <bruno@clisp.org>
8208
8209         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
8210         * lib/isfinite.c (zerof, zerod, zerol): New variables.
8211         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
8212         zero.
8213
8214 2010-12-31  Bruno Haible  <bruno@clisp.org>
8215
8216         pwrite: Work around HP-UX 11.11 bug.
8217         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
8218         works and set REPLACE_PWRITE if not.
8219         * lib/pwrite.c (pwrite): Add an implementation that uses the system
8220         function.
8221         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
8222
8223 2010-12-31  Bruno Haible  <bruno@clisp.org>
8224
8225         pread: Work around HP-UX 11 bugs.
8226         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
8227         and set REPLACE_PREAD if not.
8228         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
8229
8230 2010-12-31  Eric Blake  <eblake@redhat.com>
8231
8232         nl_langinfo: fix YESEXPR on Irix 6.5
8233         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
8234         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
8235         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
8236         it.
8237
8238 2010-12-31  Bruno Haible  <bruno@clisp.org>
8239
8240         iconv: Document HP-UX 11 bug.
8241         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
8242
8243 2010-12-31  Bruno Haible  <bruno@clisp.org>
8244
8245         ldexpl: Fix link error on HP-UX 11.
8246         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
8247         LDEXPL_LIBM, using $ISNANL_LIBM.
8248
8249 2010-12-31  Eric Blake  <eblake@redhat.com>
8250
8251         ftello: avoid compilation failure with SunStudio c89
8252         * lib/ftello.c (ftello): Use lseek, not llseek.
8253
8254         tests: avoid failing coreutils tests on cygwin
8255         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
8256         (create_exe_shims_): Return 0 when skipping.
8257
8258 2010-12-31  Bruno Haible  <bruno@clisp.org>
8259
8260         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
8261         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
8262
8263 2010-12-31  Bruno Haible  <bruno@clisp.org>
8264
8265         waitpid: Fix link error in C++ mode.
8266         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
8267
8268 2010-12-31  Bruno Haible  <bruno@clisp.org>
8269
8270         isnan: Use GCC built-ins when possible.
8271         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
8272         __builtin_isnan.
8273         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
8274         (isnan): Define using GCC built-ins for GCC >= 4.0.
8275
8276 2010-12-31  Bruno Haible  <bruno@clisp.org>
8277
8278         isnand: Fix mistake.
8279         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
8280         __builtin_isnand.
8281
8282 2010-12-31  Bruno Haible  <bruno@clisp.org>
8283
8284         open: Avoid C++ error on HP-UX 11.
8285         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
8286
8287 2010-12-31  Bruno Haible  <bruno@clisp.org>
8288
8289         time_r: Add missing declarations on HP-UX 11.
8290         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
8291         instead of HAVE_LOCALTIME_R.
8292         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
8293         HAVE_LOCALTIME_R always.
8294         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
8295         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
8296         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
8297         HAVE_LOCALTIME_R.
8298         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
8299         * doc/posix-functions/localtime_r.texi: Likewise.
8300
8301 2010-12-29  Eric Blake  <eblake@redhat.com>
8302
8303         mountlist: tweak previous commit
8304         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
8305         Reported by Paul Eggert.
8306
8307         mountlist: fix local drive detection on cygwin
8308         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
8309         that works for cygwin.
8310
8311 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8312
8313         ftoastr, snprintf: ftoastr + snprintf module
8314         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
8315         since the snprintf module now should be good enough here.
8316         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
8317         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
8318         and gl_MODULE_INDICATOR([snprintf]), but the former enables
8319         GNULIB_SNPRINTF only for the test directory, and the latter
8320         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
8321         seems to suffice by itself.
8322
8323 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8324
8325         alloca: one step towards thread-safety
8326         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
8327         need for a static variable.  All callers changed.  This does not
8328         make the alloca replacement thread-safe, but it's one step.
8329
8330         tests: minor indenting change
8331         * tests/init.sh: Sync from coreutils housekeeping patch
8332         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
8333         to keep lines within 80 columns.
8334
8335 2010-12-28  Jim Meyering  <meyering@redhat.com>
8336
8337         regex: don't infloop on persistent failing calloc
8338         * lib/regexec.c (build_trtable): Return failure indication upon
8339         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
8340         In glibc, this was fixed for version 2.13:
8341         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
8342
8343 2010-12-28  Bruno Haible  <bruno@clisp.org>
8344             Paul Eggert <eggert@cs.ucla.edu>
8345
8346         linkat: Make implementation robust against system behaviour variations.
8347         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
8348         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
8349         way, and to -2 if it needs a generic runtime test.
8350         * lib/linkat.c (solaris_optimized_link_immediate,
8351         solaris_optimized_link_follow): New functions.
8352         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
8353         (check_same_link): Use it.
8354
8355 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
8356
8357         New module 'unigbrk/base'.
8358         * modules/unigbrk/base: New file.
8359         * lib/unigbrk.in.h: New file.
8360
8361         New module 'unigbrk/uc-gbrk-prop'.
8362         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
8363         * modules/unigbrk/uc-gbrk-prop: New file.
8364         * lib/unigbrk/gbrkprop.h: New file.
8365         * lib/unigbrk/uc-gbrk-prop.c: New file.
8366
8367         New module 'unigbrk/uc-is-grapheme-break'.
8368         * modules/unigbrk/uc-is-grapheme-break: New file.
8369         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
8370         * lib/unigbrk/uc-is-grapheme-break.c: New file.
8371         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
8372         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
8373         * tests/unigbrk/GraphemeBreakTest.txt: New file.
8374
8375         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
8376
8377 2010-12-27  Bruno Haible  <bruno@clisp.org>
8378
8379         linkat test: Avoid failure on Solaris 11 2010-11.
8380         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
8381
8382 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8383
8384         utimens: work around glibc rounding bug on more platforms
8385         * lib/utimens.c (fdutimens): Work around rounding bug even if
8386         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
8387         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
8388
8389 2010-12-27  Bruno Haible  <bruno@clisp.org>
8390
8391         select tests: Improve comments.
8392         * tests/test-select.c (do_select): Add comments.
8393
8394 2010-12-27  Bruno Haible  <bruno@clisp.org>
8395
8396         select tests: Safer way of handling timeout.
8397         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
8398         at every invocation.
8399
8400 2010-12-27  Bruno Haible  <bruno@clisp.org>
8401
8402         select tests: Use 'bool' where appropriate.
8403         * tests/test-select.c (connect_to_socket): Change argument type to
8404         'bool'.
8405
8406 2010-12-27  Bruno Haible  <bruno@clisp.org>
8407
8408         select tests: Use existing modules.
8409         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
8410         (configure.ac): Don't test for unistd.h.
8411         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
8412         declared in <unistd.h>.
8413
8414 2010-12-27  Bruno Haible  <bruno@clisp.org>
8415
8416         mbrtowc: Work around a Solaris 7 bug.
8417         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
8418         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
8419         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
8420         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
8421         MBRTOWC_NULL_ARG1_BUG.
8422         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
8423         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
8424         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
8425         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
8426
8427 2010-12-27  Jim Meyering  <meyering@redhat.com>
8428
8429         read-file.c: tweak syntax
8430         * lib/read-file.c (fread_file): Remove space after "*" in function
8431         definitions.
8432
8433 2010-12-27  Bruno Haible  <bruno@clisp.org>
8434
8435         times test: Avoid gcc warnings on OSF/1.
8436         * tests/test-times.c (main): Cast printf arguments from clock_t to
8437         'long int'.
8438
8439 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8440
8441         utimens: work around glibc rounding bug on older Linux kernels
8442         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
8443         on Linux with a glibc whose utimes might not work, then work
8444         around a longstanding glibc bug involving rounding rather than
8445         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
8446         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8447
8448 2010-12-26  Bruno Haible  <bruno@clisp.org>
8449
8450         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
8451         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
8452         _GL_CXXALIAS_SYS.
8453         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8454
8455 2010-12-26  Bruno Haible  <bruno@clisp.org>
8456
8457         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
8458         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
8459         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8460         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
8461         looking for the declaration.
8462         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
8463         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
8464         problem.
8465         * doc/posix-functions/inet_pton.texi: Likewise.
8466
8467 2010-12-26  Bruno Haible  <bruno@clisp.org>
8468
8469         arpa_inet: Use the common idioms with C++ support.
8470         * lib/arpa_inet.in.h: Include c++defs.h.
8471         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
8472         support.
8473         * modules/arpa_inet (Depends-on): Add c++defs.
8474         (Makefile.am): Substitute the contents of c++defs.h.
8475         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
8476         * modules/arpa_inet-c++-tests: New file.
8477         * tests/test-arpa_inet-c++.cc: New file.
8478
8479 2010-12-25  Bruno Haible  <bruno@clisp.org>
8480
8481         Fix more C++ link errors on Solaris 8.
8482         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
8483         $(LIB_EACCESS).
8484         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
8485         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
8486         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
8487         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
8488         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
8489
8490 2010-12-25  Bruno Haible  <bruno@clisp.org>
8491
8492         printf-posix: Fix link error when a non-GCC compiler is used.
8493         * lib/stdio.in.h (printf): When not using GCC, override printf
8494         correctly.
8495         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8496
8497 2010-12-25  Bruno Haible  <bruno@clisp.org>
8498
8499         strerror_r-posix: Update doc.
8500         * doc/posix-functions/strerror_r.texi: Update doc about the return
8501         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
8502
8503 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8504
8505         utimens: simplify the logic of the previous change
8506         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
8507         This should not affect whether the test succeeds or fails.
8508
8509         utimens: configure better on hosts with NFS clock skew
8510         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
8511         uses the clock of the local host.  It might use the clock of the
8512         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
8513         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8514
8515 2010-12-25  Bruno Haible  <bruno@clisp.org>
8516
8517         ptsname test: Avoid failure on Solaris.
8518         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
8519         open a pseudo-terminal; don't use BSD-style ptys.
8520         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
8521
8522 2010-12-25  Bruno Haible  <bruno@clisp.org>
8523
8524         ptsname: Avoid ERANGE failure on some systems.
8525         * lib/ptsname.c (buffer): Increase size.
8526
8527 2010-12-25  Bruno Haible  <bruno@clisp.org>
8528
8529         rename, renameat: Avoid test failures at NFS mounted locations.
8530         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
8531         so that subsequent mkdir calls succeed.
8532
8533 2010-12-25  Bruno Haible  <bruno@clisp.org>
8534
8535         iswblank: Fix C++ link error on Solaris 8.
8536         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
8537         _GL_FUNCDECL_SYS.
8538
8539 2010-12-25  Bruno Haible  <bruno@clisp.org>
8540
8541         unistd: Fix C++ link error on Solaris 8.
8542         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
8543
8544 2010-12-25  Bruno Haible  <bruno@clisp.org>
8545
8546         readlink doc: Mention an old glibc bug.
8547         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
8548
8549 2010-12-25  Bruno Haible  <bruno@clisp.org>
8550
8551         fcntl-h: Fix for use of C++ on glibc systems.
8552         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8553         also on glibc systems in C++ mode.
8554         Reported by Gary V. Vaughan <gary@gnu.org>.
8555
8556 2010-12-25  Bruno Haible  <bruno@clisp.org>
8557
8558         roundl-ieee: Make it work on OSF/1 5.1 with cc.
8559         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
8560
8561 2010-12-25  Bruno Haible  <bruno@clisp.org>
8562
8563         truncl-ieee: Make it work on OSF/1 5.1 with cc.
8564         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
8565         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
8566         test whether truncl works according to ISO C 99 with IEC 60559.
8567         * m4/truncl-ieee.m4: New file.
8568         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
8569         m4/signbit.m4.
8570         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
8571
8572 2010-12-25  Bruno Haible  <bruno@clisp.org>
8573
8574         ceill-ieee: Make it work on OSF/1 5.1 with cc.
8575         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
8576         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
8577         test whether ceill works according to ISO C 99 with IEC 60559.
8578         * m4/ceill-ieee.m4: New file.
8579         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
8580         m4/signbit.m4.
8581         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
8582
8583 2010-12-25  Bruno Haible  <bruno@clisp.org>
8584
8585         Ensure all prerequisites of <wchar.h> are included.
8586         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
8587         before <wchar.h>.
8588         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8589         gl_MBRLEN_NUL_RETVAL): Likewise.
8590         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8591         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
8592         AC_FUNC_MBRTOWC): Likewise.
8593         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8594         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8595         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8596         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8597         Likewise.
8598         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8599         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
8600         (gl_WCHAR_H): Improve comments.
8601         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8602
8603 2010-12-25  Bruno Haible  <bruno@clisp.org>
8604
8605         strtok_r: Fix C syntax error in autoconf macro.
8606         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
8607         characters in test program.
8608
8609 2010-12-24  Bruno Haible  <bruno@clisp.org>
8610
8611         ceil, trunc, round: Fix gcc warnings.
8612         * lib/ceil.c (MIN): Undefine before redefining.
8613         * lib/trunc.c (MIN): Likewise.
8614         * lib/round.c (MIN): Likewise.
8615         Include <math.h> first.
8616
8617 2010-12-24  Bruno Haible  <bruno@clisp.org>
8618
8619         select tests: Avoid failures on OSF/1 5.1.
8620         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
8621         failure of closing the last socket; it may fail with ECONNRESET.
8622
8623 2010-12-24  Eric Blake  <eblake@redhat.com>
8624
8625         stdint: avoid HP-UX 10.20 preprocessor bug
8626         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
8627         than #if.
8628         * tests/test-floor2.c (main): Likewise.
8629         Reported by Peter O'Gorman.
8630
8631         pipe: make obsoletion transition easier
8632         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
8633         * modules/pipe (Files): Include revived file.
8634         (Include): Drop reference, to mirror getdate's behavior.
8635
8636 2010-12-24  Bruno Haible  <bruno@clisp.org>
8637
8638         sys_socket: Hide mismatch of declarations on NonStop Kernel.
8639         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
8640         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8641         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8642
8643 2010-12-24  Bruno Haible  <bruno@clisp.org>
8644
8645         gethostname: Ensure declaration on NonStop Kernel.
8646         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8647         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8648
8649 2010-12-24  Bruno Haible  <bruno@clisp.org>
8650
8651         sys_select: Ensure all necessary types on NonStop Kernel.
8652         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8653         include <sys/time.h>.
8654         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8655         NonStop Kernel.
8656         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8657
8658 2010-12-24  Bruno Haible  <bruno@clisp.org>
8659
8660         sys_select: Remove unneeded include.
8661         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8662         have <sys/select.h>.
8663
8664 2010-12-24  Bruno Haible  <bruno@clisp.org>
8665
8666         gethostname: Provide a fallback for HOST_NAME_MAX.
8667         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8668         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8669         instead.
8670         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8671
8672 2010-12-24  Bruno Haible  <bruno@clisp.org>
8673
8674         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8675         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8676         (SA_RESTART): Likewise.
8677         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8678
8679 2010-12-24  Bruno Haible  <bruno@clisp.org>
8680
8681         signal: Define NSIG.
8682         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8683         * tests/test-signal.c (nsig): New variable.
8684         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8685
8686 2010-12-24  Bruno Haible  <bruno@clisp.org>
8687
8688         rename, renameat: Avoid test failures on OSF/1 5.1.
8689         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8690         alternative error codes.
8691         * tests/test-renameat.c (main): Likewise.
8692
8693 2010-12-24  Bruno Haible  <bruno@clisp.org>
8694
8695         *printf: Detect large precisions bug on Solaris 10/SPARC.
8696         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8697         by Paul Eggert.
8698         * tests/test-snprintf-posix.h (test_function): Add this test code here
8699         too.
8700         * tests/test-sprintf-posix.h (test_function): Likewise.
8701         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8702         * tests/test-vasprintf-posix.c (test_function): Likewise.
8703         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8704         around by gnulib.
8705         * doc/posix-functions/printf.texi: Likewise.
8706         * doc/posix-functions/snprintf.texi: Likewise.
8707         * doc/posix-functions/sprintf.texi: Likewise.
8708         * doc/posix-functions/vfprintf.texi: Likewise.
8709         * doc/posix-functions/vprintf.texi: Likewise.
8710         * doc/posix-functions/vsnprintf.texi: Likewise.
8711         * doc/posix-functions/vsprintf.texi: Likewise.
8712         * doc/posix-functions/dprintf.texi: Undo last commit.
8713         * doc/posix-functions/vdprintf.texi: Likewise.
8714
8715 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8716
8717         tests: port test-fdutimensat.c to Solaris 8
8718         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8719         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8720         On Solaris 8, it fails with errno == ENOSYS, because there is no
8721         futimens (so it can't use the fd), and there is no lutimens (so it
8722         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8723
8724         vsnprintf: make more consistent with snprintf; doc fixes
8725
8726         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8727         the byte count return problem was promoted from the snprintf-posix
8728         to the snprintf module.
8729         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8730         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8731         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8732         * tests/test-snprintf.c (main): Check the byte count returned.
8733         * tests/test-vsnprintf.c (main): Likewise.
8734
8735 2010-12-23  Eric Blake  <eblake@redhat.com>
8736
8737         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8738         * modules/sigpipe (License): Relax license.
8739
8740 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8741
8742         doc: document Solaris printf bug with large float precisions
8743         * doc/posix-functions/dprintf.texi (dprintf):
8744         * doc/posix-functions/fprintf.texi (fprintf):
8745         * doc/posix-functions/printf.texi (printf):
8746         * doc/posix-functions/snprintf.texi (snprintf):
8747         * doc/posix-functions/sprintf.texi (sprintf):
8748         * doc/posix-functions/vdprintf.texi (vdprintf):
8749         * doc/posix-functions/vfprintf.texi (vfprintf):
8750         * doc/posix-functions/vprintf.texi (vprintf):
8751         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8752         * doc/posix-functions/vsprintf.texi (vsprintf):
8753         Mention that these functions mishandle large floating point
8754         precisions on Solaris 10.  The same bug is also present in Solaris
8755         8, and I assume earlier.  This causes "cd gnulib-tests; make
8756         check" to fail on Solaris 8 (and I assume, later) when building
8757         the latest coreutils, in test-vasprintf-posix's call to
8758         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8759         the wide flavors (e.g., wprintf) so this patch just updates the
8760         documentation for the narrow ones.
8761
8762         test-posixtm.c: add two tests
8763         * tests/test-posixtm.c: Add two tests, to highlight the
8764         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8765         around this bug; this is merely to document it.
8766
8767 2010-12-22  Bruno Haible  <bruno@clisp.org>
8768
8769         getlogin_r: Work around portability problem on OSF/1.
8770         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8771         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8772         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8773         test for a truncated result.
8774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8775         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8776         * modules/getlogin_r (Depends-on): Add memchr.
8777         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8778
8779 2010-12-22  Bruno Haible  <bruno@clisp.org>
8780
8781         ptsname: Avoid test failure on OSF/1 5.1.
8782         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8783         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8784         (same_slave): New function.
8785         (main): Use it to compare ptsname's result with the expected file name.
8786
8787 2010-12-22  Bruno Haible  <bruno@clisp.org>
8788
8789         Port extended stdio modules to HP NonStop Kernel.
8790         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8791         macros.
8792         * lib/fbufmode.c: Update comments.
8793         * lib/fflush.c: Likewise.
8794         * lib/fpurge.c: Likewise.
8795         * lib/freadable.c: Likewise.
8796         * lib/freadahead.c: Likewise.
8797         * lib/freading.c: Likewise.
8798         * lib/freadptr.c: Likewise.
8799         * lib/freadseek.c: Likewise.
8800         * lib/fseeko.c: Likewise.
8801         * lib/fseterr.c: Likewise.
8802         * lib/fwritable.c: Likewise.
8803         * lib/fwriting.c: Likewise.
8804         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8805
8806 2010-12-22  Bruno Haible  <bruno@clisp.org>
8807
8808         ttyname_r: Work around bug on OSF/1 5.1.
8809         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8810         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8811         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8812         present.
8813         * lib/ttyname_r.c (ttyname_r): Update comments.
8814
8815 2010-12-22  Bruno Haible  <bruno@clisp.org>
8816
8817         round: Implement result sign according to IEEE 754.
8818         * lib/round.c (MIN, MINUS_ZERO): New macros.
8819         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8820         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8821         * tests/test-round-ieee.c (main): Likewise.
8822         * tests/test-roundl-ieee.c (main): Likewise.
8823
8824         trunc: Implement result sign according to IEEE 754.
8825         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8826         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8827         * tests/test-trunc2.c: Include minus-zero.h.
8828         (MINUS_ZERO): New macro.
8829         (trunc_reference): Keep in sync with lib/trunc.c.
8830         * tests/test-truncf2.c: Include minus-zero.h.
8831         (MINUS_ZERO): New macro.
8832         (truncf_reference): Keep in sync with lib/trunc.c.
8833         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8834         * tests/test-trunc-ieee.c (main): Likewise.
8835         * tests/test-truncl-ieee.c (main): Likewise.
8836
8837         ceil: Implement result sign according to IEEE 754.
8838         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8839         (FUNC): Return -0.0 for -1 < x < 0.
8840         * tests/test-ceil2.c: Include minus-zero.h.
8841         (MINUS_ZERO): New macro.
8842         (ceil_reference): Keep in sync with lib/ceil.c.
8843         * tests/test-ceilf2.c: Include minus-zero.h.
8844         (MINUS_ZERO): New macro.
8845         (ceilf_reference): Keep in sync with lib/ceil.c.
8846         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8847         * tests/test-ceil-ieee.c (main): Likewise.
8848         * tests/test-ceill-ieee.c (main): Likewise.
8849
8850         floor: Implement result sign according to IEEE 754.
8851         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8852         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8853         * tests/test-floorf2.c (floorf_reference): Likewise.
8854         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8855         * tests/test-floor-ieee.c (main): Likewise.
8856         * tests/test-floorl-ieee.c (main): Likewise.
8857
8858 2010-12-22  Bruno Haible  <bruno@clisp.org>
8859
8860         getaddrinfo: Update doc.
8861         * doc/posix-functions/gai_strerror.texi: Return type is also different
8862         on AIX and HP-UX.
8863
8864 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8865
8866         getaddrinfo, inet_ntop: Update doc for Solaris.
8867         * doc/posix-functions/gai_strerror.texi: Return type is also an
8868         issue on Solaris 9 and earlier.
8869         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8870         on Solaris 10 and earlier.
8871
8872 2010-12-21  Bruno Haible  <bruno@clisp.org>
8873
8874         New module 'roundl-ieee'.
8875         * modules/roundl-ieee: New file.
8876         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8877         test whether roundl works according to ISO C 99 with IEC 60559.
8878         * m4/roundl-ieee.m4: New file.
8879         * modules/roundl-ieee-tests: New file.
8880         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8881         * tests/test-roundl.c (main): Remove signbit tests.
8882         * modules/roundl-tests (Depends-on): Remove signbit.
8883         * doc/posix-functions/roundl.texi: Mention the new module.
8884
8885 2010-12-21  Bruno Haible  <bruno@clisp.org>
8886
8887         New module 'truncl-ieee'.
8888         * modules/truncl-ieee: New file.
8889         * modules/truncl-ieee-tests: New file.
8890         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8891         * tests/test-truncl.c (main): Remove signbit tests.
8892         * modules/truncl-tests (Depends-on): Remove signbit.
8893         * doc/posix-functions/truncl.texi: Mention the new module.
8894
8895 2010-12-21  Bruno Haible  <bruno@clisp.org>
8896
8897         New module 'ceill-ieee'.
8898         * modules/ceill-ieee: New file.
8899         * modules/ceill-ieee-tests: New file.
8900         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8901         * tests/test-ceill.c (main): Remove signbit tests.
8902         * modules/ceill-tests (Depends-on): Remove signbit.
8903         * doc/posix-functions/ceill.texi: Mention the new module.
8904
8905 2010-12-21  Bruno Haible  <bruno@clisp.org>
8906
8907         New module 'floorl-ieee'.
8908         * modules/floorl-ieee: New file.
8909         * modules/floorl-ieee-tests: New file.
8910         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8911         * tests/test-floorl.c (main): Remove signbit tests.
8912         * modules/floorl-tests (Depends-on): Remove signbit.
8913         * doc/posix-functions/floorl.texi: Mention the new module.
8914
8915 2010-12-21  Bruno Haible  <bruno@clisp.org>
8916
8917         New module 'round-ieee'.
8918         * modules/round-ieee: New file.
8919         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8920         whether round works according to ISO C 99 with IEC 60559.
8921         * m4/round-ieee.m4: New file.
8922         * modules/round-ieee-tests: New file.
8923         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8924         * tests/test-round1.c (main): Remove signbit tests.
8925         * modules/round-tests (Depends-on): Remove 'signbit'.
8926         * doc/posix-functions/round.texi: Mention the new module.
8927
8928 2010-12-21  Bruno Haible  <bruno@clisp.org>
8929
8930         New module 'trunc-ieee'.
8931         * modules/trunc-ieee: New file.
8932         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8933         whether trunc works according to ISO C 99 with IEC 60559.
8934         * m4/trunc-ieee.m4: New file.
8935         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8937         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8938         * modules/trunc-ieee-tests: New file.
8939         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8940         * tests/test-trunc1.c (main): Remove signbit tests.
8941         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8942         * doc/posix-functions/trunc.texi: Mention the new module.
8943
8944 2010-12-21  Bruno Haible  <bruno@clisp.org>
8945
8946         New module 'ceil-ieee'.
8947         * modules/ceil-ieee: New file.
8948         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8949         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8950         ISO C 99 with IEC 60559.
8951         * m4/ceil-ieee.m4: New file.
8952         * modules/ceil (Files): Add lib/ceil.c.
8953         (Depends-on): Add 'float'.
8954         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8955         * lib/math.in.h (ceil): New declaration.
8956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8957         REPLACE_CEIL.
8958         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8959         * modules/ceil-ieee-tests: New file.
8960         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8961         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8962         * doc/posix-functions/ceil.texi: Mention the new module.
8963
8964 2010-12-21  Bruno Haible  <bruno@clisp.org>
8965
8966         New module 'floor-ieee'.
8967         * modules/floor-ieee: New file.
8968         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8969         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8970         ISO C 99 with IEC 60559.
8971         * m4/floor-ieee.m4: New file.
8972         * modules/floor (Files): Add lib/floor.c.
8973         (Depends-on): Add 'float'.
8974         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8975         * lib/math.in.h (floor): New declaration.
8976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8977         REPLACE_FLOOR.
8978         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8979         * modules/floor-ieee-tests: New file.
8980         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8981         * tests/test-math-c++.cc: Check the signature of 'floor'.
8982         * doc/posix-functions/floor.texi: Mention the new module.
8983
8984 2010-12-21  Bruno Haible  <bruno@clisp.org>
8985
8986         New module 'roundf-ieee'.
8987         * modules/roundf-ieee: New file.
8988         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8989         test whether roundf works according to ISO C 99 with IEC 60559.
8990         * m4/roundf-ieee.m4: New file.
8991         * modules/roundf-ieee-tests: New file.
8992         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8993         * tests/test-roundf1.c (main): Remove signbit tests.
8994         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8995         * doc/posix-functions/roundf.texi: Mention the new module.
8996
8997 2010-12-21  Bruno Haible  <bruno@clisp.org>
8998
8999         New module 'truncf-ieee'.
9000         * modules/truncf-ieee: New file.
9001         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
9002         test whether truncf works according to ISO C 99 with IEC 60559.
9003         * m4/truncf-ieee.m4: New file.
9004         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
9005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
9006         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
9007         * modules/truncf-ieee-tests: New file.
9008         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
9009         * tests/test-truncf1.c (main): Remove signbit tests.
9010         * modules/truncf-tests (Depends-on): Remove 'signbit'.
9011         * doc/posix-functions/truncf.texi: Mention the new module.
9012
9013 2010-12-21  Bruno Haible  <bruno@clisp.org>
9014
9015         New module 'ceilf-ieee'.
9016         * modules/ceilf-ieee: New file.
9017         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
9018         test whether ceilf works according to ISO C 99 with IEC 60559.
9019         * m4/ceilf-ieee.m4: New file.
9020         * modules/ceilf-ieee-tests: New file.
9021         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
9022         * tests/test-ceilf1.c (main): Remove signbit tests.
9023         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
9024         * doc/posix-functions/ceilf.texi: Mention the new module.
9025
9026 2010-12-21  Bruno Haible  <bruno@clisp.org>
9027
9028         New module 'floorf-ieee'.
9029         * modules/floorf-ieee: New file.
9030         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
9031         test whether floorf works according to ISO C 99 with IEC 60559.
9032         * m4/floorf-ieee.m4: New file.
9033         * modules/floorf-ieee-tests: New file.
9034         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
9035         * tests/test-floorf1.c (main): Remove signbit tests.
9036         * modules/floorf-tests (Depends-on): Remove 'signbit'.
9037         * doc/posix-functions/floorf.texi: Mention the new module.
9038
9039 2010-12-21  Bruno Haible  <bruno@clisp.org>
9040
9041         Support for minus zero in autoconf macros.
9042         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
9043         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
9044         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
9045         * tests/minus-zero.h: Update comments.
9046
9047 2010-12-21  Bruno Haible  <bruno@clisp.org>
9048
9049         Tests for module 'ceil'.
9050         * modules/ceil-tests: New file.
9051         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
9052         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
9053
9054 2010-12-21  Bruno Haible  <bruno@clisp.org>
9055
9056         Tests for module 'floor'.
9057         * modules/floor-tests: New file.
9058         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
9059         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
9060
9061 2010-12-21  Bruno Haible  <bruno@clisp.org>
9062
9063         math: Fix indentation.
9064         * lib/math.in.h (floorf): Fix indentation.
9065
9066 2010-12-21  Bruno Haible  <bruno@clisp.org>
9067
9068         Fix cross-compilation guesses on Solaris.
9069         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
9070         not match "solaris2.10".
9071         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9072         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
9073         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
9074
9075 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
9076
9077         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
9078         This fixes a problem observed with the latest coreutils snapshot
9079         that caused a test to fail on Solaris 8.  src/csplit.c's call
9080         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
9081         earlier, instead of returning the number of bytes that would have
9082         been generated; this causes csplit to incorrectly report memory
9083         exhaustion.
9084         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
9085         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
9086         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
9087         comments to match.
9088         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
9089         Fix typo in matching older versions of Solaris: "solaris2.10"
9090         is matched by the shell pattern "solaris2.[0-9]*".  This matters
9091         only for guessing while cross-compiling.
9092         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
9093
9094 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9095
9096         ftoastr: fix comment again
9097         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9098         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
9099         Also, simplify example a bit by using flags = 0.
9100
9101 2010-12-20  Bruno Haible  <bruno@clisp.org>
9102
9103         round*, trunc*: Update documentation regarding glibc.
9104         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
9105         * doc/posix-functions/round.texi: Likewise.
9106         * doc/posix-functions/roundl.texi: Likewise.
9107         * doc/posix-functions/truncf.texi: Likewise.
9108         * doc/posix-functions/trunc.texi: Likewise.
9109         * doc/posix-functions/truncl.texi: Likewise.
9110
9111 2010-12-20  Bruno Haible  <bruno@clisp.org>
9112
9113         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
9114         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
9115         * doc/posix-functions/round.texi: Likewise.
9116         * doc/posix-functions/roundl.texi: Likewise.
9117
9118 2010-12-20  Bruno Haible  <bruno@clisp.org>
9119
9120         ttyname_r: Add missing declaration on HP-UX 11.
9121         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
9122         HAVE_TTYNAME_R.
9123         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
9124         declared. Set HAVE_TTYNAME_R always.
9125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9126         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
9127         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
9128         HAVE_TTYNAME_R.
9129         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
9130
9131 2010-12-20  Bruno Haible  <bruno@clisp.org>
9132
9133         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
9134         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
9135         * doc/posix-functions/getlogin_r.texi: Likewise.
9136         * tests/test-getlogin.c: Include <errno.h>.
9137         (main): Avoid test failure on HP-UX 11.11.
9138         * tests/test-getlogin_r.c (main): Likewise.
9139
9140 2010-12-20  Bruno Haible  <bruno@clisp.org>
9141
9142         getlogin_r: Add missing declaration on HP-UX 11.
9143         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
9144         declared also when it exists as a function.
9145         * doc/posix-functions/getlogin_r.texi: Document this workaround.
9146
9147 2010-12-20  Bruno Haible  <bruno@clisp.org>
9148
9149         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
9150         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
9151         through wcrtomb.
9152
9153 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9154
9155         ftoastr: fix comment
9156         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9157         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
9158
9159 2010-12-19  Bruno Haible  <bruno@clisp.org>
9160
9161         isnan: Ensure it is a macro.
9162         * lib/math.in.h (isnan): Define as a macro if not already a macro.
9163         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
9164         Solaris.
9165
9166 2010-12-19  Bruno Haible  <bruno@clisp.org>
9167
9168         ldexpl test: Fix link error on OSF/1 5.1.
9169         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
9170
9171 2010-12-19  Bruno Haible  <bruno@clisp.org>
9172
9173         wctype: Make it work in C++ mode on OSF/1 5.1.
9174         * lib/wctype.in.h (iswblank): Declare but not define here.
9175         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
9176         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
9177         * modules/wctype (Files): Add lib/iswblank.c.
9178
9179 2010-12-19  Bruno Haible  <bruno@clisp.org>
9180
9181         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
9182         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
9183         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
9184
9185 2010-12-19  Bruno Haible  <bruno@clisp.org>
9186
9187         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
9188         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
9189         _POSIX_PII_SOCKET.
9190         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
9191         * doc/posix-functions/recvfrom.texi: Likewise.
9192         * doc/posix-functions/send.texi: Likewise.
9193         * doc/posix-functions/sendto.texi: Likewise.
9194
9195 2010-12-19  Bruno Haible  <bruno@clisp.org>
9196
9197         tcgetsid: Add missing declaration on OSF/1 5.1.
9198         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
9199         HAVE_TCGETSID.
9200         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
9201         Don't set HAVE_TCGETSID.
9202         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9203         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
9204         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
9205         HAVE_TCGETSID.
9206         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
9207
9208 2010-12-19  Bruno Haible  <bruno@clisp.org>
9209
9210         stdio: Fix problem with popen() declaration on OSF/1 5.1.
9211         * lib/stdio.in.h: During the include_next statement, let recursive
9212         includes of this file include only the system header file.
9213
9214 2010-12-19  Bruno Haible  <bruno@clisp.org>
9215
9216         iconv_open: Fix regression from 2010-12-04.
9217         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
9218         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
9219
9220 2010-12-19  Bruno Haible  <bruno@clisp.org>
9221
9222         stdbool test: Avoid a gcc warning.
9223         * tests/test-stdbool.c (main): Fail if e1 is false.
9224         Reported by Jim Meyering.
9225
9226 2010-12-19  Jim Meyering  <meyering@redhat.com>
9227
9228         setenv: restore to working order
9229         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
9230         mistakenly removed.
9231         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
9232         HAVE_SETENV.
9233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
9234         HAVE_SETENV.
9235
9236 2010-12-19  Bruno Haible  <bruno@clisp.org>
9237
9238         Document some different function declarations on OSF/1 5.1.
9239         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
9240         * doc/posix-functions/inet_ntop.texi: Likewise.
9241         * doc/posix-functions/gethostname.texi: Likewise.
9242         * lib/unistd.in.h (gethostname): Update comment.
9243
9244 2010-12-19  Bruno Haible  <bruno@clisp.org>
9245
9246         doc: Mention vasprintf-posix module.
9247         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
9248         the 'vasprintf-posix' module.
9249         * doc/glibc-functions/vasprintf.texi: Likewise.
9250
9251 2010-12-19  Bruno Haible  <bruno@clisp.org>
9252
9253         unsetenv: Add missing declaration on OSF/1 5.1.
9254         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
9255         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
9256         Don't set HAVE_UNSETENV. In the test program, set _BSD.
9257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
9258         not HAVE_UNSETENV.
9259         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
9260         HAVE_UNSETENV.
9261         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
9262
9263 2010-12-19  Bruno Haible  <bruno@clisp.org>
9264
9265         setenv: Add missing declaration on OSF/1 5.1.
9266         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
9267         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
9268         declared. Don't set HAVE_SETENV.
9269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
9270         not HAVE_SETENV.
9271         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
9272         HAVE_SETENV.
9273         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
9274
9275 2010-12-19  Bruno Haible  <bruno@clisp.org>
9276
9277         nl_langinfo tests: Avoid gcc warning.
9278         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
9279
9280 2010-12-19  Bruno Haible  <bruno@clisp.org>
9281
9282         mknod: Avoid error in C++ mode on OSF/1 with GCC.
9283         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
9284         _GL_CXXALIAS_SYS.
9285
9286 2010-12-19  Bruno Haible  <bruno@clisp.org>
9287
9288         stdbool: Relax test.
9289         * tests/test-stdbool.c (e): Don't require that casts from a variable's
9290         address to 'bool' work in static initializer, for compilers other than
9291         GCC.
9292
9293 2010-12-19  Bruno Haible  <bruno@clisp.org>
9294
9295         ftello: Add missing declaration on OSF/1 5.1.
9296         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
9297         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
9298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
9299         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
9300         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
9301
9302 2010-12-19  Bruno Haible  <bruno@clisp.org>
9303
9304         fseeko: Add missing declaration on OSF/1 5.1.
9305         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
9306         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
9307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
9308         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
9309         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
9310
9311 2010-12-19  Bruno Haible  <bruno@clisp.org>
9312
9313         fchdir: Add missing declaration on OSF/1 5.1.
9314         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
9315         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
9316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
9317         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
9318         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
9319
9320 2010-12-19  Bruno Haible  <bruno@clisp.org>
9321
9322         relocatable-prog-wrapper: Separate from relocatable-prog.
9323         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
9324         uninstall-relocwrapper rule here.
9325         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
9326         Reported by Ian Beckwith <ianb@erislabs.net>.
9327
9328 2010-12-19  Bruno Haible  <bruno@clisp.org>
9329
9330         unistr/u8-mbsnlen: Add missing dependency.
9331         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
9332         Reported by Ian Beckwith <ianb@erislabs.net>.
9333
9334 2010-12-19  Bruno Haible  <bruno@clisp.org>
9335
9336         iconv: Make it possible again to use this module without 'iconv-h'.
9337         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
9338         if it is not defined.
9339         Reported by Ian Beckwith <ianb@erislabs.net>.
9340
9341 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9342
9343         acl: port to Solaris 8 when copying from tmpfs to ufs
9344         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
9345         error number.  Problem observed on Solaris 8 with latest
9346         coreutils, with "mv A B", where A is on a tmpfs file system and B
9347         is on a ufs file system.  This caused coreutils' mv/part-symlink
9348         test to fail.
9349
9350         tests: set fail=0 at start
9351         * tests/init.sh (setup_): Move fail=0 initialization here ...
9352         (mktempd_): ... from here, so that tests can rely on fail being
9353         set to 0 initially.  This fixes a problem in coreutils; see:
9354         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
9355
9356 2010-12-18  Bruno Haible  <bruno@clisp.org>
9357
9358         memmem-simple: Stylistic changes.
9359         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
9360         Fix preprocessor directive indentation.
9361
9362 2010-12-15  Pádraig Brady <P@draigBrady.com>
9363
9364         memmem, memmem-simple: reorganize and expand empty needle check
9365         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
9366         functional checks to memmem-simple so that one has a fully functional
9367         memmem by using just this module.
9368         Restrict the performance only check to the memmem module.
9369         Also expand the empty needle check to ensure the correct
9370         pointer is returned, not just a non NULL pointer.
9371         * doc/glibc-functions/memmem.texi: Rearrange the portability
9372         documentation to correlate with the rearranged checks.
9373         Clarify exactly how the memmem and memmem-simple modules
9374         relate to each other.
9375
9376 2010-12-15  Pádraig Brady <P@draigBrady.com>
9377             Bruno Haible  <bruno@clisp.org>
9378
9379         Improve cross-compilation guesses for uClibc.
9380         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
9381         that uClibc does not have the glibc bug.
9382         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
9383         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
9384
9385 2010-12-14  Eric Blake  <eblake@redhat.com>
9386
9387         configmake: provide fallbacks for oldest supported autotools
9388         * m4/configmake.m4: New file.
9389         * modules/configmake (Files): Ship it.
9390         (configure.ac): Use it to guarantee fallbacks.
9391
9392 2010-12-13  Pádraig Brady <P@draigBrady.com>
9393
9394         read-file: Improve handling of large files
9395         * lib/read-file.c (fread_file): Minimize realloc()s
9396         for regular files, and better manage sizes around SIZE_MAX.
9397
9398 2010-12-13  Eric Blake  <eblake@redhat.com>
9399
9400         cloexec, fcntl: relax license
9401         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
9402         consent from all contributors.
9403         * modules/fcntl (License): Likewise.
9404
9405 2010-12-10  Bruno Haible  <bruno@clisp.org>
9406
9407         Tests for module 'pipe-posix'.
9408         * modules/pipe-posix-tests: New file.
9409         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
9410
9411 2010-12-10  Bruno Haible  <bruno@clisp.org>
9412
9413         pipe-posix: Make it work in C++ mode.
9414         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
9415         (pipe): Use common idiom, not a macro definition.
9416         * lib/pipe.c: New file.
9417         * m4/pipe.m4: New file.
9418         * modules/pipe-posix (Description): Enhance.
9419         (Files): Add lib/pipe.c, m4/pipe.m4.
9420         (configure.ac): Invoke gl_FUNC_PIPE.
9421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
9422         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
9423         * tests/test-unistd-c++.cc: Check the signature of pipe.
9424
9425 2010-12-10  Bruno Haible  <bruno@clisp.org>
9426
9427         Rename module 'pipe' to 'spawn-pipe'.
9428         * modules/spawn-pipe: New file, renamed from modules/pipe.
9429         (Files, configure.ac, Makefile.am): Update.
9430         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
9431         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
9432         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
9433         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
9434         "spawn-pipe.h" instead of "pipe.h".
9435         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
9436         to gl_SPAWN_PIPE.
9437         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
9438         (Files, Makefile.am): Update.
9439         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
9440         Update.
9441         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
9442         Include "spawn-pipe.h" instead of "pipe.h".
9443         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
9444         * lib/javacomp.c: Likewise.
9445         * lib/javaversion.c: Likewise.
9446         * lib/pipe-filter-gi.c: Likewise.
9447         * lib/pipe-filter-ii.c: Likewise.
9448         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
9449         * modules/javacomp (Depends-on): Likewise.
9450         * modules/javaversion (Depends-on): Likewise.
9451         * modules/pipe-filter-gi (Depends-on): Likewise.
9452         * modules/pipe-filter-ii (Depends-on): Likewise.
9453         * MODULES.html.sh (Executing programs): Update.
9454         * NEWS: Mention the change.
9455
9456 2010-12-10  Eric Blake  <eblake@redhat.com>
9457
9458         pipe-posix: new module
9459         * modules/pipe-posix: New file.
9460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
9461         (gl_UNISTD_H): Check for declaration.
9462         * modules/unistd (Makefile.am): Substitute it.
9463         * lib/unistd.in.h (pipe): Provide it for mingw.
9464         * doc/posix-functions/pipe.texi (pipe): Update documentation.
9465         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
9466
9467 2010-12-07  Bruno Haible  <bruno@clisp.org>
9468
9469         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
9470         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
9471         u8_strcmp_gnu.
9472         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
9473
9474 2010-12-06  Bruno Haible  <bruno@clisp.org>
9475
9476         Update internal documentation.
9477         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
9478
9479 2010-12-04  Bruno Haible  <bruno@clisp.org>
9480
9481         Put more information about failed tests into the test return codes.
9482         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
9483         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
9484         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
9485         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9486         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
9487         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9488         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9489         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9490         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
9491         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9492         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
9493         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9494         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9495         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9496         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
9497         returns a bit mask.
9498         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
9499         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
9500         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
9501         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
9502         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9503         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9504         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9506         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9507         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9508         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9509         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9510         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9511         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9512         * m4/link.m4 (gl_FUNC_LINK): Likewise.
9513         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9514         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
9515         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
9516         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9517         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
9518         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9519         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9520         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
9521         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9522         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9523         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9524         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
9525         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9526         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9527         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
9528         gl_PRINTF_PRECISION): Likewise.
9529         * m4/regex.m4 (gl_REGEX): Likewise.
9530         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9531         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9532         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
9533         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9534         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9536         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9537         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
9538         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9539         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9540         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9541         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9542         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9543         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
9544         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9545         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9546         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9547         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9548         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9549         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
9550         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
9551         enumerated value.
9552         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
9553
9554 2010-12-04  Bruno Haible  <bruno@clisp.org>
9555
9556         Update for Solaris 11 2010-11.
9557         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
9558         Express, released in November 2010.
9559
9560 2010-12-04  Bruno Haible  <bruno@clisp.org>
9561
9562         nproc: Relax license.
9563         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
9564         and Paul Eggert.
9565         Requested by Ludovic Courtès <ludo@gnu.org>.
9566
9567 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9568
9569         utimecmp: fine-grained src to nearby coarse-grained dest
9570
9571         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
9572         and the source is on a file system with higher-resolution time
9573         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
9574         not work, and the time stamps are close together, the algorithm to
9575         determine the exact resolution from the read-back mtime was buggy:
9576         it had a "!=" where it should have had an "==".  This bug has been
9577         in the code ever since it was introduced to gnulib.
9578         Problem reported by Dan Jacobson in
9579         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
9580
9581 2010-11-30  Bruno Haible  <bruno@clisp.org>
9582
9583         strerror_r-posix: Fix autoconf test.
9584         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
9585
9586 2010-11-28  Bruno Haible  <bruno@clisp.org>
9587             Paul Eggert  <eggert@cs.ucla.edu>
9588
9589         Tests for module 'getdomainname'.
9590         * modules/getdomainname-tests: New file.
9591         * tests/test-getdomainname.c: New file, based on
9592         tests/test-gethostname.c.
9593
9594 2010-11-28  Bruno Haible  <bruno@clisp.org>
9595             Paul Eggert  <eggert@cs.ucla.edu>
9596
9597         getdomainname: Use the system function when possible.
9598         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
9599         (getdomainname): Replace if needed. Provide the declaration if it is
9600         missing. Don't use _GL_CXXALIAS_SYS_CAST.
9601         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
9602         (getdomainname): When the system has getdomainname, call the system
9603         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
9604         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9605         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
9606         found in libnsl. Look for the declaration also in <netdb.h>. Replace
9607         the function if its second argument is of type 'int' or if it is found
9608         in libnsl.
9609         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
9610         <sys/systeminfo.h> and sysinfo().
9611         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
9612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9613         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
9614         HAVE_GETDOMAINNAME.
9615         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
9616         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
9617         * doc/glibc-functions/getdomainname.texi: Document the problems with
9618         the getdomainname declaration.
9619
9620 2010-11-28  Bruno Haible  <bruno@clisp.org>
9621
9622         sys_socket: Ensure ss_family field on AIX.
9623         * lib/sys_socket.in.h (ss_family): New macro definition.
9624         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
9625         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
9626         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9627         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9628         * modules/sys_socket (Makefile.am): Substitute
9629         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9630         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
9631
9632 2010-11-27  Bruno Haible  <bruno@clisp.org>
9633
9634         readline: Improve configure output.
9635         * m4/readline.m4 (gl_FUNC_READLINE): Make the
9636         "checking for readline..." result understandable.
9637
9638 2010-11-27  Bruno Haible  <bruno@clisp.org>
9639
9640         *printf-posix: Detect a bug on Solaris 10/x86.
9641         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
9642         for floating-point output.
9643         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9644         directive.
9645         * tests/test-snprintf-posix.h (test_function): Likewise.
9646         * tests/test-sprintf-posix.h (test_function): Likewise.
9647         * tests/test-vasprintf-posix.c (test_function): Likewise.
9648         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9649         * doc/posix-functions/printf.texi: Likewise.
9650         * doc/posix-functions/snprintf.texi: Likewise.
9651         * doc/posix-functions/sprintf.texi: Likewise.
9652         * doc/posix-functions/vfprintf.texi: Likewise.
9653         * doc/posix-functions/vprintf.texi: Likewise.
9654         * doc/posix-functions/vsnprintf.texi: Likewise.
9655         * doc/posix-functions/vsprintf.texi: Likewise.
9656         * doc/glibc-functions/obstack_printf.texi: Likewise.
9657         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9658
9659 2010-11-27  Bruno Haible  <bruno@clisp.org>
9660
9661         Fix link error when module libunistring-optional is in use.
9662         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9663         * modules/striconveha-tests (Makefile.am): Likewise.
9664
9665 2010-11-27  Bruno Haible  <bruno@clisp.org>
9666
9667         regex: Mention link dependencies.
9668         * modules/regex (Link): New section.
9669         * modules/rpmatch (Link): Likewise.
9670         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9671
9672 2010-11-27  Bruno Haible  <bruno@clisp.org>
9673
9674         ftoastr: Fix compilation error on Solaris.
9675         * lib/ftoastr.c: Include <config.h>.
9676
9677 2010-11-27  Bruno Haible  <bruno@clisp.org>
9678
9679         getloadavg: Update documentation.
9680         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9681
9682 2010-11-27  Bruno Haible  <bruno@clisp.org>
9683
9684         sys_socket: Fix test whether the functions are declared.
9685         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9686         not <sys/select.h>.
9687
9688 2010-11-27  Bruno Haible  <bruno@clisp.org>
9689
9690         getpass: Make sure to get system declaration on some platforms.
9691         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9692         gl_USE_SYSTEM_EXTENSIONS.
9693         * modules/getpass (Depends-on): Add extensions.
9694
9695 2010-11-26  Bruno Haible  <bruno@clisp.org>
9696
9697         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9698         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9699         'iconv' module is present.
9700         (ICONV_CONST): New macro.
9701         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9702         ICONV_CONST.
9703         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9704         set ICONV_CONST.
9705         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9706         here.
9707         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9708         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9709         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9710         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9711         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9712         present.
9713
9714 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9715
9716         ftoastr: comment fix
9717         * lib/ftoastr.c: "little" -> "little or no" in comment
9718
9719 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9720
9721         stdint: port to GCC 4.3 + OSX + Octave
9722         On this platform, stdint.h is buggy and defines int64_t to long
9723         long int.  The replacement defined it to long int, causing
9724         problems with C++ style name mangling.  Instead, trust the system
9725         definition if INT64_MAX is defined, and likewise for the unsigned
9726         variant.   Problem reported by Jarno Rajahalme in
9727         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9728         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9729         and don't mess with int64_t and INT64_MAX in this case.
9730         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9731
9732 2010-11-24  Bruno Haible  <bruno@clisp.org>
9733
9734         doc: Corrections regarding MacOS X 10.4 and 10.5.
9735         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9736         MacOS X.
9737         Reported by Simon Josefsson.
9738
9739 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9740
9741         Uninstall ".bin" files installed by relocwrapper.
9742         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9743         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9744         unless it is already there.
9745
9746 2010-11-21  Bruno Haible  <bruno@clisp.org>
9747
9748         Update for NetBSD 5.0.
9749         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9750         NetBSD; the test fails on NetBSD 5.0.
9751         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9752         about NetBSD.
9753
9754 2010-11-21  Bruno Haible  <bruno@clisp.org>
9755
9756         Update for HP-UX 11.23 and HP-UX 11.31.
9757         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9758         HP-UX.
9759
9760 2010-11-21  Bruno Haible  <bruno@clisp.org>
9761
9762         Update for MacOS X 10.5.
9763         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9764         MacOS X; the test fails on MacOS X 10.5.8.
9765         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9766         about MacOS X.
9767
9768 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9769
9770         bootstrap: add bootstrap_sync option.
9771         See discussion at
9772         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9773         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9774         * build-aux/bootstrap: Accept --bootstrap-sync to update
9775         bootstrap if it is not identical to the local gnulib's
9776         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9777         enable this by default.  Accept --no-bootstrap-sync to disable
9778         it.
9779
9780 2010-11-20  Bruno Haible  <bruno@clisp.org>
9781
9782         Ensure that <features.h> is included before __GLIBC__ is tested.
9783         * lib/printf-parse.h: Include <features.h>.
9784         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9785         Reported by Mike Frysinger <vapier@gentoo.org>.
9786
9787         Ensure that <features.h> is included before __GLIBC__ is tested.
9788         * lib/wchar.in.h: Include <features.h>.
9789         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9790         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9791         Reported by Mike Frysinger <vapier@gentoo.org>.
9792
9793         Ensure that <features.h> is included before __GLIBC__ is tested.
9794         * lib/arpa_inet.in.h: Include <features.h>.
9795         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9796         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9797         Reported by Mike Frysinger <vapier@gentoo.org>.
9798
9799         Ensure that <features.h> is included before __GLIBC__ is tested.
9800         * build-aux/link-warning.h: Include <features.h>.
9801         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9802         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9803         Reported by Mike Frysinger <vapier@gentoo.org>.
9804
9805         Ensure that <features.h> is included before __GLIBC__ is tested.
9806         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9807         Reported by Mike Frysinger <vapier@gentoo.org>.
9808
9809 2010-11-20  Bruno Haible  <bruno@clisp.org>
9810
9811         memmem: Fix autoconf test.
9812         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9813
9814 2010-11-20  Bruno Haible  <bruno@clisp.org>
9815
9816         Port to uClibc.
9817         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9818         * lib/fcntl.in.h: Likewise.
9819         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9820         * lib/mbrtowc.c (mbrtowc): Likewise.
9821         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9822         * lib/strerror_r.c: Likewise.
9823         * lib/unistr/u8-strnlen.c: Likewise.
9824         * lib/vasnprintf.c (decimal_point_char): Likewise.
9825         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9826         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9828         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9829         * tests/test-sigaction.c (handler, main): Likewise.
9830         * lib/freading.h: Treat uClibc like a non-glibc platform.
9831         * lib/freading.c: Likewise.
9832         * lib/gettext.h: Likewise.
9833         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9834         Likewise.
9835         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9836         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9837         * lib/propername.c (proper_name_utf8): Likewise.
9838         * lib/spawn.in.h: Likewise.
9839         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9840         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9841         mem_cd_iconveh_internal): Likewise.
9842         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9843         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9844         strstr, strcasestr): Likewise.
9845         * lib/unicodeio.c (unicode_to_mb): Likewise.
9846         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9847         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9848         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9849         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9850         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9851         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9852         * lib/unistr/u8-stpncpy.c: Likewise.
9853         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9854         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9855         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9856         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9857         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9858         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9859         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9860         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9862         Likewise.
9863         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9864         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9865         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9866         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9867         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9868         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9869         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9870         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9871         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9872         * tests/test-striconveha.c (main): Likewise.
9873         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9874         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9875         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9876         * doc/posix-functions/getline.texi: Likewise.
9877         Reported by Mike Frysinger <vapier@gentoo.org>.
9878
9879 2010-11-20  Bruno Haible  <bruno@clisp.org>
9880
9881         nproc: Fix condition.
9882         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9883         HAVE_PTHREAD_AFFINITY_NP.
9884
9885 2010-11-20  Bruno Haible  <bruno@clisp.org>
9886
9887         Fix a comment.
9888         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9889
9890 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9891
9892         ftoastr: don't assume snprintf
9893         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9894         Implement a subset of snprintf here, by using sprintf safely.
9895         * modules/ftoastr (Depends-on): Remove snprintf.
9896
9897 2010-11-19  Jim Meyering  <meyering@redhat.com>
9898
9899         test-rename.h: fix compilation failure
9900         * tests/test-rename.h (test_rename): Add omitted "}".
9901
9902 2010-11-17  Jim Meyering  <meyering@redhat.com>
9903
9904         maint.mk: add a URL discussing the no-@acronym policy
9905         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9906
9907 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9908
9909         ftoastr: depend on snprintf, improve comments
9910         * lib/ftoastr.c: Also mention Loitsch's draft.
9911         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9912         needed in the current implementation, but it might simplify
9913         speeding up the code later.
9914         * modules/ftoastr: Depend on snprintf; this improves portability.
9915         Suggested by Bruno Haible in the same email.
9916
9917         ftoastr: port to hosts lacking strtof and strtold
9918         Problem reported by Bruno Haible in
9919         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9920         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9921         environment and strtold (and presumably strtof) are not available.
9922         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9923         (configure.ac): Require gl_C99_STRTOLD.
9924
9925 2010-11-18  Bruno Haible  <bruno@clisp.org>
9926
9927         c-strtold: Avoid link error on AIX 7.
9928         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9929         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9930         (gl_C_STRTOLD): Test whether strtold_l exists.
9931         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9932
9933 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9934
9935         intprops: new macro INT_BITS_STRLEN_BOUND
9936         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9937         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9938         not exposed.  Also, it uses a slightly tighter bound than before;
9939         though this makes no practical difference, we might as well be as
9940         tight as we easily can.
9941
9942         ftoastr: new module, for lossless conversion of floats to short strings
9943         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9944         * modules/ftoastr: New files.
9945
9946 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9947
9948         bootstrap: port to Solaris sed
9949         * build-aux/bootstrap (get_version): Port to Solaris sed.
9950         See Ralf Wildenhues's note in
9951         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9952
9953 2010-11-14  Jim Meyering  <meyering@redhat.com>
9954
9955         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9956         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9957         and move definition closer to sole use.
9958
9959 2010-11-13  Jim Meyering  <meyering@redhat.com>
9960
9961         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9962         Now we require at least autoconf-2.59, which means the work-around
9963         is no longer needed.
9964         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9965         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9966         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9967         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9968         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9969
9970 2010-11-13  Bruno Haible  <bruno@clisp.org>
9971
9972         rename, renameat: Avoid test failures at NFS mounted locations.
9973         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9974         functions.
9975         (test_rename): Use assert_nonexistent.
9976         * tests/test-rename.c: Include <dirent.h>.
9977         * tests/test-renameat.c: Likewise.
9978         Reported by Gary V. Vaughan <gary@gnu.org>.
9979
9980         rename, renameat: Document Linux bug with NFS
9981         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9982         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9983         * doc/posix-functions/renameat.texi: Likewise.
9984         Suggested by Eric Blake.
9985
9986 2010-11-13  Bruno Haible  <bruno@clisp.org>
9987
9988         rename test: Add comments.
9989         * tests/test-rename.h (test_rename): Add structure and comments.
9990
9991 2010-11-13  Eric Blake  <eblake@redhat.com>
9992
9993         maintainer-makefile: cover a few more files
9994         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9995         scripts generated within C files, for libvirt.
9996
9997 2010-11-13  Bruno Haible  <bruno@clisp.org>
9998
9999         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
10000         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
10001         character, return the number of bytes that belong together, not always
10002         1.
10003         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10004         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10005         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10006         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
10007         number of bytes of an invalid character.
10008         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
10009         (main): Invoke it.
10010         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
10011         results.
10012         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
10013         malformed byte sequences.
10014         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
10015         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
10016         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
10017         Reported by Ben Pfaff and Paolo Bonzini.
10018
10019 2010-11-13  Bruno Haible  <bruno@clisp.org>
10020
10021         openat: Work around glibc bug with fchownat() and empty file names.
10022         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
10023         (gl_FUNC_FCHOWNAT): Invoke it.
10024         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
10025         * doc/posix-functions/fchownat.texi: Document the glibc bug.
10026         Reported by Gary V. Vaughan <gary@gnu.org>.
10027
10028 2010-11-13  Bruno Haible  <bruno@clisp.org>
10029
10030         openat: Ensure autoconf macro ordering.
10031         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
10032         gl_USE_SYSTEM_EXTENSIONS.
10033         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
10034
10035 2010-11-13  Bruno Haible  <bruno@clisp.org>
10036
10037         Update comments.
10038         * lib/unistr/u8-check.c: Update file name in comments.
10039         * lib/unistr/u8-mblen.c: Likewise.
10040         * lib/unistr/u8-prev.c: Likewise.
10041         * lib/unistr/u8-strmblen.c: Likewise.
10042         * lib/unistr/u8-strmbtouc.c: Likewise.
10043
10044 2010-11-13  Jim Meyering  <meyering@redhat.com>
10045
10046         tests: avoid test failure on Solaris 10 due to lack of PATH export
10047         * tests/test-update-copyright.sh: Don't forget to export PATH.
10048
10049         init.sh: ensure that IFS is defined, just in case...
10050         * tests/init.sh (setup_): Ensure that IFS is defined,
10051         so that saving and restoring it works as expected.  This
10052         appears to be useful at least for an old version of dash
10053         from a long time ago (RH 6).  See here for details:
10054         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
10055
10056         maint.mk: tighten "test a == b" check
10057         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
10058         test to files that contain something like #!/bin/sh.
10059         Without this, coreutils would get two false positives in
10060         the comments of C source files.
10061
10062 2010-11-12  Eric Blake  <eblake@redhat.com>
10063
10064         bootstrap: fix typo in previous attempt
10065         * build-aux/bootstrap (buildreq): Correct the grouping.
10066         Reported by Paul Eggert.
10067
10068         maintainer-makefile: prohibit test x == x
10069         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
10070         Based on a report by Matthias Bolte.
10071
10072         bootstrap: allow FreeBSD gzip
10073         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
10074         which has no '.' and goes to stderr.
10075         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
10076         Reported by Matthias Bolte.
10077
10078         maintainer-makefile: check for i18n setup
10079         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
10080         will likely work.
10081
10082 2010-11-12  Bruno Haible  <bruno@clisp.org>
10083
10084         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
10085         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
10086         * lib/nanosleep.c (nanosleep): Likewise.
10087
10088 2010-11-11  Bruno Haible  <bruno@clisp.org>
10089
10090         fcntl-h: Fix for use of C++ on glibc systems.
10091         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10092         also on glibc systems in C++ mode.
10093         Reported by Gary V. Vaughan <gary@gnu.org>.
10094
10095 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10096
10097         mknod: avoid false failure with dash
10098         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
10099
10100 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
10101
10102         unlink: Fix "is it should" typo in diagnostic.
10103         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
10104         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
10105
10106 2010-11-11  Bruno Haible  <bruno@clisp.org>
10107
10108         Tests for module 'strerror_r-posix'.
10109         * modules/strerror_r-posix-tests: New file.
10110         * tests/test-strerror_r.c: New file.
10111         * tests/test-string-c++.cc: Check the signature of strerror_r.
10112
10113         New module 'strerror_r-posix'.
10114         * lib/string.in.h (strerror_r): New declaration.
10115         * lib/strerror_r.c: New file.
10116         * m4/strerror_r.m4: New file.
10117         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
10118         of strerror_r.
10119         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
10120         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10121         * modules/strerror_r-posix: New file.
10122         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
10123         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10124         * doc/posix-functions/strerror_r.texi: Mention the new module and the
10125         portability problems.
10126
10127 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
10128
10129         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
10130         line is also considered for output. Quoted function name in shell
10131         command, so temporary files for functions like MyClass::operator()
10132         are removed correctly without errors.
10133
10134 2010-11-09  Bruno Haible  <bruno@clisp.org>
10135
10136         * doc/posix-functions/strerror.texi: List more failing platforms.
10137
10138         * doc/posix-functions/strerror.texi: Add a comment.
10139
10140 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10141
10142         fdopendir: fix bug on MacOS X when low on file descriptors
10143
10144         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
10145         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
10146         All callers changed.
10147         (fdopendir): Invoke save_cwd at the top level, not after using
10148         multiple dup() calls to use up file descriptors.  Then retry
10149         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
10150         less than the maximum number of open file descriptors, because
10151         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
10152         on Mac OS X 10.6.4 for tar 1.24
10153         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
10154         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
10155         and for tar 1.25
10156         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
10157
10158 2010-11-07  Bruno Haible  <bruno@clisp.org>
10159
10160         vasnprintf: Support I flag on glibc systems.
10161         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
10162         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
10163         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
10164         snprintf function.
10165         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
10166         glibc systems.
10167         * tests/test-vasnprintf-posix3.c: New file.
10168         * modules/vasnprintf-posix-tests (Files): Add it.
10169         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
10170
10171 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10172
10173         [html] Fix copy/paste bug: Use unique name for compiler warnings.
10174         * MODULES.html.sh: For compiler warnings, use name
10175         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
10176
10177 2010-11-05  Eric Blake  <eblake@redhat.com>
10178
10179         ceil, floor: avoid spurious failure with icc
10180         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
10181         [denormals-as-zero] when optimizing without -mieee-fp option.
10182         * tests/test-floorf2.c (floorf_reference): Likewise.
10183         * tests/test-ceilf1.c (dummy): New function.
10184         (main): Use it to outsmart icc's optimization.
10185         * tests/test-floorf1.c (dummy, main): Likewise.
10186
10187         tests: require working signbit
10188         * modules/ceilf-tests (Depends-on): Add signbit.
10189         * modules/ceill-tests (Depends-on): Likewise.
10190         * modules/floorf-tests (Depends-on): Likewise.
10191         * modules/floorl-tests (Depends-on): Likewise.
10192         * modules/round-tests (Depends-on): Likewise.
10193         * modules/roundf-tests (Depends-on): Likewise.
10194         * modules/roundl-tests (Depends-on): Likewise.
10195         * modules/trunc-tests (Depends-on): Likewise.
10196         * modules/truncf-tests (Depends-on): Likewise.
10197         * modules/truncl-tests (Depends-on): Likewise.
10198
10199         strtod: work around icc bug
10200         * lib/strtod.c (minus_zero): Define to working value.
10201         (strtod): Use it to avoid icc bug.
10202
10203         copysign: enhance tests
10204         * modules/copysign-tests (Files): Add minus-zero.h.
10205         * tests/test-copysign.c (main): Also test zeros.
10206
10207 2010-11-04  Eric Blake  <eblake@redhat.com>
10208
10209         ceil, floor, round, trunc: enhance tests of -0
10210         * tests/test-ceilf1.c (main): Ensure correct sign of result.
10211         * tests/test-ceill.c (main): Likewise.
10212         * tests/test-floorf1.c (main): Likewise.
10213         * tests/test-floorl.c (main): Likewise.
10214         * tests/test-round1.c (main): Likewise.
10215         * tests/test-roundf1.c (main): Likewise.
10216         * tests/test-roundl.c (main): Likewise.
10217         * tests/test-trunc1.c (main): Likewise.
10218         * tests/test-truncf1.c (main): Likewise.
10219         * tests/test-truncl.c (main): Likewise.
10220
10221 2010-11-04  Eric Blake  <eblake@redhat.com>
10222
10223         frexp, tests: work around ICC bug with -zero
10224         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
10225         works with more compilers.
10226         * tests/minus-zero.h: New file.
10227         * modules/ceilf-tests (Files): Include it.
10228         * modules/ceill-tests (Files): Likewise.
10229         * modules/floorf-tests (Files): Likewise.
10230         * modules/floorl-tests (Files): Likewise.
10231         * modules/frexp-nolibm-tests (Files): Likewise.
10232         * modules/frexp-tests (Files): Likewise.
10233         * modules/frexpl-nolibm-tests (Files): Likewise.
10234         * modules/frexpl-tests (Files): Likewise.
10235         * modules/isnan-tests (Files): Likewise.
10236         * modules/isnand-nolibm-tests (Files): Likewise.
10237         * modules/isnand-tests (Files): Likewise.
10238         * modules/isnanf-nolibm-tests (Files): Likewise.
10239         * modules/isnanf-tests (Files): Likewise.
10240         * modules/isnanl-nolibm-tests (Files): Likewise.
10241         * modules/isnanl-tests (Files): Likewise.
10242         * modules/round-tests (Files): Likewise.
10243         * modules/roundf-tests (Files): Likewise.
10244         * modules/roundl-tests (Files): Likewise.
10245         * modules/ldexpl-tests (Files): Likewise.
10246         * modules/signbit-tests (Files): Likewise.
10247         * modules/snprintf-posix-tests (Files): Likewise.
10248         * modules/sprintf-posix-tests (Files): Likewise.
10249         * modules/strtod-tests (Files): Likewise.
10250         * modules/trunc-tests (Files): Likewise.
10251         * modules/truncf-tests (Files): Likewise.
10252         * modules/truncl-tests (Files): Likewise.
10253         * modules/vsnprintf-posix-tests (Files): Likewise.
10254         * modules/vsprintf-posix-tests (Files): Likewise.
10255         * modules/vasnprintf-posix-tests (Files): Likewise.
10256         * modules/vasprintf-posix-tests (Files): Likewise.
10257         * tests/test-ceilf1.c (main): Use it.
10258         * tests/test-ceill.c (main): Likewise.
10259         * tests/test-floorf1.c (main): Likewise.
10260         * tests/test-floorl.c (main): Likewise.
10261         * tests/test-frexp.c (main): Likewise.
10262         * tests/test-frexpl.c (main): Likewise.
10263         * tests/test-isnan.c (main): Likewise.
10264         * tests/test-isnand.h (main): Likewise.
10265         * tests/test-isnanf.h (main): Likewise.
10266         * tests/test-isnanl.h (main): Likewise.
10267         * tests/test-ldexpl.c (main): Likewise.
10268         * tests/test-round.c (main): Likewise.
10269         * tests/test-roundf.c (main): Likewise.
10270         * tests/test-roundl.c (main): Likewise.
10271         * tests/test-signbit.c (test_signbitf, test_signbitd)
10272         (test_signbitl): Likewise.
10273         * tests/test-snprintf-posix.h (test_function): Likewise.
10274         * tests/test-sprintf-posix.h (test_function): Likewise.
10275         * tests/test-strtod.c (main): Likewise.
10276         * tests/test-trunc1.c (main): Likewise.
10277         * tests/test-truncf1.c (main): Likewise.
10278         * tests/test-truncl.c (main): Likewise.
10279
10280         isnanl: work around icc bug
10281         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
10282
10283 2010-11-03  Eric Blake  <eblake@redhat.com>
10284
10285         tests: fix compiler warnings
10286         * tests/test-getopt.h (test_getopt): Fix condition.
10287         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10288         * tests/test-pipe2.c (main): Likewise.
10289         * tests/test-quotearg-simple.c (main): Avoid icc warning.
10290
10291         utimens: fix broken m4 test
10292         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
10293
10294 2010-10-28  Bruno Haible  <bruno@clisp.org>
10295
10296         posix_spawn*, getdtablesize: Relax license.
10297         * modules/posix_spawn (License): Change to LGPLv2+.
10298         * modules/posix_spawnp (License): Likewise.
10299         * modules/posix_spawn-internal (License): Likewise.
10300         * modules/posix_spawnattr_init (License): Likewise.
10301         * modules/posix_spawnattr_getflags (License): Likewise.
10302         * modules/posix_spawnattr_setflags (License): Likewise.
10303         * modules/posix_spawnattr_getpgroup (License): Likewise.
10304         * modules/posix_spawnattr_setpgroup (License): Likewise.
10305         * modules/posix_spawnattr_getschedparam (License): Likewise.
10306         * modules/posix_spawnattr_setschedparam (License): Likewise.
10307         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
10308         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
10309         * modules/posix_spawnattr_getsigdefault (License): Likewise.
10310         * modules/posix_spawnattr_setsigdefault (License): Likewise.
10311         * modules/posix_spawnattr_getsigmask (License): Likewise.
10312         * modules/posix_spawnattr_setsigmask (License): Likewise.
10313         * modules/posix_spawnattr_destroy (License): Likewise.
10314         * modules/posix_spawn_file_actions_init (License): Likewise.
10315         * modules/posix_spawn_file_actions_addclose (License): Likewise.
10316         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
10317         * modules/posix_spawn_file_actions_addopen (License): Likewise.
10318         * modules/posix_spawn_file_actions_destroy (License): Likewise.
10319         * modules/getdtablesize (License): Likewise.
10320         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
10321
10322 2010-10-26  Bruno Haible  <bruno@clisp.org>
10323
10324         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
10325         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
10326         Cygwin and mingw.
10327         Suggested by Eric Blake.
10328
10329 2010-10-26  Bruno Haible  <bruno@clisp.org>
10330
10331         stdio: Work around compilation error due to renameat() on Solaris 10.
10332         * lib/stdio.in.h: Include <unistd.h> on Solaris.
10333         * lib/renameat.c: Don't include <unistd.h> here.
10334         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
10335         Reported by Paul Eggert and Eric Blake.
10336
10337 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10338
10339         renameat: port to Solaris 10, which declares renameat in unistd.h
10340
10341         * lib/renameat.c: Include unistd.h before stdio.h, because
10342         Solaris 10 declares renameat in unistd.h.  Problem encountered
10343         when building GNU tar 1.24 on Solaris 10.
10344
10345 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10346
10347         fdopendir: fix C89 compilation
10348         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
10349         compilers.
10350
10351 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10352
10353         inttostr: simplify by removing unnecessary redundancy
10354         * lib/anytostr.c: Don't include verify.h.
10355         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
10356         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
10357         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
10358         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
10359         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
10360         Likewise.
10361         * modules/inttostr (Depends-on): Remove 'verify'.
10362
10363 2010-10-23  Bruno Haible  <bruno@clisp.org>
10364
10365         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
10366         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
10367         Reported by Eric Blake.
10368
10369 2010-10-23  Bruno Haible  <bruno@clisp.org>
10370
10371         Tests: Fix LOCALE_JA on MirBSD 10.
10372         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
10373         to an UTF-8 locale.
10374         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
10375         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10376         Reported by Eric Blake.
10377
10378 2010-10-21  Bruno Haible  <bruno@clisp.org>
10379
10380         nl_langinfo test: Avoid test failure on NetBSD 5.
10381         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
10382         Reported by Eric Blake.
10383
10384 2010-10-21  Eric Blake  <eblake@redhat.com>
10385
10386         c-stack: work around libsigsegv 2.8 bug
10387         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
10388         overflow on at least PowerPC64.
10389
10390 2010-10-17  Bruno Haible  <bruno@clisp.org>
10391
10392         userspec: Drop redundant file.
10393         * modules/userspec (Files): Remove lib/inttostr.h.
10394
10395 2010-10-17  Bruno Haible  <bruno@clisp.org>
10396
10397         nl_langinfo tests: Silence some warnings.
10398         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
10399         Reported by Jim Meyering.
10400
10401 2010-10-17  Bruno Haible  <bruno@clisp.org>
10402
10403         Make use of GCC's attribute __alloc_size__.
10404         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
10405         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
10406         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
10407         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
10408         __alloc_size__.
10409         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10410         Suggested by Jim Meyering.
10411
10412 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
10413
10414         bootstrap: anchor .gitignore entries.
10415         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
10416         with...
10417         (insert_vc_ignore): ... this new function, which prepends `/' to
10418         all .gitignore entries before passing them to
10419         insert_sorted_if_absent.
10420
10421 2010-10-16  Bruno Haible  <bruno@clisp.org>
10422
10423         nextafter: Fix configure check.
10424         * modules/nextafter (configure.ac): Correct expected prototype.
10425
10426 2010-10-16  Bruno Haible  <bruno@clisp.org>
10427
10428         termios: Update documentation.
10429         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
10430
10431 2010-10-16  Bruno Haible  <bruno@clisp.org>
10432
10433         tests: Make them compile with TinyCC.
10434         * tests/test-strstr.c (main): Remove parentheses around array
10435         initializer.
10436
10437 2010-10-15  Eric Blake  <eblake@redhat.com>
10438
10439         ignore-value: make header idempotent
10440         * lib/ignore-value.h: Add double-inclusion guards.
10441         Reported by Stefan Berger.
10442
10443 2010-10-15  Jim Meyering  <meyering@redhat.com>
10444
10445         GNUmakefile: handle "stable" target, not "major"
10446         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
10447         lists in maint.mk and announce-gen.  Without this, "make stable"
10448         would fail to ensure that $(VERSION) is up to date.
10449
10450 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
10451
10452         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
10453         & co.
10454
10455 2010-10-14  Bruno Haible  <bruno@clisp.org>
10456
10457         vasnprintf: Don't set errno to 0.
10458         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
10459         block that sets it to 0.
10460         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
10461
10462 2010-10-14  Bruno Haible  <bruno@clisp.org>
10463
10464         socketlib: Fix.
10465         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
10466         gl_PREREQ_SYS_H_WINSOCK2.
10467         Reported by Ian Beckwith <ianb@erislabs.net>.
10468
10469 2010-10-13  Jim Meyering  <meyering@redhat.com>
10470
10471         test-select-stdin.c: avoid warn_unused_result warnings
10472         * tests/test-select-stdin.c: Include "macros.h".
10473         ASSERT that read and fflush succeed.
10474
10475 2010-10-13  Jim Meyering  <meyering@redhat.com>
10476
10477         git-version-gen: do require git-VC'd files in cwd
10478         * build-aux/git-version-gen: Reject a git version string
10479         if there are no commits associated with the current directory.
10480         This avoids an unlikely false-positive (unrelated dir whose parent
10481         repository also contains a tag matching v*), as pointed out
10482         by Giuseppe Scrivano in
10483         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
10484
10485 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10486
10487         argv-iter: omit nonconforming declaration
10488         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
10489         enum arg_iter_err declaration, which doesn't conform to C99.
10490         Solaris 10 cc warns about this.
10491
10492 2010-10-13  Eric Blake  <eblake@redhat.com>
10493
10494         termios: fix compilation on mingw
10495         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
10496         (gl_TERMIOS_H): Adjust it on mingw.
10497         * modules/termios (Makefile.am): Substitute new key.
10498         * lib/termios.in.h (includes): Make include_next conditional.
10499         * doc/posix-headers/termios.texi (termios.h): Update
10500         documentation.
10501         Reported by Daniel P. Berrange.
10502
10503 2010-10-13  Jim Meyering  <meyering@redhat.com>
10504
10505         git-version-gen: don't require that .git/ be in the current dir
10506         * build-aux/git-version-gen: Adjust this script so that it works
10507         when run from any working directory beneath the top-level .git/-
10508         containing directory.  Inspired by a patch from Giuseppe Scrivano,
10509         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
10510
10511         test-select: avoid warn_unused_result warnings
10512         * tests/test-select.c: Include "macros.h".
10513         ASSERT that each call to read, write, and pipe succeeds.
10514         While not technically required, also check each "close".
10515         * modules/select-tests (Files): Add tests/macros.h.
10516
10517         test-symlinkat: remove declaration of unused local
10518         * tests/test-symlinkat.c (main): Remove unused local, "buf".
10519
10520         test-inttostr: avoid shadowing warnings
10521         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
10522         and use malloc rather than the stack for the same reason as
10523         mentioned in the comment justifying the other allocation.
10524
10525 2010-10-11  Bruno Haible  <bruno@clisp.org>
10526
10527         stdlib: Allow multiple gnulib generated replacements to coexist.
10528         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
10529         Reported by Sam Steingold <sds@gnu.org>.
10530
10531 2010-10-11  Jim Meyering  <meyering@redhat.com>
10532
10533         fix a documentation typo
10534         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
10535
10536 2010-10-11  Eric Blake  <eblake@redhat.com>
10537
10538         futimens: work around Solaris 11 bug
10539         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
10540         * tests/test-futimens.h (test_futimens): Enhance, rather than
10541         weaken test.
10542         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10543
10544 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10545
10546         Indentation.
10547         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
10548         higher-level operators more to the left.
10549
10550 2010-10-11  Jim Meyering  <meyering@redhat.com>
10551
10552         test-futimens: avoid unwarranted test failure on Solaris 5.11
10553         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
10554         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
10555         because it tries to dereference the NULL name argument.
10556
10557 2010-10-11  Bruno Haible  <bruno@clisp.org>
10558
10559         Indentation.
10560         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
10561         indentation.
10562
10563 2010-10-11  Jim Meyering  <meyering@redhat.com>
10564
10565         spawn.in.h: make indentation consistent with parentheses
10566         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
10567         Make indentation consistent with parentheses.
10568
10569 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
10570
10571         Fix mismatched parens in previous commit
10572         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
10573         parens.
10574
10575 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10576
10577         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
10578
10579         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
10580         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
10581         * lib/malloca.c: Include "verify.h".
10582         (verify1): Remove, replacing with a verify call.
10583         * lib/relocwrapper.c (verify1): Likewise.
10584         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
10585         Likewise.
10586         * modules/malloca (Depends-on): Add 'verify'.
10587         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
10588         * modules/vasnprintf (Depends-on): Add 'verify'.
10589         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10590         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10591         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10592         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10593         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10594         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10595         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10596
10597         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
10598
10599         Formerly the style was sometimes 2*X - 1, because the C standard
10600         was wrongly thought to disallow ?: in integral constant expressions.
10601         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
10602         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
10603         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10604         * lib/stdint.in.h (_verify_intmax_size): Likewise.
10605         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
10606         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
10607         verify that time_t cannot be floating.
10608
10609 2010-10-08  Eric Blake  <eblake@redhat.com>
10610
10611         time: enforce recent POSIX ruling that time_t is integral
10612         * lib/time.in.h (__time_t_must_be_integral): Detect any
10613         problematic systems, allowing the rest of gnulib to assume POSIX.
10614
10615 2010-10-08  Jim Meyering  <meyering@redhat.com>
10616
10617         fdopendir: fix a bug on systems lacking openat and /proc support
10618         OpenBSD 4.7 is one such system.  The most noticeable effect was
10619         failure of any application making nontrivial use of fts: rm, du,
10620         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
10621           ./rm: traversal failed: `a': Bad file descriptor
10622         Debugging that, you see that even though FD 6 was closed just
10623         prior to the opendir call in fd_clone_opendir, its resulting
10624         dir->dd_fd was 8, rather than the expected value of 6:
10625
10626         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
10627         93                close (fd);
10628         (gdb) n
10629         94                dir = fd_clone_opendir (dupfd);
10630         (gdb) n
10631         95                saved_errno = errno;
10632         (gdb) p dir->dd_fd
10633         $11 = 8
10634
10635         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
10636         The problem is that on OpenBSD, fd_clone_opendir has to resort
10637         to using the old-style save/restore CWD mechanism, due to its
10638         lack of openat/proc support, and *that* would steal the FD (6)
10639         that opendir was supposed to use.
10640
10641         The fix is to squirrel away the desired FD so that save_cwd uses a
10642         different one, and then free the dest FD right before calling opendir.
10643         That guarantees opendir will use the required file descriptor.
10644
10645         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10646
10647 2010-10-08  Bruno Haible  <bruno@clisp.org>
10648
10649         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10650         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10651
10652 2010-10-08  Bruno Haible  <bruno@clisp.org>
10653
10654         nanosleep: Make replacement POSIX compliant.
10655         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10656         is out of range.
10657         Reported by Jim Meyering.
10658
10659 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10660
10661         bootstrap: add hook for altering gnulib.mk, for Bison
10662         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10663         the Bison bootstrapping process can rewrite file names and variables
10664         in this file before later parts of 'bootstrap' use the file.
10665         Bison wants to include lib/gnulib.mk from the top-level makefile,
10666         so it needs the file names in this file to be relative to the top
10667         level, not relative to lib; plus it needs variable names to be
10668         rewritten.
10669         (slurp): Use the new function.
10670
10671         bootstrap: reformat for readability
10672         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10673
10674 2010-10-08  Eric Blake  <eblake@redhat.com>
10675
10676         docs: update cygwin progress
10677         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10678         1.7.7.
10679         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10680         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10681         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10682         * doc/posix-functions/carg.texi (carg): Likewise.
10683         * doc/posix-functions/cargf.texi (cargf): Likewise.
10684         * doc/posix-functions/casin.texi (casin): Likewise.
10685         * doc/posix-functions/casinf.texi (casinf): Likewise.
10686         * doc/posix-functions/casinh.texi (casinh): Likewise.
10687         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10688         * doc/posix-functions/catan.texi (catan): Likewise.
10689         * doc/posix-functions/catanf.texi (catanf): Likewise.
10690         * doc/posix-functions/catanh.texi (catanh): Likewise.
10691         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10692         * doc/posix-functions/ccos.texi (ccos): Likewise.
10693         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10694         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10695         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10696         * doc/posix-functions/cexp.texi (cexp): Likewise.
10697         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10698         * doc/posix-functions/cimag.texi (cimag): Likewise.
10699         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10700         * doc/posix-functions/clog.texi (clog): Likewise.
10701         * doc/posix-functions/clogf.texi (clogf): Likewise.
10702         * doc/posix-functions/conj.texi (conj): Likewise.
10703         * doc/posix-functions/conjf.texi (conjf): Likewise.
10704         * doc/posix-functions/cpow.texi (cpow): Likewise.
10705         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10706         * doc/posix-functions/cproj.texi (cproj): Likewise.
10707         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10708         * doc/posix-functions/creal.texi (creal): Likewise.
10709         * doc/posix-functions/crealf.texi (crealf): Likewise.
10710         * doc/posix-functions/csin.texi (csin): Likewise.
10711         * doc/posix-functions/csinf.texi (csinf): Likewise.
10712         * doc/posix-functions/csinh.texi (csinh): Likewise.
10713         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10714         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10715         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10716         * doc/posix-functions/ctan.texi (ctan): Likewise.
10717         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10718         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10719         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10720         * doc/posix-headers/complex.texi (complex.h): Likewise.
10721
10722 2010-10-07  Jim Meyering  <meyering@redhat.com>
10723
10724         parse-datetime: avoid compilation failure on OpenBSD 4.7
10725         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10726         This works around a compilation failure on OpenBSD 4.7:
10727         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10728
10729 2010-10-07  Eric Blake  <eblake@redhat.com>
10730
10731         docs: update cygwin progress
10732         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10733         1.7.6.
10734         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10735         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10736         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10737         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10738         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10739         Likewise.
10740         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10741         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10742         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10743         Likewise.
10744         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10745         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10746         Likewise.
10747         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10748         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10749         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10750         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10751         Likewise.
10752         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10753         Likewise.
10754         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10755
10756         docs: update parse-datetime history
10757         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10758         documentation of this function's history and alternatives.
10759
10760         cygwin: use more robust version check
10761         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10762         exclude an eventual cygwin 1.9.1.
10763         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10764         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10765         (gl_FUNC_STRCASESTR): Likewise.
10766         Reported by Bruno Haible.
10767
10768 2010-10-06  Bruno Haible  <bruno@clisp.org>
10769
10770         string, sys_select: Avoid #including large headers unless necessary.
10771         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10772         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10773         OSF/1, BeOS, Haiku.
10774         Reported by Jim Meyering.
10775
10776 2010-10-05  Eric Blake  <eblake@redhat.com>
10777
10778         memmem, strstr, strcasestr: fix bug with long periodic needle
10779         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10780         periodic needle having false positive.
10781         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10782         and cygwin 1.7.7.
10783         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10785         (gl_FUNC_STRCASESTR): Likewise.
10786         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10787         * tests/test-memmem.c (main): Expose the bug.
10788         * tests/test-strcasestr.c (main): Likewise.
10789         * tests/test-strstr.c (main): Likewise.
10790         * tests/test-c-strcasestr.c (main): Likewise.
10791         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10792         * doc/posix-functions/strstr.texi (strstr): Likewise.
10793         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10794         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10795
10796 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10797
10798         parse-datetime: do some more renaming
10799         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10800         parse_datetime, not get_date.  Mention the renaming.
10801         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10802         in comments.
10803         * m4/bison.m4: Likewise.
10804
10805 2010-10-05  Eric Blake  <eblake@redhat.com>
10806
10807         parse-datetime: better name than get_date
10808         * NEWS: Reword the deprecation notice.
10809         * modules/get_date: Rename to modules/parse-datetime.
10810         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10811         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10812         * lib/get_date.y: Rename to lib/parse-datetime.y.
10813         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10814         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10815         * doc/getdate.texi: Provide fallback wrapper.
10816         * lib/getdate.h: Move guts, and wrap...
10817         * lib/parse-datetime.h: ...new file.
10818         * lib/parse-datetime.y (get_date): Rename...
10819         (parse_datetime): ...to this.
10820         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10821         (gl_PARSE_DATETIME): ...to this.
10822         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10823         documentation.
10824         * modules/getdate (Files): Provide fallback docs and header.
10825         (Notice, Depends-on): Update references.
10826         * tests/test-parse-datetime.c: Likewise.
10827         * DEPENDENCIES: Likewise.
10828         * MODULES.html.sh (Date and time <time.h>): Likewise.
10829         * doc/parse-datetime.texi (Date input formats)
10830         (Authors of parse_datetime): Likewise.
10831         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10832         (Include): Likewise.
10833         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10834         * gnulib-tool: Likewise.
10835         * m4/bison.m4 (gl_BISON): Likewise.
10836         Suggested by Bruno Haible.
10837
10838 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10839
10840         more ports to Solaris tr, which needs [] around ranges
10841         * gnulib-tool: Solaris tr needs [] around ranges.
10842         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10843         * tests/test-pipe-filter-gi1.c (main): Likewise.
10844         * tests/test-pipe-filter-ii1.c (main): Likewise.
10845
10846 2010-10-05  Eric Blake  <eblake@redhat.com>
10847
10848         bootstrap: fix Solaris regression
10849         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10850         around ranges.
10851         Reported by Pádraig Brady.
10852
10853         bootstrap: work with pkg-config
10854         * build-aux/bootstrap (check_versions): Also transliterate - in
10855         prerequisite name.
10856         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10857         prerequisites that were already found, to avoid confusion.
10858         Reported by Justin Clift.
10859
10860         faccessat: remove unused wrappers
10861         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10862         presence of these wrappers dragged in -lgen on Solaris.
10863         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10864
10865 2010-10-05  Jim Meyering  <meyering@redhat.com>
10866
10867         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10868         * Makefile (sc_pragma_columns): New syntax-check rule.
10869
10870 2010-10-04  Bruno Haible  <bruno@clisp.org>
10871
10872         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10873         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10874         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10875         Reported by Bruce Korb and Eric Blake.
10876
10877 2010-10-04  Bruno Haible  <bruno@clisp.org>
10878
10879         threadlib: Make option --with-libpth-prefix work.
10880         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10881         use $LIBPTH, not just -lpth.
10882
10883 2010-10-04  Bruno Haible  <bruno@clisp.org>
10884
10885         Avoid line length limitation from HP NonStop system header files.
10886         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10887         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10888         * lib/ctype.in.h: Likewise.
10889         * lib/dirent.in.h: Likewise.
10890         * lib/errno.in.h: Likewise.
10891         * lib/fcntl.in.h: Likewise.
10892         * lib/float.in.h: Likewise.
10893         * lib/getopt.in.h: Likewise.
10894         * lib/iconv.in.h: Likewise.
10895         * lib/inttypes.in.h: Likewise.
10896         * lib/langinfo.in.h: Likewise.
10897         * lib/locale.in.h: Likewise.
10898         * lib/math.in.h: Likewise.
10899         * lib/netdb.in.h: Likewise.
10900         * lib/netinet_in.in.h: Likewise.
10901         * lib/poll.in.h: Likewise.
10902         * lib/pthread.in.h: Likewise.
10903         * lib/pty.in.h: Likewise.
10904         * lib/sched.in.h: Likewise.
10905         * lib/se-selinux.in.h: Likewise.
10906         * lib/search.in.h: Likewise.
10907         * lib/signal.in.h: Likewise.
10908         * lib/spawn.in.h: Likewise.
10909         * lib/stdarg.in.h: Likewise.
10910         * lib/stddef.in.h: Likewise.
10911         * lib/stdint.in.h: Likewise.
10912         * lib/stdio.in.h: Likewise.
10913         * lib/stdlib.in.h: Likewise.
10914         * lib/string.in.h: Likewise.
10915         * lib/strings.in.h: Likewise.
10916         * lib/sys_file.in.h: Likewise.
10917         * lib/sys_ioctl.in.h: Likewise.
10918         * lib/sys_select.in.h: Likewise.
10919         * lib/sys_socket.in.h: Likewise.
10920         * lib/sys_stat.in.h: Likewise.
10921         * lib/sys_time.in.h: Likewise.
10922         * lib/sys_times.in.h: Likewise.
10923         * lib/sys_utsname.in.h: Likewise.
10924         * lib/sys_wait.in.h: Likewise.
10925         * lib/sysexits.in.h: Likewise.
10926         * lib/termios.in.h: Likewise.
10927         * lib/time.in.h: Likewise.
10928         * lib/unistd.in.h: Likewise.
10929         * lib/wchar.in.h: Likewise.
10930         * lib/wctype.in.h: Likewise.
10931         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10932         * modules/ctype (Makefile.am): Likewise.
10933         * modules/dirent (Makefile.am): Likewise.
10934         * modules/errno (Makefile.am): Likewise.
10935         * modules/fcntl-h (Makefile.am): Likewise.
10936         * modules/float (Makefile.am): Likewise.
10937         * modules/getopt-posix (Makefile.am): Likewise.
10938         * modules/iconv-h (Makefile.am): Likewise.
10939         * modules/inttypes (Makefile.am): Likewise.
10940         * modules/langinfo (Makefile.am): Likewise.
10941         * modules/locale (Makefile.am): Likewise.
10942         * modules/math (Makefile.am): Likewise.
10943         * modules/netdb (Makefile.am): Likewise.
10944         * modules/netinet_in (Makefile.am): Likewise.
10945         * modules/poll-h (Makefile.am): Likewise.
10946         * modules/pthread (Makefile.am): Likewise.
10947         * modules/pty (Makefile.am): Likewise.
10948         * modules/sched (Makefile.am): Likewise.
10949         * modules/search (Makefile.am): Likewise.
10950         * modules/selinux-h (Makefile.am): Likewise.
10951         * modules/signal (Makefile.am): Likewise.
10952         * modules/spawn (Makefile.am): Likewise.
10953         * modules/stdarg (Makefile.am): Likewise.
10954         * modules/stddef (Makefile.am): Likewise.
10955         * modules/stdint (Makefile.am): Likewise.
10956         * modules/stdio (Makefile.am): Likewise.
10957         * modules/stdlib (Makefile.am): Likewise.
10958         * modules/string (Makefile.am): Likewise.
10959         * modules/strings (Makefile.am): Likewise.
10960         * modules/sys_file (Makefile.am): Likewise.
10961         * modules/sys_ioctl (Makefile.am): Likewise.
10962         * modules/sys_select (Makefile.am): Likewise.
10963         * modules/sys_socket (Makefile.am): Likewise.
10964         * modules/sys_stat (Makefile.am): Likewise.
10965         * modules/sys_time (Makefile.am): Likewise.
10966         * modules/sys_times (Makefile.am): Likewise.
10967         * modules/sys_utsname (Makefile.am): Likewise.
10968         * modules/sys_wait (Makefile.am): Likewise.
10969         * modules/sysexits (Makefile.am): Likewise.
10970         * modules/termios (Makefile.am): Likewise.
10971         * modules/time (Makefile.am): Likewise.
10972         * modules/unistd (Makefile.am): Likewise.
10973         * modules/wchar (Makefile.am): Likewise.
10974         * modules/wctype (Makefile.am): Likewise.
10975
10976 2010-10-04  Bruno Haible  <bruno@clisp.org>
10977
10978         read-file tests: Avoid a test failure on NonStop Kernel.
10979         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10980         a regular file.
10981         Reported by Joachim Schmitz <schmitz@hp.com>.
10982
10983 2010-10-03  Bruno Haible  <bruno@clisp.org>
10984
10985         gnulib-tool: Fixes for --create-testdir with --libtool.
10986         * gnulib-tool (func_get_automake_snippet): Don't augment
10987         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10988         an executable.
10989         (func_create_testdir): Handle module 'alloca' like func_import.
10990         Reported by Bruce Korb <bruce.korb@gmail.com>.
10991
10992 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10993
10994         Avoid some lines longer than 80 characters.
10995         * lib/stdint.in.h: Break long comment lines.
10996         * lib/math.in.h: Likewise.
10997         (_GL_NUM_UINT_WORDS): New macro, for readability.
10998         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10999         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
11000         * lib/stdlib.in.h: Likewise.
11001         * lib/spawn.in.h: Likewise.
11002         * lib/sys_socket.in.h: Update an URL.
11003         * lib/sys_stat.in.h: Break long line.
11004
11005 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
11006
11007         Improve pmccabe2html.
11008         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
11009         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
11010         when the sources change. Remove the line in the HTML about "Used
11011         ranges" (which implied that there might be other unused ranges),
11012         rename "Resume" to "Summary" (easier to understand for more users).
11013         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
11014         styles, and some unnecessary blank lines.
11015
11016 2010-10-03  Bruno Haible  <bruno@clisp.org>
11017             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11018
11019         acl: Add support for ACLs on NonStop Kernel.
11020         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
11021         Check whether the function aclsort() exists.
11022         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
11023         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
11024         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11025         (acl_nontrivial [HAVE_ACLSORT]: New function.
11026         (file_has_acl): Implement for NonStop Kernel.
11027         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11028         (qset_acl): Implement for NonStop Kernel.
11029         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
11030         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11031         (main): Implement for NonStop Kernel.
11032         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
11033         Kernel. Handle this flavor.
11034         * tests/test-set-mode-acl.sh: Likewise.
11035         * tests/test-copy-acl.sh: Likewise.
11036         * tests/test-copy-file.sh: Likewise.
11037
11038 2010-10-03  Bruno Haible  <bruno@clisp.org>
11039
11040         Info about ACLs on NonStop Kernel.
11041         * doc/acl-resources.txt: Add info about NonStop Kernel.
11042         References by Joachim Schmitz <schmitz@hp.com>.
11043
11044 2010-10-02  Bruno Haible  <bruno@clisp.org>
11045
11046         Define missing EDQUOT on NonStop Kernel.
11047         * lib/errno.in.h (EDQUOT): Assign a value if missing.
11048         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
11049         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
11050         missing.
11051         * doc/posix-headers/errno.texi: Mention the NSK bug.
11052         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
11053         Reported by Joachim Schmitz <schmitz@hp.com>.
11054
11055 2010-10-02  Bruno Haible  <bruno@clisp.org>
11056
11057         Update doc for POSIX:2008.
11058         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
11059         Update URL of POSIX specification.
11060
11061 2010-10-02  Bruno Haible  <bruno@clisp.org>
11062
11063         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
11064         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
11065         from gnulib, not from Automake.
11066
11067 2010-10-02  Bruno Haible  <bruno@clisp.org>
11068
11069         New module 'system-posix'.
11070         * modules/system-posix: New file.
11071         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
11072         module is present.
11073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11074         GNULIB_SYSTEM_POSIX.
11075         * modules/stdlib (Depends-on): Remove sys_wait.
11076         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
11077         * doc/posix-functions/system.texi: Mention the new module.
11078         * doc/posix-headers/stdlib.texi: Likewise.
11079         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
11080         define test_sys_wait_macros to a no-op.
11081         Reported by Sam Steingold <sds@gnu.org>.
11082
11083 2010-09-30  Bruno Haible  <bruno@clisp.org>
11084
11085         More renaming from 'getdate' to 'get_date'.
11086         * doc/get_date.texi: Renamed from doc/getdate.texi.
11087         * modules/get_date (Files): Update.
11088         * MODULES.html.sh (Date and time <time.h>): Update.
11089         * DEPENDENCIES: Update.
11090         * gnulib-tool: Update comment.
11091         * m4/bison.m4 (gl_BISON): Likewise.
11092         * m4/get_date.m4 (gl_GET_DATE): Likewise.
11093
11094 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
11095
11096         bootstrap: support ACLOCAL_FLAGS during aclocal
11097         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
11098         can add additional -I dir for third-party .m4 files.
11099
11100 2010-09-30  Eric Blake  <eblake@redhat.com>
11101
11102         bootstrap: use glibtoolize on MacOS
11103         * build-aux/bootstrap (check_versions): Convert libtool into
11104         libtoolize.
11105         (tool search): Move libtool check earlier, and look for
11106         glibtoolize for MacOS.
11107         (gnulib_tool_options): Auto-add --libtool when appropriate.
11108         Reported by Justin Clift.
11109
11110         poll: fix typo that broke test on MacOS
11111         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
11112         Reported by Justin Clift.
11113
11114         getdate: rename to get_date
11115         Note: getdate.h is not renamed, to minimize client impact.
11116         * modules/getdate: Mark obsolete.  Move old contents...
11117         * modules/get_date: ...to new module name.
11118         * modules/getdate-tests: Move...
11119         * modules/get_date-tests: ...here.
11120         * m4/getdate.m4: Move...
11121         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
11122         * lib/getdate.y: Move...
11123         * lib/get_date.y: ...here.
11124         * tests/test-getdate.c: Move...
11125         * tests/test-get_date.c: ...here.
11126         * doc/posix-functions/getdate.texi (getdate): Update name.
11127         * NEWS: Mention the change.
11128
11129 2010-09-29  Bruno Haible  <bruno@clisp.org>
11130
11131         Separate the module 'waitpid' from the module 'sys_wait'.
11132         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
11133         present.
11134         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
11135         gl_MODULE_INDICATOR_FOR_TESTS.
11136         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
11137         * modules/sys_wait (Depends-on): Remove waitpid.
11138         (Makefile.am): Substitute GNULIB_WAITPID.
11139         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
11140         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
11141         signature only if the 'waitpid' module is present.
11142         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
11143         * NEWS: Mention the change.
11144         * modules/grantpt (Depends-on): Add waitpid.
11145         * modules/wait-process (Depends-on): Likewise.
11146
11147 2010-09-29  Bruno Haible  <bruno@clisp.org>
11148
11149         More tests for module 'sys_wait'.
11150         * modules/sys_wait-c++-tests: New file.
11151         * tests/test-sys_wait-c++.cc: New file.
11152         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
11153         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11154
11155 2010-09-29  Bruno Haible  <bruno@clisp.org>
11156
11157         New module 'waitpid'.
11158         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
11159         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
11160         Don't include <process.h>.
11161         (waitpid): Declare only, using modern idiom.
11162         * m4/waitpid.m4: New file.
11163         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
11164         * modules/waitpid: New file.
11165         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
11166         (Makefile.am): Update.
11167         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11168
11169 2010-09-28  Bruno Haible  <bruno@clisp.org>
11170
11171         poll: Assume ANSI C.
11172         * lib/poll.c (poll): Use an ANSI C declaration.
11173
11174 2010-09-28  Bruno Haible  <bruno@clisp.org>
11175
11176         poll-h: Create poll.h on all platforms.
11177         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
11178         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
11179         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
11180         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
11181         (gl_REPLACE_POLL_H): Don't set POLL_H.
11182         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
11183         * modules/poll-h (Depends-on): Add include_next.
11184         (Makefile.am): Create poll.h unconditionally. Substitute also
11185         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
11186
11187 2010-09-28  Bruno Haible  <bruno@clisp.org>
11188
11189         Tests for module 'poll-h'.
11190         * modules/poll-h-c++-tests: New file.
11191         * tests/test-poll-h-c++.cc: New file.
11192
11193         Tests for module 'poll-h'.
11194         * modules/poll-h-tests: New file.
11195         * tests/test-poll-h.c: New file.
11196
11197 2010-09-28  Bruno Haible  <bruno@clisp.org>
11198
11199         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
11200         * modules/poll-h (Depends-on): Add 'extensions'.
11201
11202 2010-09-28  Bruno Haible  <bruno@clisp.org>
11203
11204         New module 'poll-h'.
11205         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
11206         (poll): Use modern idiom.
11207         * modules/poll-h: New file.
11208         * modules/poll (Files): Remove lib/poll.in.h.
11209         (Depends-on): Add poll-h.
11210         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
11211         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
11212         * m4/poll_h.m4: New file.
11213         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
11214         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
11215         and invoke gl_REPLACE_POLL_H.
11216         * lib/poll.c: Use common idiom.
11217         * tests/test-poll.c: Likewise.
11218         * doc/posix-headers/poll.texi: Mention the poll-h module.
11219         Suggested by Eric Blake.
11220
11221 2010-09-26  Bruno Haible  <bruno@clisp.org>
11222
11223         sys_wait: Implement WSTOPSIG.
11224         * lib/sys_wait.in.h (WSTOPSIG): New macro.
11225         Reported by Simon Josefsson.
11226
11227 2010-09-26  Simon Josefsson  <simon@josefsson.org>
11228
11229         stdlib, sys_wait: Avoid compilation error on mingw.
11230         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
11231
11232 2010-09-26  Bruno Haible  <bruno@clisp.org>
11233
11234         stdlib tests: Avoid code duplication.
11235         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
11236         * modules/sys_wait-tests (Files): Likewise.
11237         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
11238         * tests/test-stdlib.c: Include test-sys_wait.h.
11239         (main): Invoke test_sys_wait_macros.
11240         * tests/test-sys_wait.c: Include test-sys_wait.h.
11241         (main): Invoke test_sys_wait_macros.
11242
11243 2010-09-25  Simon Josefsson  <simon@josefsson.org>
11244
11245         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
11246         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
11247         sure Windows sockets are working before calling getaddrinfo.
11248         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
11249         * doc/gnulib.texi (Windows sockets): Fix typo.
11250
11251 2010-09-25  Bruno Haible  <bruno@clisp.org>
11252
11253         Tests for module 'regex-quote'.
11254         * modules/regex-quote-tests: New file.
11255         * tests/test-regex-quote.c: New file.
11256
11257         New module 'regex-quote'.
11258         * lib/regex-quote.h: New file.
11259         * lib/regex-quote.c: New file.
11260         * modules/regex-quote: New file.
11261         Suggested by Reuben Thomas <rrt@sc3d.org>.
11262
11263 2010-09-24  Bruno Haible  <bruno@clisp.org>
11264
11265         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
11266         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
11267
11268 2010-09-23  Bruno Haible  <bruno@clisp.org>
11269
11270         setenv: Relax license.
11271         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
11272         Blake.
11273         Requested by Eric Blake.
11274
11275 2010-09-22  Bruno Haible  <bruno@clisp.org>
11276
11277         termios: Relax license.
11278         * modules/termios (License): Change to LGPLv2+.
11279         Requested by Eric Blake.
11280
11281 2010-09-22  Bruno Haible  <bruno@clisp.org>
11282
11283         threadlib: Allow the package to change the default to 'no'.
11284         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
11285         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
11286         Reported by Paul Eggert.
11287
11288 2010-09-22  Pádraig Brady  <P@draigbrady.com>
11289             Bruno Haible  <bruno@clisp.org>
11290
11291         Fix endless loop in mbmemcasecoll.
11292         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
11293         byte.
11294         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
11295
11296 2010-09-22  Bruno Haible  <bruno@clisp.org>
11297
11298         Tests for module 'memcoll'.
11299         * modules/memcoll-tests: New file.
11300         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
11301
11302         memcoll, xmemcoll: Clarify size vs. length.
11303         * modules/memcoll.c (memcoll0): Clarify specification.
11304         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
11305         passed to collate_error.
11306
11307 2010-09-22  Bruno Haible  <bruno@clisp.org>
11308
11309         Tests for module 'memcasecmp'.
11310         * modules/memcasecmp-tests: New file.
11311         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
11312
11313 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11314
11315         * lib/pthread.in.h: Add split double-inclusion guard, and include
11316         system <pthread.h> if there is one.  Use @@-style as in other
11317         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
11318         pthread.h doesn't.
11319         (pthread_mutexattr_destroy, pthread_mutexattr_init):
11320         (pthread_mutexattr_settype, pthread_mutex_trylock):
11321         New static inline functions, if there's no system <pthread.h>.
11322         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
11323         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
11324         Approximate with mutexes if the system lacks spinlocks, as in
11325         MacOS.
11326         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
11327         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
11328         @@-style.  Check for spinlocks separately.
11329         (gl_PTHREAD_DEFAULTS): New macro.
11330         * modules/pthread: Redo to use a more typical style for in.h files.
11331
11332 2010-09-21  Eric Blake  <eblake@redhat.com>
11333
11334         net_if: enhance tests
11335         * tests/test-net_if.c (main): Move signature checks earlier.
11336         Print failures to stderr.
11337         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
11338         Document the bug that we do not yet fix.
11339
11340 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11341
11342         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
11343         about gnulib, not GSS.
11344
11345 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11346
11347         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
11348         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
11349         for Emacs.
11350         * build-aux/pmccabe2html: Make Makefile.am example code more
11351         cut-and-paste friendly.
11352
11353 2010-09-21  Simon Josefsson  <simon@josefsson.org>
11354
11355         * tests/test-net_if.c: New file.
11356         * modules/net_if-tests: New file.
11357
11358 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11359
11360         pthread: add pthread_spin_destroy
11361         * lib/pthread.in.h (pthread_spin_destroy): New function.
11362
11363 2010-09-19  Bruno Haible  <bruno@clisp.org>
11364
11365         gnulib-tool: Fix --help output.
11366         * gnulib-tool (func_usage): Fix help message.
11367         Reported by Reuben Thomas <rrt@sc3d.org>.
11368
11369 2010-09-18  Jim Meyering  <meyering@redhat.com>
11370
11371         maint.mk: avoid unexpanded \n in two diagnostics
11372         * top/maint.mk (sc_prohibit_always_true_header_tests):
11373         Don't use a literal \n in a halt=... assignment.  It would not be
11374         expanded, and the two \n bytes would appear in the diagnostic output
11375         rather than the desired newline.  Use halt=$$(printf ... instead.
11376         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11377
11378 2010-09-18  Bruno Haible  <bruno@clisp.org>
11379
11380         netinet_in: Doc tweak.
11381         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
11382         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11383
11384 2010-09-18  Jim Meyering  <meyering@redhat.com>
11385
11386         init.sh: correct an outdated comment
11387         * tests/init.sh (create_exe_shims_):  s/function/alias/
11388
11389         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
11390         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
11391         a file named "*.exe" is removed between the glob expansion and the
11392         processing of that oddly named file.
11393
11394 2010-09-17  Eric Blake  <eblake@redhat.com>
11395
11396         mirbsd: add some more support
11397         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
11398         in BSD family.
11399         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
11400         devices as OpenBSD.
11401         * m4/host-os.m4 (mirbsd): Add MirBSD.
11402
11403         tests: fix unportable assumption on sys/wait.h
11404         * tests/test-sys_wait.c (main): Relax test.
11405         * tests/test-stdlib.c (main): Likewise.
11406
11407         init.sh: accomodate directory with no .exes
11408         * tests/init.sh: Accomodate directory containing only scripts.
11409
11410         tests: avoid compiler warning
11411         * tests/test-stdlib.c (main): Use the variable.
11412
11413         fdutimens, fdutimensat: update signature, again
11414         * lib/utimens.h (gl_futimens): Delete, and move signature...
11415         (fdutimens): ...here.
11416         (fdutimensat): Rearrange signature.
11417         (lutimensat): Rename variable for clarity.
11418         * lib/fdutimensat.c (fdutimensat): Update signature.
11419         * lib/utimens.c (fdutimens): Likewise.
11420         (gl_futimens): Delete.
11421         (utimens, lutimens): Update callers.
11422         * lib/futimens.c (futimens): Likewise.
11423         * tests/test-fdutimensat.c: Likewise.
11424         * tests/test-utimens.c: Likewise.
11425         * tests/test-futimens.h: Update comment.
11426         * NEWS: Mention this.
11427         Suggested by Paul Eggert.
11428
11429 2010-09-17  Bruno Haible  <bruno@clisp.org>
11430
11431         Take over the maintenance of some older macros from Autoconf.
11432         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
11433         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
11434         GNU Autoconf.
11435         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
11436         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
11437
11438 2010-09-17  Eric Blake  <eblake@redhat.com>
11439
11440         fdutimensat: drop atflag validation
11441         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
11442         with valid fd, to close a race scenario where futimens is
11443         unsupported and FILE was replaced by a symlink.
11444         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
11445         accordingly.
11446         Suggested by Paul Eggert.
11447
11448 2010-09-16  Bruno Haible  <bruno@clisp.org>
11449
11450         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
11451         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
11452
11453 2010-09-16  Bruno Haible  <bruno@clisp.org>
11454
11455         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
11456         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
11457         login_tty exists.
11458         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11459
11460 2010-09-16  Bruno Haible  <bruno@clisp.org>
11461
11462         login_tty: Make the replacement code work on BSD systems.
11463         * lib/login_tty.c: Include <sys/ioctl.h>.
11464         (login_tty): Use ioctl TIOCSCTTY when available.
11465         * modules/login_tty (Depends-on): Add sys_ioctl.
11466         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11467
11468 2010-09-16  Bruno Haible  <bruno@clisp.org>
11469
11470         login_tty: Stricter unit test.
11471         * modules/login_tty-tests (Depends-on): Add tcgetsid.
11472         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
11473         and tcgetsid() after login_tty.
11474         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11475
11476 2010-09-16  Bruno Haible  <bruno@clisp.org>
11477
11478         New module 'tcgetsid'.
11479         * lib/tcgetsid.c: New file.
11480         * m4/tcgetsid.m4: New file.
11481         * modules/tcgetsid: New file.
11482         * modules/termios (Depends-on): Add c++defs, warn-on-use.
11483         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
11484         GNULIB_TCGETSID, HAVE_TCGETSID.
11485         * lib/termios.in.h: Include <sys/types.h>.
11486         (tcgetsid): New declaration.
11487         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
11488         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
11489         * doc/posix-functions/tcgetsid.texi: Mention the new module.
11490         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
11491
11492 2010-09-16  Bruno Haible  <bruno@clisp.org>
11493
11494         Tests for module 'termios'.
11495         * modules/termios-c++-tests: New file.
11496         * modules/termios-tests: New file.
11497         * tests/test-termios-c++.cc: New file.
11498         * tests/test-termios.c: New file.
11499
11500         New module 'termios'.
11501         * modules/termios: New file.
11502         * lib/termios.in.h: New file.
11503         * m4/termios_h.m4: New file.
11504         * doc/posix-headers/termios.texi: Mention the new module.
11505
11506 2010-09-16  Eric Blake  <eblake@redhat.com>
11507
11508         fdutimensat: add an atflag parameter
11509         * lib/fdutimensat.c (fdutimensat): Add new parameter.
11510         * lib/utimens.h (fdutimensat): Update prototype.
11511         * tests/test-fdutimensat.c: Adjust test to match.
11512         * NEWS: Document the change.
11513         Suggested by Paul Eggert.
11514
11515 2010-09-16  Bruno Haible  <bruno@clisp.org>
11516
11517         Fix typos in comments.
11518         * lib/striconveh.h: Fix typo in comment.
11519         * lib/login_tty.c (login_tty): Likewise.
11520
11521 2010-09-15  Bruno Haible  <bruno@clisp.org>
11522
11523         stdlib: clarify MirBSD WEXITSTATUS bug
11524         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
11525         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11526
11527 2010-09-15  Eric Blake  <eblake@redhat.com>
11528
11529         stdlib: work around MirBSD WEXITSTATUS bug
11530         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
11531         * modules/stdlib (Depends-on): Add sys_wait.
11532         * tests/test-sys_wait.c (main): Enhance test.
11533         * tests/test-stdlib.c (main): Likewise.
11534         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
11535
11536         docs: mention MacOS issue with WEXITSTATUS(constant)
11537         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
11538         issue.
11539         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11540
11541         strnlen: add tests
11542         * modules/strnlen-tests: New file.
11543         * tests/test-strnlen.c: Likewise.
11544
11545 2010-09-14  Bruno Haible  <bruno@clisp.org>
11546
11547         unistr/base: Avoid link errors when module 'libunistring' is also used.
11548         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
11549         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
11550         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
11551         Declare also when HAVE_LIBUNISTRING is set.
11552         Reported by Pádraig Brady <P@draigbrady.com>.
11553
11554 2010-09-14  Eric Blake  <eblake@redhat.com>
11555
11556         test-rawmemchr: make more robust
11557         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
11558         (Depends-on, configure.ac): Add needed prerequisites to use it.
11559         * modules/memchr-tests (Files, Depends-on, configure.ac):
11560         Likewise, to avoid implicit reliance on memchr module prereqs.
11561         * tests/test-memchr.c (main): Ensure proper masking.
11562         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
11563         reads.
11564
11565         memchr: detect glibc Alpha bug
11566         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
11567         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
11568         Alpha.
11569         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
11570         * tests/test-memchr.c (main): Enhance test.
11571         Reported by Nelson H. F. Beebe.
11572
11573 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11574
11575         fts, getcwd, glob: audit for dirfd returning -1
11576         * lib/fts.c (opendir): Remove #define; no longer used.
11577         (opendirat): New arg PDIR_FD.  All callers changed.
11578         (fts_build, _opendir2): Use new opendirat to avoid the need for
11579         dirfd, or for checking whether dirfd returns a negative value.
11580         Don't use opendir; always use openat followed by fdopendir.
11581         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
11582         it.
11583         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
11584         returns -1 here.
11585         * modules/fts (Depends-on): Remove dirfd.
11586         * modules/getcwd (Depends-on): Likewise.
11587
11588 2010-09-13  Eric Blake  <eblake@redhat.com>
11589
11590         float: fix broken MirBSD header
11591         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
11592         * doc/posix-headers/float.texi (float.h): Document it.
11593
11594 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11595
11596         fts: use O_NOFOLLOW to avoid race condition when opening a directory
11597         * lib/fts.c (opendirat): New arg extra_flags.
11598         (__opendir2): Use it to avoid following symlinks when opening
11599         a directory, if symlinks are not supposed to be followed.  See
11600         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
11601
11602         fdopendir: preserve argument fd before returning
11603         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
11604         (fdopendir_with_dup, fd_clone_opendir): New static functions.
11605         (fdopendir): Use them, arranging for FD to be open to the same
11606         directory that it was when it started.  (It might be temporarily
11607         closed while fdopendir is running, so this not thread- or
11608         signal-safe.)  Be careful to do the right thing even when file
11609         descriptors are scarce and dup fails with errno == EMFILE.  See
11610         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
11611
11612 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
11613
11614         regex: Pass the system regex if its only problem is 32-bit regoff_t.
11615         * NEWS: Document change.
11616         * m4/regex.m4: Disable test for regoff_t size.
11617
11618 2010-09-13  Jim Meyering  <meyering@redhat.com>
11619
11620         fts: don't operate on an invalid file descriptor after failed dup
11621         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
11622         negative file descriptor.
11623
11624 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11625
11626         savedir: add streamsavedir, deprecate fdsavedir
11627         * NEWS: Mention deprecation of fdsavedir.
11628         * lib/savedir.c (streamsavedir): New extern function, whose name
11629         ends in "savedir" to be consistent with the others.  This differs
11630         from savedirstream in that it doesn't close its argument.  The
11631         next version of GNU tar will use this instead of fdsavedir, to
11632         avoid some race conditions and conserve file descriptors.
11633         (savedirstream): Reimplement as a wrapper around streamsavedir.
11634         (fdsavedir): Add a comment deprecating this function.  As far as
11635         I know, only GNU tar used it, and GNU tar doesn't need it any more.
11636         * lib/savedir.h (streamsavedir): New decl.
11637         (fdsavedir): Add a comment deprecating this.
11638
11639 2010-09-10  Bruno Haible  <bruno@clisp.org>
11640
11641         langinfo: Fix last commit.
11642         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
11643         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11644         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11645
11646 2010-09-10  Bruno Haible  <bruno@clisp.org>
11647
11648         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11649         * lib/progreloc.c (O_EXEC): Define fallback.
11650
11651 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11652
11653         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11654         * NEWS: Document recent changes to fcntl-h.
11655         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11656         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11657         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11658         Similarly for O_SEARCH; this last was already true, but not documented.
11659         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11660         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11661         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11662         Likewise.
11663         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11664         is zero, not whether it is defined.
11665         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11666         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11667         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11668
11669 2010-09-10  Bruno Haible  <bruno@clisp.org>
11670
11671         langinfo, nl_langinfo: Fix for IRIX 5.3.
11672         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11673         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11674         HAVE_LANGINFO_YESEXPR.
11675         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11676         HAVE_LANGINFO_YESEXPR.
11677         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11678         HAVE_LANGINFO_T_FMT_AMPM is 0.
11679         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11680         HAVE_LANGINFO_YESEXPR is 0.
11681         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11682         NOEXPR.
11683         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11684         * doc/posix-functions/nl_langinfo.texi: Likewise.
11685         Reported by Eric Blake.
11686
11687 2010-09-10  Bruno Haible  <bruno@clisp.org>
11688
11689         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11690         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11691         on FreeBSD 8.0 and OpenBSD 4.6.
11692         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11693         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11694         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11695         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11696         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11697         ac_includes_default.
11698         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11699
11700 2010-09-09  Eric Blake  <eblake@redhat.com>
11701
11702         strsignal: work around NetBSD bug
11703         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11704         * lib/string.in.h (includes): Likewise.
11705         * doc/posix-functions/strsignal.texi (strsignal): Document the
11706         bug.
11707         Reported by Nelson H. F. Beebe.
11708
11709         gnulib-tool: work with NetBSD /bin/sh
11710         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11711         (func_get_description, func_get_comment, func_get_status)
11712         (func_get_notice, func_get_applicability, func_get_filelist)
11713         (func_get_dependencies, func_get_autoconf_early_snippet)
11714         (func_get_autoconf_snippet, func_get_automake_snippet)
11715         (func_get_include_directive, func_get_link_directive)
11716         (func_get_license, func_get_maintainer, func_import): Avoid
11717         shell syntax errors from parsing syntax extensions.
11718
11719 2010-09-09  Bruno Haible  <bruno@clisp.org>
11720
11721         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11722         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11723         a reliable way to determine whether the 'alias' command works.
11724
11725 2010-09-08  Jim Meyering  <meyering@redhat.com>
11726
11727         init.sh: penalize a set-x-impaired shell; don't disqualify it
11728         * tests/init.sh: Too many shells corrupt application stderr when
11729         you set -x, so we can't afford to disqualify them, since at least
11730         on Irix-6.5, that would disqualify all bourne shells.
11731         Instead, use a two-pass approach.
11732         On the first pass, try to find a shell that meets the stricter
11733         condition that set -x does not corrupt stderr.
11734         If no shell meets the stricter condition, retest each candidate
11735         shell, but without that extra condition.  Finally, when
11736         VERBOSE=yes is requested and set -x might cause trouble, simply
11737         issue a warning and refrain from enabling debug output.
11738
11739 2010-09-08  Eric Blake  <eblake@redhat.com>
11740
11741         unsetenv: fix OpenBSD bug
11742         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11743         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11744         documentation.
11745         Reported by Jim Meyering.
11746
11747         strtod: work around IRIX 6.5 bug
11748         * lib/strtod.c (strtod): Reparse number on shorter string if
11749         exponent parse was invalid.
11750         * tests/test-strtod.c (main): Add check for "0x1p 2".
11751         Reported by Tom G. Christensen.
11752
11753         getopt: optimize previous patch
11754         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11755         empty variable.  Speed up awk script.
11756         Reported by Paolo Bonzini.
11757
11758 2010-09-08  Jim Meyering  <meyering@redhat.com>
11759
11760         test.sh: disqualify shells for which set -x corrupts stderr
11761         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11762         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11763         appear in stderr output.  For example, this command:
11764             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11765         prints "P=1" on those two systems:
11766
11767 2010-09-08  Bruno Haible  <bruno@clisp.org>
11768
11769         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11770         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11771         commands, because some shells ignore redirections when there is an
11772         error in the command lookup.
11773         Reported by Eric Blake.
11774
11775 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11776
11777         * lib/regex.h: Fix a mention of `regex_compile' (should be
11778         `re_compile_pattern').
11779         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11780         (re_set_registers): Correct name of parameter in comment.
11781
11782         * doc/regex.texi: Add documentation for missing syntax flags.
11783         Remove commented-out documentation of defunct syntax option
11784         RE_NO_EMPTY_ALTS.
11785         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11786         Add documentation of re_set_registers.
11787         Document trick to re-use a pattern buffer by setting fastmap manually.
11788         Update documentation of struct re_pattern_buffer per public members.
11789         Uncomment documentation of equivalence class operators and
11790         collating symbol operators, since they are now implemented,
11791         Explain leftmost-longest matching in relation to alternatives.
11792         Tidy documentation of substring matching.
11793         Remove POSIX documentation, which is done better in
11794         glibc, and refer the reader there. Keep BSD API documentation, as
11795         that is not readily available elsewhere.
11796
11797 2010-09-07  Eric Blake  <eblake@redhat.com>
11798
11799         getopt: handle POSIXLY_CORRECT set but not exported
11800         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11801         export state of POSIXLY_CORRECT, due to bash set -o posix.
11802         Reported by Dustin J. Mitchell.
11803
11804 2010-09-05  Bruno Haible  <bruno@clisp.org>
11805
11806         gnulib-tool: Highlight the changed options.
11807         * gnulib-tool (func_usage): Display the --import, --add-import,
11808         --remove-import explanations in bold font.
11809
11810 2010-09-06  Karl Berry  <karl@gnu.org>
11811
11812         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11813
11814 2010-09-05  Bruno Haible  <bruno@clisp.org>
11815
11816         uniwidth/width: Update comment.
11817         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11818         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11819
11820 2010-09-05  Bruno Haible  <bruno@clisp.org>
11821
11822         isinf, isnan: Relax license.
11823         * modules/isinf (License): Change from GPL to LGPL, with consent from
11824         Ben Pfaff.
11825         * modules/isnan (License): Likewise.
11826         Requested by Ludovic Courtès.
11827
11828 2010-09-04  Bruno Haible  <bruno@clisp.org>
11829
11830         gnulib-tool: Help migration from --import to --add-import or --update.
11831         * gnulib-tool: Emit a verbose error message when --import is used
11832         without any module name.
11833
11834 2010-09-04  Bruno Haible  <bruno@clisp.org>
11835
11836         Update doc about gnulib-tool.
11837         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11838         'gnulib-tool --update' in more detail.
11839         Reported by Eric Blake.
11840
11841 2010-09-04  Bruno Haible  <bruno@clisp.org>
11842
11843         gnulib-tool: Change --import. New options --add/remove-import.
11844         * gnulib-tool: New options --add-import, --remove-import.
11845         (func_usage): Document them.
11846         (have_associative): Define always.
11847         (func_import): In import mode, don't merge the specified settings with
11848         the cached settings. Implement remove-import mode.
11849         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11850         Explain when to use them versus --import.
11851         (Simple update): Use --add-import instead of --import.
11852         * NEWS: Mention the change.
11853
11854 2010-09-04  Bruno Haible  <bruno@clisp.org>
11855
11856         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11857         separate gnulib.mk.
11858
11859 2010-09-04  Bruno Haible  <bruno@clisp.org>
11860
11861         gnulib-tool: Don't talk about CVS any more.
11862         * gnulib-tool (func_usage, func_import): Write "version control"
11863         instead of CVS.
11864
11865 2010-09-04  Jim Meyering  <meyering@redhat.com>
11866
11867         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11868         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11869         false positives (whose names may be ill-chosen) when searching
11870         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11871         would cause a false-positive.
11872
11873         avoid coreutils "make distcheck" failure
11874         Coreutils tests with an absolute build directory name that contains
11875         a space.  Not quoting this directory name caused a failure.
11876         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11877         * tests/test-vc-list-files-cvs.sh: Likewise.
11878
11879 2010-09-04  Bruno Haible  <bruno@clisp.org>
11880
11881         gnulib-tool: Avoid error when run in a package without Makefile.am.
11882         * gnulib-tool: When collecting the m4dirs in a package that does not
11883         have a Makefile.am, eliminate those directories that contain no
11884         gnulib-cache.m4. Fix expression that counts these directories.
11885
11886 2010-09-04  Bruno Haible  <bruno@clisp.org>
11887
11888         update-copyright test: Improve output when perl is missing or too old.
11889         * tests/test-update-copyright.sh: Move test of Perl version down after
11890         the test whether Perl exists. Provide an explanation relating Perl's
11891         error message to Automake's SKIP: message.
11892
11893 2010-09-04  Bruno Haible  <bruno@clisp.org>
11894
11895         Don't augment PATH in TESTS_ENVIRONMENT.
11896         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11897         set abs_aux_dir instead of augmenting PATH.
11898         * modules/vc-list-files-tests (Makefile.am): Likewise.
11899         * tests/test-update-copyright.sh: Augment PATH here.
11900         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11901         path_prepend_.
11902         * tests/test-vc-list-files-git.sh: Likewise.
11903
11904 2010-09-04  Jim Meyering  <meyering@redhat.com>
11905
11906         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11907         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11908
11909 2010-09-04  Bruno Haible  <bruno@clisp.org>
11910
11911         strdup: Fix compilation error in C++ mode.
11912         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11913         the macro.
11914
11915 2010-09-04  Bruno Haible  <bruno@clisp.org>
11916
11917         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11918         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11919         macro into a function.
11920         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11921
11922 2010-09-04  Bruno Haible  <bruno@clisp.org>
11923
11924         Set PATH_SEPARATOR the same way autoconf does.
11925         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11926         the value of PATH_SEPARATOR the same way autoconf-generated configure
11927         scripts do.
11928         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11929         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11930
11931 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11932
11933         Set PATH_SEPARATOR the same way autoconf does.
11934         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11935         the same way autoconf-generated configure scripts do.
11936         * posix-modules: Likewise.
11937
11938 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11939
11940         hash: fix safe_hasher const typo
11941         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11942         const; otherwise, there is a type error later.
11943
11944 2010-09-02  Jim Meyering  <meyering@redhat.com>
11945
11946         test-update-copyright.sh: require perl 5.8.0
11947         * tests/test-update-copyright.sh: Require 5.8.0,
11948         which Tom G. Christensen has confirmed is adequate,
11949         while 5.6.1 is not.
11950
11951 2010-09-02  Eric Blake  <eblake@redhat.com>
11952
11953         tests: init.sh improvements for re-exec'ing with zsh
11954         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11955         -vx through shell re-exec.
11956         Reported by Tom G. Christensen.
11957
11958         wctype: fix typo in previous commit
11959         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11960         Reported by Ludovic Courtès.
11961
11962 2010-09-02  Jim Meyering  <meyering@redhat.com>
11963
11964         test-update-copyright.sh: skip test if Perl is too old
11965         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11966         Reported by Tom G. Christensen.
11967
11968 2010-09-02  Bruno Haible  <bruno@clisp.org>
11969
11970         wctype: Avoid compilation error on IRIX 6.5.30.
11971         * lib/wctype.in.h (iswblank): Declare with a replacement if
11972         REPLACE_ISWBLANK is set.
11973         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11974         declared. Set REPLACE_ISWBLANK.
11975         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11976         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11977         * doc/posix-headers/wctype.texi: Likewise.
11978         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11979
11980 2010-09-01  Bruno Haible  <bruno@clisp.org>
11981
11982         New module 'socketlib'.
11983         * modules/socketlib: New file.
11984         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11985         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11986         * modules/sockets (Depends-on): Add socketlib.
11987         Suggested by Sam Steingold <sds@gnu.org>.
11988
11989 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11990
11991         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11992
11993         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11994         when one needs search access to a directory but not read access.
11995         On systems where it is available, it works in some cases where
11996         O_RDONLY does not, namely on directories that are searchable but
11997         not readable, and which need only to be searchable.  If O_SEARCH
11998         is not available, fall back to the traditional method of using
11999         O_RDONLY.
12000
12001         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
12002         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
12003         when opening a directory that needs only to be searchable.
12004         * lib/chdir-safer.c (chdir_no_follow): Likewise.
12005         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
12006         * lib/openat-proc.c (openat_proc_name): Likewise.
12007         * lib/openat.c (openat_needs_fchdir): Likewise.
12008         * lib/save-cwd.c (save_cwd): Likewise.
12009         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
12010
12011 2010-08-28  Bruno Haible  <bruno@clisp.org>
12012
12013         New module 'host-cpu-c-abi'.
12014         * modules/host-cpu-c-abi: New file.
12015         * m4/host-cpu-c-abi.m4: New file, based on part of
12016         clisp/src/m4/general.m4.
12017         Requested by Sam Steingold <sds@gnu.org>.
12018
12019 2010-08-31  Eric Blake  <eblake@redhat.com>
12020         and Jim Meyering  <meyering@redhat.com>
12021
12022         hash: factor, and guard against misbehaving hasher function
12023         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
12024         of table->hasher's return value.  Also protect against a hash value
12025         so large that adding it to table->bucket results in a NULL pointer.
12026         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
12027         Use it in place of open-coded check-and-abort.
12028
12029 2010-08-30  Bruno Haible  <bruno@clisp.org>
12030
12031         hash: silence spurious clang warning
12032         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
12033         Reported by Eric Blake.
12034
12035 2010-08-30  Eric Blake  <eblake@redhat.com>
12036
12037         strstr, memmem, strcasestr: avoid leaked shell message
12038         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
12039         FreeBSD.
12040         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12041         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12042
12043         tests: silence clang warning
12044         * tests/test-malloca.c (do_allocation): Avoid dead store.
12045
12046 2010-08-29  Bruno Haible  <bruno@clisp.org>
12047
12048         gettext: Fix recent mistake.
12049         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
12050
12051 2010-08-29  Bruno Haible  <bruno@clisp.org>
12052
12053         selinux-h: Offer a --without-selinux option.
12054         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
12055         --without-selinux was specified, skip all tests and define
12056         HAVE_SELINUX_SELINUX_H to 0.
12057         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
12058         set LIB_SELINUX to empty.
12059         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
12060         gl_LIBSELINUX. If --without-selinux was specified, replace
12061         selinux/context.h.
12062         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
12063
12064 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12065             Bruno Haible  <bruno@clisp.org>
12066
12067         Make the module 'realloc-gnu' work again on AIX and OSF/1.
12068         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
12069         of HAVE_REALLOC.
12070         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
12071         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
12072         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
12073         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12074
12075 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12076             Bruno Haible  <bruno@clisp.org>
12077
12078         Make the module 'calloc-gnu' work again on AIX and OSF/1.
12079         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
12080         HAVE_CALLOC.
12081         * lib/xmalloc.c: Update accordingly.
12082         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
12083         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
12084         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
12085
12086 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12087             Bruno Haible  <bruno@clisp.org>
12088
12089         Make the module 'malloc-gnu' work again on AIX and OSF/1.
12090         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
12091         HAVE_MALLOC.
12092         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
12093         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
12094         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12095
12096 2010-08-29  Bruno Haible  <bruno@clisp.org>
12097
12098         Update modules list.
12099         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12100         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
12101         (String handling <string.h>): Add astrxfrm.
12102         (File system functions): Add readlinkat.
12103
12104 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12105
12106         Tests for module 'realloc-gnu'.
12107         * modules/realloc-gnu-tests: New file.
12108         * tests/test-realloc-gnu.c: New file.
12109
12110         Tests for module 'calloc-gnu'.
12111         * modules/calloc-gnu-tests: New file.
12112         * tests/test-calloc-gnu.c: New file.
12113
12114         Tests for module 'malloc-gnu'.
12115         * modules/malloc-gnu-tests: New file.
12116         * tests/test-malloc-gnu.c: New file.
12117
12118 2010-08-28  Bruno Haible  <bruno@clisp.org>
12119
12120         Rename module 'realloc' -> 'realloc-gnu'.
12121         * modules/realloc-gnu: New file, copied from modules/realloc.
12122         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
12123         obsolete.
12124         * modules/mgetgroups (Depends-on): Update.
12125         * doc/posix-functions/realloc.texi: Update.
12126         * NEWS: Mention the change.
12127
12128         Rename module 'calloc' -> 'calloc-gnu'.
12129         * modules/calloc-gnu: New file, copied from modules/calloc.
12130         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
12131         obsolete.
12132         * doc/posix-functions/calloc.texi: Update.
12133         * NEWS: Mention the change.
12134
12135         Rename module 'malloc' -> 'malloc-gnu'.
12136         * modules/malloc-gnu: New file, copied from modules/malloc.
12137         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
12138         obsolete.
12139         * modules/argp (Depends-on): Update.
12140         * modules/regex (Depends-on): Update.
12141         * doc/posix-functions/malloc.texi: Update.
12142         * NEWS: Mention the change.
12143
12144 2010-08-28  Eric Blake  <eblake@redhat.com>
12145
12146         pread, pwrite: add missing dependency
12147         * modules/pread (Depends-on): Add extensions.
12148         * modules/pwrite (Depends-on): Likewise.
12149
12150 2010-08-28  Bruno Haible  <bruno@clisp.org>
12151
12152         unistr/u*-strchr: Fix tests dependencies.
12153         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
12154         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
12155         Reported by Ian Beckwith <ianb@erislabs.net>.
12156
12157 2010-08-28  Bruno Haible  <bruno@clisp.org>
12158
12159         read-file: Don't occupy too much unused memory.
12160         * lib/read-file.c (fread_file): Shrink the buffer at the end.
12161
12162 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
12163             Eric Blake  <eblake@redhat.com>
12164             Bruno Haible  <bruno@clisp.org>
12165
12166         read-file: Avoid memory reallocations with regular files.
12167         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
12168         (fread_file): With regular files, use the remaining length as the
12169         initial buffer size.  Check against overflow.
12170         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
12171         sys_stat.
12172
12173 2010-08-28  Bruno Haible  <bruno@clisp.org>
12174
12175         ftello: Relax license.
12176         * modules/ftello (License): Relax to LGPLv2+.
12177         Reported by Eric Blake.
12178
12179 2010-08-28  Bruno Haible  <bruno@clisp.org>
12180
12181         Avoid relocwrapper link errors due to gnulib replacement functions.
12182         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
12183         function.
12184         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12185
12186 2010-08-28  Bruno Haible  <bruno@clisp.org>
12187
12188         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
12189         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
12190         defined.
12191         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
12192         Suggested by Eric Blake.
12193
12194 2010-08-28  Bruno Haible  <bruno@clisp.org>
12195
12196         sys_socket, netdb: Ensure socklen_t gets defined.
12197         * modules/sys_socket (Depends-on): Add socklen.
12198         * modules/netdb (Depends-on): Likewise.
12199         * modules/getaddrinfo (Depends-on): Remove socklen.
12200         * modules/getsockopt (Depends-on): Likewise.
12201         * modules/setsockopt (Depends-on): Likewise.
12202         * tests/test-sys_socket.c: Check that socklen_t is defined.
12203         * tests/test-netdb.c: Likewise.
12204         * m4/socklen.m4: Update comments.
12205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12206
12207 2010-08-27  Eric Blake  <eblake@redhat.com>
12208
12209         login_tty: add missing dependency
12210         * modules/login_tty (Depends-on): Add pty.
12211
12212 2010-08-26  Eric Blake  <eblake@redhat.com>
12213
12214         lib-symbol-versions: fix m4 quoting
12215         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
12216         format for AC_LINK_IFELSE.
12217
12218         glob: fix compile test
12219         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
12220
12221         btowc: fix missing file
12222         * modules/btowc (Files): Also ship locale-fr.m4.
12223
12224         lseek: fix link test
12225         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
12226         AC_LINK_IFELSE.
12227
12228         include_next: silence autoconf 2.68 warning
12229         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
12230         AC_COMPILE_IFELSE as special.
12231         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
12232         autoconf < 2.68.
12233
12234         acl: fix compilation test
12235         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
12236         AC_COMPILE_IFELSE.
12237
12238 2010-08-26  Bruno Haible  <bruno@clisp.org>
12239
12240         Modernize AC_TRY_RUN invocations.
12241         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
12242         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12243         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
12244         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
12245         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12246         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12247         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12248         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12249         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12250         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12251         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12252         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12253         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12254         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12255         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12256         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12257         gl_MBRLEN_NUL_RETVAL): Likewise.
12258         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12259         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12260         Likewise.
12261         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12262         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12263         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12264         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12265         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12266         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12267         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
12268         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12269         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
12270         Likewise.
12271         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
12272         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12273         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12274         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12275         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12276         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12277         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12278         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
12279         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12280         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12281
12282 2010-08-26  Bruno Haible  <bruno@clisp.org>
12283
12284         Modernize AC_TRY_LINK invocations.
12285         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
12286         AC_TRY_LINK.
12287         * m4/argp.m4 (gl_ARGP): Likewise.
12288         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12289         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12290         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
12291         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12292         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12293         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
12294         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12295         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12296         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12297         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12298         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12299         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
12300         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
12301         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12302         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
12303         * m4/hostent.m4 (gl_HOSTENT): Likewise.
12304         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12305         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
12306         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
12307         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
12308         Likewise.
12309         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
12310         Likewise.
12311         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
12312         Likewise.
12313         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
12314         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
12315         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
12316         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12317         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12318         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12319         * m4/servent.m4 (gl_SERVENT): Likewise.
12320         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12321         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12322         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12323         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12324         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12325         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12326         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12327         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12328         * modules/tsearch-tests (configure.ac): Likewise.
12329
12330 2010-08-26  Bruno Haible  <bruno@clisp.org>
12331
12332         Modernize AC_TRY_COMPILE invocations.
12333         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
12334         AC_TRY_COMPILE.
12335         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
12336         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
12337         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
12338         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12339         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
12340         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12341         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12342         * m4/lock.m4 (gl_LOCK): Likewise.
12343         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
12344         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12345         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
12346         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12347         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
12348         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
12349         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12350         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
12351         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
12352         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
12353         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
12354         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12355         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
12356         extraneous semicolon.
12357
12358 2010-08-26  Jim Meyering  <meyering@redhat.com>
12359
12360         stat-time: relax license LGPL
12361         * modules/stat-time (License): Change from GPL to LGPL,
12362         with consent from all contributors, for use in libguile.
12363         Requested by Ludovic Courtès.
12364
12365 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
12366
12367         poll: return immediately on POLLHUP.
12368         * lib/poll.c (poll): Always set timeout before wait_timeout is
12369         computed.
12370
12371 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12372
12373         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
12374         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
12375         rmdir ("dir/.//"), unlinkat.
12376
12377 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12378
12379         stdbool: avoid spurious failure with modern xlc
12380         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12381
12382 2010-08-24  Bruno Haible  <bruno@clisp.org>
12383
12384         getloadavg: simplify code
12385         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
12386         gl_have_func. Update comments.
12387
12388 2010-08-24  Eric Blake  <eblake@redhat.com>
12389
12390         getloadavg: don't define SVR4 on cygwin
12391         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
12392         only define SVR4 when -lkvm is required.
12393         Reported by Yaakov Selkowitz.
12394
12395 2010-08-24  Bruno Haible  <bruno@clisp.org>
12396
12397         priv-set: fix comment
12398         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
12399
12400 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12401
12402         priv-set: fix comments
12403         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
12404         to match code, as suggested by David Bartley in:
12405         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
12406
12407 2010-08-23  Eric Blake  <eblake@redhat.com>
12408
12409         stdbool: avoid rejecting clang
12410         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12411         * tests/test-stdbool.c: Enable more tests if using the system
12412         <stdbool.h> instead of the gnulib replacement.
12413         (main): Move xlc bug test to a runtime test for all compilers.
12414         Reported by Anders Kaseorg.
12415
12416         argz: fix shell quoting issue
12417         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
12418         Reported by Charles Wilson.
12419
12420 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
12421             Erik Faye-Lund <kusmabite@gmail.com>
12422
12423         poll, select: handle ERROR_BROKEN_PIPE.
12424         * lib/poll.c (win32_compute_revents): Return POLLHUP when
12425         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12426         * lib/select.c (win32_compute_revents): Do not mark a pipe
12427         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12428
12429 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
12430
12431         fts: allow compilation with C++
12432         * lib/fts_.h: Specify extern "C" linkage with C++.
12433
12434 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12435
12436         Fix gnulib-tool sed script de-commentation for AIX sed.
12437         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
12438         sed.
12439
12440 2010-08-17  Eric Blake  <eblake@redhat.com>
12441
12442         test-stddef: test for (some) offsetof bugs
12443         * tests/test-stddef.c: Enhance test to ensure correct type of
12444         offsetof.
12445         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
12446         that we are not fixing at this time.
12447
12448 2010-08-15  Bruno Haible  <bruno@clisp.org>
12449
12450         stpncpy: Allow stpncpy to be defined as a macro.
12451         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
12452         if it's already correctly declared.
12453         * lib/string.in.h (stpncpy): Undefine before redefining.
12454         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
12455
12456 2010-08-14  Bruno Haible  <bruno@clisp.org>
12457
12458         Rename module 'memxfrm' to 'amemxfrm'.
12459         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
12460         (amemxfrm): Renamed from memxfrm.
12461         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
12462         (amemxfrm): Renamed from memxfrm.
12463         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
12464         * NEWS: Mention the change.
12465         * MODULES.html.sh (String handling <string.h>): Update.
12466         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
12467         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
12468         * lib/unicase/u16-casexfrm.c: Likewise.
12469         * lib/unicase/u32-casexfrm.c: Likewise.
12470         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
12471         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
12472         * lib/uninorm/u16-normxfrm.c: Likewise.
12473         * lib/uninorm/u32-normxfrm.c: Likewise.
12474         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
12475         memxfrm.
12476         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
12477         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
12478         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
12479         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
12480         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
12481         Suggested by Paul Eggert.
12482
12483 2010-08-14  Bruno Haible  <bruno@clisp.org>
12484
12485         Tests for module 'astrxfrm'.
12486         * modules/astrxfrm-tests: New file.
12487         * tests/test-astrxfrm.c: New file.
12488
12489         New module 'astrxfrm'.
12490         * lib/astrxfrm.h: New file.
12491         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
12492         * modules/astrxfrm: New file.
12493
12494 2010-08-14  Reuben Thomas <rrt@sc3d.org>
12495
12496         regex: Tweak doc.
12497         * doc/regex.texi (Overview): Don't mention regex.c.
12498         (GNU Regular Expression Compiling): Likewise.
12499         (Match-end-of-line Operator): Mention 'not_eol'.
12500
12501 2010-08-14  Brian Gough  <bjg@gnu.org>
12502             Bruno Haible  <bruno@clisp.org>
12503
12504         git-merge-changelog: add doc relating to use with bzr and hg.
12505         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
12506
12507 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
12508
12509         pthread: fix pthread.h creation for srcdir != builddir
12510         * modules/pthread (Makefile.am): Fix the rule to work also in a
12511         non-srcdir build.
12512
12513 2010-08-13  Karl Berry  <karl@gnu.org>
12514
12515         * doc/regex.texi (Predefined Syntaxes): @smallexample.
12516         * doc/posix-*/*: force line break before @url of POSIX
12517         specifications.
12518         Suggested by Werner Lemberg.
12519
12520 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12521
12522         strtod: fix const diagnostic
12523         * lib/strtod.c (strtod): Don't assign const char * to char *,
12524         as this elicits a warning from GCC when warnings are enabled.
12525
12526 2010-08-10  Pádraig Brady <P@draigbrady.com>
12527         and Eric Blake  <eblake@redhat.com>
12528
12529         copy-acl: ignore ENOTSUP on HP-UX
12530         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
12531         so that it is available for HP-UX.
12532         * lib/copy-acl.c (qcopy_acl): Use it.
12533         Reported by Patrick M. Callahan.
12534
12535 2010-08-10  Eric Blake  <eblake@redhat.com>
12536
12537         open, chown: relax license
12538         * modules/open (License): Change to LGPLv2+, with consent by all
12539         authors, for use in augeas.
12540         * modules/chown (License): Likewise.
12541         * modules/lchown (Likewise): Likewise.
12542         Requested by Adam Stokes.
12543
12544 2010-08-09  Karl Berry  <karl@gnu.org>
12545
12546         * build-aux/ar-lib: new file, import from Automake.
12547         * config/srclist.txt: autocheck for updates.
12548
12549 2010-08-09  Eric Blake  <eblake@redhat.com>
12550
12551         readlinkat: adjust client modules
12552         * modules/areadlinkat (Depends-on): Use readlinkat, not
12553         symlinkat.
12554         * modules/areadlinkat-with-size (Depends-on): Likewise.
12555
12556         mknod: be more vocal about danger of running tests as root
12557         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
12558         root, since that is just asking for problems.
12559         Suggested by Bruno Haible, based on a report by Rainer Tammer.
12560
12561         readlinkat: split into its own module
12562         * modules/symlinkat: Split readlinkat...
12563         * modules/readlinkat: ...into separate module.
12564         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
12565         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
12566         * lib/symlinkat.c (readlinkat): Move...
12567         * lib/readlinkat.c: ...into new file.
12568         * modules/symlinkat-tests: Split readlinkat test...
12569         * modules/readlinkat-tests: ...into separate module.
12570         * tests/test-symlinkat.c: Split...
12571         * tests/test-readlinkat.c: ...into new file.
12572         * NEWS: Document the split.
12573         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12574         * lib/unistd.in.h (readlinkat): Likewise.
12575         Suggested by Bruno Haible.
12576
12577 2010-08-08  Bruno Haible  <bruno@clisp.org>
12578
12579         memxfrm: Speed up.
12580         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
12581         that usually only one call to strxfrm is necessary for each string
12582         part.
12583         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12584
12585 2010-08-07  Karl Berry  <karl@gnu.org>
12586
12587         * doc/posix-headers/limits.texi,
12588         * doc/posix-functions/malloc.texi,
12589         * doc/posix-functions/strsignal.texi: missing @item.
12590         * doc/ld-version-script.texi: spurious leading i.
12591         * doc/regex.texi (Interval Operators): no commas inside @var.
12592
12593 2010-08-01  Bruno Haible  <bruno@clisp.org>
12594
12595         Integrate the regex documentation.
12596         * doc/gnulib.texi: Define 'cn' index.
12597         (Regular expressions): New a chapter that includes regex.texi and
12598         regexprops-generic.texi.
12599         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
12600         syntax.
12601
12602         Whitespace cleanup.
12603         * doc/regex.texi: Remove trailing spaces.
12604
12605         Add regex documentation.
12606         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
12607         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
12608         Written by Kathy A. Hargreaves and Karl Berry.
12609
12610 2010-08-01  Bruno Haible  <bruno@clisp.org>
12611
12612         link: Update documentation.
12613         * doc/posix-functions/link.texi: Update regarding Solaris.
12614
12615 2010-07-31  Bruno Haible  <bruno@clisp.org>
12616
12617         Update modules list.
12618         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
12619         (String handling <string.h>): Add memcmp2, memxfrm.
12620         (Container data structures): Add xlist, xsublist, xoset.
12621         (Core language properties): Add alignof, unused-parameter.
12622         (Process control, Numeric conversion functions <stdlib.h>): Renamed
12623         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
12624         (Unibyte characters <ctype.h>): New section.
12625         (String handling <string.h>): New section.
12626         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
12627         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
12628         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
12629         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
12630         tan, tanh, tanl, y0, y1, yn.
12631         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
12632         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
12633         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
12634         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
12635         unlockpt, vdprintf, vdprintf-posix.
12636         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
12637         (File system functions): Add concat-filename, sys_file, sys_ioctl,
12638         xconcat-filename.
12639         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
12640         getdtablesize, pipe2, pipe2-safer.
12641         (Security): New section.
12642         (Networking functions): Add accept4.
12643         (Signal handling): Add sigpipe.
12644         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12645         mbmemcasecoll.
12646         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12647         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12648         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12649         pipe-filter-ii.
12650         (Misc): Add argp-version-etc, login_tty, parse-duration.
12651
12652 2010-07-31  Bruno Haible  <bruno@clisp.org>
12653
12654         Improve doc in MODULES.html.
12655         * modules/linkat (Description): Add the word "function".
12656         * modules/mkfifo (Description): Likewise.
12657         * modules/mknod (Description): Likewise.
12658         * modules/remove (Description): Likewise.
12659         * modules/renameat (Description): Likewise.
12660         * modules/stat (Description): Likewise.
12661         * modules/symlink (Description): Likewise.
12662         * modules/unlink (Description): Likewise.
12663
12664 2010-07-31  Bruno Haible  <bruno@clisp.org>
12665
12666         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12667         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12668         option --enable/disable-c++ instead of --enable/disable-cxx.
12669         * NEWS: Mention the change.
12670
12671 2010-07-31  Bruno Haible  <bruno@clisp.org>
12672
12673         readlink, areadlink: Relax test a bit.
12674         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12675         alternative to ENOTDIR.
12676         * tests/test-areadlink.h (test_areadlink): Likewise.
12677         Reported by Rainer Tammer.
12678
12679 2010-07-31  Bruno Haible  <bruno@clisp.org>
12680
12681         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12682         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12683         character, perform the search using U_STRCHR.
12684         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12685         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12686         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12687         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12688         Suggested by Paolo Bonzini.
12689
12690 2010-07-31  Bruno Haible  <bruno@clisp.org>
12691
12692         unistr/u*-strstr: Fix dependencies.
12693         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12694         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12695         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12696
12697 2010-07-31  Bruno Haible  <bruno@clisp.org>
12698
12699         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12700         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12701         the beginning of the loop.
12702         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12703         cases in 'switch' statement.
12704
12705         unistr/u8-strchr: Fix several bugs.
12706         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12707         the string. When not found, return NULL, not a pointer near the end.
12708
12709         More tests for unistr/u8-strchr.
12710         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12711         that the function does not read past the first occurrence of the byte
12712         being searched.
12713         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12714         * tests/unistr/test-u16-strchr.c (main): New function.
12715         * tests/unistr/test-u32-strchr.c (main): New function.
12716
12717 2010-07-31  Bruno Haible  <bruno@clisp.org>
12718
12719         posix-modules: Ignore backup files of documentation files.
12720         * posix-modules: grep only through files named *.texi.
12721
12722 2010-07-31  Bruno Haible  <bruno@clisp.org>
12723
12724         symlinkat: Fix documentation.
12725         * doc/posix-functions/readlinkat.texi: Fix module name.
12726
12727 2010-07-31  Bruno Haible  <bruno@clisp.org>
12728
12729         fchownat: Replace also when chown has the trailing slash bug.
12730         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12731         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12732         introduced on 2010-04-10.
12733         Reported by Rainer Tammer.
12734
12735 2010-07-31  Bruno Haible  <bruno@clisp.org>
12736
12737         linkat: Work around AIX 7.1 bug.
12738         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12739         whether linkat handles trailing slash correctly. If not, replace linkat
12740         and define LINKAT_TRAILING_SLASH_BUG.
12741         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12742         check whether (fd1,file1) points to a directory if file1 or file2 ends
12743         in a slash. Code taken from lib/link.c.
12744         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12745         Reported by Rainer Tammer.
12746
12747 2010-07-31  Bruno Haible  <bruno@clisp.org>
12748
12749         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12750         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12751         This disables an xlc optimization that was causing wrong test results.
12752         Reported by Rainer Tammer.
12753
12754 2010-07-31  Bruno Haible  <bruno@clisp.org>
12755
12756         iconv: Work around AIX 6.1..7.1 bug.
12757         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12758         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12759         cross-compiling, guess no on all versions of AIX.
12760         Reported by Rainer Tammer.
12761
12762 2010-07-31  Bruno Haible  <bruno@clisp.org>
12763
12764         readlink: Relax test a bit.
12765         * tests/test-readlink.h (test_readlink): Allow different errno value
12766         when readlink is called with a file name that ends in / and refers to
12767         a file.
12768         Suggested by Eric Blake.
12769         Reported by Rainer Tammer.
12770
12771 2010-07-31  Bruno Haible  <bruno@clisp.org>
12772
12773         copysign: Does not require -lm on glibc systems.
12774         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12775         gl_COMMON_DOUBLE_MATHFUNC.
12776         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12777
12778 2010-07-31  Bruno Haible  <bruno@clisp.org>
12779
12780         duplocale: Work around AIX 7.1 bug.
12781         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12782         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12783         * lib/duplocale.c (rpl_duplocale): Update comment.
12784         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12785         Reported by Rainer Tammer.
12786
12787 2010-07-30  Bruno Haible  <bruno@clisp.org>
12788
12789         dirfd: Avoid link error on AIX 7.1.
12790         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12791         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12792         exist, set REPLACE_DIRFD.
12793         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12794         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12795         * doc/posix-functions/dirfd.texi: Update.
12796         Reported by Rainer Tammer.
12797
12798 2010-07-30  Eric Blake  <eblake@redhat.com>
12799
12800         strtod: next round of AIX fixes
12801         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12802         exponent.
12803         * tests/test-strtod.c (main): Enhance tests.
12804         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12805         Reported by Rainer Tammer.
12806
12807         futimens: fix configure check
12808         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12809         Reported by Bruno Haible.
12810
12811 2010-07-30  Bruno Haible  <bruno@clisp.org>
12812
12813         getline: Update regarding AIX.
12814         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12815         Reported by Rainer Tammer.
12816
12817 2010-07-30  Bruno Haible  <bruno@clisp.org>
12818
12819         wcwidth: Drop replacement on AIX 7.
12820         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12821         AIX 7.
12822         Reported by Rainer Tammer.
12823
12824 2010-07-30  Bruno Haible  <bruno@clisp.org>
12825
12826         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12827         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12828         a 'char *'.
12829         Reported by Rainer Tammer.
12830
12831 2010-07-30  Bruno Haible  <bruno@clisp.org>
12832
12833         unlink: Update regarding AIX.
12834         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12835         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12836         Reported by Rainer Tammer.
12837
12838 2010-07-30  Bruno Haible  <bruno@clisp.org>
12839
12840         symlink: Update regarding AIX.
12841         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12842         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12843         Reported by Rainer Tammer.
12844
12845 2010-07-30  Bruno Haible  <bruno@clisp.org>
12846
12847         strndup: Update regarding AIX.
12848         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12849         AIX 7.
12850         Reported by Rainer Tammer.
12851
12852 2010-07-30  Bruno Haible  <bruno@clisp.org>
12853
12854         stat: Update regarding AIX.
12855         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12856         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12857         Reported by Rainer Tammer.
12858
12859 2010-07-30  Bruno Haible  <bruno@clisp.org>
12860
12861         truncl: Fix autoconf test.
12862         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12863         whether truncl works.
12864         Reported by Rainer Tammer.
12865
12866 2010-07-30  Bruno Haible  <bruno@clisp.org>
12867
12868         round: Update regarding AIX.
12869         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12870         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12871         Reported by Rainer Tammer.
12872
12873 2010-07-30  Bruno Haible  <bruno@clisp.org>
12874
12875         rename: Update regarding AIX.
12876         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12877         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12878         Reported by Rainer Tammer.
12879
12880 2010-07-30  Bruno Haible  <bruno@clisp.org>
12881
12882         printf.m4: Update regarding AIX.
12883         * m4/printf.m4: Update comments regarding AIX.
12884         Reported by Rainer Tammer.
12885
12886 2010-07-30  Bruno Haible  <bruno@clisp.org>
12887
12888         iconv: Update regarding AIX.
12889         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12890         AIX 7.
12891         Reported by Rainer Tammer.
12892
12893 2010-07-30  Bruno Haible  <bruno@clisp.org>
12894
12895         getopt: Update regarding AIX.
12896         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12897         no on AIX.
12898         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12899         Reported by Rainer Tammer.
12900
12901 2010-07-30  Bruno Haible  <bruno@clisp.org>
12902
12903         ldexpl; Update regarding AIX.
12904         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12905         on AIX 7.
12906         Reported by Rainer Tammer.
12907
12908 2010-07-30  Bruno Haible  <bruno@clisp.org>
12909
12910         frexpl: Update regarding AIX.
12911         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12912         on AIX 7.
12913         Reported by Rainer Tammer.
12914
12915 2010-07-30  Bruno Haible  <bruno@clisp.org>
12916
12917         open, fopen: Update regarding AIX.
12918         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12919         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12920         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12921         * doc/posix-functions/fopen.texi: Likewise.
12922         Reported by Rainer Tammer.
12923
12924 2010-07-30  Bruno Haible  <bruno@clisp.org>
12925
12926         chown: Update doc regarding AIX.
12927         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12928         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12929         Reported by Rainer Tammer.
12930
12931 2010-07-30  Eric Blake  <eblake@redhat.com>
12932
12933         strtod: fix bug in replacement function on AIX
12934         * lib/strtod.c (strtod): Special case broken "0x" parse in
12935         underlying strtod.
12936         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12937         * doc/posix-functions/strtod.texi (strtod): Likewise.
12938         Reported by Rainer Tammer.
12939
12940 2010-07-30  Bruno Haible  <bruno@clisp.org>
12941
12942         mbrlen: Fix cross-compilation guess for AIX.
12943         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12944         guess. Leftover from 2008-12-22.
12945
12946 2010-07-30  Bruno Haible  <bruno@clisp.org>
12947
12948         mbrtowc: Fix cross-compilation guess for AIX.
12949         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12950         guess. Leftover from 2008-12-21.
12951
12952 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12953
12954         init.sh: work around trap limitation of some shells
12955         * tests/init.sh (setup_): Move exit trap outside of shell function.
12956
12957 2010-07-29  Eric Blake  <eblake@redhat.com>
12958
12959         strtod: aid debugging
12960         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12961         understanding why strtod is rejected.
12962
12963 2010-07-28  Bruno Haible  <bruno@clisp.org>
12964
12965         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12966         * lib/unistr/u8-chr.c: Include <string.h>.
12967         * tests/unistr/test-u8-chr.c: Likewise.
12968         * tests/unistr/test-u16-chr.c: Likewise.
12969         * tests/unistr/test-u32-chr.c: Likewise.
12970         * tests/unistr/test-u8-strchr.c: Likewise.
12971         * tests/unistr/test-u16-strchr.c: Likewise.
12972         * tests/unistr/test-u32-strchr.c: Likewise.
12973         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12974         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12975         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12976         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12977
12978 2010-07-28  Bruno Haible  <bruno@clisp.org>
12979
12980         Use spaces for indentation, not tabs.
12981         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12982
12983 2010-07-27  Bruno Haible  <bruno@clisp.org>
12984
12985         mbspcasecmp: Fix function specification.
12986         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12987         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12988         Reported by Eric Blake <eblake@redhat.com>.
12989
12990 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12991
12992         timespec: use cast and not conditional, as truncation isn't possible
12993         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12994         instead of a conditional.  Comment about the situation in more detail.
12995         This undoes most of the 2009-10-29 patch.
12996
12997 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12998
12999         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
13000         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
13001         * lib/unistr/u8-strchr.c: Likewise.
13002         * modules/unistr/u8-chr: Depend on memchr.
13003
13004         unistr/u*-strchr: add tests
13005         * modules/unistr/u8-strchr-tests: New file.
13006         * modules/unistr/u16-strchr-tests: New file.
13007         * modules/unistr/u32-strchr-tests: New file.
13008         * tests/unistr/test-strchr.h: New file.
13009         * tests/unistr/test-u8-strchr.c: New file.
13010         * tests/unistr/test-u16-strchr.c: New file.
13011         * tests/unistr/test-u32-strchr.c: New file.
13012
13013         unistr/u*-chr: test multibyte sequences more
13014         * tests/unistr/test-chr.h: Do complete testing of the characters in the
13015         test vector.
13016         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
13017         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
13018         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
13019
13020         unistr/u*-chr: test multibyte sequences
13021         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
13022
13023         unistr/u*-chr: prepare for multibyte tests
13024         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
13025         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
13026         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
13027         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
13028         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
13029         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
13030
13031 2010-07-18  Bruno Haible  <bruno@clisp.org>
13032
13033         unistr/u8-strchr: Optimize non-ASCII argument case.
13034         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
13035         because the first byte often matches anyway.
13036         Reported by Pádraig Brady <P@draigbrady.com>.
13037
13038 2010-07-15  Karl Berry  <karl@gnu.org>
13039
13040         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
13041
13042 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
13043
13044         getcwd: on Solaris, work better if ancestors are inaccessible
13045         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
13046         buffer and size, try again with a large buffer.  This works better
13047         on Solaris, since its getcwd succeeds even if the path to the root
13048         is inaccessible, and this is helpful in common cases such as .zfs
13049         hidden directories.  Problem reported by J Chapman Flack in
13050         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
13051         Use system getcwd if it's declared, not merely if it's partly
13052         working; use the partly-working test only to avoid needless effort
13053         if the system getcwd fails.
13054         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
13055         comment that was already obsolete and is now even more obsolete.
13056         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
13057         now might call strdup.
13058
13059 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
13060
13061         pthread: Add enough so that coreutils/src/sort.c compiles.
13062         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
13063         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
13064         gnulib. Include <sched.h> and <time.h>, as per POSIX.
13065         Include <sys/types.h>, in case it defines pthread_t.
13066         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
13067         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
13068         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
13069         (pthread_rwlockattr_t, pthread_spinlock_t):
13070         New typedefs, if HAVE_PTHREAD_T is not defined.
13071         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
13072         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
13073         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
13074         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
13075         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
13076         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
13077         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
13078         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
13079         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
13080         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
13081         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
13082         New macros.
13083         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
13084         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
13085         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
13086         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
13087         (pthread_spin_unlock): New dummy functions.
13088         (pthread_create): Return EAGAIN; don't set errno.
13089         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
13090         require AC_C_INLINE.
13091         * modules/pthread (Depends-on): Add sched, time.
13092         (pthread.h): Use AM_V_GEN.
13093
13094 2010-07-13  Bruno Haible  <bruno@clisp.org>
13095
13096         striconveh: Don't malloc memory if the result buffer is sufficient.
13097         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
13098         buffer if its size is sufficient.
13099         Reported by Ludovic Courtès <ludo@gnu.org>.
13100
13101 2010-07-13  Bruno Haible  <bruno@clisp.org>
13102
13103         strtod: Add safety check.
13104         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
13105
13106 2010-07-12  Bruno Haible  <bruno@clisp.org>
13107
13108         Unify tests that set gl_cv_func_ldexpl_no_libm.
13109         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
13110         gl_FUNC_LDEXPL.
13111         (gl_FUNC_LDEXPL): Invoke it.
13112         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13113
13114 2010-07-12  Bruno Haible  <bruno@clisp.org>
13115
13116         Unify tests that set gl_cv_func_ldexp_no_libm.
13117         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
13118         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
13119         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
13120         (configure.ac): Simply invoke gl_FUNC_LDEXP.
13121         * modules/strtod (Files): Add m4/ldexp.m4.
13122
13123 2010-07-12  Bruno Haible  <bruno@clisp.org>
13124
13125         Unify tests that set gl_cv_func_frexpl_no_libm.
13126         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
13127         gl_FUNC_FREXPL_NO_LIBM.
13128         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
13129         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13130
13131 2010-07-12  Bruno Haible  <bruno@clisp.org>
13132
13133         Unify tests that set gl_cv_func_frexp_no_libm.
13134         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
13135         gl_FUNC_FREXP_NO_LIBM.
13136         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
13137         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13138
13139 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13140
13141         memcoll: clarify sizes versus lengths, document better, and tweak perf
13142         * lib/memcoll.c (strcoll_loop, memcoll0):
13143         Improve quality of descriptive comments.  Name variables
13144         consistently as to whether they are lengths (which do not include
13145         terminating null) versus sizes (which do).
13146         * lib/xmemcoll.c (xmemcoll0): Likewise.
13147         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
13148         returned when s1size == 0; this is easier to compile and saves
13149         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
13150
13151 2010-07-12  Bruno Haible  <bruno@clisp.org>
13152
13153         Tests for module '_Exit'.
13154         * modules/_Exit-tests: New file.
13155         * tests/test-_Exit.sh: New file.
13156         * tests/test-_Exit.c: New file.
13157
13158         New module '_Exit'.
13159         * lib/stdlib.in.h (__attribute__): New macro.
13160         (_Exit): New declaration.
13161         * lib/_Exit.c: New file.
13162         * m4/_Exit.m4: New file.
13163         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
13164         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
13165         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
13166         * modules/_Exit: New file.
13167         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13168         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
13169
13170 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13171
13172         strtod: make it more-accurate typically, and don't require libm
13173         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
13174         Include limits.h.  Don't include string.h.
13175         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
13176         (locale_isspace): New function, so that no casts are needed to
13177         check whether *s is a space.
13178         (ldexp): Provide an unused dummy if not available.
13179         (scale_radix_exp, parse_number, underlying_strtod): New functions.
13180         (strtod): Use them.  This implementation prefers to use the
13181         underlying strtod if available, falling back on our own code
13182         only to fix known bugs.  This is more likely to produce an
13183         accurate result.  Also, it avoids the use of libm functions.
13184         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
13185         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
13186         was absent, but it caused a test failure with coreutils.
13187         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
13188         with libm.
13189         * modules/strtod (Makefile.am, Link): libm is no longer needed.
13190         * modules/strtod-tests (Makefile.am): Likewise.
13191
13192 2010-07-11  Pádraig Brady  <P@draigBrady.com>
13193             Bruno Haible  <bruno@clisp.org>
13194
13195         unistr/u8-strchr: Optimize ASCII argument case.
13196         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
13197
13198 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13199
13200         (x)memcoll: minor tweaks
13201         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
13202         is after the type that it qualifies.
13203         (memcoll0): Likewise.
13204         * lib/memcoll.h (memcoll0): Likewise.
13205         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
13206         * lib/xmemcoll.h (xmemcoll0): Likewise.
13207         * lib/memcoll.c (memcoll0): Correct the comment.  This function
13208         differs from memcoll in that the NUL byte is part of the argument.
13209         Omit the abort-checks, as performance is a real issue here.  Plus,
13210         the checks were wrong anyway (an off-by-one error).  Omit local
13211         variable 'diff', as it's a bit clearer that way.
13212         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
13213         no longer needed.
13214
13215 2010-07-08  Chen Guo <chenguo4@yahoo.com>
13216
13217         (x)memcoll: speedup when input is known to be NUL delimited
13218         * lib/memcoll.c: Include stdlib.
13219         (memcoll0): New function.
13220         (strcoll_loop): New function, refactored for use in both memcoll
13221         and memcoll0.
13222         * lib/memcoll.h (memcoll0): Add prototype.
13223         * lib/xmemcoll.c (xmemcoll0): New function.
13224         (collate_error): New function, refactored for use in both xmemcoll
13225         and xmemcoll0.
13226         * lib/xmemcoll.h (xmemcoll0): Add prototype.
13227         * m4/memcoll.m4: add inline invocation.
13228
13229 2010-07-06  Pádraig Brady  <P@draigBrady.com>
13230
13231         * build-aux/bootstrap: Remove any local translations
13232         from the translation project synchronization directory,
13233         so that local only translations are not distributed.
13234
13235 2010-07-04  Bruno Haible  <bruno@clisp.org>
13236
13237         fsusage: Clarify which code applies to which platforms.
13238         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
13239         platform.
13240         * lib/fsusage.c (get_fs_usage): Likewise.
13241
13242 2010-07-04  Bruno Haible  <bruno@clisp.org>
13243
13244         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
13245         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
13246         Reported by Martin Lambers <marlam@marlam.de>.
13247
13248 2010-07-04  Jim Meyering  <meyering@redhat.com>
13249
13250         hash: once again explicitly disallow insertion of NULL
13251         * lib/hash.c (hash_insert0): Reinstate just-removed test:
13252         inserting a NULL pointer cannot work with these functions.
13253         Add a comment with details.
13254         This reverts part of the 2010-07-01 commit, 5bef1a35
13255         "hash: extend module to deal with non-pointer keys".
13256
13257 2010-07-01  Bruno Haible  <bruno@clisp.org>
13258
13259         stdbool: Update doc.
13260         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
13261         Info from Christian Weisgerber <naddy@mips.inka.de>.
13262
13263 2010-07-01  Jim Meyering  <meyering@redhat.com>
13264
13265         hash: extend module to deal with non-pointer keys
13266         * lib/hash.c (hash_insert0): New interface, much like hash_insert
13267         but that allows insertion of non-pointer entries.
13268         Do not disallow an ENTRY value of NULL.
13269         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
13270         * lib/hash.h (hash_insert0): Declare.
13271
13272 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13273
13274         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
13275         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
13276         not present (i.e. with autoconf 2.59 and when using gettextize, not
13277         gnulib), require AC_GNU_SOURCE instead.
13278
13279 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
13280
13281         idpriv-drop: Fix tests.
13282         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
13283         not to the test-idpriv-droptemp program.
13284
13285 2010-06-29  Bruno Haible  <bruno@clisp.org>
13286
13287         string: Fix syntax error with g++ 2.96.
13288         * lib/string.in.h (__pure__): Remove definition.
13289         (_GL_ATTRIBUTE_PURE): New macro.
13290         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
13291         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
13292         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13293
13294 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
13295
13296         unitypes: Fix bug introduced on 2010-05-18.
13297         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
13298
13299 2010-06-22  Eric Blake  <eblake@redhat.com>
13300
13301         memmem: slight optimization
13302         * lib/str-two-way.h (critical_factorization): Update comments.
13303         Reduce work during factorization phase.
13304         Reported by Carlos Bueno <carlos@bueno.org>.
13305
13306 2010-06-21  Bruno Haible  <bruno@clisp.org>
13307
13308         Fix HAVE_CALLOC_POSIX misnomer.
13309         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
13310         !HAVE_CALLOC_POSIX.
13311         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
13312         HAVE_CALLOC_POSIX.
13313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
13314         instead of HAVE_CALLOC_POSIX.
13315         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
13316         HAVE_CALLOC_POSIX.
13317
13318         Use modern idiom for calloc() replacement.
13319         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
13320         AC_FUNC_CALLOC.
13321         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
13322         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
13323         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13324         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
13325         (gl_REPLACE_CALLOC): New macro.
13326
13327 2010-06-21  Bruno Haible  <bruno@clisp.org>
13328
13329         Fix HAVE_REALLOC_POSIX misnomer.
13330         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
13331         !HAVE_REALLOC_POSIX.
13332         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
13333         HAVE_REALLOC_POSIX.
13334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
13335         instead of HAVE_REALLOC_POSIX.
13336         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
13337         HAVE_REALLOC_POSIX.
13338
13339         Use modern idiom for realloc() replacement.
13340         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
13341         AC_FUNC_REALLOC.
13342         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
13343         Autoconf's AC_FUNC_REALLOC.
13344         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13345         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
13346         (gl_REPLACE_REALLOC): New macro.
13347         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13348
13349 2010-06-21  Bruno Haible  <bruno@clisp.org>
13350
13351         Fix HAVE_MALLOC_POSIX misnomer.
13352         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
13353         !HAVE_MALLOC_POSIX.
13354         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
13355         HAVE_MALLOC_POSIX.
13356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
13357         instead of HAVE_MALLOC_POSIX.
13358         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
13359         HAVE_MALLOC_POSIX.
13360
13361         Use modern idiom for malloc() replacement.
13362         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
13363         AC_FUNC_MALLOC.
13364         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
13365         Autoconf's AC_FUNC_MALLOC.
13366         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13367         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
13368         (gl_REPLACE_MALLOC): New macro.
13369         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13370
13371 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
13372
13373         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
13374         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
13375         This macro takes 3 arguments, not 4.
13376
13377 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
13378
13379         ipv6: fix detection under mingw
13380         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
13381         in6_addr.
13382
13383 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
13384
13385         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
13386         that strtod() works when cross-compiling to a glibc version known
13387         to work.
13388
13389 2010-06-15  Bruno Haible  <bruno@clisp.org>
13390
13391         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
13392
13393 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
13394
13395         select: Correct timeout.
13396         * lib/select.c (rpl_select): Compute wait_timeout correctly.
13397
13398 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13399
13400         git-version-gen: init shell var to avoid env var influence
13401         * build-aux/git-version-gen (v): Init shell var to empty.
13402
13403 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
13404
13405         priv-set: Don't assume that priv.h exists merely because getppriv does.
13406         See Jan Andersen's bug report about AIX 5L in
13407         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
13408         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
13409         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
13410         * lib/priv-set.h: Likewise.
13411         * tests/test-priv-set.c: Likewise.
13412
13413 2010-06-13  Bruno Haible  <bruno@clisp.org>
13414
13415         relocatable: Make it easier to test whether to install wrappers.
13416         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
13417         RELOCATABLE_VIA_WRAPPER.
13418
13419 2010-06-13  Bruno Haible  <bruno@clisp.org>
13420
13421         gnulib-tool: Display specified modules and dependencies differently.
13422         * gnulib-tool (func_show_module_list): New function.
13423         (func_import, func_create_testdir): Invoke it.
13424         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13425
13426 2010-06-13  Bruno Haible  <bruno@clisp.org>
13427
13428         gnulib-tool: Align code of func_import and func_create_testdir.
13429         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
13430         specified_modules.
13431
13432 2010-06-12  Jim Meyering  <meyering@redhat.com>
13433
13434         test-inttostr: avoid spurious failure on Solaris 9
13435         * tests/test-inttostr.c (main): Skip the test when snprintf fails
13436         to accept "%ju".  Reported by Bruno Haible.
13437
13438 2010-06-11  Jim Meyering  <meyering@redhat.com>
13439
13440         test-sys_socket: mark variables as used more readably
13441         * tests/test-sys_socket.c (main): Mark otherwise unused variables
13442         as "used" explicitly via (void) statement casts.  This is more
13443         readable than using them in an artificial return expression.
13444         Suggestion from Bruno Haible.
13445
13446 2010-06-11  Bruno Haible  <bruno@clisp.org>
13447
13448         Avoid some more warnings from "gcc -Wwrite-strings".
13449         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
13450         to 'const char *'.
13451         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
13452         * tests/test-c-strcasestr.c (main): Likewise.
13453         * tests/test-mbscasestr1.c (main): Likewise.
13454         * tests/test-mbscasestr2.c (main): Likewise.
13455         * tests/test-memmem.c (main): Likewise.
13456         * tests/test-strstr.c (main): Likewise.
13457         * tests/test-strcasestr.c (main): Likewise.
13458
13459 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13460
13461         init.sh: change framework_failure_ to fail with status 99, not 1
13462         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
13463         automake's parallel-tests rule that this is an unexpected failure,
13464         even if the test is listed in XFAIL_TESTS.
13465
13466 2010-06-11  Jim Meyering  <meyering@redhat.com>
13467
13468         test-inttostr: avoid warnings about 4-6KB literal strings
13469         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
13470         Include "macros.h", for its definition of ASSERT.
13471         (CK): s/assert/ASSERT/
13472         * modules/inttostr-tests (Files): Add macros.h.
13473
13474         init.sh: don't use $ME_ or skip_ before they are defined
13475         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
13476         their first uses.  Also hoist their companions: warn_, fail_,
13477         framework_failure_, $stderr_fileno.  Prompted by a patch from
13478         Stefano Lattarini.
13479
13480         test-sys_socket: avoid set-but-not-used warnings from gcc
13481         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
13482         avoid warning about set-but-not-used variables.
13483
13484         test-xvasprintf: avoid 'const' discard warnings
13485         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
13486         "const" when assigning from literal strings.
13487         (test_xasprintf): Add "void" in function argument list to placate
13488         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
13489
13490         tests: avoid compilation warnings in argmatch and exclude tests...
13491         in packages that define ARGMATCH_DIE_DECL, like coreutils.
13492         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
13493         Since it always exits, declare with the "noreturn" attribute.
13494         * tests/test-argmatch.c: Likewise.
13495
13496         tests: avoid 'const' discard warnings in mbsstr tests
13497         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
13498         * tests/test-mbsstr2.c (main): Likewise.
13499
13500         test-verify: avoid warning from gcc's -Wmissing-declarations
13501         * tests/test-verify.c (function): Declare to be static.
13502
13503         test-inttostr.c: include <string.h> for use of strcmp
13504         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
13505
13506         test-linkat: avoid failed assertion on "other" architectures
13507         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
13508         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
13509         sparc: https://bugs.launchpad.net/bugs/591968
13510
13511 2010-06-11  Jim Meyering  <meyering@redhat.com>
13512
13513         printf.m4: avoid autoconf's "Expanded Before Required" warning
13514         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
13515         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
13516         autoconf warning.
13517
13518 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
13519
13520         Replacement header templates are now named with ".in", not "_".
13521         * doc/gnulib-intro.texi: Correct.
13522
13523 2010-06-10  Jim Meyering  <meyering@redhat.com>
13524
13525         inttostr-tests: depend on snprintf, not snprintf-posix
13526         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
13527         snprintf-posix, to avoid this aclocal failure:
13528           missing file gnulib-tests/vasnprintf.c
13529           configure.ac:45: error: expected source file, required through \
13530           AC_LIBSOURCES, not found
13531
13532 2010-06-10  Jim Meyering  <meyering@redhat.com>
13533
13534         inttostr: add a new function, inttostr, and tests
13535         The namesake function was not available.  The existence of the
13536         template file, inttostr.c makes its addition nontrivial.
13537         * lib/anytostr.c: Rename from inttostr.c.
13538         (anytostr): Rename from inttostr.
13539         * lib/inttostr.c: New file.
13540         * modules/inttostr (Files): Add anytostr.c.
13541         (Makefile.am): Set lib_SOURCES instead of ...
13542         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
13543         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
13544         * lib/offtostr.c: Likewise.
13545         * lib/uinttostr.c: Likewise.
13546         * lib/umaxtostr.c: Likewise.
13547         * modules/inttostr-tests: New file.
13548         * tests/test-inttostr.c: New file.  Test these functions.
13549
13550 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
13551             Bruno Haible  <bruno@clisp.org>
13552
13553         Add "Extending Gnulib" chapter to manual.
13554         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
13555         chapter.
13556         (Extending Gnulib): New chapter.
13557         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
13558         chapter.
13559
13560 2010-06-09  Bruno Haible  <bruno@clisp.org>
13561
13562         Avoid relocwrapper link errors due to gnulib replacement functions.
13563         * lib/areadlink.c: Use the system's malloc, realloc functions.
13564         (areadlink): Set errno to ENOMEM explicitly.
13565         * modules/areadlink (Depends-on): Remove malloc-posix.
13566         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13567
13568 2010-06-09  Bruno Haible  <bruno@clisp.org>
13569
13570         Avoid relocwrapper link errors due to gnulib replacement functions.
13571         * lib/canonicalize-lgpl.c: Use the system's malloc function.
13572         * lib/malloca.c: Likewise.
13573         * lib/relocatable.c: Likewise.
13574         * lib/progreloc.c: Use the system's malloc, sprintf functions.
13575         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
13576         * lib/setenv.c: Use the system's malloc, realloc functions.
13577         * lib/strerror.c: Use the system's sprintf function.
13578         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13579
13580 2010-06-04  Bruno Haible  <bruno@clisp.org>
13581
13582         Prefer documented low-level autoconf macro names.
13583         * m4/lib-link.m4: Use m4_translit instead of translit.
13584         * m4/environ.m4: Likewise.
13585         * m4/mathfunc.m4: Likewise.
13586         * m4/onceonly.m4: Likewise.
13587         * m4/stdint.m4: Likewise.
13588         Suggested by Eric Blake.
13589
13590 2010-06-04  Martin Lambers  <marlam@marlam.de>
13591             Bruno Haible  <bruno@clisp.org>
13592
13593         havelib: Allow library names with '+' characters.
13594         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13595         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
13596
13597 2010-06-09  Bruno Haible  <bruno@clisp.org>
13598
13599         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
13600         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
13601         realloc failed.
13602
13603 2010-06-08  Peter Simons  <simons@cryp.to>
13604
13605         maint.mk: make the news-check rule more configurable
13606         * top/maint.mk (news-check-lines-spec): New variable.
13607         (news-check): Use "sed -n 1,10p" in place of "head".
13608
13609 2010-06-07  Jim Meyering  <meyering@redhat.com>
13610
13611         do-release-commit-and-tag: fix typo in --help
13612         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
13613
13614         regex: avoid new dead-code warning with gcc-4.6.0
13615         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
13616         if-block containing a while-loop.  It's been unused for at least
13617         5 years.
13618
13619 2010-06-05  Bruno Haible  <bruno@clisp.org>
13620
13621         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
13622         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
13623
13624 2010-06-04  Bruno Haible  <bruno@clisp.org>
13625
13626         Update to GNU gettext 0.18.1.
13627         * modules/gettext (configure.ac): Require gettext infrastructure from
13628         version 0.18.1.
13629
13630 2010-06-03  Bruno Haible  <bruno@clisp.org>
13631
13632         Don't use AC_LIBOBJ with file names in subdirectories.
13633         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
13634         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
13635         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
13636         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
13637         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
13638         gl_LIBUNISTRING_LIBSOURCE.
13639         (Makefile.am): Augment lib_SOURCES here, conditionally.
13640         * NEWS: Drop requirement for Automake option 'subdir-objects'.
13641
13642 2010-06-03  Bruno Haible  <bruno@clisp.org>
13643
13644         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13645         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13646         expansion does not end with a newline.
13647         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13648         unnecessary newline.
13649
13650 2010-06-03  Bruno Haible  <bruno@clisp.org>
13651
13652         Reduce dependencies.
13653         * tests/test-quotearg.h: New file, extracted from
13654         tests/test-quotearg.c.
13655         * tests/test-quotearg-simple.c: New file, extracted from
13656         tests/test-quotearg.c.
13657         * tests/test-quotearg.c: Don't include <ctype.h>.
13658         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13659         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13660         use_quote_double_quotes, use_quotearg_colon): Moved to
13661         tests/test-quotearg.h.
13662         (results_g, flag_results, custom_quotes, custom_results): Moved
13663         to tests/test-quotearg-simple.c.
13664         (main): Moved the part that does not depend on gettext to
13665         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13666         performed.
13667         * modules/quotearg-simple: New file.
13668         * modules/quotearg-simple-tests: New file.
13669         * modules/quotearg (Depends-on): Add quotearg-simple.
13670         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13671         (Files): Add tests/test-quotearg.h.
13672         Reported by Paolo Bonzini.
13673
13674 2010-06-03  Bruno Haible  <bruno@clisp.org>
13675
13676         Reduce dependencies.
13677         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13678
13679 2010-06-03  Bruno Haible  <bruno@clisp.org>
13680
13681         time: Undefine more broken macros.
13682         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13683         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13684         Reported by Eric Blake.
13685
13686 2010-06-03  Bruno Haible  <bruno@clisp.org>
13687
13688         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13689         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13690         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13691         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13692         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13693         Reported by Ludovic Courtès <ludo@gnu.org>.
13694
13695 2010-06-02  Eric Blake  <eblake@redhat.com>
13696
13697         time: work with mingw + pthreads-win32 library
13698         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13699         if timespec is defined only in pthread.h.
13700         * modules/time (Makefile.am): Substitute it.
13701         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13702         <pthread.h>, when needed.
13703         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13704         from the library.
13705
13706 2010-05-31  Bruno Haible  <bruno@clisp.org>
13707
13708         Avoid expanding two macros in the wrong order.
13709         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13710         gl_LIBUNISTRING if it is defined.
13711         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13712         autoconf >= 2.64.
13713         Reported by Ludovic Courtès <ludo@gnu.org>.
13714
13715 2010-05-27  Jim Meyering  <meyering@redhat.com>
13716
13717         maint.mk: also prohibit "#undef" of always-defined symbols
13718         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13719         Allow more than one space before the symbol name.
13720         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13721         the regexp uses alternation.
13722
13723 2010-05-26  Eric Blake  <eblake@redhat.com>
13724
13725         maint.mk: avoid echo -e
13726         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13727         Convert all uses of echo -* to printf.
13728         Reported by Matthias Bolte.
13729
13730 2010-05-25  Bruno Haible  <bruno@clisp.org>
13731
13732         Update to GNU gettext 0.18, part 2.
13733         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13734         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13735
13736 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13737
13738         Add missing include in test-pwrite.c.
13739         * tests/test-pwrite.c: Include string.h, for strcmp.
13740
13741 2010-05-24  Bruno Haible  <bruno@clisp.org>
13742
13743         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13744
13745 2010-05-24  Bruno Haible  <bruno@clisp.org>
13746
13747         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13748         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13749         iconveh_error argument.
13750         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13751         U_STRCONV_TO_LOCALE.
13752         * lib/unistr/u16-strcoll.c: Likewise.
13753         * lib/unistr/u32-strcoll.c: Likewise.
13754         * modules/unistr/u8-strcoll (Depends-on): Add
13755         uniconv/u8-strconv-to-enc, localcharset. Remove
13756         uniconv/u8-strconv-to-locale.
13757         (configure.ac): Bump version number.
13758         * modules/unistr/u16-strcoll (Depends-on): Add
13759         uniconv/u16-strconv-to-enc, localcharset. Remove
13760         uniconv/u16-strconv-to-locale.
13761         (configure.ac): Bump version number.
13762         * modules/unistr/u32-strcoll (Depends-on): Add
13763         uniconv/u32-strconv-to-enc, localcharset. Remove
13764         uniconv/u32-strconv-to-locale.
13765         (configure.ac): Bump version number.
13766
13767 2010-05-24  Bruno Haible  <bruno@clisp.org>
13768
13769         Avoid a test failure on NetBSD 5.0.
13770         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13771         an iconv() bug.
13772
13773 2010-05-24  Bruno Haible  <bruno@clisp.org>
13774
13775         Adjust #include directive style.
13776         * modules/regex (Includes): Recommend to write <regex.h>.
13777
13778 2010-05-24  Bruno Haible  <bruno@clisp.org>
13779
13780         regex: Don't require alloca.
13781         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13782         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13783         only inside if (0).
13784
13785 2010-05-23  Jim Meyering  <meyering@redhat.com>
13786
13787         test-renameat.c: include <sys/stat.h>
13788         * tests/test-renameat.c: Include <sys/stat.h>; required for
13789         definition of S_IS* macros.
13790
13791 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13792
13793         Update maintainer documentation for 'relocatable-prog' module.
13794         * doc/relocatable-maint.texi: Update.
13795         Comments by Bruno Haible.
13796
13797 2010-05-23  Bruno Haible  <bruno@clisp.org>
13798
13799         git-merge-changelog: Enable --split-merged-entry by default.
13800         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13801         (usage): Don't mention this option any more.
13802         Reported by Ralf Wildenhues.
13803
13804 2010-05-23  Jim Meyering  <meyering@redhat.com>
13805
13806         test-pwrite: do not leave behind a test file named "out"
13807         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13808         The trivial-looking use of init.sh is really necessary.
13809         It ensures that the temporary file, "out", is created in
13810         a temporary directory, and removed upon termination.
13811         * tests/test-pwrite.sh: Re-add file.
13812         * modules/pwrite-tests: Reference it.
13813
13814 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13815
13816         Fix output redirection buglet in init.sh.
13817         * tests/init.sh: Fix redirection of stderr.
13818
13819 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13820
13821         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13822
13823 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13824
13825         * modules/valgrind-tests: New file.
13826         * m4/valgrind-tests.m4: New file.
13827         * doc/valgrind-tests.texi: New file.
13828         * doc/gnulib.texi (Running self-tests under valgrind): New
13829         section.
13830
13831 2010-05-19  Bruno Haible  <bruno@clisp.org>
13832
13833         Clean up dead code in recent commit.
13834         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13835         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13836         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13837         Suggested by Paolo Bonzini.
13838
13839 2010-05-19  Bruno Haible  <bruno@clisp.org>
13840
13841         Avoid valgrind error reports from libunistring.
13842         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13843         * modules/libunistring (Files): Add it.
13844         * modules/libunistring-optional (Files): Likewise.
13845
13846 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13847             Bruno Haible  <bruno@clisp.org>
13848
13849         New module 'libunistring-optional'.
13850         * modules/libunistring-optional: New file.
13851         * m4/libunistring-base.m4: New file.
13852         * m4/libunistring-optional.m4: New file.
13853         * lib/unicase.in.h: Renamed from lib/unicase.h.
13854         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13855         * lib/unictype.in.h: Renamed from lib/unictype.h.
13856         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13857         * lib/uniname.in.h: Renamed from lib/uniname.h.
13858         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13859         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13860         * lib/unistr.in.h: Renamed from lib/unistr.h.
13861         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13862         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13863         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13864         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13865         gl_LIBUNISTRING. If the library was found, determine the installed
13866         version and set LIBUNISTRING_VERSION.
13867         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13868         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13869         handle a configuration option --with-included-libunistring.
13870         * modules/libunistring (Files): Add m4/absolute-header.m4.
13871         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13872         Add m4/libunistring-base.m4.
13873         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13874         (Makefile.am): Build unicase.h from unicase.in.h.
13875         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13876         Add m4/libunistring-base.m4.
13877         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13878         (Makefile.am): Build uniconv.h from uniconv.in.h.
13879         * modules/unictype/base (Files): Use unictype.in.h instead of
13880         unictype.h. Add m4/libunistring-base.m4.
13881         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13882         (Makefile.am): Build unictype.h from unictype.in.h.
13883         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13884         Add m4/libunistring-base.m4.
13885         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13886         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13887         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13888         Add m4/libunistring-base.m4.
13889         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13890         (Makefile.am): Build uniname.h from uniname.in.h.
13891         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13892         Add m4/libunistring-base.m4.
13893         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13894         (Makefile.am): Build uninorm.h from uninorm.in.h.
13895         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13896         unistdio.h. Add m4/libunistring-base.m4.
13897         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13898         (Makefile.am): Build unistdio.h from unistdio.in.h.
13899         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13900         Add m4/libunistring-base.m4.
13901         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13902         (Makefile.am): Build unistr.h from unistr.in.h.
13903         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13904         Add m4/libunistring-base.m4.
13905         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13906         (Makefile.am): Build unitypes.h from unitypes.in.h.
13907         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13908         Add m4/libunistring-base.m4.
13909         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13910         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13911         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13912         uniwidth.h. Add m4/libunistring-base.m4.
13913         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13914         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13915         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13916         instead of augmenting lib_SOURCES.
13917         * modules/unicase/empty-suffix-context: Likewise.
13918         * modules/unicase/locale-language: Likewise.
13919         * modules/unicase/tolower: Likewise.
13920         * modules/unicase/totitle: Likewise.
13921         * modules/unicase/toupper: Likewise.
13922         * modules/unicase/u8-casecmp: Likewise.
13923         * modules/unicase/u8-casecoll: Likewise.
13924         * modules/unicase/u8-casefold: Likewise.
13925         * modules/unicase/u8-casexfrm: Likewise.
13926         * modules/unicase/u8-ct-casefold: Likewise.
13927         * modules/unicase/u8-ct-tolower: Likewise.
13928         * modules/unicase/u8-ct-totitle: Likewise.
13929         * modules/unicase/u8-ct-toupper: Likewise.
13930         * modules/unicase/u8-is-cased: Likewise.
13931         * modules/unicase/u8-is-casefolded: Likewise.
13932         * modules/unicase/u8-is-lowercase: Likewise.
13933         * modules/unicase/u8-is-titlecase: Likewise.
13934         * modules/unicase/u8-is-uppercase: Likewise.
13935         * modules/unicase/u8-prefix-context: Likewise.
13936         * modules/unicase/u8-suffix-context: Likewise.
13937         * modules/unicase/u8-tolower: Likewise.
13938         * modules/unicase/u8-totitle: Likewise.
13939         * modules/unicase/u8-toupper: Likewise.
13940         * modules/unicase/u16-casecmp: Likewise.
13941         * modules/unicase/u16-casecoll: Likewise.
13942         * modules/unicase/u16-casefold: Likewise.
13943         * modules/unicase/u16-casexfrm: Likewise.
13944         * modules/unicase/u16-ct-casefold: Likewise.
13945         * modules/unicase/u16-ct-tolower: Likewise.
13946         * modules/unicase/u16-ct-totitle: Likewise.
13947         * modules/unicase/u16-ct-toupper: Likewise.
13948         * modules/unicase/u16-is-cased: Likewise.
13949         * modules/unicase/u16-is-casefolded: Likewise.
13950         * modules/unicase/u16-is-lowercase: Likewise.
13951         * modules/unicase/u16-is-titlecase: Likewise.
13952         * modules/unicase/u16-is-uppercase: Likewise.
13953         * modules/unicase/u16-prefix-context: Likewise.
13954         * modules/unicase/u16-suffix-context: Likewise.
13955         * modules/unicase/u16-tolower: Likewise.
13956         * modules/unicase/u16-totitle: Likewise.
13957         * modules/unicase/u16-toupper: Likewise.
13958         * modules/unicase/u32-casecmp: Likewise.
13959         * modules/unicase/u32-casecoll: Likewise.
13960         * modules/unicase/u32-casefold: Likewise.
13961         * modules/unicase/u32-casexfrm: Likewise.
13962         * modules/unicase/u32-ct-casefold: Likewise.
13963         * modules/unicase/u32-ct-tolower: Likewise.
13964         * modules/unicase/u32-ct-totitle: Likewise.
13965         * modules/unicase/u32-ct-toupper: Likewise.
13966         * modules/unicase/u32-is-cased: Likewise.
13967         * modules/unicase/u32-is-casefolded: Likewise.
13968         * modules/unicase/u32-is-lowercase: Likewise.
13969         * modules/unicase/u32-is-titlecase: Likewise.
13970         * modules/unicase/u32-is-uppercase: Likewise.
13971         * modules/unicase/u32-prefix-context: Likewise.
13972         * modules/unicase/u32-suffix-context: Likewise.
13973         * modules/unicase/u32-tolower: Likewise.
13974         * modules/unicase/u32-totitle: Likewise.
13975         * modules/unicase/u32-toupper: Likewise.
13976         * modules/unicase/ulc-casecmp: Likewise.
13977         * modules/unicase/ulc-casecoll: Likewise.
13978         * modules/unicase/ulc-casexfrm: Likewise.
13979         * modules/uniconv/u8-conv-from-enc: Likewise.
13980         * modules/uniconv/u8-conv-to-enc: Likewise.
13981         * modules/uniconv/u8-strconv-from-enc: Likewise.
13982         * modules/uniconv/u8-strconv-from-locale: Likewise.
13983         * modules/uniconv/u8-strconv-to-enc: Likewise.
13984         * modules/uniconv/u8-strconv-to-locale: Likewise.
13985         * modules/uniconv/u16-conv-from-enc: Likewise.
13986         * modules/uniconv/u16-conv-to-enc: Likewise.
13987         * modules/uniconv/u16-strconv-from-enc: Likewise.
13988         * modules/uniconv/u16-strconv-from-locale: Likewise.
13989         * modules/uniconv/u16-strconv-to-enc: Likewise.
13990         * modules/uniconv/u16-strconv-to-locale: Likewise.
13991         * modules/uniconv/u32-conv-from-enc: Likewise.
13992         * modules/uniconv/u32-conv-to-enc: Likewise.
13993         * modules/uniconv/u32-strconv-from-enc: Likewise.
13994         * modules/uniconv/u32-strconv-from-locale: Likewise.
13995         * modules/uniconv/u32-strconv-to-enc: Likewise.
13996         * modules/uniconv/u32-strconv-to-locale: Likewise.
13997         * modules/unictype/bidicategory-byname: Likewise.
13998         * modules/unictype/bidicategory-name: Likewise.
13999         * modules/unictype/bidicategory-of: Likewise.
14000         * modules/unictype/bidicategory-test: Likewise.
14001         * modules/unictype/block-list: Likewise.
14002         * modules/unictype/block-test: Likewise.
14003         * modules/unictype/category-C: Likewise.
14004         * modules/unictype/category-Cc: Likewise.
14005         * modules/unictype/category-Cf: Likewise.
14006         * modules/unictype/category-Cn: Likewise.
14007         * modules/unictype/category-Co: Likewise.
14008         * modules/unictype/category-Cs: Likewise.
14009         * modules/unictype/category-L: Likewise.
14010         * modules/unictype/category-Ll: Likewise.
14011         * modules/unictype/category-Lm: Likewise.
14012         * modules/unictype/category-Lo: Likewise.
14013         * modules/unictype/category-Lt: Likewise.
14014         * modules/unictype/category-Lu: Likewise.
14015         * modules/unictype/category-M: Likewise.
14016         * modules/unictype/category-Mc: Likewise.
14017         * modules/unictype/category-Me: Likewise.
14018         * modules/unictype/category-Mn: Likewise.
14019         * modules/unictype/category-N: Likewise.
14020         * modules/unictype/category-Nd: Likewise.
14021         * modules/unictype/category-Nl: Likewise.
14022         * modules/unictype/category-No: Likewise.
14023         * modules/unictype/category-P: Likewise.
14024         * modules/unictype/category-Pc: Likewise.
14025         * modules/unictype/category-Pd: Likewise.
14026         * modules/unictype/category-Pe: Likewise.
14027         * modules/unictype/category-Pf: Likewise.
14028         * modules/unictype/category-Pi: Likewise.
14029         * modules/unictype/category-Po: Likewise.
14030         * modules/unictype/category-Ps: Likewise.
14031         * modules/unictype/category-S: Likewise.
14032         * modules/unictype/category-Sc: Likewise.
14033         * modules/unictype/category-Sk: Likewise.
14034         * modules/unictype/category-Sm: Likewise.
14035         * modules/unictype/category-So: Likewise.
14036         * modules/unictype/category-Z: Likewise.
14037         * modules/unictype/category-Zl: Likewise.
14038         * modules/unictype/category-Zp: Likewise.
14039         * modules/unictype/category-Zs: Likewise.
14040         * modules/unictype/category-and: Likewise.
14041         * modules/unictype/category-and-not: Likewise.
14042         * modules/unictype/category-byname: Likewise.
14043         * modules/unictype/category-name: Likewise.
14044         * modules/unictype/category-none: Likewise.
14045         * modules/unictype/category-of: Likewise.
14046         * modules/unictype/category-or: Likewise.
14047         * modules/unictype/category-test: Likewise.
14048         * modules/unictype/combining-class: Likewise.
14049         * modules/unictype/ctype-alnum: Likewise.
14050         * modules/unictype/ctype-alpha: Likewise.
14051         * modules/unictype/ctype-blank: Likewise.
14052         * modules/unictype/ctype-cntrl: Likewise.
14053         * modules/unictype/ctype-digit: Likewise.
14054         * modules/unictype/ctype-graph: Likewise.
14055         * modules/unictype/ctype-lower: Likewise.
14056         * modules/unictype/ctype-print: Likewise.
14057         * modules/unictype/ctype-punct: Likewise.
14058         * modules/unictype/ctype-space: Likewise.
14059         * modules/unictype/ctype-upper: Likewise.
14060         * modules/unictype/ctype-xdigit: Likewise.
14061         * modules/unictype/decimal-digit: Likewise.
14062         * modules/unictype/digit: Likewise.
14063         * modules/unictype/mirror: Likewise.
14064         * modules/unictype/numeric: Likewise.
14065         * modules/unictype/property-alphabetic: Likewise.
14066         * modules/unictype/property-ascii-hex-digit: Likewise.
14067         * modules/unictype/property-bidi-arabic-digit: Likewise.
14068         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
14069         * modules/unictype/property-bidi-block-separator: Likewise.
14070         * modules/unictype/property-bidi-boundary-neutral: Likewise.
14071         * modules/unictype/property-bidi-common-separator: Likewise.
14072         * modules/unictype/property-bidi-control: Likewise.
14073         * modules/unictype/property-bidi-embedding-or-override: Likewise.
14074         * modules/unictype/property-bidi-eur-num-separator: Likewise.
14075         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
14076         * modules/unictype/property-bidi-european-digit: Likewise.
14077         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
14078         * modules/unictype/property-bidi-left-to-right: Likewise.
14079         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
14080         * modules/unictype/property-bidi-other-neutral: Likewise.
14081         * modules/unictype/property-bidi-pdf: Likewise.
14082         * modules/unictype/property-bidi-segment-separator: Likewise.
14083         * modules/unictype/property-bidi-whitespace: Likewise.
14084         * modules/unictype/property-byname: Likewise.
14085         * modules/unictype/property-combining: Likewise.
14086         * modules/unictype/property-composite: Likewise.
14087         * modules/unictype/property-currency-symbol: Likewise.
14088         * modules/unictype/property-dash: Likewise.
14089         * modules/unictype/property-decimal-digit: Likewise.
14090         * modules/unictype/property-default-ignorable-code-point: Likewise.
14091         * modules/unictype/property-deprecated: Likewise.
14092         * modules/unictype/property-diacritic: Likewise.
14093         * modules/unictype/property-extender: Likewise.
14094         * modules/unictype/property-format-control: Likewise.
14095         * modules/unictype/property-grapheme-base: Likewise.
14096         * modules/unictype/property-grapheme-extend: Likewise.
14097         * modules/unictype/property-grapheme-link: Likewise.
14098         * modules/unictype/property-hex-digit: Likewise.
14099         * modules/unictype/property-hyphen: Likewise.
14100         * modules/unictype/property-id-continue: Likewise.
14101         * modules/unictype/property-id-start: Likewise.
14102         * modules/unictype/property-ideographic: Likewise.
14103         * modules/unictype/property-ids-binary-operator: Likewise.
14104         * modules/unictype/property-ids-trinary-operator: Likewise.
14105         * modules/unictype/property-ignorable-control: Likewise.
14106         * modules/unictype/property-iso-control: Likewise.
14107         * modules/unictype/property-join-control: Likewise.
14108         * modules/unictype/property-left-of-pair: Likewise.
14109         * modules/unictype/property-line-separator: Likewise.
14110         * modules/unictype/property-logical-order-exception: Likewise.
14111         * modules/unictype/property-lowercase: Likewise.
14112         * modules/unictype/property-math: Likewise.
14113         * modules/unictype/property-non-break: Likewise.
14114         * modules/unictype/property-not-a-character: Likewise.
14115         * modules/unictype/property-numeric: Likewise.
14116         * modules/unictype/property-other-alphabetic: Likewise.
14117         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
14118         * modules/unictype/property-other-grapheme-extend: Likewise.
14119         * modules/unictype/property-other-id-continue: Likewise.
14120         * modules/unictype/property-other-id-start: Likewise.
14121         * modules/unictype/property-other-lowercase: Likewise.
14122         * modules/unictype/property-other-math: Likewise.
14123         * modules/unictype/property-other-uppercase: Likewise.
14124         * modules/unictype/property-paired-punctuation: Likewise.
14125         * modules/unictype/property-paragraph-separator: Likewise.
14126         * modules/unictype/property-pattern-syntax: Likewise.
14127         * modules/unictype/property-pattern-white-space: Likewise.
14128         * modules/unictype/property-private-use: Likewise.
14129         * modules/unictype/property-punctuation: Likewise.
14130         * modules/unictype/property-quotation-mark: Likewise.
14131         * modules/unictype/property-radical: Likewise.
14132         * modules/unictype/property-sentence-terminal: Likewise.
14133         * modules/unictype/property-soft-dotted: Likewise.
14134         * modules/unictype/property-space: Likewise.
14135         * modules/unictype/property-terminal-punctuation: Likewise.
14136         * modules/unictype/property-test: Likewise.
14137         * modules/unictype/property-titlecase: Likewise.
14138         * modules/unictype/property-unassigned-code-value: Likewise.
14139         * modules/unictype/property-unified-ideograph: Likewise.
14140         * modules/unictype/property-uppercase: Likewise.
14141         * modules/unictype/property-variation-selector: Likewise.
14142         * modules/unictype/property-white-space: Likewise.
14143         * modules/unictype/property-xid-continue: Likewise.
14144         * modules/unictype/property-xid-start: Likewise.
14145         * modules/unictype/property-zero-width: Likewise.
14146         * modules/unictype/scripts: Likewise.
14147         * modules/unictype/syntax-c-ident: Likewise.
14148         * modules/unictype/syntax-c-whitespace: Likewise.
14149         * modules/unictype/syntax-java-ident: Likewise.
14150         * modules/unictype/syntax-java-whitespace: Likewise.
14151         * modules/unilbrk/u8-possible-linebreaks: Likewise.
14152         * modules/unilbrk/u8-width-linebreaks: Likewise.
14153         * modules/unilbrk/u16-possible-linebreaks: Likewise.
14154         * modules/unilbrk/u16-width-linebreaks: Likewise.
14155         * modules/unilbrk/u32-possible-linebreaks: Likewise.
14156         * modules/unilbrk/u32-width-linebreaks: Likewise.
14157         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
14158         * modules/unilbrk/ulc-width-linebreaks: Likewise.
14159         * modules/uniname/uniname: Likewise.
14160         * modules/uninorm/canonical-decomposition: Likewise.
14161         * modules/uninorm/composition: Likewise.
14162         * modules/uninorm/decomposing-form: Likewise.
14163         * modules/uninorm/decomposition: Likewise.
14164         * modules/uninorm/filter: Likewise.
14165         * modules/uninorm/nfc: Likewise.
14166         * modules/uninorm/nfd: Likewise.
14167         * modules/uninorm/nfkc: Likewise.
14168         * modules/uninorm/nfkd: Likewise.
14169         * modules/uninorm/u8-normalize: Likewise.
14170         * modules/uninorm/u8-normcmp: Likewise.
14171         * modules/uninorm/u8-normcoll: Likewise.
14172         * modules/uninorm/u8-normxfrm: Likewise.
14173         * modules/uninorm/u16-normalize: Likewise.
14174         * modules/uninorm/u16-normcmp: Likewise.
14175         * modules/uninorm/u16-normcoll: Likewise.
14176         * modules/uninorm/u16-normxfrm: Likewise.
14177         * modules/uninorm/u32-normalize: Likewise.
14178         * modules/uninorm/u32-normcmp: Likewise.
14179         * modules/uninorm/u32-normcoll: Likewise.
14180         * modules/uninorm/u32-normxfrm: Likewise.
14181         * modules/unistdio/u8-asnprintf: Likewise.
14182         * modules/unistdio/u8-asprintf: Likewise.
14183         * modules/unistdio/u8-snprintf: Likewise.
14184         * modules/unistdio/u8-sprintf: Likewise.
14185         * modules/unistdio/u8-u8-asnprintf: Likewise.
14186         * modules/unistdio/u8-u8-asprintf: Likewise.
14187         * modules/unistdio/u8-u8-snprintf: Likewise.
14188         * modules/unistdio/u8-u8-sprintf: Likewise.
14189         * modules/unistdio/u8-u8-vasnprintf: Likewise.
14190         * modules/unistdio/u8-u8-vasprintf: Likewise.
14191         * modules/unistdio/u8-u8-vsnprintf: Likewise.
14192         * modules/unistdio/u8-u8-vsprintf: Likewise.
14193         * modules/unistdio/u8-vasnprintf: Likewise.
14194         * modules/unistdio/u8-vasprintf: Likewise.
14195         * modules/unistdio/u8-vsnprintf: Likewise.
14196         * modules/unistdio/u8-vsprintf: Likewise.
14197         * modules/unistdio/u16-asnprintf: Likewise.
14198         * modules/unistdio/u16-asprintf: Likewise.
14199         * modules/unistdio/u16-snprintf: Likewise.
14200         * modules/unistdio/u16-sprintf: Likewise.
14201         * modules/unistdio/u16-u16-asnprintf: Likewise.
14202         * modules/unistdio/u16-u16-asprintf: Likewise.
14203         * modules/unistdio/u16-u16-snprintf: Likewise.
14204         * modules/unistdio/u16-u16-sprintf: Likewise.
14205         * modules/unistdio/u16-u16-vasnprintf: Likewise.
14206         * modules/unistdio/u16-u16-vasprintf: Likewise.
14207         * modules/unistdio/u16-u16-vsnprintf: Likewise.
14208         * modules/unistdio/u16-u16-vsprintf: Likewise.
14209         * modules/unistdio/u16-vasnprintf: Likewise.
14210         * modules/unistdio/u16-vasprintf: Likewise.
14211         * modules/unistdio/u16-vsnprintf: Likewise.
14212         * modules/unistdio/u16-vsprintf: Likewise.
14213         * modules/unistdio/u32-asnprintf: Likewise.
14214         * modules/unistdio/u32-asprintf: Likewise.
14215         * modules/unistdio/u32-snprintf: Likewise.
14216         * modules/unistdio/u32-sprintf: Likewise.
14217         * modules/unistdio/u32-u32-asnprintf: Likewise.
14218         * modules/unistdio/u32-u32-asprintf: Likewise.
14219         * modules/unistdio/u32-u32-snprintf: Likewise.
14220         * modules/unistdio/u32-u32-sprintf: Likewise.
14221         * modules/unistdio/u32-u32-vasnprintf: Likewise.
14222         * modules/unistdio/u32-u32-vasprintf: Likewise.
14223         * modules/unistdio/u32-u32-vsnprintf: Likewise.
14224         * modules/unistdio/u32-u32-vsprintf: Likewise.
14225         * modules/unistdio/u32-vasnprintf: Likewise.
14226         * modules/unistdio/u32-vasprintf: Likewise.
14227         * modules/unistdio/u32-vsnprintf: Likewise.
14228         * modules/unistdio/u32-vsprintf: Likewise.
14229         * modules/unistdio/ulc-asnprintf: Likewise.
14230         * modules/unistdio/ulc-asprintf: Likewise.
14231         * modules/unistdio/ulc-fprintf: Likewise.
14232         * modules/unistdio/ulc-snprintf: Likewise.
14233         * modules/unistdio/ulc-sprintf: Likewise.
14234         * modules/unistdio/ulc-vasnprintf: Likewise.
14235         * modules/unistdio/ulc-vasprintf: Likewise.
14236         * modules/unistdio/ulc-vfprintf: Likewise.
14237         * modules/unistdio/ulc-vsnprintf: Likewise.
14238         * modules/unistdio/ulc-vsprintf: Likewise.
14239         * modules/unistr/u8-check: Likewise.
14240         * modules/unistr/u8-chr: Likewise.
14241         * modules/unistr/u8-cmp: Likewise.
14242         * modules/unistr/u8-cmp2: Likewise.
14243         * modules/unistr/u8-cpy: Likewise.
14244         * modules/unistr/u8-cpy-alloc: Likewise.
14245         * modules/unistr/u8-endswith: Likewise.
14246         * modules/unistr/u8-mblen: Likewise.
14247         * modules/unistr/u8-mbsnlen: Likewise.
14248         * modules/unistr/u8-mbtouc: Likewise.
14249         * modules/unistr/u8-mbtouc-unsafe: Likewise.
14250         * modules/unistr/u8-mbtoucr: Likewise.
14251         * modules/unistr/u8-move: Likewise.
14252         * modules/unistr/u8-next: Likewise.
14253         * modules/unistr/u8-prev: Likewise.
14254         * modules/unistr/u8-set: Likewise.
14255         * modules/unistr/u8-startswith: Likewise.
14256         * modules/unistr/u8-stpcpy: Likewise.
14257         * modules/unistr/u8-stpncpy: Likewise.
14258         * modules/unistr/u8-strcat: Likewise.
14259         * modules/unistr/u8-strchr: Likewise.
14260         * modules/unistr/u8-strcmp: Likewise.
14261         * modules/unistr/u8-strcoll: Likewise.
14262         * modules/unistr/u8-strcpy: Likewise.
14263         * modules/unistr/u8-strcspn: Likewise.
14264         * modules/unistr/u8-strdup: Likewise.
14265         * modules/unistr/u8-strlen: Likewise.
14266         * modules/unistr/u8-strmblen: Likewise.
14267         * modules/unistr/u8-strmbtouc: Likewise.
14268         * modules/unistr/u8-strncat: Likewise.
14269         * modules/unistr/u8-strncmp: Likewise.
14270         * modules/unistr/u8-strncpy: Likewise.
14271         * modules/unistr/u8-strnlen: Likewise.
14272         * modules/unistr/u8-strpbrk: Likewise.
14273         * modules/unistr/u8-strrchr: Likewise.
14274         * modules/unistr/u8-strspn: Likewise.
14275         * modules/unistr/u8-strstr: Likewise.
14276         * modules/unistr/u8-strtok: Likewise.
14277         * modules/unistr/u8-to-u16: Likewise.
14278         * modules/unistr/u8-to-u32: Likewise.
14279         * modules/unistr/u8-uctomb: Likewise.
14280         * modules/unistr/u16-check: Likewise.
14281         * modules/unistr/u16-chr: Likewise.
14282         * modules/unistr/u16-cmp: Likewise.
14283         * modules/unistr/u16-cmp2: Likewise.
14284         * modules/unistr/u16-cpy: Likewise.
14285         * modules/unistr/u16-cpy-alloc: Likewise.
14286         * modules/unistr/u16-endswith: Likewise.
14287         * modules/unistr/u16-mblen: Likewise.
14288         * modules/unistr/u16-mbsnlen: Likewise.
14289         * modules/unistr/u16-mbtouc: Likewise.
14290         * modules/unistr/u16-mbtouc-unsafe: Likewise.
14291         * modules/unistr/u16-mbtoucr: Likewise.
14292         * modules/unistr/u16-move: Likewise.
14293         * modules/unistr/u16-next: Likewise.
14294         * modules/unistr/u16-prev: Likewise.
14295         * modules/unistr/u16-set: Likewise.
14296         * modules/unistr/u16-startswith: Likewise.
14297         * modules/unistr/u16-stpcpy: Likewise.
14298         * modules/unistr/u16-stpncpy: Likewise.
14299         * modules/unistr/u16-strcat: Likewise.
14300         * modules/unistr/u16-strchr: Likewise.
14301         * modules/unistr/u16-strcmp: Likewise.
14302         * modules/unistr/u16-strcoll: Likewise.
14303         * modules/unistr/u16-strcpy: Likewise.
14304         * modules/unistr/u16-strcspn: Likewise.
14305         * modules/unistr/u16-strdup: Likewise.
14306         * modules/unistr/u16-strlen: Likewise.
14307         * modules/unistr/u16-strmblen: Likewise.
14308         * modules/unistr/u16-strmbtouc: Likewise.
14309         * modules/unistr/u16-strncat: Likewise.
14310         * modules/unistr/u16-strncmp: Likewise.
14311         * modules/unistr/u16-strncpy: Likewise.
14312         * modules/unistr/u16-strnlen: Likewise.
14313         * modules/unistr/u16-strpbrk: Likewise.
14314         * modules/unistr/u16-strrchr: Likewise.
14315         * modules/unistr/u16-strspn: Likewise.
14316         * modules/unistr/u16-strstr: Likewise.
14317         * modules/unistr/u16-strtok: Likewise.
14318         * modules/unistr/u16-to-u32: Likewise.
14319         * modules/unistr/u16-to-u8: Likewise.
14320         * modules/unistr/u16-uctomb: Likewise.
14321         * modules/unistr/u32-check: Likewise.
14322         * modules/unistr/u32-chr: Likewise.
14323         * modules/unistr/u32-cmp: Likewise.
14324         * modules/unistr/u32-cmp2: Likewise.
14325         * modules/unistr/u32-cpy: Likewise.
14326         * modules/unistr/u32-cpy-alloc: Likewise.
14327         * modules/unistr/u32-endswith: Likewise.
14328         * modules/unistr/u32-mblen: Likewise.
14329         * modules/unistr/u32-mbsnlen: Likewise.
14330         * modules/unistr/u32-mbtouc: Likewise.
14331         * modules/unistr/u32-mbtouc-unsafe: Likewise.
14332         * modules/unistr/u32-mbtoucr: Likewise.
14333         * modules/unistr/u32-move: Likewise.
14334         * modules/unistr/u32-next: Likewise.
14335         * modules/unistr/u32-prev: Likewise.
14336         * modules/unistr/u32-set: Likewise.
14337         * modules/unistr/u32-startswith: Likewise.
14338         * modules/unistr/u32-stpcpy: Likewise.
14339         * modules/unistr/u32-stpncpy: Likewise.
14340         * modules/unistr/u32-strcat: Likewise.
14341         * modules/unistr/u32-strchr: Likewise.
14342         * modules/unistr/u32-strcmp: Likewise.
14343         * modules/unistr/u32-strcoll: Likewise.
14344         * modules/unistr/u32-strcpy: Likewise.
14345         * modules/unistr/u32-strcspn: Likewise.
14346         * modules/unistr/u32-strdup: Likewise.
14347         * modules/unistr/u32-strlen: Likewise.
14348         * modules/unistr/u32-strmblen: Likewise.
14349         * modules/unistr/u32-strmbtouc: Likewise.
14350         * modules/unistr/u32-strncat: Likewise.
14351         * modules/unistr/u32-strncmp: Likewise.
14352         * modules/unistr/u32-strncpy: Likewise.
14353         * modules/unistr/u32-strnlen: Likewise.
14354         * modules/unistr/u32-strpbrk: Likewise.
14355         * modules/unistr/u32-strrchr: Likewise.
14356         * modules/unistr/u32-strspn: Likewise.
14357         * modules/unistr/u32-strstr: Likewise.
14358         * modules/unistr/u32-strtok: Likewise.
14359         * modules/unistr/u32-to-u16: Likewise.
14360         * modules/unistr/u32-to-u8: Likewise.
14361         * modules/unistr/u32-uctomb: Likewise.
14362         * modules/uniwbrk/u8-wordbreaks: Likewise.
14363         * modules/uniwbrk/u16-wordbreaks: Likewise.
14364         * modules/uniwbrk/u32-wordbreaks: Likewise.
14365         * modules/uniwbrk/ulc-wordbreaks: Likewise.
14366         * modules/uniwbrk/wordbreak-property: Likewise.
14367         * modules/uniwidth/u8-strwidth: Likewise.
14368         * modules/uniwidth/u8-width: Likewise.
14369         * modules/uniwidth/u16-strwidth: Likewise.
14370         * modules/uniwidth/u16-width: Likewise.
14371         * modules/uniwidth/u32-strwidth: Likewise.
14372         * modules/uniwidth/u32-width: Likewise.
14373         * modules/uniwidth/width: Likewise.
14374         * modules/unicase/cased-tests (Makefile.am): Link all test programs
14375         with $(LIBUNISTRING).
14376         * modules/unicase/ignorable-tests: Likewise.
14377         * modules/unicase/locale-language-tests: Likewise.
14378         * modules/unicase/tolower-tests: Likewise.
14379         * modules/unicase/totitle-tests: Likewise.
14380         * modules/unicase/toupper-tests: Likewise.
14381         * modules/unicase/u8-casecmp-tests: Likewise.
14382         * modules/unicase/u8-casecoll-tests: Likewise.
14383         * modules/unicase/u8-casefold-tests: Likewise.
14384         * modules/unicase/u8-is-cased-tests: Likewise.
14385         * modules/unicase/u8-is-casefolded-tests: Likewise.
14386         * modules/unicase/u8-is-lowercase-tests: Likewise.
14387         * modules/unicase/u8-is-titlecase-tests: Likewise.
14388         * modules/unicase/u8-is-uppercase-tests: Likewise.
14389         * modules/unicase/u8-tolower-tests: Likewise.
14390         * modules/unicase/u8-totitle-tests: Likewise.
14391         * modules/unicase/u8-toupper-tests: Likewise.
14392         * modules/unicase/u16-casecmp-tests: Likewise.
14393         * modules/unicase/u16-casecoll-tests: Likewise.
14394         * modules/unicase/u16-casefold-tests: Likewise.
14395         * modules/unicase/u16-is-cased-tests: Likewise.
14396         * modules/unicase/u16-is-casefolded-tests: Likewise.
14397         * modules/unicase/u16-is-lowercase-tests: Likewise.
14398         * modules/unicase/u16-is-titlecase-tests: Likewise.
14399         * modules/unicase/u16-is-uppercase-tests: Likewise.
14400         * modules/unicase/u16-tolower-tests: Likewise.
14401         * modules/unicase/u16-totitle-tests: Likewise.
14402         * modules/unicase/u16-toupper-tests: Likewise.
14403         * modules/unicase/u32-casecmp-tests: Likewise.
14404         * modules/unicase/u32-casecoll-tests: Likewise.
14405         * modules/unicase/u32-casefold-tests: Likewise.
14406         * modules/unicase/u32-is-cased-tests: Likewise.
14407         * modules/unicase/u32-is-casefolded-tests: Likewise.
14408         * modules/unicase/u32-is-lowercase-tests: Likewise.
14409         * modules/unicase/u32-is-titlecase-tests: Likewise.
14410         * modules/unicase/u32-is-uppercase-tests: Likewise.
14411         * modules/unicase/u32-tolower-tests: Likewise.
14412         * modules/unicase/u32-totitle-tests: Likewise.
14413         * modules/unicase/u32-toupper-tests: Likewise.
14414         * modules/unicase/ulc-casecmp-tests: Likewise.
14415         * modules/unicase/ulc-casecoll-tests: Likewise.
14416         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
14417         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
14418         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
14419         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
14420         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
14421         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
14422         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
14423         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
14424         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
14425         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
14426         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
14427         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
14428         * modules/unictype/bidicategory-byname-tests: Likewise.
14429         * modules/unictype/bidicategory-name-tests: Likewise.
14430         * modules/unictype/bidicategory-of-tests: Likewise.
14431         * modules/unictype/bidicategory-test-tests: Likewise.
14432         * modules/unictype/block-list-tests: Likewise.
14433         * modules/unictype/block-of-tests: Likewise.
14434         * modules/unictype/block-test-tests: Likewise.
14435         * modules/unictype/category-C-tests: Likewise.
14436         * modules/unictype/category-Cc-tests: Likewise.
14437         * modules/unictype/category-Cf-tests: Likewise.
14438         * modules/unictype/category-Cn-tests: Likewise.
14439         * modules/unictype/category-Co-tests: Likewise.
14440         * modules/unictype/category-Cs-tests: Likewise.
14441         * modules/unictype/category-L-tests: Likewise.
14442         * modules/unictype/category-Ll-tests: Likewise.
14443         * modules/unictype/category-Lm-tests: Likewise.
14444         * modules/unictype/category-Lo-tests: Likewise.
14445         * modules/unictype/category-Lt-tests: Likewise.
14446         * modules/unictype/category-Lu-tests: Likewise.
14447         * modules/unictype/category-M-tests: Likewise.
14448         * modules/unictype/category-Mc-tests: Likewise.
14449         * modules/unictype/category-Me-tests: Likewise.
14450         * modules/unictype/category-Mn-tests: Likewise.
14451         * modules/unictype/category-N-tests: Likewise.
14452         * modules/unictype/category-Nd-tests: Likewise.
14453         * modules/unictype/category-Nl-tests: Likewise.
14454         * modules/unictype/category-No-tests: Likewise.
14455         * modules/unictype/category-P-tests: Likewise.
14456         * modules/unictype/category-Pc-tests: Likewise.
14457         * modules/unictype/category-Pd-tests: Likewise.
14458         * modules/unictype/category-Pe-tests: Likewise.
14459         * modules/unictype/category-Pf-tests: Likewise.
14460         * modules/unictype/category-Pi-tests: Likewise.
14461         * modules/unictype/category-Po-tests: Likewise.
14462         * modules/unictype/category-Ps-tests: Likewise.
14463         * modules/unictype/category-S-tests: Likewise.
14464         * modules/unictype/category-Sc-tests: Likewise.
14465         * modules/unictype/category-Sk-tests: Likewise.
14466         * modules/unictype/category-Sm-tests: Likewise.
14467         * modules/unictype/category-So-tests: Likewise.
14468         * modules/unictype/category-Z-tests: Likewise.
14469         * modules/unictype/category-Zl-tests: Likewise.
14470         * modules/unictype/category-Zp-tests: Likewise.
14471         * modules/unictype/category-Zs-tests: Likewise.
14472         * modules/unictype/category-and-not-tests: Likewise.
14473         * modules/unictype/category-and-tests: Likewise.
14474         * modules/unictype/category-byname-tests: Likewise.
14475         * modules/unictype/category-name-tests: Likewise.
14476         * modules/unictype/category-none-tests: Likewise.
14477         * modules/unictype/category-of-tests: Likewise.
14478         * modules/unictype/category-or-tests: Likewise.
14479         * modules/unictype/category-test-withtable-tests: Likewise.
14480         * modules/unictype/combining-class-tests: Likewise.
14481         * modules/unictype/ctype-alnum-tests: Likewise.
14482         * modules/unictype/ctype-alpha-tests: Likewise.
14483         * modules/unictype/ctype-blank-tests: Likewise.
14484         * modules/unictype/ctype-cntrl-tests: Likewise.
14485         * modules/unictype/ctype-digit-tests: Likewise.
14486         * modules/unictype/ctype-graph-tests: Likewise.
14487         * modules/unictype/ctype-lower-tests: Likewise.
14488         * modules/unictype/ctype-print-tests: Likewise.
14489         * modules/unictype/ctype-punct-tests: Likewise.
14490         * modules/unictype/ctype-space-tests: Likewise.
14491         * modules/unictype/ctype-upper-tests: Likewise.
14492         * modules/unictype/ctype-xdigit-tests: Likewise.
14493         * modules/unictype/decimal-digit-tests: Likewise.
14494         * modules/unictype/digit-tests: Likewise.
14495         * modules/unictype/mirror-tests: Likewise.
14496         * modules/unictype/numeric-tests: Likewise.
14497         * modules/unictype/property-alphabetic-tests: Likewise.
14498         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
14499         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
14500         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
14501         * modules/unictype/property-bidi-block-separator-tests: Likewise.
14502         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
14503         * modules/unictype/property-bidi-common-separator-tests: Likewise.
14504         * modules/unictype/property-bidi-control-tests: Likewise.
14505         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
14506         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
14507         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
14508         * modules/unictype/property-bidi-european-digit-tests: Likewise.
14509         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
14510         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
14511         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
14512         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
14513         * modules/unictype/property-bidi-pdf-tests: Likewise.
14514         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
14515         * modules/unictype/property-bidi-whitespace-tests: Likewise.
14516         * modules/unictype/property-byname-tests: Likewise.
14517         * modules/unictype/property-combining-tests: Likewise.
14518         * modules/unictype/property-composite-tests: Likewise.
14519         * modules/unictype/property-currency-symbol-tests: Likewise.
14520         * modules/unictype/property-dash-tests: Likewise.
14521         * modules/unictype/property-decimal-digit-tests: Likewise.
14522         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
14523         * modules/unictype/property-deprecated-tests: Likewise.
14524         * modules/unictype/property-diacritic-tests: Likewise.
14525         * modules/unictype/property-extender-tests: Likewise.
14526         * modules/unictype/property-format-control-tests: Likewise.
14527         * modules/unictype/property-grapheme-base-tests: Likewise.
14528         * modules/unictype/property-grapheme-extend-tests: Likewise.
14529         * modules/unictype/property-grapheme-link-tests: Likewise.
14530         * modules/unictype/property-hex-digit-tests: Likewise.
14531         * modules/unictype/property-hyphen-tests: Likewise.
14532         * modules/unictype/property-id-continue-tests: Likewise.
14533         * modules/unictype/property-id-start-tests: Likewise.
14534         * modules/unictype/property-ideographic-tests: Likewise.
14535         * modules/unictype/property-ids-binary-operator-tests: Likewise.
14536         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
14537         * modules/unictype/property-ignorable-control-tests: Likewise.
14538         * modules/unictype/property-iso-control-tests: Likewise.
14539         * modules/unictype/property-join-control-tests: Likewise.
14540         * modules/unictype/property-left-of-pair-tests: Likewise.
14541         * modules/unictype/property-line-separator-tests: Likewise.
14542         * modules/unictype/property-logical-order-exception-tests: Likewise.
14543         * modules/unictype/property-lowercase-tests: Likewise.
14544         * modules/unictype/property-math-tests: Likewise.
14545         * modules/unictype/property-non-break-tests: Likewise.
14546         * modules/unictype/property-not-a-character-tests: Likewise.
14547         * modules/unictype/property-numeric-tests: Likewise.
14548         * modules/unictype/property-other-alphabetic-tests: Likewise.
14549         * modules/unictype/property-other-default-ignorable-code-point-tests:
14550         Likewise.
14551         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
14552         * modules/unictype/property-other-id-continue-tests: Likewise.
14553         * modules/unictype/property-other-id-start-tests: Likewise.
14554         * modules/unictype/property-other-lowercase-tests: Likewise.
14555         * modules/unictype/property-other-math-tests: Likewise.
14556         * modules/unictype/property-other-uppercase-tests: Likewise.
14557         * modules/unictype/property-paired-punctuation-tests: Likewise.
14558         * modules/unictype/property-paragraph-separator-tests: Likewise.
14559         * modules/unictype/property-pattern-syntax-tests: Likewise.
14560         * modules/unictype/property-pattern-white-space-tests: Likewise.
14561         * modules/unictype/property-private-use-tests: Likewise.
14562         * modules/unictype/property-punctuation-tests: Likewise.
14563         * modules/unictype/property-quotation-mark-tests: Likewise.
14564         * modules/unictype/property-radical-tests: Likewise.
14565         * modules/unictype/property-sentence-terminal-tests: Likewise.
14566         * modules/unictype/property-soft-dotted-tests: Likewise.
14567         * modules/unictype/property-space-tests: Likewise.
14568         * modules/unictype/property-terminal-punctuation-tests: Likewise.
14569         * modules/unictype/property-test-tests: Likewise.
14570         * modules/unictype/property-titlecase-tests: Likewise.
14571         * modules/unictype/property-unassigned-code-value-tests: Likewise.
14572         * modules/unictype/property-unified-ideograph-tests: Likewise.
14573         * modules/unictype/property-uppercase-tests: Likewise.
14574         * modules/unictype/property-variation-selector-tests: Likewise.
14575         * modules/unictype/property-white-space-tests: Likewise.
14576         * modules/unictype/property-xid-continue-tests: Likewise.
14577         * modules/unictype/property-xid-start-tests: Likewise.
14578         * modules/unictype/property-zero-width-tests: Likewise.
14579         * modules/unictype/scripts-tests: Likewise.
14580         * modules/unictype/syntax-c-ident-tests: Likewise.
14581         * modules/unictype/syntax-c-whitespace-tests: Likewise.
14582         * modules/unictype/syntax-java-ident-tests: Likewise.
14583         * modules/unictype/syntax-java-whitespace-tests: Likewise.
14584         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
14585         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
14586         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
14587         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
14588         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
14589         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
14590         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
14591         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
14592         * modules/uniname/uniname-tests: Likewise.
14593         * modules/uninorm/canonical-decomposition-tests: Likewise.
14594         * modules/uninorm/compat-decomposition-tests: Likewise.
14595         * modules/uninorm/composition-tests: Likewise.
14596         * modules/uninorm/decomposing-form-tests: Likewise.
14597         * modules/uninorm/decomposition-tests: Likewise.
14598         * modules/uninorm/filter-tests: Likewise.
14599         * modules/uninorm/nfc-tests: Likewise.
14600         * modules/uninorm/nfd-tests: Likewise.
14601         * modules/uninorm/nfkc-tests: Likewise.
14602         * modules/uninorm/nfkd-tests: Likewise.
14603         * modules/uninorm/u8-normcmp-tests: Likewise.
14604         * modules/uninorm/u8-normcoll-tests: Likewise.
14605         * modules/uninorm/u16-normcmp-tests: Likewise.
14606         * modules/uninorm/u16-normcoll-tests: Likewise.
14607         * modules/uninorm/u32-normcmp-tests: Likewise.
14608         * modules/uninorm/u32-normcoll-tests: Likewise.
14609         * modules/unistdio/u8-asnprintf-tests: Likewise.
14610         * modules/unistdio/u8-vasnprintf-tests: Likewise.
14611         * modules/unistdio/u8-vasprintf-tests: Likewise.
14612         * modules/unistdio/u8-vsnprintf-tests: Likewise.
14613         * modules/unistdio/u8-vsprintf-tests: Likewise.
14614         * modules/unistdio/u16-asnprintf-tests: Likewise.
14615         * modules/unistdio/u16-vasnprintf-tests: Likewise.
14616         * modules/unistdio/u16-vasprintf-tests: Likewise.
14617         * modules/unistdio/u16-vsnprintf-tests: Likewise.
14618         * modules/unistdio/u16-vsprintf-tests: Likewise.
14619         * modules/unistdio/u32-asnprintf-tests: Likewise.
14620         * modules/unistdio/u32-vasnprintf-tests: Likewise.
14621         * modules/unistdio/u32-vasprintf-tests: Likewise.
14622         * modules/unistdio/u32-vsnprintf-tests: Likewise.
14623         * modules/unistdio/u32-vsprintf-tests: Likewise.
14624         * modules/unistdio/ulc-asnprintf-tests: Likewise.
14625         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
14626         * modules/unistdio/ulc-vasprintf-tests: Likewise.
14627         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
14628         * modules/unistdio/ulc-vsprintf-tests: Likewise.
14629         * modules/unistr/u8-check-tests: Likewise.
14630         * modules/unistr/u8-chr-tests: Likewise.
14631         * modules/unistr/u8-cmp-tests: Likewise.
14632         * modules/unistr/u8-cmp2-tests: Likewise.
14633         * modules/unistr/u8-cpy-alloc-tests: Likewise.
14634         * modules/unistr/u8-cpy-tests: Likewise.
14635         * modules/unistr/u8-mblen-tests: Likewise.
14636         * modules/unistr/u8-mbsnlen-tests: Likewise.
14637         * modules/unistr/u8-mbtouc-tests: Likewise.
14638         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
14639         * modules/unistr/u8-mbtoucr-tests: Likewise.
14640         * modules/unistr/u8-move-tests: Likewise.
14641         * modules/unistr/u8-next-tests: Likewise.
14642         * modules/unistr/u8-prev-tests: Likewise.
14643         * modules/unistr/u8-set-tests: Likewise.
14644         * modules/unistr/u8-stpcpy-tests: Likewise.
14645         * modules/unistr/u8-stpncpy-tests: Likewise.
14646         * modules/unistr/u8-strcat-tests: Likewise.
14647         * modules/unistr/u8-strcmp-tests: Likewise.
14648         * modules/unistr/u8-strcoll-tests: Likewise.
14649         * modules/unistr/u8-strcpy-tests: Likewise.
14650         * modules/unistr/u8-strdup-tests: Likewise.
14651         * modules/unistr/u8-strlen-tests: Likewise.
14652         * modules/unistr/u8-strmblen-tests: Likewise.
14653         * modules/unistr/u8-strmbtouc-tests: Likewise.
14654         * modules/unistr/u8-strncat-tests: Likewise.
14655         * modules/unistr/u8-strncmp-tests: Likewise.
14656         * modules/unistr/u8-strncpy-tests: Likewise.
14657         * modules/unistr/u8-strnlen-tests: Likewise.
14658         * modules/unistr/u8-to-u16-tests: Likewise.
14659         * modules/unistr/u8-to-u32-tests: Likewise.
14660         * modules/unistr/u8-uctomb-tests: Likewise.
14661         * modules/unistr/u16-check-tests: Likewise.
14662         * modules/unistr/u16-chr-tests: Likewise.
14663         * modules/unistr/u16-cmp-tests: Likewise.
14664         * modules/unistr/u16-cmp2-tests: Likewise.
14665         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14666         * modules/unistr/u16-cpy-tests: Likewise.
14667         * modules/unistr/u16-mblen-tests: Likewise.
14668         * modules/unistr/u16-mbsnlen-tests: Likewise.
14669         * modules/unistr/u16-mbtouc-tests: Likewise.
14670         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14671         * modules/unistr/u16-mbtoucr-tests: Likewise.
14672         * modules/unistr/u16-move-tests: Likewise.
14673         * modules/unistr/u16-next-tests: Likewise.
14674         * modules/unistr/u16-prev-tests: Likewise.
14675         * modules/unistr/u16-set-tests: Likewise.
14676         * modules/unistr/u16-stpcpy-tests: Likewise.
14677         * modules/unistr/u16-stpncpy-tests: Likewise.
14678         * modules/unistr/u16-strcat-tests: Likewise.
14679         * modules/unistr/u16-strcmp-tests: Likewise.
14680         * modules/unistr/u16-strcoll-tests: Likewise.
14681         * modules/unistr/u16-strcpy-tests: Likewise.
14682         * modules/unistr/u16-strdup-tests: Likewise.
14683         * modules/unistr/u16-strlen-tests: Likewise.
14684         * modules/unistr/u16-strmblen-tests: Likewise.
14685         * modules/unistr/u16-strmbtouc-tests: Likewise.
14686         * modules/unistr/u16-strncat-tests: Likewise.
14687         * modules/unistr/u16-strncmp-tests: Likewise.
14688         * modules/unistr/u16-strncpy-tests: Likewise.
14689         * modules/unistr/u16-strnlen-tests: Likewise.
14690         * modules/unistr/u16-to-u32-tests: Likewise.
14691         * modules/unistr/u16-to-u8-tests: Likewise.
14692         * modules/unistr/u16-uctomb-tests: Likewise.
14693         * modules/unistr/u32-check-tests: Likewise.
14694         * modules/unistr/u32-chr-tests: Likewise.
14695         * modules/unistr/u32-cmp-tests: Likewise.
14696         * modules/unistr/u32-cmp2-tests: Likewise.
14697         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14698         * modules/unistr/u32-cpy-tests: Likewise.
14699         * modules/unistr/u32-mblen-tests: Likewise.
14700         * modules/unistr/u32-mbsnlen-tests: Likewise.
14701         * modules/unistr/u32-mbtouc-tests: Likewise.
14702         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14703         * modules/unistr/u32-mbtoucr-tests: Likewise.
14704         * modules/unistr/u32-move-tests: Likewise.
14705         * modules/unistr/u32-next-tests: Likewise.
14706         * modules/unistr/u32-prev-tests: Likewise.
14707         * modules/unistr/u32-set-tests: Likewise.
14708         * modules/unistr/u32-stpcpy-tests: Likewise.
14709         * modules/unistr/u32-stpncpy-tests: Likewise.
14710         * modules/unistr/u32-strcat-tests: Likewise.
14711         * modules/unistr/u32-strcmp-tests: Likewise.
14712         * modules/unistr/u32-strcoll-tests: Likewise.
14713         * modules/unistr/u32-strcpy-tests: Likewise.
14714         * modules/unistr/u32-strdup-tests: Likewise.
14715         * modules/unistr/u32-strlen-tests: Likewise.
14716         * modules/unistr/u32-strmblen-tests: Likewise.
14717         * modules/unistr/u32-strmbtouc-tests: Likewise.
14718         * modules/unistr/u32-strncat-tests: Likewise.
14719         * modules/unistr/u32-strncmp-tests: Likewise.
14720         * modules/unistr/u32-strncpy-tests: Likewise.
14721         * modules/unistr/u32-strnlen-tests: Likewise.
14722         * modules/unistr/u32-to-u16-tests: Likewise.
14723         * modules/unistr/u32-to-u8-tests: Likewise.
14724         * modules/unistr/u32-uctomb-tests: Likewise.
14725         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14726         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14727         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14728         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14729         * modules/uniwidth/u8-strwidth-tests: Likewise.
14730         * modules/uniwidth/u8-width-tests: Likewise.
14731         * modules/uniwidth/u16-strwidth-tests: Likewise.
14732         * modules/uniwidth/u16-width-tests: Likewise.
14733         * modules/uniwidth/u32-strwidth-tests: Likewise.
14734         * modules/uniwidth/u32-width-tests: Likewise.
14735         * modules/uniwidth/width-tests: Likewise.
14736
14737 2010-05-18  Richard Jones  <rjones@redhat.com>
14738
14739         doc: users.txt: list hivex
14740         * users.txt: Add hivex.
14741
14742 2010-05-18  Richard Jones  <rjones@redhat.com>
14743
14744         doc: users.txt: list febootstrap
14745         * users.txt: Add febootstrap.
14746
14747 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14748
14749         bootstrap: fix an error when gnulib is not used as a git submodule
14750         * build-aux/bootstrap (gnulib_path): If its length is zero then
14751         assign "gnulib" to it.
14752         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14753
14754 2010-05-16  Bruno Haible  <bruno@clisp.org>
14755
14756         Avoid autoconf warnings about AM_ICONV.
14757         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14758         2.64.
14759
14760 2010-05-16  Bruno Haible  <bruno@clisp.org>
14761
14762         absolute-header: Make the macro usable in more situations.
14763         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14764         from gl_ABSOLUTE_HEADER.
14765         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14766
14767 2010-05-16  James Youngman  <jay@gnu.org>
14768
14769         doc: update users.txt
14770         * users.txt: Add CSSC.
14771
14772 2010-05-16  Jim Meyering  <meyering@redhat.com>
14773
14774         init.sh: fix an error in the previous change; add more comments
14775         * tests/init.sh: Compare exit code in loop against 9, not 2.
14776         Patch by Bruno Haible.
14777         Make the two tests more similar by adding an empty "then" clause.
14778         Add comments.
14779
14780         init.sh: avoid unnecessary shell re-exec
14781         * tests/init.sh: Improve the re-exec-required check to first test the
14782         current shell.  If it passes the test, do not search for a shell that
14783         does pass, and do not re-exec.  This test is particularly contorted to
14784         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14785         of $(...) evokes a syntax error and causes immediate shell exit with
14786         status 2.  Bruno Haible reported that the re-exec made it impossible
14787         to single-step through any init.sh-using script.
14788
14789 2010-05-16  Bruno Haible  <bruno@clisp.org>
14790
14791         Fix collision between gnulib's and libintl's printf replacements.
14792         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14793         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14794         (printf): When using GNU C, map the __printf__ function to rpl_printf
14795         via __asm__. When not using GNU C, define rpl_printf instead of
14796         __printf__.
14797         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14798         commit.
14799         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14800         commit.
14801         * m4/asm-underscore.m4: New file.
14802         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14803         * modules/stdio (Files): Add m4/asm-underscore.m4.
14804         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14805         Reported by Ben Pfaff.
14806
14807 2010-05-16  Bruno Haible  <bruno@clisp.org>
14808
14809         verify: Avoid skipping the test on openSUSE 11.0.
14810         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14811
14812 2010-05-13  Bruno Haible  <bruno@clisp.org>
14813
14814         Avoid useless warnings from G++.
14815         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14816         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14817         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14818
14819 2010-05-11  Jim Meyering  <meyering@redhat.com>
14820
14821         maint.mk: tweak preceding change
14822         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14823         regexps tighter by anchoring at EOL, and make the new group "shy"
14824         for slightly decreased overhead.
14825
14826 2010-05-11  Eric Blake  <eblake@redhat.com>
14827
14828         maint.mk: gnulib doesn't guarantee NSIG
14829         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14830
14831 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14832
14833         test-pwrite.c: Remove unused variable declaration.
14834         * tests/test-pwrite.c (main): Remove read_buf declaration.
14835
14836         Remove useless test-pwrite.sh file.
14837         * tests/test-pwrite.sh: Delete file.
14838         * modules/pwrite-tests: Remove references.
14839         Reported by Bruno Haible.
14840
14841 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14842
14843         init.sh: fix a typo
14844         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14845
14846 2010-05-10  Jim Meyering  <meyering@redhat.com>
14847
14848         maint.mk: avoid using a temporary file in the always-defined-macros check
14849         * top/maint.mk (.re-defmac): Remove rule.
14850         (gl_trap_): Remove definition.
14851         (sc_prohibit_always-defined_macros): Rewrite not to create and
14852         depend on a temporary file.  Instead, depend on GNU grep's ability
14853         to read a list of regular expressions from stdin when given "-f -".
14854
14855 2010-05-09  Bruno Haible  <bruno@clisp.org>
14856
14857         Update to GNU gettext 0.18, part 1.
14858         * m4/gettext.m4: Update to GNU gettext 0.18.
14859         * m4/intl.m4: Likewise.
14860         * m4/po.m4: Likewise.
14861         * modules/gettext (Files): Add m4/fcntl-o.m4.
14862         (configure.ac): Require gettext infrastructure from version 0.18.
14863
14864 2010-05-09  Jim Meyering  <meyering@redhat.com>
14865
14866         init.sh: enable MALLOC_PERTURB_
14867         * tests/init.sh: Enable glibc's malloc-perturbing option.
14868
14869         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14870         With my recent change in init.sh from the two-line form:
14871             -#   : ${srcdir=.}
14872             -#   . "$srcdir/init.sh"; path_prepend_ .
14873             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14874         I noticed that using the one-line form would cause this test
14875         to fail with a false-positive, or to stop working altogether,
14876         depending on whether help-version changed or all the tests did.
14877         * top/maint.mk (_hv_regex): Remove this definition.
14878         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14879         (_hv_regex_strong): Use a stronger regex to check for conformance.
14880         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14881         Give a separate diagnostic for lack of conforming use.
14882
14883         maint.mk: prohibit definition of symbols defined by gnulib
14884         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14885         definition of symbols defined by gnulib.
14886
14887 2010-05-09  Bruno Haible  <bruno@clisp.org>
14888
14889         acl: Avoid test failure on Cygwin-hosted mingw.
14890         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14891
14892 2010-05-09  Bruno Haible  <bruno@clisp.org>
14893
14894         error: Use system's fcntl function.
14895         * lib/error.c (fcntl): Undefine.
14896
14897 2010-05-09  Jim Meyering  <meyering@redhat.com>
14898
14899         verify: adjust formatting to be more consistent
14900         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14901         argument-list '('s, and after one comma.
14902
14903 2010-05-09  Bruno Haible  <bruno@clisp.org>
14904
14905         error: More reliable output on mingw.
14906         * lib/error.c: Include <windows.h>.
14907         (is_open): New function.
14908         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14909         defined.
14910
14911 2010-05-09  Bruno Haible  <bruno@clisp.org>
14912
14913         vasnprintf: Fix syntax errors in libintl build on mingw.
14914         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14915         pad_ourselves and prec_ourselves after use.
14916
14917 2010-05-08  Bruno Haible  <bruno@clisp.org>
14918
14919         * lib/config.charset: Update comments for Cygwin 1.7.
14920         * lib/localcharset.c: Likewise.
14921
14922 2010-05-07  Jim Meyering  <meyering@redhat.com>
14923
14924         init.sh: improve comments
14925         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14926         . "${srcdir=.}/init.sh"; path_prepend_ .
14927         Add a note about path_prepend_ and the alternative of using
14928         TESTS_ENVIRONMENT.
14929
14930 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14931
14932         exclude: Unescape hashed patterns in wildcard mode.
14933         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14934         to the hash list.
14935         * tests/test-exclude8.sh: New test case.
14936         * modules/exclude-tests: Add new test.
14937
14938 2010-05-05  Eric Blake  <eblake@redhat.com>
14939
14940         verify: automate tests
14941         * modules/verify-tests: New module.
14942         * tests/test-verify.sh: New file.
14943         * tests/test-verify.c: Guard each negative test with a unique id.
14944         Also avoid warning about unused left hand of comma expressions.
14945
14946 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14947
14948         Further improvements to verify.h, suggested by Eric Blake.
14949         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14950         the GL_* versions, to avoid collision with OpenGL.
14951         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14952         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14953         than testing merely whether it's defined.
14954
14955         Modify verify.h to pacify gcc -Wredundant_decls.
14956         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14957         These use the prefix "GL_" since they're likely to be useful elsewhere.
14958         We may need to break them out into a different .h file.
14959         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14960         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14961         of verify_function__.
14962
14963 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14964
14965         Tests for module pwrite.
14966         * modules/pwrite-tests: New file.
14967         * tests/test-pwrite.sh: New file.
14968         * tests/test-pwrite.c: New file.
14969
14970         New module pwrite.
14971         * lib/unistd.in.h (pwrite): New declaration.
14972         * lib/pwrite.c: New file, from glibc with modifications.
14973         * m4/pwrite.m4: New file.
14974         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14975         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14976         REPLACE_PWRITE.
14977         * modules/pwrite: New file.
14978         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14979         REPLACE_PWRITE.
14980         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14981         * doc/posix-functions/pwrite.texi: Mention the new module.
14982
14983 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14984
14985         pread: Update documentation.
14986         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14987
14988 2010-05-04  Eric Blake  <eblake@redhat.com>
14989
14990         docs: update cygwin progress
14991         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14992         this bug.
14993         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14994         Added in cygwin 1.7.2.
14995         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14996         Likewise.
14997         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14998         Likewise.
14999         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15000         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15001         * doc/glibc-functions/accept4.texi (accept4): Likewise.
15002         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
15003         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
15004         Mention nproc module.
15005         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
15006         bug in cygwin 1.7.5 addition.
15007         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
15008         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
15009         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
15010         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
15011         1.7.5.
15012         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
15013         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
15014         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
15015         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
15016         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
15017         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
15018         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
15019         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
15020         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
15021         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
15022         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
15023         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
15024         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
15025         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
15026         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
15027         Likewise.
15028         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
15029         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
15030         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
15031         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
15032         Likewise.
15033         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
15034         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
15035         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
15036         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
15037         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
15038         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
15039         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
15040         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
15041         Likewise.
15042         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
15043         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
15044         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
15045         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
15046         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
15047         Likewise.
15048         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
15049         Likewise.
15050         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
15051         Likewise.
15052         * doc/glibc-functions/xdrrec_endofrecord.texi
15053         (xdrrec_endofrecord): Likewise.
15054         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
15055         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
15056         Likewise.
15057         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
15058         Likewise.
15059
15060 2010-05-04  Jim Meyering  <meyering@redhat.com>
15061
15062         gendocs.sh: make its "-s FILE" option more useful
15063         * build-aux/gendocs.sh: When honoring the -s FILE option, update
15064         $PACKAGE to reflect the probably-different basename of "FILE".
15065
15066 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
15067
15068         bootstrap: don't ignore download_po_files failure
15069         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
15070         failure.
15071
15072 2010-05-03  Jim Meyering  <meyering@redhat.com>
15073
15074         maint.mk: allow to pass options to gendocs.sh
15075         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
15076         (gendocs_options_): New overridable variable.
15077
15078         gnu-web-doc-update: don't ignore configure or build failure
15079         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
15080
15081         announce-gen: backslash-escape '@'s in --help output
15082         * build-aux/announce-gen: Fix syntax errors.
15083
15084         maint.mk, announce-gen: allow project-specific announcement mail headers
15085         * top/maint.mk (translation_project_): Define default.
15086         (announcement_Cc_, announcement_mail_headers_): Likewise.
15087         (announcement): Invoke announce-gen with new --mail-headers option.
15088         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
15089
15090         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
15091         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
15092         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
15093         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
15094         line in the "err2" output file when running "make check" in verbose
15095         mode (i.e., with set -x enabled).
15096
15097 2010-05-03  Bruno Haible  <bruno@clisp.org>
15098
15099         wctob: Fix for weird platforms.
15100         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
15101         argument value.
15102
15103 2010-05-03  Jim Meyering  <meyering@redhat.com>
15104
15105         maint.mk: prohibit unwarranted use of <strings.h>
15106         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
15107         strings.h in a file that does not also use strcasecmp, strncasecmp,
15108         ffs or ffsll.
15109
15110         maint.mk: remove obsolete comments
15111         * top/maint.mk: Remove stale, commented-out rules.
15112
15113 2010-05-02  Bruno Haible  <bruno@clisp.org>
15114
15115         wcwidth: Declare also when it's aliased.
15116         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
15117         macro.
15118
15119 2010-05-02  Bruno Haible  <bruno@clisp.org>
15120
15121         Fix regression from 2010-04-25.
15122         * gnulib-tool (func_modules_transitive_closure): Check the status of
15123         all modules, not only of the tests that are of the form foo-tests where
15124         foo is a module.
15125
15126 2010-05-02  Bruno Haible  <bruno@clisp.org>
15127
15128         wctob: Work around nasty Cygwin 1.7.2 bug.
15129         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
15130         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
15131
15132 2010-05-01  Bruno Haible  <bruno@clisp.org>
15133
15134         fpurge: Sharper test.
15135         * tests/test-fpurge.c (main): Add one more ftell check.
15136         * modules/fpurge-tests (Depends-on): Add ftell.
15137         Suggested by Eric Blake.
15138
15139 2010-05-01  Bruno Haible  <bruno@clisp.org>
15140
15141         ftello: Another test.
15142         * tests/test-ftello3.c: New file.
15143         * modules/ftello-tests (Files): Add it.
15144         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15145         MOSTLYCLEANFILES.
15146
15147         ftell: Another test.
15148         * tests/test-ftell3.c: New file.
15149         * modules/ftell-tests (Files): Add it.
15150         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15151         MOSTLYCLEANFILES.
15152
15153 2010-05-01  Bruno Haible  <bruno@clisp.org>
15154
15155         ftell, ftello: Work around Solaris bug.
15156         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
15157         * lib/ftello.c: Include stdio-impl.h.
15158         (ftello): On Solaris, when _IOWRT is set, compute the result without
15159         looking at _IOREAD.
15160         * modules/ftello (Files): Add lib/stdio-impl.h.
15161         * doc/posix-functions/ftell.texi: Mention Solaris bug.
15162         * doc/posix-functions/ftello.texi: Likewise.
15163         Reported by Eric Blake.
15164
15165 2010-05-01  Bruno Haible  <bruno@clisp.org>
15166
15167         freading: Adapt to special meaning of _IOREAD flag on Solaris.
15168         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
15169         the _IOWRT flag is also set.
15170
15171 2010-05-01  Bruno Haible  <bruno@clisp.org>
15172
15173         Fix doc about a HP-UX stdio bug.
15174         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
15175         * doc/posix-functions/ftello.texi: Likewise.
15176
15177 2010-05-01  Bruno Haible  <bruno@clisp.org>
15178
15179         lseek test: Fix failure on Solaris.
15180         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
15181         output.
15182
15183 2010-04-30  Jim Meyering  <meyering@redhat.com>
15184
15185         bootstrap: don't ignore failure to generate po*/Makevars
15186         * build-aux/bootstrap (with_gettext): Don't ignore failure
15187         to create po/Makevars or runtime-po/Makevars.
15188
15189 2010-04-29  Eric Blake  <eblake@redhat.com>
15190
15191         headers: relax license to LGPLv2+
15192         * modules/fcntl-h (License): Relax license.
15193         * modules/getopt-posix (License): Likewise.
15194         * modules/locale (License): Likewise.
15195         * modules/math (License): Likewise.
15196         * modules/pty (License): Likewise.
15197         * modules/sched (License): Likewise.
15198         * modules/search (License): Likewise.
15199         * modules/spawn (License): Likewise.
15200         * modules/stdarg (License): Likewise.
15201         * modules/sysexits (License): Likewise.
15202
15203 2010-04-29  Jim Meyering  <meyering@redhat.com>
15204
15205         inttypes: relax license to LGPLv2+
15206         * modules/inttypes (License): Relax license.
15207
15208 2010-04-29  Simon Josefsson  <simon@josefsson.org>
15209
15210         * top/maint.mk (indent): Run twice to produce idempotent results.
15211
15212 2010-04-28  Bruno Haible  <bruno@clisp.org>
15213
15214         getdate: Generate getdate.c in the source directory.
15215         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
15216         MOSTLYCLEANFILES.
15217         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
15218
15219 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
15220
15221         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
15222         is not declared as a const *; avoid warnings in that case.
15223
15224 2010-04-28  Eric Blake  <eblake@redhat.com>
15225
15226         canonicalize-lgpl: avoid compiler warning
15227         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
15228         declaration' / 'extraneous semicolon' warning with some compilers.
15229         Reported by Andreas Gruenbacher.
15230
15231 2010-04-28  Jim Meyering  <meyering@redhat.com>
15232
15233         init.sh: ensure a more reliable exit status when exiting via trap
15234         * tests/init.sh (setup_): Don't rely on $? in signal handler.
15235         Inspired by patches from Dmitry V. Levin.
15236         Also trap on signal 3 (SIGQUIT).
15237
15238 2010-04-27  Bruno Haible  <bruno@clisp.org>
15239
15240         Update doc about utimes().
15241         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
15242         'utimens' module.
15243         Reported by Andreas Gruenbacher <agruen@suse.de>.
15244
15245 2010-04-27  Eric Blake  <eblake@redhat.com>
15246
15247         full-read, full-write: relax license
15248         * modules/full-read (License): Drop to LGPLv2+.
15249         * modules/full-write (License): Likewise.
15250         * modules/safe-read (License): Likewise.
15251         * modules/safe-write (License): Likewise.
15252
15253         pthread: mention library for linking
15254         * modules/pthread (Link): Mention $(LIB_PTHREAD).
15255
15256 2010-04-27  Jim Meyering  <meyering@redhat.com>
15257
15258         maint.mk: fix a bug introduced in last change
15259         * top/maint.mk (gl_assured_headers_): Now that all names are on
15260         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
15261         is not anchored to end of word, it should be adequate.
15262
15263         maint.mk: avoid side-effect in latest syntax-check
15264         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
15265         to run commands via $(shell...), and hence to incur cost only when
15266         the new rule is actually run.
15267
15268         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
15269         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
15270         and use that to create a regexp used to detect all #if HAVE_..._H uses.
15271         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
15272         (gl_assured_headers_, az_, AZ_): Define.
15273         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
15274
15275 2010-04-26  Jim Meyering  <jim@meyering.net>
15276             Bruno Haible  <bruno@clisp.org>
15277
15278         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
15279         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
15280         Prompted by an exchange with Gilles Espinasse.
15281
15282 2010-04-26  Jim Meyering  <meyering@redhat.com>
15283
15284         git-version-gen: aesthetic tweak
15285         * build-aux/git-version-gen: Use "$nl" rather than a literal,
15286         so that the command remains on a single line.
15287
15288 2010-04-26  Eric Blake  <eblake@redhat.com>
15289
15290         git-version-gen: allow use on EBCDIC hosts
15291         * build-aux/git-version-gen (dirty): Use literal rather than tying
15292         ourselves to ascii.
15293         Reported by Steve Goetze.
15294
15295 2010-04-25  Bruno Haible  <bruno@clisp.org>
15296
15297         netdb: Add support for GNULIB_POSIXCHECK.
15298         * lib/netdb.in.h: Include warn-on-use.h.
15299         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
15300         functions are used when GNULIB_POSIXCHECK is defined and the
15301         getaddrinfo module is not in use.
15302         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
15303         freeaddrinfo, gai_strerror, getnameinfo are declared.
15304         * modules/netdb (Depends-on): Add warn-on-use.
15305         (Makefile.am): Include warn-on-use.h in netdb.h.
15306
15307 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
15308
15309         build: avoid "make check" failure without .git/ directory
15310         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
15311         there is no .git/ directory.
15312
15313 2010-04-25  Bruno Haible  <bruno@clisp.org>
15314
15315         ptsname: Fix misuse of ttyname_r.
15316         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
15317         of errno.
15318
15319 2010-04-25  Bruno Haible  <bruno@clisp.org>
15320
15321         ttyname_r: Make it work on Solaris 10.
15322         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
15323         if the system function has the POSIX declaration. Test whether the
15324         function fails if the buffer is less than 128 bytes large.
15325         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
15326         system's ttyname_r function. Provide a reasonably large buffer.
15327         * modules/ttyname_r (Depends-on): Add extensions.
15328         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
15329
15330 2010-04-25  Bruno Haible  <bruno@clisp.org>
15331
15332         Use the 'extensions' module for some more functions on Solaris.
15333         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
15334         module.
15335         * doc/posix-functions/ctime_r.texi: Likewise.
15336         * doc/posix-functions/getgrgid_r.texi: Likewise.
15337         * doc/posix-functions/getgrnam_r.texi: Likewise.
15338         * doc/posix-functions/getpwnam_r.texi: Likewise.
15339         * doc/posix-functions/getpwuid_r.texi: Likewise.
15340         * doc/posix-functions/readdir_r.texi: Likewise.
15341         * doc/posix-functions/sigwait.texi: Likewise.
15342         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
15343         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
15344
15345 2010-04-25  Bruno Haible  <bruno@clisp.org>
15346
15347         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
15348         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
15349         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
15350         * lib/ttyname_r.c: Include <limits.h>.
15351         (ttyname_r): Define using the system's ttyname_r function, if it exists
15352         and not on Solaris.
15353         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
15354         set.
15355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
15356         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
15357         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
15358         Reported by Simon Josefsson.
15359
15360 2010-04-25  Bruno Haible  <bruno@clisp.org>
15361
15362         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
15363         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
15364         * doc/posix-functions/ctime_r.texi: Likewise.
15365         * doc/posix-functions/getgrgid_r.texi: Likewise.
15366         * doc/posix-functions/getgrnam_r.texi: Likewise.
15367         * doc/posix-functions/getlogin_r.texi: Likewise.
15368         * doc/posix-functions/getpwnam_r.texi: Likewise.
15369         * doc/posix-functions/getpwuid_r.texi: Likewise.
15370         * doc/posix-functions/readdir_r.texi: Likewise.
15371         * doc/posix-functions/sigwait.texi: Likewise.
15372         * doc/posix-functions/ttyname_r.texi: Likewise.
15373         Reported by Simon Josefsson.
15374
15375 2010-04-25  Bruno Haible  <bruno@clisp.org>
15376
15377         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
15378         * gnulib-tool (func_usage): Document that --with-*-tests options apply
15379         also to --create-testdir.
15380         (func_acceptable): Don't consider the status of *-tests modules here.
15381         (func_modules_transitive_closure): Consider it here, before including a
15382         test module.
15383         (func_import, func_create_testdir): Set inc_all_direct_tests,
15384         inc_all_indirect_tests.
15385         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
15386         --create-testdir and --create-megatestdir.
15387
15388 2010-04-25  Bruno Haible  <bruno@clisp.org>
15389
15390         gnulib-tool: Add --without-*-tests options.
15391         * gnulib-tool (func_usage): Document the --without-*-tests options.
15392         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
15393         excl_unportable_tests): New variables.
15394         Fail if they are specified with --import or --update.
15395         (func_acceptable): Respect the excl_*_tests variables.
15396         (func_import): Set the excl_*_tests variables to empty.
15397
15398 2010-04-25  Simon Josefsson  <simon@josefsson.org>
15399             Bruno Haible  <bruno@clisp.org>
15400
15401         Work around a MacOS X 10.4 bug with openpty.
15402         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
15403         * tests/test-openpty.c (main): Close the master side explicitly.
15404
15405 2010-04-25  Bruno Haible  <bruno@clisp.org>
15406
15407         strnlen: Fix a C++ test error on MacOS X and Solaris.
15408         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
15409         the function is not declared.
15410         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
15411         Simon Josefsson.
15412
15413 2010-04-24  Bruno Haible  <bruno@clisp.org>
15414
15415         Avoid a gcc warning.
15416         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
15417         of correct type for %08lx directive.
15418         Reported by Eric Blake.
15419
15420 2010-04-24  Bruno Haible  <bruno@clisp.org>
15421
15422         vasnprintf: Correct errno value in case of out-of-memory.
15423         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
15424         or sprintf. Use the errno value from SNPRINTF or sprintf.
15425         Reported by Ian Beckwith <ianb@erislabs.net>.
15426
15427 2010-04-24  Bruno Haible  <bruno@clisp.org>
15428
15429         ansi-c++-opt: Find correct compiler when cross-compiling.
15430         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
15431         AC_CHECK_PROGS.
15432         Reported by Simon Josefsson.
15433
15434 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
15435
15436         vc-list-files: Add support for subversion
15437         * build-aux/vc-list-files: Use "svn list" to generate the list of
15438         files controlled by subversion.
15439
15440 2010-04-23  Jim Meyering  <meyering@redhat.com>
15441
15442         vc-list-files tests: convert to use init.sh
15443         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
15444         path_prepend_.
15445         Use Exit, not exit.
15446         Use skip_ rather than open coding it.
15447         Remove trap set-up and compare definitions.
15448         * tests/test-vc-list-files-git.sh: Likewise.
15449         * modules/vc-list-files-tests (Files): Add tests/init.sh.
15450
15451 2010-04-22  Simon Josefsson  <simon@josefsson.org>
15452
15453         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
15454         backup files.
15455
15456 2010-04-21  Simon Josefsson  <simon@josefsson.org>
15457
15458         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
15459
15460 2010-04-20  Eric Blake  <eblake@redhat.com>
15461
15462         tests: be robust to ignored SIGPIPE
15463         * tests/test-select-in.sh: Consume all output.
15464         * tests/test-lseek.sh: Check correct exit status, while avoiding
15465         EPIPE.
15466
15467 2010-04-20  Simon Josefsson  <simon@josefsson.org>
15468             Bruno Haible  <bruno@clisp.org>
15469
15470         visibility: Don't use -fvisibility if it leads to a warning.
15471         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
15472         yes, don't pretend that visibility works if it leads to a warning.
15473         Reported by Mike Gran <spk121@yahoo.com>.
15474
15475 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
15476
15477         * build-aux/bootstrap: Use "git -h" for testing for supported options
15478         instead of "git --help".  The short-form option only shows a summary,
15479         and doesn't layout the full man page.  Grep for the full option name
15480         in the summary, too.
15481
15482 2010-04-19  Bruno Haible  <bruno@clisp.org>
15483
15484         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
15485         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
15486         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
15487         mention of RELOCATABLE_STRIP.
15488         Reported by Sylvain Beucler <beuc@beuc.net>.
15489
15490 2010-04-19  Bruno Haible  <bruno@clisp.org>
15491
15492         * lib/diffseq.h: Fix typo in comment.
15493         Reported by Eric Blake.
15494
15495 2010-04-19  Bruno Haible  <bruno@clisp.org>
15496
15497         ioctl: Move autoconf macro to a .m4 file.
15498         * m4/ioctl.m4: New file, extracted from modules/ioctl.
15499         * modules/ioctl (Files): Add it.
15500         (configure.ac): Simply invoke gl_FUNC_IOCTL.
15501         Reported by Ian Beckwith <ianb@erislabs.net>.
15502
15503 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
15504             Bruno Haible  <bruno@clisp.org>
15505
15506         diffseq: Accommodate use-case with abstract arrays.
15507         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
15508         is not defined.
15509         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
15510         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
15511
15512 2010-04-18  Bruno Haible  <bruno@clisp.org>
15513
15514         * doc/posix-headers/stdbool.texi: More precise wording.
15515
15516 2010-04-17  Jim Meyering  <meyering@redhat.com>
15517
15518         maint.mk: use gnu-style indentation in an embedded perl script
15519         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
15520         Rename variable: s/two/last_two_bytes/
15521
15522 2010-04-16  Eric Blake  <eblake@redhat.com>
15523
15524         test-stdbool: skip test that fails with Solaris CC
15525         * tests/test-stdbool.c (f): Skip test that causes compilation
15526         error under buggy C++ compiler.
15527         * lib/stdbool.in.h: Document the limitation.
15528         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
15529
15530         setenv: allow compilation with C++
15531         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
15532         register keyword.
15533
15534         stdint: allow test to pass with C++
15535         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
15536
15537         getopt: allow compilation with C++
15538         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
15539         struct.
15540         * lib/getopt.c (_getopt_internal_r): Use correct type.
15541         Reported by Dagobert Michelson, via Joel E. Denny.
15542
15543 2010-04-16  Bruno Haible  <bruno@clisp.org>
15544
15545         Override netdb.h always.
15546         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
15547         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
15548         Reported by Ludovic Courtès <ludo@gnu.org>.
15549
15550 2010-04-15  Bruno Haible  <bruno@clisp.org>
15551
15552         openpty: Fix mistake from 2010-03-21.
15553         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
15554         Reported by Simon Josefsson.
15555
15556 2010-04-15  Eric Blake  <eblake@redhat.com>
15557
15558         test-forkpty: fix expected signature
15559         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
15560         Reported by Simon Josefsson.
15561
15562 2010-04-15  Jim Meyering  <meyering@redhat.com>
15563
15564         maint.mk: texinfo_suffix_re_: correct the default regexp
15565         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
15566
15567         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
15568         make it configurable via texinfo_suffix_re_.
15569
15570 2010-04-14  Eric Blake  <eblake@redhat.com>
15571
15572         strtok_r: relax license to LGPLv2+
15573         * modules/strtok_r (License): Relax license.
15574         Reported by Matthias Bolte.
15575
15576 2010-04-14  Simon Josefsson  <simon@josefsson.org>
15577
15578         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
15579         version 1.4.4 by default instead of requiring the libgcrypt
15580         version used during build.  This makes it possible to use the
15581         application with older but still binary compatible libgcrypt
15582         versions.
15583
15584 2010-04-13  Eric Blake  <eblake@redhat.com>
15585
15586         getopt-gnu: match recent glibc fixes and posix ruling
15587         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
15588         '+' handling, when requesting extensions.
15589         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
15590         'W;' handling.
15591         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
15592         * doc/posix-functions/getopt.texi (getopt): Document this.
15593         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15594         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15595         Likewise.
15596
15597         getopt: merge bug fixes from glibc
15598         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
15599         diagnostics.  Honor '+:' correctly.  Reject ';'.
15600
15601         getopt-posix: detect MacOS bug
15602         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
15603         optind when missing a required argument.
15604         * doc/posix-functions/getopt.texi (getopt): Document the bug.
15605         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15606         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15607         Likewise.
15608
15609         getopt-posix: avoid spurious failure on Solaris
15610         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
15611         an indicator that setting optind=1 is sufficient for reset.
15612
15613         getopt-posix: avoid spurious failure on FreeBSD
15614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
15615         in POSIX mode, since the m4 test uses it.
15616
15617         gnulib-tool: silence warning on BSD sh
15618         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
15619
15620 2010-04-13  Jim Meyering  <meyering@redhat.com>
15621
15622         doc: users.txt: GNU patch now uses gnulib
15623         * users.txt: Add patch.
15624
15625 2010-04-12  Jim Meyering  <meyering@redhat.com>
15626
15627         maint.mk: generate more concise timing data for syntax-check rules
15628         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
15629         " done" from each line that reports a syntax-check test duration.
15630
15631 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
15632
15633         git-version-gen: use "git update-index..." rather than "git status"
15634         * build-aux/git-version-gen: Use git update-index --refresh, not
15635         "git status".  With some versions of git, "git status" would fail
15636         to update the index and result in an unwarranted "-dirty" suffix.
15637
15638 2010-04-11  Jim Meyering  <meyering@redhat.com>
15639
15640         openat: correct formatting (no semantic change)
15641         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
15642         Suggested by Bruno Haible.
15643
15644 2010-04-11  Bruno Haible  <bruno@clisp.org>
15645
15646         Stricter declaration checking in testdirs.
15647         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15648         If for_tests is true, augment AM_CPPFLAGS to define
15649         GNULIB_STRICT_CHECKING.
15650         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15651         GNULIB_STRICT_CHECKING is defined, verify that the function is
15652         declared.
15653
15654 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15655             Bruno Haible  <bruno@clisp.org>
15656
15657         libunistring: Improve configure output.
15658         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15659         Don't say "consider installing GNU libunistring" when checking again
15660         with libiconv.
15661
15662 2010-04-11  Bruno Haible  <bruno@clisp.org>
15663
15664         libunistring: Correct value of $LTLIBUNISTRING.
15665         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15666         correct the value of $LTLIBUNISTRING.
15667
15668 2010-04-11  Bruno Haible  <bruno@clisp.org>
15669
15670         havelib: Add static libraries to LIBS in the right order.
15671         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15672         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15673
15674 2010-04-11  Bruno Haible  <bruno@clisp.org>
15675
15676         libunistring: Detect libunistring also when it depends on libiconv.
15677         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15678         the second AC_LIB_HAVE_LINKFLAGS invocation.
15679
15680 2010-04-11  James Youngman  <jay@gnu.org>
15681
15682         close-stream: declare local scalars to be "const"
15683         * lib/close-stream.c (close_stream): Make boolean variables const
15684         to document the fact that we set but do not change them.
15685
15686 2010-04-11  Bruno Haible  <bruno@clisp.org>
15687
15688         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15689
15690 2010-04-11  Jim Meyering  <meyering@redhat.com>
15691
15692         maint.mk: don't include dist-check.mk
15693         * top/maint.mk: Remove bogus include directive.
15694
15695         maint.mk: improve empty-line-at-EOF check
15696         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15697         solution, rather than tail+Perl-based one.  The latter would read
15698         a few kilobytes from the end of each file, and did not handle empty
15699         files properly.
15700
15701         maint.mk: print the elapsed time for each syntax-check rule
15702         * top/maint.mk (sc_m_rules_): Save start time in a file.
15703         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15704         (local-check): Interpose the .z rules
15705
15706 2010-04-11  Jim Meyering  <meyering@redhat.com>
15707
15708         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15709         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15710         empty file with one that ends in an empty line.
15711
15712 2010-04-10  Bruno Haible  <bruno@clisp.org>
15713
15714         mkdir: Make it work on mingw64.
15715         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15716         * lib/mkdir.c: Update comment.
15717         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15718
15719 2010-04-10  Bruno Haible  <bruno@clisp.org>
15720
15721         Don't override improved macro from newer autoconf.
15722         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15723         autoconf >= 2.62.
15724         Reported by Joel E. Denny <jdenny@clemson.edu>.
15725
15726 2010-04-10  Jim Meyering  <meyering@redhat.com>
15727
15728         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15729         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15730
15731         maint.mk: correct a diagnostic
15732         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15733         in diagnostic; now use $prohibit.
15734
15735 2010-04-10  Bruno Haible  <address@hidden>
15736
15737         fchownat: Fix a C++ test error on Solaris 8.
15738         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15739         the function does not exist.
15740
15741 2010-04-10  Bruno Haible  <bruno@clisp.org>
15742
15743         vasnprintf: Add more tests.
15744         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15745         (test_function): Test converting an invalid wide string.
15746
15747         vasnprintf: Correct handling of unconvertible wide string arguments.
15748         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15749         VASNPRINTF.
15750         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15751         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15752         smaller than the expected maximum need for the directive. Set errno to
15753         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15754         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15756         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15757         * modules/vasnprintf (Files): Add m4/printf.m4.
15758         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15759
15760 2010-04-10  Bruno Haible  <bruno@clisp.org>
15761
15762         vasnprintf: Fix crash in %ls directive.
15763         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15764         string is passed as argument to %ls, with no precision and no width.
15765         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15766
15767 2010-04-10  Bruno Haible  <bruno@clisp.org>
15768
15769         vasnprintf: Fix multiple test failures on mingw.
15770         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15771         _snprintf, or snwprintf, not _snwprintf.
15772
15773 2010-04-10  Bruno Haible  <bruno@clisp.org>
15774
15775         write: Fix a C++ test error on mingw.
15776         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15777
15778 2010-04-10  Bruno Haible  <bruno@clisp.org>
15779
15780         vasnprintf test: Reduce code duplication.
15781         * tests/test-vasnprintf.c (test_function): New function, extracted from
15782         test_vasnprintf.
15783         (test_vasnprintf, test_asnprintf): Invoke it.
15784
15785 2010-04-10  Bruno Haible  <bruno@clisp.org>
15786
15787         strnlen: Fix warning in C++ mode on MacOS X.
15788         * lib/string.in.h (strnlen): Use the modern idiom.
15789         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15790         defining strnlen as a macro already in <config.h>.
15791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15792         REPLACE_STRNLEN.
15793         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15794         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15795
15796 2010-04-08  James Youngman  <jay@gnu.org>
15797
15798         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15799         the example.
15800
15801 2010-04-09  Jim Meyering  <meyering@redhat.com>
15802
15803         maint.mk: print better diagnostic when there is no $(_hv_file)
15804         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15805         announce that when $(_hv_file) (aka help-version) does not exist.
15806
15807         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15808         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15809         not try to interpret its random input bytes.  Jarno Rajahalme reported
15810         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15811         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15812         (mktempd_): Likewise, just in case.
15813
15814         ftruncate: add two years to projected module removal date: 2012
15815         * m4/ftruncate.m4: Adjust comments.
15816
15817         ftruncate: mark module as obsolete; even MinGW provides it, now
15818         * modules/ftruncate (Status): Obsolete.
15819         (Notice): Say that.
15820         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15821         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15822
15823 2010-04-08  Bruno Haible  <bruno@clisp.org>
15824
15825         Fix side effects from tests-related modules.
15826         * modules/dprintf-posix (Comment): New section.
15827         * modules/fprintf-posix (Comment): Likewise.
15828         * modules/obstack-printf-posix (Comment): Likewise.
15829         * modules/printf-posix (Comment): Likewise.
15830         * modules/snprintf-posix (Comment): Likewise.
15831         * modules/sprintf-posix (Comment): Likewise.
15832         * modules/vasnprintf-posix (Comment): Likewise.
15833         * modules/vasprintf-posix (Comment): Likewise.
15834         * modules/vdprintf-posix (Comment): Likewise.
15835         * modules/vfprintf-posix (Comment): Likewise.
15836         * modules/vprintf-posix (Comment): Likewise.
15837         * modules/vsnprintf-posix (Comment): Likewise.
15838         * modules/vsprintf-posix (Comment): Likewise.
15839         * modules/xprintf-posix (Comment): Likewise.
15840         * modules/xvasprintf-posix (Comment): Likewise.
15841         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15842         * modules/floorf-tests (Depends-on): Likewise.
15843         * modules/round-tests (Depends-on): Likewise.
15844         * modules/roundf-tests (Depends-on): Likewise.
15845         * modules/trunc-tests (Depends-on): Likewise.
15846         * modules/truncf-tests (Depends-on): Likewise.
15847         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15848         'fprintf-posix' module is not present.
15849         * tests/test-floorf2.c (check): Likewise.
15850         * tests/test-trunc2.c (check): Likewise.
15851         * tests/test-truncf2.c (check): Likewise.
15852         * tests/test-round2.c (equal): Likewise.
15853         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15854
15855 2010-04-07  Karl Berry  <karl@gnu.org>
15856
15857         * config/srclist.txt,
15858         * config/srclistvars.sh,
15859         * config/srclist-update: doc fixes.
15860
15861 2010-04-07  Jim Meyering  <meyering@redhat.com>
15862
15863         maint.mk: add a PATH crosschecking syntax-check rule
15864         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15865         Useful if you use a test like the one in help-version (coreutils,
15866         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15867         printed by prog --version.
15868
15869 2010-04-06  Bruno Haible  <bruno@clisp.org>
15870
15871         Fix link error on mingw.
15872         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15873         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15874
15875 2010-04-06  Bruno Haible  <bruno@clisp.org>
15876
15877         Assume rmdir exists.
15878         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15879
15880 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15881
15882         doc: update users.txt
15883         * users.txt: Add gcal.
15884
15885 2010-04-06  Jim Meyering  <meyering@redhat.com>
15886
15887         init.sh: simply unset TMPDIR rather than risking env -i
15888         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15889         although it probably works fine on all Unix-based systems, some
15890         systems (Cygwin?) cannot tolerate a totally cleared environment.
15891         Suggestion from Eric Blake.
15892
15893 2010-04-06  Jim Meyering  <meyering@redhat.com>
15894
15895         init.sh: portability fix: use env's POSIX-specified -i option not -u
15896         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15897         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15898
15899 2010-04-05  Bruno Haible  <bruno@clisp.org>
15900
15901         btowc: Work around Cygwin 1.7.2 bug.
15902         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15903         does not map NUL to 0.
15904         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15905
15906 2010-04-05  Bruno Haible  <bruno@clisp.org>
15907
15908         Make the multithread modules work on Cygwin 1.7.2.
15909         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15910         imported symbols can be declared weak, so that it returns "no" on
15911         Cygwin 1.7.2.
15912
15913 2010-04-05  Bruno Haible  <bruno@clisp.org>
15914
15915         Use the module 'strncat'.
15916         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15917
15918         Tests for module 'strncat'.
15919         * modules/strncat-tests: New file.
15920         * tests/test-strncat.c: New file.
15921
15922         New module 'strncat'.
15923         * lib/string.in.h (strncat): New declaration.
15924         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15925         * m4/strncat.m4: New file, based on m4/memchr.m4.
15926         * modules/strncat: New file.
15927         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15928         is declared.
15929         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15930         REPLACE_STRNCAT.
15931         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15932         REPLACE_STRNCAT.
15933         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15934         module.
15935         * tests/test-string-c++.cc: Check signature of strncat.
15936
15937 2010-04-05  Jim Meyering  <meyering@redhat.com>
15938
15939         xstrtoumax-tests: convert to use init.sh
15940         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15941         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15942         Use Exit, not exit.
15943         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15944
15945         xstrtoimax-tests: convert to use init.sh
15946         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15947         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15948         Use Exit, not exit.
15949         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15950
15951 2010-04-05  Bruno Haible  <bruno@clisp.org>
15952
15953         sys_socket: Avoid #define replacements in C++ mode.
15954         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15955         warning to the function if possible, rather than #defining the symbol
15956         to a dysfunctional alias.
15957
15958 2010-04-05  Bruno Haible  <bruno@clisp.org>
15959
15960         fseeko: Fix C++ test error on mingw.
15961         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15962         gl_FUNC_FSEEKO.
15963         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15964         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15965         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15966         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15967
15968 2010-04-05  Bruno Haible  <bruno@clisp.org>
15969
15970         duplocale: Improve test output.
15971         * tests/test-duplocale.c (main): Print reason for skipped test.
15972
15973 2010-04-05  Bruno Haible  <bruno@clisp.org>
15974
15975         Assume rmdir exists.
15976         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15977         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15978
15979 2010-04-05  Bruno Haible  <bruno@clisp.org>
15980
15981         Fix link error on Solaris 8 with cc.
15982         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15983
15984 2010-04-05  Bruno Haible  <bruno@clisp.org>
15985
15986         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15987         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15988
15989 2010-04-05  Bruno Haible  <bruno@clisp.org>
15990
15991         vasprintf: Update documentation.
15992         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15993
15994 2010-04-05  Bruno Haible  <bruno@clisp.org>
15995
15996         ptsname: Improve test.
15997         * tests/test-ptsname.c (main): Also try the various master names of BSD
15998         systems.
15999
16000 2010-04-05  Bruno Haible  <bruno@clisp.org>
16001
16002         memchr: Avoid a possible C++ test error.
16003         * lib/string.in.h (memchr): Provide declaration if function is missing.
16004         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
16005         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
16006         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
16007         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
16008
16009 2010-04-05  Bruno Haible  <bruno@clisp.org>
16010
16011         strtok_r: Improve idiom.
16012         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
16013         AC_LIBOBJ is used.
16014
16015 2010-04-05  Bruno Haible  <bruno@clisp.org>
16016
16017         strdup: Improve idiom.
16018         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
16019         AC_LIBOBJ is used.
16020         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
16021         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
16022         when AC_LIBOBJ is used.
16023
16024 2010-04-05  Bruno Haible  <bruno@clisp.org>
16025
16026         mbsinit, mbrtowc, wcrtomb: Improve idioms.
16027         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
16028         don't set REPLACE_MBSINIT to 1.
16029         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
16030         don't set REPLACE_MBRTOWC to 1.
16031         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
16032         exist, don't set REPLACE_MBSRTOWCS to 1.
16033         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
16034         exist, don't set REPLACE_MBSNRTOWCS to 1.
16035         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
16036         don't set REPLACE_WCRTOMB to 1.
16037         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
16038         exist, don't set REPLACE_WCSRTOMBS to 1.
16039         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
16040         exist, don't set REPLACE_WCSNRTOMBS to 1.
16041
16042 2010-04-05  Bruno Haible  <bruno@clisp.org>
16043
16044         ldexpl: Improve idiom.
16045         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
16046         make sure to set HAVE_DECL_LDEXPL to 0.
16047
16048 2010-04-05  Jim Meyering  <meyering@redhat.com>
16049
16050         xstrtol-tests: convert to use init.sh
16051         * modules/xstrtol-tests (Files): Add tests/init.sh.
16052         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16053         Use Exit, not exit.
16054         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16055
16056         atexit-tests: convert to use init.sh
16057         * modules/atexit-tests (Files): Add tests/init.sh.
16058         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16059         Use Exit, not exit.
16060         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16061
16062         init.sh: fix typo
16063         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
16064
16065         init.sh: make it easier for a test script to write to the tty, ...
16066         when using automake's parallel-tests mode.
16067         * tests/init.sh (stderr_fileno_): Define overridable variable.
16068         (warn_): New function, to use it.
16069         (fail_, skip_, framework_failure_): Use warn_.
16070
16071 2010-04-04  Bruno Haible  <bruno@clisp.org>
16072
16073         btowc: Avoid warning.
16074         * lib/btowc.c: Include <stdlib.h>.
16075         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
16076
16077 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16078             Bruno Haible  <bruno@clisp.org>
16079
16080         wchar: Port to NetBSD 1.5.
16081         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
16082         * lib/wctype.in.h (WEOF): Likewise.
16083
16084 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16085             Bruno Haible  <bruno@clisp.org>
16086
16087         Port extended stdio to NetBSD 1.5.
16088         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
16089         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
16090         older.
16091
16092 2010-04-04  Bruno Haible  <bruno@clisp.org>
16093
16094         string: Remove unused substitution.
16095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16096         HAVE_DECL_STRERROR.
16097         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
16098
16099 2010-04-04  Bruno Haible  <bruno@clisp.org>
16100
16101         strtod: Avoid a possible C++ test error.
16102         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
16103         set REPLACE_STRTOD.
16104
16105 2010-04-04  Bruno Haible  <bruno@clisp.org>
16106
16107         strerror: Update documentation.
16108         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
16109
16110 2010-04-04  Bruno Haible  <bruno@clisp.org>
16111
16112         stdio: Fix some C++ test errors on Solaris 8 with GCC.
16113         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
16114         _GL_CXXALIAS_SYS_CAST.
16115
16116 2010-04-04  Bruno Haible  <bruno@clisp.org>
16117
16118         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16119         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
16120         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
16121         REPLACE_FREXPL to 1.
16122         * doc/posix-functions/frexpl.texi: Update documentation.
16123
16124 2010-04-04  Bruno Haible  <bruno@clisp.org>
16125
16126         math: Fix some C++ test errors on Solaris 8 and Cygwin.
16127         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
16128
16129 2010-04-04  Bruno Haible  <bruno@clisp.org>
16130
16131         Implement nanosleep for native Windows.
16132         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
16133
16134 2010-04-04  Bruno Haible  <bruno@clisp.org>
16135
16136         math: Fix some C++ test errors on Solaris 8.
16137         * lib/math.in.h (truncf, trunc): Use simpler idiom.
16138
16139 2010-04-04  Bruno Haible  <bruno@clisp.org>
16140
16141         math: Fix some C++ test errors on Cygwin.
16142         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
16143         truncl): Provide declaration if the system does not have it.
16144         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
16145         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
16146         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
16147         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
16148         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
16149         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
16150         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
16151         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
16152         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
16153         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
16154         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
16155         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
16156         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
16157         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
16158         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
16159         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
16160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
16161         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16162         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16163         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
16164         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16165         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16166
16167 2010-04-04  Bruno Haible  <bruno@clisp.org>
16168
16169         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
16170         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16171         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16172         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16173         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16174         * m4/isinf.m4 (gl_ISINF): Likewise.
16175         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16176
16177 2010-04-04  Bruno Haible  <bruno@clisp.org>
16178
16179         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
16180         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16181
16182 2010-04-04  Bruno Haible  <bruno@clisp.org>
16183
16184         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
16185         * modules/tmpfile (configure.ac): Update.
16186
16187         tmpfile: Fix C++ test error on mingw.
16188         * lib/stdio.in.h (tmpfile): New declaration.
16189         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
16190         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
16191         * modules/tmpfile (Depends-on): Add stdio.
16192         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16193         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
16194         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
16195         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
16196         REPLACE_TMPFILE.
16197         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
16198
16199 2010-04-04  Bruno Haible  <bruno@clisp.org>
16200
16201         ioctl: Fix C++ test error on mingw.
16202         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
16203         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
16204         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
16205
16206 2010-04-03  Bruno Haible  <bruno@clisp.org>
16207
16208         wcwidth: Fix C++ test error on mingw.
16209         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
16210         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
16211         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
16212
16213 2010-04-03  Bruno Haible  <bruno@clisp.org>
16214
16215         nanosleep: Fix C++ test error on mingw.
16216         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
16217         * lib/time.in.h (nanosleep): Use modern idiom.
16218         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
16219         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
16220         REPLACE_NANOSLEEP to 1.
16221         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
16222         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
16223
16224 2010-04-03  Bruno Haible  <bruno@clisp.org>
16225
16226         strptime: Fix C++ test error on mingw.
16227         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
16228         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
16229         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
16230         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
16231         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
16232         not REPLACE_STRPTIME.
16233         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
16234         REPLACE_STRPTIME.
16235
16236 2010-04-03  Bruno Haible  <bruno@clisp.org>
16237
16238         timegm: Fix C++ test error on mingw.
16239         * lib/time.in.h (timegm): Use modern idiom.
16240         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
16241         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
16242         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
16243         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
16244
16245 2010-04-03  Bruno Haible  <bruno@clisp.org>
16246
16247         timegm: Assume declaration if function exists.
16248         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
16249         if it exists. Don't clobber ac_cv_func_timegm.
16250
16251 2010-04-03  Bruno Haible  <bruno@clisp.org>
16252
16253         time_r: Fix C++ test error on mingw.
16254         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
16255         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
16256         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
16257         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
16258         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
16259
16260 2010-04-03  Bruno Haible  <bruno@clisp.org>
16261
16262         time_r: Minor updates.
16263         * modules/time_r (Description): Mention the provided functions.
16264         * lib/time_r.c: Don't include <string.h>.
16265         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
16266         * doc/posix-functions/localtime_r.texi: Likewise.
16267
16268 2010-04-03  Bruno Haible  <bruno@clisp.org>
16269
16270         time: Fix regression introduced on 2010-03-08.
16271         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
16272         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
16273
16274 2010-04-03  Jim Meyering  <meyering@redhat.com>
16275
16276         maint.mk: don't silently disable project-specific syntax-check rules
16277         * top/maint.mk (_prohibit_regexp): Define, to help people realize
16278         that they need to convert their project-specific syntax-check rules
16279         to use the new _sc_search_regexp.
16280
16281 2010-04-03  Bruno Haible  <bruno@clisp.org>
16282
16283         fchdir: Fix regression introduced on 2010-03-08.
16284         * lib/unistd.in.h (fchdir): Fix declaration.
16285         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
16286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
16287         REPLACE_FCHDIR.
16288         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
16289         REPLACE_FCHDIR.
16290
16291 2010-04-03  Bruno Haible  <bruno@clisp.org>
16292
16293         getpagesize: Fix C++ test error on mingw.
16294         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
16295         system does not declare the function.
16296         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
16297         declared.
16298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16299         HAVE_DECL_GETPAGESIZE.
16300         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
16301
16302 2010-04-03  Bruno Haible  <bruno@clisp.org>
16303
16304         stdio: Make C++ tests work on mingw.
16305         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
16306         does not declare the function.
16307
16308 2010-04-03  Bruno Haible  <bruno@clisp.org>
16309
16310         ftello: Fix C++ test error on mingw.
16311         * lib/stdio.in.h (ftello): Use modern idiom.
16312         * lib/ftello.c (ftello): Renamed from rpl_ftello.
16313         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
16314         is missing and that it needs to be replaced.
16315         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
16316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
16317         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
16318
16319 2010-04-03  Bruno Haible  <bruno@clisp.org>
16320
16321         fseeko: Fix C++ test error on mingw.
16322         * lib/stdio.in.h (fseeko): Use modern idiom.
16323         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
16324         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
16325         is missing and that it needs to be replaced.
16326         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
16327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
16328         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
16329
16330 2010-04-03  Bruno Haible  <bruno@clisp.org>
16331
16332         mkstemp: Fix C++ test error on mingw.
16333         * lib/stdlib.in.h (mkstemp): Use modern idiom.
16334         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
16335         function is missing and that it needs to be replaced.
16336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
16337         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
16338
16339 2010-04-03  Bruno Haible  <bruno@clisp.org>
16340
16341         stpncpy: Fix C++ test error on mingw.
16342         * lib/string.in.h (stpncpy): Use modern idiom.
16343         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
16344         function is missing and that it needs to be replaced.
16345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16346         REPLACE_STPNCPY.
16347         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
16348
16349 2010-04-03  Bruno Haible  <bruno@clisp.org>
16350
16351         sys_stat: Fix C++ test error on mingw.
16352         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
16353         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
16354
16355 2010-04-03  Bruno Haible  <bruno@clisp.org>
16356
16357         pty: Update doc.
16358         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
16359
16360 2010-04-03  Bruno Haible  <bruno@clisp.org>
16361
16362         unistd: Fix C++ test error on mingw.
16363         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
16364
16365 2010-04-03  Bruno Haible  <bruno@clisp.org>
16366
16367         Update doc regarding mingw.
16368         * doc/glibc-functions/openpty.texi: Update regarding mingw.
16369         * doc/glibc-functions/login_tty.texi: Likewise.
16370         * doc/glibc-functions/forkpty.texi: Likewise.
16371
16372 2010-04-03  Bruno Haible  <bruno@clisp.org>
16373
16374         stdlib: Avoid compilation failure of c-strtold on mingw.
16375         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
16376
16377 2010-04-03  Bruno Haible  <bruno@clisp.org>
16378
16379         locale: Make C++ tests work on Cygwin and mingw.
16380         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
16381         cannot provide the function.
16382         Reported by Simon Josefsson.
16383
16384 2010-04-03  Bruno Haible  <bruno@clisp.org>
16385
16386         localename: Port to MacOS X 10.6.
16387         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
16388         memory layout of the locales in MacOS X 10.6 as well.
16389         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
16390
16391 2010-04-02  Bruno Haible  <bruno@clisp.org>
16392
16393         gnulib-tool: Ensure that long-running tests are executed last.
16394         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
16395         running tests after the one for the other tests.
16396
16397 2010-04-02  Bruno Haible  <bruno@clisp.org>
16398
16399         gnulib-tool: Ensure the tests in the main directory are executed first.
16400         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
16401         start with the current directory.
16402
16403 2010-04-02  Bruno Haible  <bruno@clisp.org>
16404
16405         Tests for module 'havelib', moved here from GNU gettext.
16406         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
16407         modifications.
16408         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
16409         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
16410         with modifications.
16411         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
16412         modifications.
16413         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
16414         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
16415         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
16416         with modifications.
16417         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
16418         with modifications.
16419         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
16420         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
16421         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
16422         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
16423         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
16424         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
16425         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
16426         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
16427         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
16428         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
16429         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
16430         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
16431         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
16432         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
16433         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
16434         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
16435         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
16436         with modifications.
16437         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
16438         with modifications.
16439         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
16440         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
16441         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
16442         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
16443         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
16444         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
16445         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
16446         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
16447         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
16448         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
16449         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
16450         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
16451         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
16452         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
16453         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
16454         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
16455         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
16456         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
16457         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
16458         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
16459         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
16460         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
16461         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
16462         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
16463         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
16464         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
16465         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
16466         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
16467         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
16468         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
16469         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
16470         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
16471         * tests/havelib/rpathx/rpathx.c: New file, from
16472         gettext/autoconf-lib-link.
16473         * tests/havelib/rpathx/Makefile.am: New file, from
16474         gettext/autoconf-lib-link.
16475         * tests/havelib/rpathx/configure.ac: New file, from
16476         gettext/autoconf-lib-link with modifications.
16477         * tests/havelib/rpathy/rpathy.c: New file, from
16478         gettext/autoconf-lib-link.
16479         * tests/havelib/rpathy/Makefile.am: New file, from
16480         gettext/autoconf-lib-link.
16481         * tests/havelib/rpathy/configure.ac: New file, from
16482         gettext/autoconf-lib-link with modifications.
16483         * tests/havelib/rpathz/rpathz.c: New file, from
16484         gettext/autoconf-lib-link.
16485         * tests/havelib/rpathz/Makefile.am: New file, from
16486         gettext/autoconf-lib-link.
16487         * tests/havelib/rpathz/configure.ac: New file, from
16488         gettext/autoconf-lib-link with modifications.
16489         * tests/havelib/rpathlx/usex.c: New file, from
16490         gettext/autoconf-lib-link.
16491         * tests/havelib/rpathlx/Makefile.am: New file, from
16492         gettext/autoconf-lib-link.
16493         * tests/havelib/rpathlx/configure.ac: New file, from
16494         gettext/autoconf-lib-link with modifications.
16495         * tests/havelib/rpathly/usey.c: New file, from
16496         gettext/autoconf-lib-link.
16497         * tests/havelib/rpathly/Makefile.am: New file, from
16498         gettext/autoconf-lib-link.
16499         * tests/havelib/rpathly/configure.ac: New file, from
16500         gettext/autoconf-lib-link with modifications.
16501         * tests/havelib/rpathlz/usez.c: New file, from
16502         gettext/autoconf-lib-link.
16503         * tests/havelib/rpathlz/Makefile.am: New file, from
16504         gettext/autoconf-lib-link.
16505         * tests/havelib/rpathlz/configure.ac: New file, from
16506         gettext/autoconf-lib-link with modifications.
16507         * tests/havelib/rpathlyx/usey.c: New file, from
16508         gettext/autoconf-lib-link.
16509         * tests/havelib/rpathlyx/Makefile.am: New file, from
16510         gettext/autoconf-lib-link.
16511         * tests/havelib/rpathlyx/configure.ac: New file, from
16512         gettext/autoconf-lib-link with modifications.
16513         * tests/havelib/rpathlzyx/usez.c: New file, from
16514         gettext/autoconf-lib-link.
16515         * tests/havelib/rpathlzyx/Makefile.am: New file, from
16516         gettext/autoconf-lib-link.
16517         * tests/havelib/rpathlzyx/configure.ac: New file, from
16518         gettext/autoconf-lib-link with modifications.
16519         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
16520         with modifications.
16521
16522 2010-04-02  Bruno Haible  <bruno@clisp.org>
16523
16524         gnulib-tool: Create distributed built sources also for the tests.
16525         * gnulib-tool (func_create_testdir): Also generate distributed built
16526         sources in the tests directory.
16527
16528 2010-04-02  Bruno Haible  <bruno@clisp.org>
16529
16530         gnulib-tool: Obey user's environment variables.
16531         * gnulib-tool (func_create_testdir): When creating built sources,
16532         respect the environment variables for autoconf, automake, etc. given by
16533         the user.
16534
16535 2010-04-02  Bruno Haible  <bruno@clisp.org>
16536
16537         gnulib-tool: Provide the value of --m4-base to modules.
16538         * gnulib-tool (func_import, func_create_testdir): Emit a definition
16539         of gl_m4_base.
16540
16541 2010-04-02  Eric Blake  <eblake@redhat.com>
16542
16543         maint.mk: fix some fallout
16544         * NEWS: Document the incompatible change, and its effect on cfg.mk.
16545         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
16546
16547 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16548
16549         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
16550         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
16551         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
16552         (sc_cast_of_x_alloc_return_value): Likewise.
16553         (sc_cast_of_alloca_return_value): Likewise.
16554         (sc_space_tab): Likewise.
16555         (sc_prohibit_atoi_atof): Likewise.
16556         (sc_prohibit_magic_number_exit): Likewise.
16557         (sc_error_exit_success): Likewise.
16558         (sc_file_system): Likewise.
16559         (sc_prohibit_have_config_h): Likewise.
16560         (sc_require_config_h): Likewise.
16561         (sc_prohibit_HAVE_MBRTOWC): Likewise.
16562         (sc_obsolete_symbols): Likewise.
16563         (sc_changelog): Likewise.
16564         (sc_program_name): Likewise.
16565         (sc_the_the): Likewise.
16566         (sc_trailing_blank): Likewise.
16567         (sc_two_space_separator_in_usage): Likewise.
16568         (sc_useless_cpp_parens): Likewise.
16569         (sc_GPL_version): Likewise.
16570         (sc_GFDL_version): Likewise.
16571         (sc_texinfo_acronym): Likewise.
16572         (sc_prohibit_cvs_keyword): Likewise.
16573         (sc_prohibit_stat_st_blocks): Likewise.
16574         (sc_prohibit_S_IS_definition): Likewise.
16575         (sc_redundant_const): Likewise.
16576         (sc_makefile_TAB_only_indentation): Likewise.
16577         (sc_m4_quote_check): Likewise.
16578         (sc_makefile_path_separator_check): Likewise.
16579         (sc_copyright_check): Likewise.
16580         (sc_Wundef_boolean): Likewise.
16581         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16582
16583         maint.mk: match 0 or more whitespace-before-function-call '('
16584         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
16585         that have zero or two-and-more spaces between the function name
16586         and the open parenthesis.
16587         (sc_error_message_warn_fatal): Likewise.
16588         (sc_error_message_uppercase): Likewise.
16589         (sc_error_message_period): Likewise.
16590
16591 2010-03-31  Eric Blake  <eblake@redhat.com>
16592
16593         maint.mk: check for [ as well as test
16594         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
16595         Based on a libvirt report by Matthias Bolte.
16596
16597         gnumakefile: don't squelch _version output
16598         * top/GNUmakefile (_version): Create one-shot dependency rather
16599         than using $(shell) when version must be regenerated.
16600         (_autoreconf): Run verbosely, by default.
16601
16602         sys_time: avoid compiler warnings
16603         * lib/sys_time.in.h (includes): Ensure gcc pragma is
16604         unconditional, fixing regression from 2010-03-29.
16605         Reported by Simon Josefsson.
16606
16607 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16608
16609         maint.mk: s/_header_without_use/_sc_header_without_use/
16610         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
16611         (sc_prohibit_assert_without_use): Use the new name.
16612         (sc_prohibit_close_stream_without_use): Likewise.
16613         (sc_prohibit_getopt_without_use): Likewise.
16614         (sc_prohibit_quotearg_without_use): Likewise.
16615         (sc_prohibit_quote_without_use): Likewise.
16616         (sc_prohibit_long_options_without_use): Likewise.
16617         (sc_prohibit_inttostr_without_use): Likewise.
16618         (sc_prohibit_ignore_value_without_use): Likewise.
16619         (sc_prohibit_error_without_use): Likewise.
16620         (sc_prohibit_xalloc_without_use): Likewise.
16621         (sc_prohibit_hash_without_use): Likewise.
16622         (sc_prohibit_hash_pjw_without_use): Likewise.
16623         (sc_prohibit_safe_read_without_use): Likewise.
16624         (sc_prohibit_argmatch_without_use): Likewise.
16625         (sc_prohibit_canonicalize_without_use): Likewise.
16626         (sc_prohibit_root_dev_ino_without_use): Likewise.
16627         (sc_prohibit_openat_without_use): Likewise.
16628         (sc_prohibit_c_ctype_without_use): Likewise.
16629         (sc_prohibit_signal_without_use): Likewise.
16630         (sc_prohibit_intprops_without_use): Likewise.
16631
16632 2010-03-30  Eric Blake  <eblake@redhat.com>
16633
16634         maint: improve module indicators
16635         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
16636         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
16637         columns, and avoid extra macro expansion.
16638
16639         fdopendir: work around FreeBSD bug
16640         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16641         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
16642         * modules/dirent (Makefile.am): Substitute it.
16643         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16644         declaration.
16645         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16646         fix.
16647         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16648
16649 2010-03-29  Bruno Haible  <bruno@clisp.org>
16650
16651         Emit #pragma system_header after the inclusion guard, not before.
16652         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16653         guard that spans the entire file, not before. This enables an
16654         optimization in GCC's preprocessor.
16655         * lib/ctype.in.h: Likewise.
16656         * lib/dirent.in.h: Likewise.
16657         * lib/errno.in.h: Likewise.
16658         * lib/float.in.h: Likewise.
16659         * lib/getopt.in.h: Likewise.
16660         * lib/iconv.in.h: Likewise.
16661         * lib/langinfo.in.h: Likewise.
16662         * lib/locale.in.h: Likewise.
16663         * lib/math.in.h: Likewise.
16664         * lib/netdb.in.h: Likewise.
16665         * lib/netinet_in.in.h: Likewise.
16666         * lib/pty.in.h: Likewise.
16667         * lib/sched.in.h: Likewise.
16668         * lib/se-selinux.in.h: Likewise.
16669         * lib/search.in.h: Likewise.
16670         * lib/spawn.in.h: Likewise.
16671         * lib/stdarg.in.h: Likewise.
16672         * lib/stdint.in.h: Likewise.
16673         * lib/string.in.h: Likewise.
16674         * lib/strings.in.h: Likewise.
16675         * lib/sys_file.in.h: Likewise.
16676         * lib/sys_ioctl.in.h: Likewise.
16677         * lib/sys_time.in.h: Likewise.
16678         * lib/sys_times.in.h: Likewise.
16679         * lib/sys_utsname.in.h: Likewise.
16680         * lib/sys_wait.in.h: Likewise.
16681         * lib/sysexits.in.h: Likewise.
16682         * lib/wctype.in.h: Likewise.
16683
16684 2010-03-28  James Youngman  <jay@gnu.org>
16685
16686         save-cwd: don't leak a file descriptor when the caller execs.
16687         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16688         saved file descriptor.
16689         * modules/save-cwd (Depends-on): Depend on cloexec.
16690
16691 2010-03-29  Bruno Haible  <bruno@clisp.org>
16692
16693         Remove vestiges of fts-lgpl module.
16694         * lib/fts_.h: Assume GNULIB_FTS is 1.
16695         * lib/fts.c: Likewise.
16696         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16697
16698 2010-03-28  Bruno Haible  <bruno@clisp.org>
16699
16700         Fix definition of tests witness macro.
16701         * gnulib-tool (func_import): Fix definition of witness macro.
16702
16703 2010-03-28  Bruno Haible  <bruno@clisp.org>
16704
16705         Fix ioctl's protoype on glibc systems.
16706         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16707         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16708         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16709         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16710         signature. If not, arrange to replace the ioctl function.
16711         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16712         REPLACE_IOCTL.
16713         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16714         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16715         Reported by Ludovic Courtès <ludo@gnu.org>.
16716
16717 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16718
16719         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16720         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16721         made it so grep -r --include=GLOB* ... did not work.
16722
16723 2010-03-26  Jim Meyering  <meyering@redhat.com>
16724             Eric Blake  <eblake@redhat.com>
16725
16726         maint.mk: prohibit use of test's -o and -a operators
16727         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16728
16729 2010-03-28  Bruno Haible  <bruno@clisp.org>
16730
16731         Remove unused GNULIB_XYZ macro definitions.
16732         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16733         invocation.
16734
16735 2010-03-28  Bruno Haible  <bruno@clisp.org>
16736
16737         Mark privileged tests modules.
16738         * modules/idpriv-drop-tests (Status): New section.
16739         * modules/idpriv-droptemp-tests (Status): New section.
16740
16741 2010-03-28  Bruno Haible  <bruno@clisp.org>
16742
16743         Split C++ tests into separate tests modules.
16744         * modules/dirent-c++-tests: New file, extracted from
16745         modules/dirent-tests.
16746         * modules/dirent-tests: Depend on it.
16747         * modules/fcntl-h-c++-tests: New file, extracted from
16748         modules/fcntl-h-tests.
16749         * modules/fcntl-h-tests: Depend on it.
16750         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16751         * modules/glob-tests: Depend on it.
16752         * modules/iconv-h-c++-tests: New file, extracted from
16753         modules/iconv-h-tests.
16754         * modules/iconv-h-tests: Depend on it.
16755         * modules/langinfo-c++-tests: New file, extracted from
16756         modules/langinfo-tests.
16757         * modules/langinfo-tests: Depend on it.
16758         * modules/locale-c++-tests: New file, extracted from
16759         modules/locale-tests.
16760         * modules/locale-tests: Depend on it.
16761         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16762         * modules/math-tests: Depend on it.
16763         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16764         * modules/pty-tests: Depend on it.
16765         * modules/search-c++-tests: New file, extracted from
16766         modules/search-tests.
16767         * modules/search-tests: Depend on it.
16768         * modules/signal-c++-tests: New file, extracted from
16769         modules/signal-tests.
16770         * modules/signal-tests: Depend on it.
16771         * modules/spawn-c++-tests: New file, extracted from
16772         modules/spawn-tests.
16773         * modules/spawn-tests: Depend on it.
16774         * modules/stdio-c++-tests: New file, extracted from
16775         modules/stdio-tests.
16776         * modules/stdio-tests: Depend on it.
16777         * modules/stdlib-c++-tests: New file, extracted from
16778         modules/stdlib-tests.
16779         * modules/stdlib-tests: Depend on it.
16780         * modules/string-c++-tests: New file, extracted from
16781         modules/string-tests.
16782         * modules/string-tests: Depend on it.
16783         * modules/sys_ioctl-c++-tests: New file, extracted from
16784         modules/sys_ioctl-tests.
16785         * modules/sys_ioctl-tests: Depend on it.
16786         * modules/sys_select-c++-tests: New file, extracted from
16787         modules/sys_select-tests.
16788         * modules/sys_select-tests: Depend on it.
16789         * modules/sys_socket-c++-tests: New file, extracted from
16790         modules/sys_socket-tests.
16791         * modules/sys_socket-tests: Depend on it.
16792         * modules/sys_stat-c++-tests: New file, extracted from
16793         modules/sys_stat-tests.
16794         * modules/sys_stat-tests: Depend on it.
16795         * modules/sys_time-c++-tests: New file, extracted from
16796         modules/sys_time-tests.
16797         * modules/sys_time-tests: Depend on it.
16798         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16799         * modules/time-tests: Depend on it.
16800         * modules/unistd-c++-tests: New file, extracted from
16801         modules/unistd-tests.
16802         * modules/unistd-tests: Depend on it.
16803         * modules/wchar-c++-tests: New file, extracted from
16804         modules/wchar-tests.
16805         * modules/wchar-tests: Depend on it.
16806         * modules/wctype-c++-tests: New file, extracted from
16807         modules/wctype-tests.
16808         * modules/wctype-tests: Depend on it.
16809         Reported by Simon Josefsson.
16810
16811 2010-03-28  Bruno Haible  <bruno@clisp.org>
16812
16813         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16814         * gnulib-tool (func_exists_module): New function, extracted from
16815         func_verify_module.
16816         (func_verify_module): Use it.
16817         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16818         'foo' only if 'foo' exists.
16819         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16820         module.
16821
16822 2010-03-28  Bruno Haible  <bruno@clisp.org>
16823
16824         gnulib-tool: Add support for special categories of tests.
16825         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16826         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16827         (func_usage): Document them.
16828         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16829         inc_unportable_tests, inc_all_tests): New variables.
16830         (func_acceptable): Consider these variables.
16831         (func_modules_transitive_closure): Make it work when the 'Status' field
16832         consists of multiple words.
16833         (func_import): Store and restore the values of inc_cxx_tests,
16834         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16835         inc_all_tests in gnulib-comp.m4.
16836         (func_create_testdir): Set inc_all_tests to true.
16837         * doc/gnulib.texi (Extra tests modules): New section.
16838         Suggested by Jim Meyering.
16839
16840 2010-03-28  Bruno Haible  <bruno@clisp.org>
16841
16842         ansi-c++-opt: Allow turning off the C++ build by default.
16843         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16844         gl_CXX_CHOICE_DEFAULT_NO is defined.
16845         Requested by Eric Blake.
16846
16847 2010-03-28  Bruno Haible  <bruno@clisp.org>
16848
16849         unistd: Avoid #define replacements in C++ mode.
16850         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16851         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16852         setsockopt, shutdown, select): In C++, attach a warning to the function
16853         if possible, rather than #defining the symbol to a dysfunctional alias.
16854         Reported by John W. Eaton <jwe@gnu.org>.
16855
16856 2010-03-28  Bruno Haible  <bruno@clisp.org>
16857
16858         Fix link errors on mingw.
16859         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16860         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16861         $(LIBSOCKET).
16862         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16863         $(LIBSOCKET).
16864
16865 2010-03-28  Bruno Haible  <bruno@clisp.org>
16866             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16867
16868         lib-ignore: Determine different options for different compilers.
16869         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16870         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16871         Add comments.
16872         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16873         * NEWS: Mention the change.
16874
16875 2010-03-27  Bruno Haible  <bruno@clisp.org>
16876
16877         Remove unused GNULIB_XYZ macro definitions.
16878         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16879         * modules/fseek (configure.ac): Likewise.
16880         * modules/ioctl (configure.ac): Likewise.
16881         * modules/open (configure.ac): Likewise.
16882         * modules/stdlib-safer (configure.ac): Likewise.
16883
16884 2010-03-27  Bruno Haible  <bruno@clisp.org>
16885
16886         Add a remark about certain modules.
16887         * modules/malloc (Comment): New section.
16888         * modules/realloc (Comment): Likewise.
16889         * modules/sigpipe (Comment): Likewise.
16890
16891 2010-03-27  Bruno Haible  <bruno@clisp.org>
16892
16893         Resolve conflict between the two kinds of module indicators.
16894         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16895         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16896         * modules/canonicalize (configure.ac): Invoke
16897         gl_MODULE_INDICATOR_FOR_TESTS.
16898         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16899         GNULIB_XYZ.
16900         * tests/test-dirent-c++.cc: Likewise.
16901         * tests/test-dirent-safer.c: Likewise.
16902         * tests/test-dup2.c: Likewise.
16903         * tests/test-fchdir.c: Likewise.
16904         * tests/test-fcntl-h-c++.cc: Likewise.
16905         * tests/test-getopt.c: Likewise.
16906         * tests/test-getopt.h: Likewise.
16907         * tests/test-langinfo-c++.cc: Likewise.
16908         * tests/test-locale-c++.cc: Likewise.
16909         * tests/test-math-c++.cc: Likewise.
16910         * tests/test-pty-c++.cc: Likewise.
16911         * tests/test-search-c++.cc: Likewise.
16912         * tests/test-signal-c++.cc: Likewise.
16913         * tests/test-spawn-c++.cc: Likewise.
16914         * tests/test-stdio-c++.cc: Likewise.
16915         * tests/test-stdlib-c++.cc: Likewise.
16916         * tests/test-string-c++.cc: Likewise.
16917         * tests/test-sys_ioctl-c++.cc: Likewise.
16918         * tests/test-sys_select-c++.cc: Likewise.
16919         * tests/test-sys_socket-c++.cc: Likewise.
16920         * tests/test-sys_stat-c++.cc: Likewise.
16921         * tests/test-sys_time-c++.cc: Likewise.
16922         * tests/test-time-c++.cc: Likewise.
16923         * tests/test-unistd-c++.cc: Likewise.
16924         * tests/test-wchar-c++.cc: Likewise.
16925         * tests/uninorm/test-u8-nfc.c: Likewise.
16926         * tests/uninorm/test-u8-nfd.c: Likewise.
16927         * tests/uninorm/test-u8-nfkc.c: Likewise.
16928         * tests/uninorm/test-u8-nfkd.c: Likewise.
16929         * tests/uninorm/test-u16-nfc.c: Likewise.
16930         * tests/uninorm/test-u16-nfd.c: Likewise.
16931         * tests/uninorm/test-u16-nfkc.c: Likewise.
16932         * tests/uninorm/test-u16-nfkd.c: Likewise.
16933         * tests/uninorm/test-u32-nfc.c: Likewise.
16934         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16935         * tests/uninorm/test-u32-nfd.c: Likewise.
16936         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16937         * tests/uninorm/test-u32-nfkc.c: Likewise.
16938         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16939         * tests/uninorm/test-u32-nfkd.c: Likewise.
16940         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16941         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16942
16943 2010-03-27  Bruno Haible  <bruno@clisp.org>
16944
16945         Distinguish two kinds of module indicators.
16946         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16947         gl_MODULE_INDICATOR.
16948         (gl_MODULE_INDICATOR): New macro.
16949         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16950         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16951         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16952         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16953         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16954         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16955         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16956         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16957         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16958         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16959         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16960         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16961         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16962         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16963         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16964         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16965         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16966         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16967         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16968         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16969         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16970         * modules/cloexec (configure.ac): Likewise.
16971         * modules/getopt-gnu (configure.ac): Likewise.
16972         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16973         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16974         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16975         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16976
16977 2010-03-27  Bruno Haible  <bruno@clisp.org>
16978
16979         New module description field 'Comment'.
16980         * gnulib-tool: New option --extract-comment.
16981         (func_usage): Document it.
16982         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16983         (func_get_comment): New function.
16984         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16985
16986 2010-03-27  Bruno Haible  <bruno@clisp.org>
16987
16988         Addendum to 2010-02-07 commit.
16989         * gnulib-tool (func_usage): Document --extract-applicability option.
16990
16991 2010-03-27  Bruno Haible  <bruno@clisp.org>
16992
16993         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16994         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16995         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16996         rather than link errors.
16997
16998 2010-03-27  Bruno Haible  <bruno@clisp.org>
16999
17000         Avoid side effects from tests-related modules on the compilation of lib.
17001         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
17002         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
17003         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
17004         parameter. Emit into AM_CPPFLAGS a definition of the designated C
17005         macro.
17006         (func_import): Define a witness macro. Assign it a value that depends
17007         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
17008         tests-related modules.
17009         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
17010         Reported by Jim Meyering.
17011
17012 2010-03-27  Bruno Haible  <bruno@clisp.org>
17013
17014         Factorize common .m4 code.
17015         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
17016         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
17017         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
17018         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
17019         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17020         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
17021         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
17022         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17023         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17024         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17025         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
17026         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17027         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17028         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17029         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17030         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
17031         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17032         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17034         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
17035         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
17036         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17037         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17038         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17039         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17040         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17041         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
17042         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
17043         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
17044         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17045         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17046         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17047
17048 2010-03-27  Bruno Haible  <bruno@clisp.org>
17049
17050         Fix a compilation error on Cygwin with g++ >= 4.3.
17051         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
17052         if it is undefined or if we alias it to chmod.
17053         (lstat): Don't warn about the use of this function if it is undefined
17054         or if we alias it to stat.
17055         Reported by Simon Josefsson.
17056
17057 2010-03-27  Bruno Haible  <bruno@clisp.org>
17058
17059         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
17060         * modules/getlogin (configure.ac): Update.
17061
17062         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
17063         * modules/getlogin_r (configure.ac): Update.
17064
17065         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
17066         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
17067         * modules/inet_ntop (configure.ac): Update.
17068
17069         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
17070         * modules/inet_pton (configure.ac): Update.
17071
17072         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
17073         * modules/mbslen (configure.ac): Update.
17074
17075         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
17076         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
17077         * modules/forkpty (configure.ac): Update.
17078         * modules/openpty (configure.ac): Update.
17079
17080 2010-03-26  Simon Josefsson  <simon@josefsson.org>
17081
17082         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
17083         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
17084
17085 2010-03-25  Eric Blake  <eblake@redhat.com>
17086
17087         maint: use pragma consistently across replacement headers
17088         * lib/ctype.in.h (system_header): Hoist for consistent placement.
17089         * lib/dirent.in.h (system_header): Likewise.
17090         * lib/errno.in.h (system_header): Likewise.
17091         * lib/float.in.h (system_header): Likewise.
17092         * lib/getopt.in.h (system_header): Likewise.
17093         * lib/iconv.in.h (system_header): Likewise.
17094         * lib/inttypes.in.h (system_header): Likewise.
17095         * lib/langinfo.in.h (system_header): Likewise.
17096         * lib/locale.in.h (system_header): Likewise.
17097         * lib/math.in.h (system_header): Likewise.
17098         * lib/netdb.in.h (system_header): Likewise.
17099         * lib/netinet_in.in.h (system_header): Likewise.
17100         * lib/pty.in.h (system_header): Likewise.
17101         * lib/sched.in.h (system_header): Likewise.
17102         * lib/se-selinux.in.h (system_header): Likewise.
17103         * lib/search.in.h (system_header): Likewise.
17104         * lib/spawn.in.h (system_header): Likewise.
17105         * lib/stdarg.in.h (system_header): Likewise.
17106         * lib/stdint.in.h (system_header): Likewise.
17107         * lib/string.in.h (system_header): Likewise.
17108         * lib/strings.in.h (system_header): Likewise.
17109         * lib/sys_file.in.h (system_header): Likewise.
17110         * lib/sys_ioctl.in.h (system_header): Likewise.
17111         * lib/sys_socket.in.h (system_header): Likewise.
17112         * lib/sys_times.in.h (system_header): Likewise.
17113         * lib/sys_utsname.in.h (system_header): Likewise.
17114         * lib/sys_wait.in.h (system_header): Likewise.
17115         * lib/sysexits.in.h (system_header): Likewise.
17116         * lib/unistd.in.h (system_header): Likewise.
17117         * lib/wctype.in.h (system_header): Likewise.
17118
17119         arpa/inet: fix mingw compilation warning
17120         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
17121         Reported by Matthew Bolte.
17122
17123 2010-03-25  Bruno Haible  <bruno@clisp.org>
17124
17125         Avoid collision between gnulib wrapper and libintl wrapper.
17126         * lib/printf.c (printf): Don't define if a printf wrapper is already
17127         defined in intl/printf.c.
17128         Reported by Michel Boaventura <michel@michelboaventura.com>.
17129
17130 2010-03-25  Bruno Haible  <bruno@clisp.org>
17131
17132         Use ANSI C.
17133         * lib/readutmp.h (getutent): Provide ANSI C prototype.
17134
17135 2010-03-25  Bruno Haible  <bruno@clisp.org>
17136
17137         Minor formatting changes.
17138         * lib/acosl.c: Insert space before function argument list.
17139         * lib/argz.c: Likewise.
17140         * lib/asinl.c: Likewise.
17141         * lib/expl.c: Likewise.
17142         * lib/gen-uni-tables.c: Likewise.
17143         * lib/gettext.h: Likewise.
17144         * lib/glthread/lock.h: Likewise.
17145         * lib/tanl.c: Likewise.
17146         * lib/uniname/uniname.c: Likewise.
17147         * tests/test-idpriv-drop.c: Likewise.
17148         * tests/test-idpriv-droptemp.c: Likewise.
17149         * tests/test-lock.c: Likewise.
17150         * tests/test-tls.c: Likewise.
17151         * lib/argp-help.c: Insert space before function-like macro argument
17152         list.
17153         * lib/memcmp.c: Likewise.
17154         * tests/test-base64.c: Likewise.
17155         * lib/localename.c: Insert space before sizeof's argument list.
17156         * lib/safe-alloc.h: Likewise.
17157         * lib/file-set.h: Insert space before macro argument list.
17158         * tests/test-argp.c: Likewise.
17159         * lib/argp-namefrob.h: Insert space before function parameter list.
17160         * lib/getaddrinfo.c: Likewise.
17161         * lib/netdb.in.h: Likewise.
17162         * lib/parse-duration.h: Likewise.
17163         * lib/parse-duration.c: Likewise.
17164         * lib/poll.c: Likewise.
17165         * lib/select.c: Likewise.
17166         * lib/trim.h: Likewise.
17167         * tests/test-usleep.c: Likewise.
17168         * lib/ldexpl.c: Insert space before function parameter list and before
17169         function argument list.
17170         * lib/logl.c: Likewise.
17171         * lib/sqrtl.c: Likewise.
17172         * lib/trim.c: Likewise.
17173         * lib/cosl.c: Use GNU style indentation. Insert space before function
17174         argument list.
17175         * lib/sinl.c: Likewise.
17176         * lib/tsearch.c: Insert space after 'for'.
17177         Reported by Jim Meyering.
17178
17179 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
17180
17181         * maint.mk (sc_Wundef_boolean): Check for the presence of the
17182         config header before grepping, as it's not present before
17183         autoreconf/configure are run.  Reported by Simon Josefsson.
17184
17185 2010-03-23  Bruno Haible  <bruno@clisp.org>
17186
17187         pt_chown: Make it work with automake < 1.11.
17188         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
17189         Reported by Simon Josefsson.
17190
17191 2010-03-23  Bruno Haible  <bruno@clisp.org>
17192
17193         pt_chown: Don't depend on GPLed modules.
17194         * lib/pt_chown.c: Don't include idpriv.h.
17195         (main): Don't drop privileges.
17196         * modules/pt_chown (Depends-on): Remove idpriv-drop.
17197         Reported by Simon Josefsson.
17198
17199 2010-03-24  Simon Josefsson  <simon@josefsson.org>
17200
17201         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
17202         suggestions from karl@freefriends.org (Karl Berry).
17203
17204 2010-03-22  Eric Blake  <eblake@redhat.com>
17205
17206         gethostname: further tweaks
17207         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
17208         are overriding gethostname.
17209         Suggested by Bruno Haible.
17210
17211 2010-03-21  Bruno Haible  <bruno@clisp.org>
17212
17213         Fix comments.
17214         * lib/forkpty.c (rpl_forkpty): Fix comment.
17215         * lib/openpty.c (rpl_openpty): Likewise.
17216         Reported by Eric Blake.
17217
17218 2010-03-22  Eric Blake  <eblake@redhat.com>
17219
17220         gethostname: fix build on mingw
17221         * lib/unistd.in.h (includes): Work around fact that mingw
17222         <winsock2.h> re-includes <unistd.h>, by avoiding any
17223         redeclarations if we are being included by <winsock2.h>.
17224         Reported by Matthias Bolte.
17225
17226 2010-03-21  Bruno Haible  <bruno@clisp.org>
17227
17228         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17229         * lib/forkpty.c (forkpty): New replacement function, from glibc with
17230         modifications.
17231         * lib/pty.in.h (forkpty): Update declaration. Add comments.
17232         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
17233         provide the replacement.
17234         * modules/forkpty (Depends-on): Add openpty, login_tty.
17235         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
17236         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
17237         * doc/glibc-functions/forkpty.texi: More supported platforms.
17238         * config/srclist.txt: Add forkpty.c (commented).
17239
17240 2010-03-21  Bruno Haible  <bruno@clisp.org>
17241
17242         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
17243         (Makefile.am): Verify that PTY_LIB is defined.
17244
17245         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
17246
17247 2010-03-21  Bruno Haible  <bruno@clisp.org>
17248
17249         Tests for module 'login_tty'.
17250         * modules/login_tty-tests: New file.
17251         * tests/test-login_tty.c: New file.
17252
17253         New module 'login_tty'.
17254         * lib/login_tty.c: New file.
17255         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
17256         * modules/login_tty: New file.
17257         * doc/glibc-functions/login_tty.texi: Mention the new module.
17258
17259 2010-03-21  Bruno Haible  <bruno@clisp.org>
17260
17261         login_tty: Documentation.
17262         * doc/glibc-functions/login_tty.texi: New file.
17263         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
17264
17265 2010-03-21  Bruno Haible  <bruno@clisp.org>
17266
17267         pty: Consistent macro naming.
17268         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
17269         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
17270         * modules/pty (configure.ac): Update.
17271
17272 2010-03-21  Bruno Haible  <bruno@clisp.org>
17273
17274         Tests for openpty: Make stricter.
17275         * tests/test-openpty.c (main): Add test of canonical processing and
17276         erase.
17277         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
17278
17279         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17280         * lib/openpty.c (openpty): New replacement function.
17281         * lib/pty.in.h: Include <termios.h>.
17282         (openpty): Update declaration. Add comments.
17283         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
17284         is not declared, arrange to provide the replacement. Check for _getpty
17285         and posix_openpt.
17286         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
17287         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
17288         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
17289         * modules/pty-tests (test_pty_c___LDADD): New variable.
17290         * doc/glibc-functions/openpty.texi: More supported platforms.
17291
17292 2010-03-21  Bruno Haible  <bruno@clisp.org>
17293
17294         setenv: Tweaks.
17295         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
17296         the test program.
17297         * doc/posix-functions/setenv.texi: Update platforms list.
17298
17299 2010-03-21  Bruno Haible  <bruno@clisp.org>
17300
17301         New module 'unlockpt'.
17302         * lib/unlockpt.c: New file, from glibc with modifications.
17303         * m4/unlockpt.m4: New file.
17304         * modules/unlockpt: New file.
17305         * lib/stdlib.in.h (unlockpt): New declaration.
17306         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
17307         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
17308         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
17309         HAVE_UNLOCKPT.
17310         * doc/posix-functions/unlockpt.texi: Mention the new module.
17311         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
17312         * config/srclist.txt: Add unlockpt.c (commented).
17313
17314 2010-03-21  Jim Meyering  <meyering@redhat.com>
17315
17316         maint.mk: prohibit inclusion of "intprops.h" without use
17317         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
17318
17319 2010-03-21  Bruno Haible  <bruno@clisp.org>
17320
17321         New module 'grantpt'.
17322         * lib/grantpt.c: New file, from glibc with modifications.
17323         * m4/grantpt.m4: New file.
17324         * modules/grantpt: New file.
17325         * lib/stdlib.in.h (grantpt): New declaration.
17326         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
17327         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
17328         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
17329         HAVE_GRANTPT.
17330         * doc/posix-functions/grantpt.texi: Mention the new module.
17331         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
17332         * config/srclist.txt: Add grantpt.c (commented).
17333
17334 2010-03-21  Bruno Haible  <bruno@clisp.org>
17335
17336         New module 'pt_chown'.
17337         * lib/pt_chown.c: New file, from glibc with modifications.
17338         * lib/pty-private.h: New file, from glibc with modifications.
17339         * modules/pt_chown: New file.
17340         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
17341
17342 2010-03-21  Bruno Haible  <bruno@clisp.org>
17343
17344         Tests for module 'ptsname'.
17345         * modules/ptsname-tests: New file.
17346         * tests/test-ptsname.c: New file.
17347
17348         New module 'ptsname'.
17349         * lib/ptsname.c: New file, from glibc with modifications.
17350         * m4/ptsname.m4: New file.
17351         * modules/ptsname: New file.
17352         * lib/stdlib.in.h (ptsname): New declaration.
17353         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
17354         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
17355         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
17356         HAVE_PTSNAME.
17357         * doc/posix-functions/ptsname.texi: Mention the new module.
17358         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
17359         * config/srclist.txt: Add ptsname.c (commented).
17360
17361 2010-03-21  Bruno Haible  <bruno@clisp.org>
17362
17363         Tests for module 'ttyname_r'.
17364         * modules/ttyname_r-tests: New file.
17365         * tests/test-ttyname_r.c: New file.
17366
17367         New module 'ttyname_r'.
17368         * lib/ttyname_r.c: New file.
17369         * m4/ttyname_r.m4: New file.
17370         * modules/ttyname_r: New file.
17371         * lib/unistd.in.h (ttyname_r): New declaration.
17372         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
17373         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
17374         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
17375         HAVE_TTYNAME_R.
17376         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
17377         * doc/posix-functions/ttyname_r.texi: Mention the new module.
17378
17379 2010-03-20  Bruno Haible  <bruno@clisp.org>
17380
17381         signal: Undefine macro definitions in C++ mode.
17382         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
17383         sigfillset): Undefine macro definitions from the system header in C++
17384         mode.
17385         Reported by John W. Eaton <jwe@gnu.org>.
17386
17387 2010-03-20  Bruno Haible  <bruno@clisp.org>
17388
17389         Ensure no #include statements inside extern "C" { ... }.
17390         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
17391         contain #include statements.
17392         * lib/time.in.h: Likewise.
17393
17394 2010-03-20  Bruno Haible  <bruno@clisp.org>
17395
17396         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
17397         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
17398         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
17399         Reported by John W. Eaton <jwe@gnu.org>.
17400
17401 2010-03-20  Bruno Haible  <bruno@clisp.org>
17402
17403         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
17404         Reported by Jim Meyering.
17405
17406 2010-03-20  Bruno Haible  <bruno@clisp.org>
17407
17408         pipe: Set errno upon failure.
17409         * lib/pipe.h: Specify that when -1 is returned, errno is set.
17410         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
17411         errno value in error message.
17412
17413 2010-03-20  Bruno Haible  <bruno@clisp.org>
17414             Jim Meyering  <meyering@redhat.com>
17415
17416         lchown: Avoid "unused variable" warning.
17417         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
17418
17419 2010-03-20  Bruno Haible  <bruno@clisp.org>
17420
17421         Work around unlink() bug on MacOS X 10.5.6.
17422         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
17423         attempting to unlink a parent directory.
17424         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
17425         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
17426         activate for the replacement function.
17427         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
17428
17429 2010-03-20  Bruno Haible  <bruno@clisp.org>
17430
17431         Fix link errors on Solaris 8.
17432         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
17433         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
17434
17435 2010-03-19  Jim Meyering  <meyering@redhat.com>
17436
17437         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
17438         The _LIBC implementation of build_range_exp correctly honors the
17439         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
17440         However, the non-_LIBC implementation would ignore that syntax-bit
17441         flag and return REG_ERANGE unconditionally.
17442         This change makes it honor that flag.
17443         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
17444         Make two pointer parameters "const".
17445         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
17446         (parse_bracket_exp): Update caller.
17447
17448         regex.m4: correct the reversed range endpoint ([b-a]) test
17449         * m4/regex.m4: When requiring that [b-a] evoke failure,
17450         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
17451         test pass once again for x86-based systems.
17452
17453 2010-03-19  Bruno Haible  <bruno@clisp.org>
17454
17455         scandir: Fix link error on Solaris 8.
17456         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
17457         macros.
17458
17459 2010-03-19  Bruno Haible  <bruno@clisp.org>
17460
17461         getusershell: Fix documentation.
17462         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
17463         module.
17464         * doc/glibc-functions/setusershell.texi: Likewise.
17465
17466         getusershell: Provide declaration, missing on Solaris 9.
17467         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
17468         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
17469         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
17470         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
17471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17472         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
17473         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
17474         HAVE_GETUSERSHELL.
17475         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
17476
17477 2010-03-19  Bruno Haible  <bruno@clisp.org>
17478
17479         wctype: Provide iswblank function.
17480         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
17481         exists and is fine.
17482         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
17483         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
17484         * tests/test-wctype.c (main): Re-enable the iswblank tests.
17485         * doc/posix-functions/iswblank.texi: Update.
17486
17487 2010-03-19  Bruno Haible  <bruno@clisp.org>
17488
17489         Tests of module 'pty' in C++ mode.
17490         * modules/pty-tests: New file.
17491         * tests/test-pty-c++.cc: New file.
17492         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17493
17494 2010-03-19  Eric Blake  <eblake@redhat.com>
17495
17496         logb: fix documentation
17497         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
17498         1.5 declaration bug.
17499
17500         forkpty, openpty: prefer glibc's const-safe prototype
17501         * lib/forkpty.c (rpl_forkpty): New file.
17502         * lib/openpty.c (rpl_openpty): Likewise.
17503         * modules/forkpty (Files): Distribute it.
17504         * modules/openpty (Files): Likewise.
17505         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
17506         check...
17507         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
17508         replacement for for non-const BSD signature.
17509         * modules/pty (Makefile.am): Substitute witnesses.
17510         * lib/pty.in.h (forkpty, openpty): Declare replacements.
17511         * tests/test-forkpty.c: Update signature check.
17512         * tests/test-openpty.c: Likewise.
17513         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
17514         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17515
17516         forkpty, openpty: split functions into new modules
17517         * modules/pty (Makefile.am): Substitute new witnesses.
17518         (Libraries): Move library detection...
17519         * modules/forkpty: ...into new module.
17520         * modules/openpty: Another new module.
17521         * modules/pty-tests: Rename and split...
17522         * modules/forkpty-tests: ...to this...
17523         * modules/openpty-tests: ...and this.
17524         * tests/test-pty.c: Rename and split...
17525         * tests/test-forkpty.c: ...to this...
17526         * tests/test-openpty.c: ...and this.
17527         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
17528         (gl_PTY): Split library searching...
17529         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
17530         (gl_FORKPTY, gl_OPENPTY): New macros.
17531         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
17532         * NEWS: Mention the split.
17533         * MODULES.html.sh (Misc): Document the modules.
17534         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
17535         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17536
17537         pty: improve replacement header
17538         * lib/pty.in.h: New file.
17539         * modules/pty (Files): Ship it.
17540         (Makefile.am): Always build replacement.
17541         * m4/pty.m4: Rename...
17542         * m4/pty_h.m4: ...to this.
17543         (gl_PTY): Modernize setting of witness macros; update check of
17544         forkpty to take proper advantage of cache.
17545         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
17546
17547         getopt: avoid compiler warning
17548         * lib/getopt.c (attribute_hidden): Remove unused macro.
17549
17550 2010-03-18  Bruno Haible  <bruno@clisp.org>
17551
17552         Fix link errors on Solaris 8.
17553         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
17554         * modules/search-tests (test_search_c___LDADD): Likewise.
17555         * modules/signal-tests (test_signal_c___LDADD): Likewise.
17556         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
17557         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
17558         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
17559         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
17560         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
17561         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
17562
17563 2010-03-18  Bruno Haible  <bruno@clisp.org>
17564
17565         Fix bug introduced on 2010-03-14.
17566         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
17567         (gl_SPAWN_H): Require it.
17568         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
17569         Reported by Simon Josefsson.
17570
17571 2010-03-18  Bruno Haible  <bruno@clisp.org>
17572
17573         Fix typo introduced on 2009-12-31.
17574         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
17575         posix_spawn_file_actions_adddup2.
17576
17577 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
17578         and Eric Blake  <eblake@redhat.com>
17579
17580         test-vc-list-files-git: make more robust
17581         * tests/test-vc-list-files-git.sh: Unset problematic environment
17582         variables.  Chain commands together.
17583
17584 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
17585
17586         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
17587         `AC_CHECK_DECL' invocation.
17588
17589 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
17590
17591         * lib/inttostr.c (inttostr): Make sure the invocation of verify
17592         appears before executable statements. Suggested by Petr Sumbera
17593         <Petr.Sumbera@Sun.COM>.
17594
17595 2010-03-14  Bruno Haible  <bruno@clisp.org>
17596
17597         * tests/test-flock.c (test_exclusive): Comment out a test that causes
17598         portability problems. Instead use a simpler test.
17599         (main): Check that invalid arguments are rejected only on Linux.
17600
17601 2010-03-14  Bruno Haible  <bruno@clisp.org>
17602
17603         Fix bug introduced on 2009-12-31.
17604         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17605         gl_PREREQ_SYS_H_WINSOCK2 always.
17606         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
17607         SYS_SOCKET_H variable.
17608         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
17609         Update comments.
17610         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17611         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17612         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17613         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17614         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
17615
17616 2010-03-14  Bruno Haible  <bruno@clisp.org>
17617
17618         Fix values returned by sinl, cosl.
17619         * lib/trigl.h: Add specification comments.
17620         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
17621         that combines the values from the precomputed table with the values of
17622         the Chebyshev polynomials.
17623
17624 2010-03-14  Bruno Haible  <bruno@clisp.org>
17625
17626         Fix compilation error when modules 'posix_spawn[p]' are not used.
17627         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
17628         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
17629
17630 2010-03-14  Bruno Haible  <bruno@clisp.org>
17631
17632         Fix compilation error on mingw when module 'time_r' is not used.
17633         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
17634         is 1.
17635         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
17636         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17637         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
17638         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
17639
17640 2010-03-14  Bruno Haible  <bruno@clisp.org>
17641
17642         Fix compilation error with Sun C.
17643         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17644         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17645         instead of GCC specific ULONG_LONG_MAX.
17646         * lib/xstrtoll.c: Likewise.
17647         * lib/xstrtoull.c: Likewise.
17648
17649 2010-03-13  Bruno Haible  <bruno@clisp.org>
17650
17651         Allow the user to disable C++ code and tests.
17652         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17653         (gl_PROG_ANSI_CXX): Require it.
17654
17655 2010-03-13  Bruno Haible  <bruno@clisp.org>
17656
17657         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17658         cases.
17659
17660 2010-03-13  Bruno Haible  <bruno@clisp.org>
17661
17662         Test that gnulib does not break the standard C++ headers.
17663         * tests/test-locale-c++2.cc: New file.
17664         * modules/locale-tests (Files): Add it.
17665         (Makefile.am): Compile it for test-locale-c++.
17666         * tests/test-math-c++2.cc: New file.
17667         * modules/math-tests (Files): Add it.
17668         (Makefile.am): Compile it for test-math-c++.
17669         * tests/test-signal-c++2.cc: New file.
17670         * modules/signal-tests (Files): Add it.
17671         (Makefile.am): Compile it for test-signal-c++.
17672         * tests/test-stdio-c++2.cc: New file.
17673         * modules/stdio-tests (Files): Add it.
17674         (Makefile.am): Compile it for test-stdio-c++.
17675         * tests/test-stdlib-c++2.cc: New file.
17676         * modules/stdlib-tests (Files): Add it.
17677         (Makefile.am): Compile it for test-stdlib-c++.
17678         * tests/test-string-c++2.cc: New file.
17679         * modules/string-tests (Files): Add it.
17680         (Makefile.am): Compile it for test-string-c++.
17681         * tests/test-time-c++2.cc: New file.
17682         * modules/time-tests (Files): Add it.
17683         (Makefile.am): Compile it for test-time-c++.
17684         Reported by John W. Eaton <jwe@gnu.org>.
17685
17686 2010-03-13  Bruno Haible  <bruno@clisp.org>
17687
17688         * gnulib-tool (func_usage): Clarify which options are available for
17689         --create-testdir and --create-megatestdir.
17690
17691 2010-03-13  Bruno Haible  <bruno@clisp.org>
17692
17693         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17694         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17695         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17696         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17697         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17698         when appropriate.
17699         Reported by Jim Meyering.
17700
17701 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17702
17703         * gnulib-tool (func_import): Explain origin of code.
17704
17705 2010-03-12  Bruno Haible  <bruno@clisp.org>
17706
17707         Fix problem with automake's definition of CXXLINK.
17708         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17709         Reported by Simon Josefsson and Ludovic Courtès.
17710
17711 2010-03-12  Bruno Haible  <bruno@clisp.org>
17712
17713         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17714         stable releases.
17715
17716 2010-03-11  Bruno Haible  <bruno@clisp.org>
17717
17718         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17719         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17720         whether the system provides one variant or multiple variants of the
17721         function.
17722         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17723         C++ compilers.
17724         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17725         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17726         Reported by Jim Meyering.
17727
17728 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17729
17730         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17731
17732 2010-03-08  Bruno Haible  <bruno@clisp.org>
17733
17734         gnulib-tool: Add support for --libtool in --create-testdir.
17735         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17736         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17737
17738 2010-03-08  Eric Blake  <eblake@redhat.com>
17739
17740         gnulib-tool.texi: mention possibility of git submodule
17741         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17742         submodules.
17743         * doc/.gitignore: Ignore another generated file.
17744
17745 2010-03-08  Karl Berry  <karl@gnu.org>
17746
17747         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17748         of committing gnulib files while skipping others.
17749
17750 2010-03-07  Bruno Haible  <bruno@clisp.org>
17751
17752         Tests of module 'wctype' in C++ mode.
17753         * tests/test-wctype-c++.cc: New file.
17754         * modules/wctype-tests (Files): Add it and tests/signature.h.
17755         (Depends-on): Add ansi-c++-opt.
17756         (Makefile.am): Arrange to compile and run test-wctype-c++.
17757
17758         Tests of module 'wchar' in C++ mode.
17759         * tests/test-wchar-c++.cc: New file.
17760         * modules/wchar-tests (Files): Add it and tests/signature.h.
17761         (Depends-on): Add ansi-c++-opt.
17762         (Makefile.am): Arrange to compile and run test-wchar-c++.
17763         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17764         gl_MODULE_INDICATOR.
17765
17766         Tests of module 'unistd' in C++ mode.
17767         * tests/test-unistd-c++.cc: New file.
17768         * modules/unistd-tests (Files): Add it and tests/signature.h.
17769         (Depends-on): Add ansi-c++-opt.
17770         (Makefile.am): Arrange to compile and run test-unistd-c++.
17771         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17772         gl_MODULE_INDICATOR.
17773
17774         Tests of module 'time' in C++ mode.
17775         * tests/test-time-c++.cc: New file.
17776         * modules/time-tests (Files): Add it and tests/signature.h.
17777         (Depends-on): Add ansi-c++-opt.
17778         (Makefile.am): Arrange to compile and run test-time-c++.
17779         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17780
17781         Tests of module 'sys_time' in C++ mode.
17782         * tests/test-sys_time-c++.cc: New file.
17783         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17784         (Depends-on): Add ansi-c++-opt.
17785         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17786         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17787         gl_MODULE_INDICATOR.
17788
17789         Tests of module 'sys_stat' in C++ mode.
17790         * tests/test-sys_stat-c++.cc: New file.
17791         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17792         (Depends-on): Add ansi-c++-opt.
17793         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17794         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17795         gl_MODULE_INDICATOR.
17796
17797         Tests of module 'sys_socket' in C++ mode.
17798         * tests/test-sys_socket-c++.cc: New file.
17799         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17800         (Depends-on): Add ansi-c++-opt.
17801         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17802         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17803         gl_MODULE_INDICATOR.
17804
17805         Tests of module 'sys_select' in C++ mode.
17806         * tests/test-sys_select-c++.cc: New file.
17807         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17808         (Depends-on): Add ansi-c++-opt.
17809         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17810         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17811         gl_MODULE_INDICATOR.
17812
17813         Tests of module 'sys_ioctl' in C++ mode.
17814         * tests/test-sys_ioctl-c++.cc: New file.
17815         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17816         (Depends-on): Add ansi-c++-opt.
17817         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17818         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17819         gl_MODULE_INDICATOR.
17820
17821         Tests of module 'string' in C++ mode.
17822         * tests/test-string-c++.cc: New file.
17823         * modules/string-tests (Files): Add it and tests/signature.h.
17824         (Depends-on): Add ansi-c++-opt.
17825         (Makefile.am): Arrange to compile and run test-string-c++.
17826         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17827         gl_MODULE_INDICATOR.
17828
17829         Tests of module 'stdlib' in C++ mode.
17830         * tests/test-stdlib-c++.cc: New file.
17831         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17832         (Depends-on): Add ansi-c++-opt.
17833         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17834         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17835         gl_MODULE_INDICATOR.
17836
17837         Tests of module 'stdio' in C++ mode.
17838         * tests/test-stdio-c++.cc: New file.
17839         * modules/stdio-tests (Files): Add it and tests/signature.h.
17840         (Depends-on): Add ansi-c++-opt.
17841         (Makefile.am): Arrange to compile and run test-stdio-c++.
17842         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17843         gl_MODULE_INDICATOR.
17844
17845         Tests of module 'spawn' in C++ mode.
17846         * tests/test-spawn-c++.cc: New file.
17847         * modules/spawn-tests (Files): Add it and tests/signature.h.
17848         (Depends-on): Add ansi-c++-opt.
17849         (Makefile.am): Arrange to compile and run test-spawn-c++.
17850         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17851         gl_MODULE_INDICATOR.
17852
17853         Tests of module 'signal' in C++ mode.
17854         * tests/test-signal-c++.cc: New file.
17855         * modules/signal-tests (Files): Add it and tests/signature.h.
17856         (Depends-on): Add ansi-c++-opt.
17857         (Makefile.am): Arrange to compile and run test-signal-c++.
17858         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17859         gl_MODULE_INDICATOR.
17860
17861         Tests of module 'search' in C++ mode.
17862         * tests/test-search-c++.cc: New file.
17863         * modules/search-tests (Files): Add it and tests/signature.h.
17864         (Depends-on): Add ansi-c++-opt.
17865         (Makefile.am): Arrange to compile and run test-search-c++.
17866         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17867         gl_MODULE_INDICATOR.
17868
17869         Tests of module 'math' in C++ mode.
17870         * tests/test-math-c++.cc: New file.
17871         * modules/math-tests (Files): Add it and tests/signature.h.
17872         (Depends-on): Add ansi-c++-opt.
17873         (Makefile.am): Arrange to compile and run test-math-c++.
17874         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17875
17876         Tests of module 'locale' in C++ mode.
17877         * tests/test-locale-c++.cc: New file.
17878         * modules/locale-tests (Files): Add it and tests/signature.h.
17879         (Depends-on): Add ansi-c++-opt.
17880         (Makefile.am): Arrange to compile and run test-locale-c++.
17881         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17882         gl_MODULE_INDICATOR.
17883
17884         Tests of module 'langinfo' in C++ mode.
17885         * tests/test-langinfo-c++.cc: New file.
17886         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17887         (Depends-on): Add ansi-c++-opt.
17888         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17889         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17890         gl_MODULE_INDICATOR.
17891
17892         Tests of module 'iconv-h' in C++ mode.
17893         * tests/test-iconv-h-c++.cc: New file.
17894         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17895         (Depends-on): Add ansi-c++-opt.
17896         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17897
17898         Tests of module 'glob' in C++ mode.
17899         * tests/test-glob-c++.cc: New file.
17900         * modules/glob-tests (Files): Add it.
17901         (Depends-on): Add ansi-c++-opt.
17902         (Makefile.am): Arrange to compile and run test-glob-c++.
17903
17904         Tests of module 'fcntl-h' in C++ mode.
17905         * tests/test-fcntl-h-c++.cc: New file.
17906         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17907         (Depends-on): Add ansi-c++-opt.
17908         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17909         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17910         gl_MODULE_INDICATOR.
17911
17912         Tests of module 'dirent' in C++ mode.
17913         * tests/test-dirent-c++.cc: New file.
17914         * modules/dirent-tests (Files): Add it and tests/signature.h.
17915         (Depends-on): Add ansi-c++-opt.
17916         (Makefile.am): Arrange to compile and run test-dirent-c++.
17917         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17918         gl_MODULE_INDICATOR.
17919
17920         New module 'ansi-c++-opt'.
17921         * modules/ansi-c++-opt: New file.
17922         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17923
17924         Document C++ namespace mode.
17925         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17926
17927         wctype: Avoid #define replacements in C++ mode.
17928         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17929         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17930         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17931         In C++, define a namespaced alias symbol.
17932         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17933         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17934         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17935         rule.
17936
17937         wchar: Avoid #define replacements in C++ mode.
17938         * lib/wchar.in.h: Include c++defs.h.
17939         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17940         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17941         symbol.
17942         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17943         * modules/wchar (Depends-on): Add c++defs.
17944         (Makefile.am): Update wchar.h rule.
17945
17946         unistd: Avoid #define replacements in C++ mode.
17947         * lib/unistd.in.h: Include c++defs.h.
17948         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17949         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17950         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17951         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17952         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17953         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17954         symbol.
17955         (environ): Update.
17956         * modules/unistd (Depends-on): Add c++defs.
17957         (Makefile.am): Update unistd.h rule.
17958
17959         time: Avoid #define replacements in C++ mode.
17960         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17961         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17962         define a namespaced alias symbol.
17963         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17964         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17965         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17966         * modules/time (Depends-on): Add c++defs, warn-on-use.
17967         (Makefile.am): Update time.h rule.
17968         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17969         * modules/nanosleep (configure.ac): Likewise.
17970         * modules/strptime (configure.ac): Likewise.
17971         * modules/timegm (configure.ac): Likewise.
17972
17973         sys_time: Avoid #define replacements in C++ mode.
17974         * lib/sys_time.in.h: Include c++defs.h.
17975         (gettimeofday): In C++, define a namespaced alias symbol.
17976         * modules/sys_time (Depends-on): Add c++defs.
17977         (Makefile.am): Update sys/time.h rule.
17978
17979         sys_stat: Avoid #define replacements in C++ mode.
17980         * lib/sys_stat.in.h: Include c++defs.h.
17981         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17982         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17983         namespaced alias symbol.
17984         In C++, define a namespaced alias symbol.
17985         * modules/sys_stat (Depends-on): Add c++defs.
17986         (Makefile.am): Update sys/stat.h rule.
17987
17988         sys_socket: Avoid #define replacements in C++ mode.
17989         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17990         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17991         definitions also when the system has a <sys/socket.h>.
17992         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17993         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17994         In C++, define a namespaced alias symbol.
17995         * modules/sys_socket (Depends-on): Add c++defs.
17996         (Makefile.am): Update sys/socket.h rule.
17997
17998         sys_select: Avoid #define replacements in C++ mode.
17999         * lib/sys_select.in.h: Include c++defs.h. Enable the function
18000         definitions also when the system has a <sys/select.h>.
18001         (select): In C++, define a namespaced alias symbol.
18002         * modules/sys_select (Depends-on): Add c++defs.
18003         (Makefile.am): Update sys/select.h rule.
18004
18005         sys_ioctl: Avoid #define replacements in C++ mode.
18006         * lib/sys_ioctl.in.h: Include c++defs.h.
18007         (ioctl): In C++, define a namespaced alias symbol.
18008         * modules/sys_ioctl (Depends-on): Add c++defs.
18009         (Makefile.am): Update sys/ioctl.h rule.
18010
18011         string: Avoid #define replacements in C++ mode.
18012         * lib/string.in.h: Include c++defs.h.
18013         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
18014         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18015         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18016         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
18017         strsignal, strverscmp): In C++, define a namespaced alias symbol.
18018         * modules/string (Depends-on): Add c++defs.
18019         (Makefile.am): Update string.h rule.
18020
18021         stdlib: Avoid #define replacements in C++ mode.
18022         * lib/stdlib.in.h: Include c++defs.h.
18023         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
18024         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
18025         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
18026         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
18027         symbol.
18028         * modules/stdlib (Depends-on): Add c++defs.
18029         (Makefile.am): Update stdlib.h rule.
18030
18031         stdio: Avoid #define replacements in C++ mode.
18032         * lib/stdio.in.h: Include c++defs.h.
18033         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
18034         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
18035         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
18036         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
18037         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
18038         namespaced alias symbol.
18039         * modules/stdio (Depends-on): Add c++defs.
18040         (Makefile.am): Update stdio.h rule.
18041
18042         spawn: Avoid #define replacements in C++ mode.
18043         * lib/spawn.in.h: Include c++defs.h.
18044         (posix_spawn, posix_spawnp, posix_spawnattr_init,
18045         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
18046         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
18047         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18048         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18049         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18050         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18051         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18052         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18053         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18054         In C++, define a namespaced alias symbol.
18055         * modules/spawn (Depends-on): Add c++defs.
18056         (Makefile.am): Update spawn.h rule.
18057
18058         signal: Avoid #define replacements in C++ mode.
18059         * lib/signal.in.h: Include c++defs.h.
18060         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18061         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
18062         namespaced alias symbol.
18063         * modules/signal (Depends-on): Add c++defs.
18064         (Makefile.am): Update signal.h rule.
18065
18066         search: Avoid #define replacements in C++ mode.
18067         * lib/search.in.h: Include c++defs.h.
18068         (_gl_search_compar_fn, _gl_search_action_fn): New types.
18069         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
18070         symbol.
18071         * modules/search (Depends-on): Add c++defs.
18072         (Makefile.am): Update search.h rule.
18073
18074         math: Avoid #define replacements in C++ mode.
18075         * lib/math.in.h: Include c++defs.h.
18076         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
18077         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
18078         trunc, truncl): In C++, define a namespaced alias symbol.
18079         * modules/math (Depends-on): Add c++defs.
18080         (Makefile.am): Update math.h rule.
18081
18082         locale: Avoid #define replacements in C++ mode.
18083         * lib/locale.in.h: Include c++defs.h.
18084         (duplocale): In C++, define a namespaced alias symbol.
18085         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
18086         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
18087         * modules/locale (Depends-on): Add c++defs.
18088         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
18089
18090         langinfo: Avoid #define replacements in C++ mode.
18091         * lib/langinfo.in.h: Include c++defs.h.
18092         (nl_langinfo): In C++, define a namespaced alias symbol.
18093         * modules/langinfo (Depends-on): Add c++defs.
18094         (Makefile.am): Update langinfo.h rule.
18095
18096         iconv-h: Avoid #define replacements in C++ mode.
18097         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
18098         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
18099         symbol.
18100         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18101         whenever iconv is present.
18102         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
18103         (Makefile.am): Update iconv.h rule.
18104
18105         glob: Avoid #define replacements in C++ mode.
18106         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
18107         (_gl_glob_errfunc_fn): New type.
18108         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
18109         symbol.
18110         * modules/glob (Depends-on): Add c++defs, warn-on-use.
18111         (Makefile.am): Update glob.h rule.
18112
18113         fcntl-h: Avoid #define replacements in C++ mode.
18114         * lib/fcntl.in.h: Include c++defs.h.
18115         (fcntl, open, openat): In C++, define a namespaced alias symbol.
18116         * modules/fcntl-h (Depends-on): Add c++defs.
18117         (Makefile.am): Update fcntl.h rule.
18118
18119         dirent: Avoid #define replacements in C++ mode.
18120         * lib/dirent.in.h: Include c++defs.h.
18121         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
18122         namespaced alias symbol.
18123         (dirfd): Update declaration.
18124         * modules/dirent (Depends-on): Add c++defs.
18125         (Makefile.am): Update dirent.h rule.
18126
18127         ctype: Make it usable in C++ code.
18128         * lib/ctype.in.h: Include c++defs.h.
18129         (isblank): Declare as extern "C".
18130         * modules/ctype (Depends-on): Add c++defs.
18131         (Makefile.am): Update ctype.h rule.
18132
18133         New module 'c++defs'.
18134         * modules/c++defs: New file.
18135         * build-aux/c++defs.h: New file.
18136         Reported by John W. Eaton <jwe@gnu.org>.
18137
18138 2010-03-07  Bruno Haible  <bruno@clisp.org>
18139
18140         logb: Provide missing declaration for Cygwin.
18141         * lib/math.in.h (logb): New declaration.
18142         * m4/logb.m4: New file.
18143         * modules/logb (Files): Add m4/logb.m4.
18144         (Depends-on): Add math.
18145         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
18146         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
18147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
18148         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
18149         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
18150
18151 2010-03-07  Bruno Haible  <bruno@clisp.org>
18152
18153         Fix test-cond link error.
18154         * tests/test-cond.c: Include <stdio.h>.
18155
18156 2010-03-07  Bruno Haible  <bruno@clisp.org>
18157
18158         Fix test-dirent-safer link error.
18159         * modules/dirent-safer-tests (Makefile.am): Define
18160         test_dirent_safer_LDADD.
18161
18162 2010-03-07  Bruno Haible  <bruno@clisp.org>
18163
18164         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
18165         among default module list.
18166
18167 2010-03-07  Bruno Haible  <bruno@clisp.org>
18168
18169         Fix link error on platforms with GNU libiconv.
18170         * modules/unistr/u8-strcoll-tests (Makefile): Define
18171         test_u8_strcoll_LDADD.
18172         * modules/unistr/u16-strcoll-tests (Makefile): Define
18173         test_u16_strcoll_LDADD.
18174         * modules/unistr/u32-strcoll-tests (Makefile): Define
18175         test_u32_strcoll_LDADD.
18176
18177 2010-03-07  Bruno Haible  <bruno@clisp.org>
18178
18179         Use POSIX declarations for socket functions.
18180         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
18181         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
18182         rpl_sendto): Change declaration to match POSIX.
18183         * lib/connect.c (rpl_connect): Likewise.
18184         * lib/accept.c (rpl_accept): Likewise.
18185         * lib/bind.c (rpl_bind): Likewise.
18186         * lib/getpeername.c (rpl_getpeername): Likewise.
18187         * lib/getsockname.c (rpl_getsockname): Likewise.
18188         * lib/recv.c (rpl_recv): Likewise.
18189         * lib/send.c (rpl_send): Likewise.
18190         * lib/recvfrom.c (rpl_recvfrom): Likewise.
18191         * lib/sendto.c (rpl_sendto): Likewise.
18192
18193 2010-03-06  Bruno Haible  <bruno@clisp.org>
18194
18195         Clarify access, euidaccess, faccessat.
18196         * doc/posix-functions/faccessat.texi: Mention security problem under
18197         "Other problems", not "Portability problems".
18198         * doc/posix-functions/access.texi: Likewise. Mention a related security
18199         problem.
18200         * doc/glibc-functions/euidaccess.texi: Mention security problems.
18201         * lib/euidaccess.c: Add comments about platforms.
18202         * lib/unistd.in.h (access, euidaccess): Add warnings.
18203
18204 2010-03-07  Bruno Haible  <bruno@clisp.org>
18205
18206         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
18207         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
18208         (POSIX_SPAWN_SETSCHEDULER): Likewise.
18209         (POSIX_SPAWN_USEVFORK): Define in a way that works when
18210         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18211         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
18212         declare when POSIX_SPAWN_SETSCHEDULER is zero.
18213         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
18214         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
18215         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
18216         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
18217         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
18218         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
18219         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
18220         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
18221         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
18222         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
18223         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
18224         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
18225         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
18226         Likewise.
18227         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
18228         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
18229         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
18230         Likewise.
18231         * tests/test-spawn.c (main): Make it work when
18232         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18233
18234 2010-03-07  Bruno Haible  <bruno@clisp.org>
18235
18236         Fix incorrect Makefile.am generation in German locale.
18237         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18238         Execute sed command with character range in C locale.
18239
18240 2010-03-06  Bruno Haible  <bruno@clisp.org>
18241
18242         Tests for module 'iconv-h'.
18243         * modules/iconv-h-tests: New file.
18244         * tests/test-iconv-h.c: New file.
18245
18246         New module 'iconv-h'.
18247         * modules/iconv-h: New file.
18248         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
18249         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
18250         (configure.ac): Remove gl_ICONV_H.
18251         (Makefile.am): Remove rule for iconv.h.
18252
18253 2010-03-06  Bruno Haible  <bruno@clisp.org>
18254
18255         More consistent naming of *.m4 files.
18256         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
18257         * modules/wctype (Files): Update.
18258
18259         More consistent naming of *.m4 files.
18260         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
18261         * modules/wchar (Files): Update.
18262
18263 2010-03-06  Jim Meyering  <meyering@redhat.com>
18264
18265         euidaccess: relax license to LGPLv2+
18266         * modules/euidaccess (License): Relax to LGPLv2+.
18267
18268 2010-03-06  Bruno Haible  <bruno@clisp.org>
18269
18270         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
18271         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
18272         (Makefile.am): Augment lib_SOURCES instead.
18273
18274 2010-03-04  Jim Meyering  <meyering@redhat.com>
18275
18276         utime: remove obsolete module
18277         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
18278         unnecessary for years, and has been marked as obsolete for 10 months.
18279         * modules/utime: Remove file.
18280         * lib/utime.c: Remove file.
18281         * m4/utime.m4: Remove file.
18282         * m4/utimes-null.m4: Remove file.
18283         * doc/posix-functions/utime.texi (utime): Remove reference to
18284         the module.  Move the sole "fixed by gnulib" item into the
18285         "problems not fixed by Gnulib" list.
18286         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
18287
18288 2010-03-05  Simon Josefsson  <simon@josefsson.org>
18289
18290         * modules/exit (License): Relax license to LGPLv2+.
18291         (Status): Mark as obsolete.
18292         * NEWS: Mention deprecated 'exit' module.
18293         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
18294         of now obsolete 'exit'.
18295
18296 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18297
18298         fts-lgpl: remove unused module
18299         * modules/fts-lgpl: Remove.
18300         * MODULES.html.sh (func_all_modules): Adjust.
18301         * check-module (find_included_lib_files): Adjust.
18302         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
18303
18304 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
18305
18306         copy-acl: enhance Solaris ACL error handling
18307         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
18308         * lib/set-mode-acl.c (qset_acl): Likewise.
18309
18310 2010-03-02  Bruno Haible  <bruno@clisp.org>
18311
18312         spawn: Don't override the system defined values on FreeBSD 8.
18313         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
18314         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
18315         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
18316         if HAVE_POSIX_SPAWN is 1.
18317         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
18318
18319 2010-03-01  Bruno Haible  <bruno@clisp.org>
18320
18321         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
18322         regarding Automake.
18323
18324 2010-02-25  Bruno Haible  <bruno@clisp.org>
18325
18326         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
18327         * gnulib-tool: Define 'echo' as a function only before the ksh alias
18328         setting, not afterwards.
18329         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
18330
18331 2010-02-24  Eric Blake  <eblake@redhat.com>
18332
18333         bootstrap, git-version-gen: use timestamp
18334         * build-aux/git-version-gen (scriptversion): Force UTC.
18335         * build-aux/bootstrap (scriptversion): New variable.
18336
18337         bootstrap: allow older git
18338         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
18339         older than 1.6.4.  Requested by the libvirt project.
18340
18341 2010-02-23  Eric Blake  <eblake@redhat.com>
18342
18343         warn-on-use: work with old autoconf
18344         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
18345         AS_VAR semantics of autoconf 2.60.
18346         Reported by Bruno Haible.
18347
18348         bootstrap: improve some comments
18349         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
18350         clarification comments.
18351
18352         gettimeofday: provide correct function
18353         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
18354         when replacement is declared, otherwise provide gettimeofday.
18355         Reported by Michael Goffioul.
18356
18357 2010-02-23  Jim Meyering  <meyering@redhat.com>
18358
18359         lib-ignore: relax license to "unlimited", not LGPLv2+
18360         * modules/lib-ignore (License): Relax to "unlimited".
18361
18362 2010-02-23  Jim Meyering  <meyering@redhat.com>
18363
18364         lib-ignore: relax license to LGPLv2+
18365         * modules/lib-ignore (License): Relax to LGPLv2+.
18366
18367 2010-02-22  Eric Blake  <eblake@redhat.com>
18368
18369         lseek: avoid bash 3.2 broken pipe bug
18370         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
18371         warning from bash 3.2.
18372         Reported by Ben Pfaff, with analysis from Bruno Haible.
18373
18374         bootstrap: support non-FSF copyright holder
18375         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
18376         bootstrap.conf override of COPYRIGHT_HOLDER.
18377         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
18378
18379         bootstrap: interoperate with gettext 0.14.1
18380         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
18381
18382         bootstrap: allow for alternate submodule location
18383         * build-aux/bootstrap (gnulib_path): New variable; use instead of
18384         hardcoding submodule location.
18385         (gnulib_mk): Allow direct use of Makefile.am.
18386
18387         bootstrap: use GNULIB_SRCDIR to reduce disk usage
18388         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
18389         rather than reconfiguring where the submodule points.
18390
18391         gettimeofday: restore support for platforms that lack function
18392         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
18393         replacement if function is missing.
18394         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
18395         * modules/sys_time (Makefile.am): Substitute it.
18396         * lib/sys_time.in.h (gettimeofday): Check it.
18397         Reported by Michael Goffioul.
18398
18399 2010-02-21  Bruno Haible  <bruno@clisp.org>
18400
18401         * lib/stdio.in.h (obstack_printf): Fix typo.
18402
18403 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
18404
18405         vc-list-files: use bzr ls's -R option
18406         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
18407         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
18408
18409 2010-02-21  Jim Meyering  <meyering@redhat.com>
18410
18411         init.sh: fix EXEEXT shims to work also for names like test-prog
18412         * tests/init.sh: Re-exec a better shell, when needed.
18413         If the current shell lacks support for posix $(...), an init.sh-using
18414         test will now try to find a shell that supports that.  If EXEEXT is
18415         nonempty, we also require support for hyphen-in-alias-name and shell
18416         substitutions like ${var#glob}.  Failure to find such a shell results
18417         in a skipped test.
18418
18419 2010-02-21  Bruno Haible  <bruno@clisp.org>
18420
18421         Really work around around "broken pipe" error message from bash 3.2.
18422         * gnulib-tool (func_reset_sigpipe): Remove function.
18423         (echo): In bash 3.2, define to a function that uses printf.
18424         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
18425
18426 2010-02-20  Bruno Haible  <bruno@clisp.org>
18427
18428         Restore support for automake 1.9.6 with autoconf 2.61.
18429         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
18430         Reported by James Youngman <jay@gnu.org>.
18431
18432 2010-02-20  Bruno Haible  <bruno@clisp.org>
18433
18434         Improve *printf warning condition.
18435         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
18436         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
18437         and the function is overridden due to SIGPIPE emulation.
18438
18439 2010-02-20  Bruno Haible  <bruno@clisp.org>
18440
18441         * lib/stdio.in.h: Tweak comments.
18442
18443 2010-02-19  Bruno Haible  <bruno@clisp.org>
18444
18445         Make it easier to find modules. New gnulib-tool option '--find'.
18446         * gnulib-tool: New option --find.
18447         (func_usage): Document it.
18448         (func_sanitize_modulelist): New function, extracted from
18449         func_all_modules.
18450         (func_all_modules): Invoke it.
18451         * doc/gnulib-tool.texi (Which modules?): New node.
18452
18453 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
18454
18455         * lib/sys_select.in.h: Provide select replacement even if
18456         sys/select.h exists on a system, for Interix.
18457
18458 2010-02-18  Jim Meyering  <meyering@redhat.com>
18459
18460         init.sh: don't use $(...) just yet
18461         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
18462         to accommodate e.g., Solaris' /bin/sh.
18463
18464 2010-02-17  Bruno Haible  <bruno@clisp.org>
18465
18466         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
18467         Reported by Ludovic Courtès <ludo@gnu.org>.
18468
18469 2010-02-16  Simon Josefsson  <simon@josefsson.org>
18470
18471         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
18472         linking with -lintl.
18473
18474 2010-02-17  Simon Josefsson  <simon@josefsson.org>
18475
18476         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
18477         if not provided by the system's netdb.h.  Reported by
18478         ludo@gnu.org (Ludovic Courtès).
18479
18480 2010-02-15  Jim Meyering  <meyering@redhat.com>
18481
18482         init.sh: improve portability and efficiency
18483         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
18484         "dummy" in a for loop.
18485         Use '!', not '^' to select the complement of a character set used
18486         in a "case" statement.
18487         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
18488         Suggestions from Eric Blake.
18489
18490         init.sh: automatically accommodate programs with the .exe suffix
18491         Automatically arrange for an invocation of "prog" to execute the
18492         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
18493         may use the simpler "prog", yet still work when built on a system
18494         that requires specifying the added suffix.
18495         Do this by constructing a function named "prog" that invokes
18496         "prog.exe" for each .exe file in selected directories.
18497         * tests/init.sh (find_exe_basenames_): New function.
18498         (create_exe_shim_functions_): New function.
18499         (path_prepend_): Use it.
18500
18501         maint.mk: mark syntax-check sc_*.m rules as .PHONY
18502         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
18503         "make -t syntax-check" doesn't create a ton of sc_*.m files.
18504
18505 2010-02-14  Jim Meyering  <meyering@redhat.com>
18506
18507         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
18508         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
18509         (sc_prohibit_hash_pjw_without_use): New rule.
18510
18511         maint.mk: allow the default upload destination dir to be overridden
18512         * top/maint.mk (upload_dest_dir_): Define with a default that
18513         preserves the status quo.
18514         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
18515         Reported by Peter Simons.
18516
18517         maint.mk: prohibit inclusion of "hash.h" without_use
18518         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
18519
18520 2010-02-10  Jim Meyering  <meyering@redhat.com>
18521
18522         maint.mk: prohibit inclusion of "ignore-value.h" without_use
18523         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
18524
18525 2010-02-09  Eric Blake  <ebb9@byu.net>
18526         and Bruno Haible  <bruno@clisp.org>
18527
18528         obstack-printf-posix: ensure declaration
18529         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
18530         extracted from gl_FUNC_OBSTACK_PRINTF.
18531         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
18532         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
18533         Likewise.
18534         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
18535         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
18536         0.
18537
18538 2010-02-08  Bruno Haible  <bruno@clisp.org>
18539
18540         gnulib-tool: Fix typo in 2010-02-07 commit.
18541         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
18542         Reported by Eric Blake.
18543
18544 2010-02-07  Bruno Haible  <bruno@clisp.org>
18545
18546         gnulib-tool: Fix up caching patches.
18547         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
18548         option --no-cache. Use associative arrays when supported by the shell.
18549         (sed_comments): New variable.
18550         (modcache): Renamed from do_cache.
18551         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
18552         abbreviate unnecessarily.
18553         (have_associative): New variable.
18554         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
18555         way also for ksh and zsh.
18556         (func_init_sed_convert_to_cache_statements): New function, extracted
18557         from func_cache_lookup_module. Add support for associative arrays.
18558         Don't set the c_MODULE_cached variable here. Ignore all lines before
18559         the first field header. Remove only the final newline, not all trailing
18560         newlines. Support empty fields correctly. Limit the use of 'eval' to
18561         assignments.
18562         (func_get_description, func_get_status, func_get_notice,
18563         func_get_applicability, func_get_filelist, func_get_dependencies,
18564         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
18565         func_get_automake_snippet, func_get_include_directive,
18566         func_get_link_directive, func_get_license, func_get_maintainer):
18567         Update documentation. List the unoptimized code first. Add support for
18568         associative arrays. Limit the use of 'eval' to assignments.
18569         (func_get_applicability): Undo stylistic pessimisations.
18570         (func_get_automake_snippet, func_get_include_directive): Reduce code
18571         duplication.
18572         (func_modules_transitive_closure, func_modules_add_dummy,
18573         func_modules_notice, func_modules_to_filelist, func_add_file,
18574         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
18575         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
18576         func_create_testdir, func_create_megatestdir): Update documentation.
18577
18578 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18579
18580         * gnulib-tool (func_cache_lookup_module): Store the module name
18581         belonging to the cache variable; error out if two different
18582         module names map to the same cache variable name.
18583
18584 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18585
18586         gnulib-tool: Make caching optional.
18587         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
18588         Update matching short versions of --no-changelog.
18589         (func_usage): Update.
18590         (sed_extract_cache_prog): Renamed from ...
18591         (sed_extract_prog): ... this; revert to old extraction script.
18592         (func_get_description, func_get_status)
18593         (func_get_notice, func_get_applicability, func_get_filelist)
18594         (func_get_dependencies, func_get_autoconf_early_snippet)
18595         (func_get_autoconf_snippet, func_get_automake_snippet)
18596         (func_get_include_directive, func_get_link_directive)
18597         (func_get_license, func_get_maintainer): If $do_cache is false,
18598         use old, non-caching extraction scripts.
18599         Suggestion by Bruno Haible.
18600
18601 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18602
18603         gnulib-tool: cache module metainformation.
18604         * gnulib-tool (sed_extract_prog): Match newline before each
18605         header, and rewrite header to a shell variable suffix.
18606         (func_cache_var, func_cache_lookup_module): New functions,
18607         to turn a module name into a cache variable prefix, and to
18608         look up and cache module metainformation.
18609         (func_get_description, func_get_status)
18610         (func_get_notice, func_get_applicability, func_get_filelist)
18611         (func_get_dependencies, func_get_autoconf_early_snippet)
18612         (func_get_autoconf_snippet, func_get_automake_snippet)
18613         (func_get_include_directive, func_get_link_directive)
18614         (func_get_license, func_get_maintainer): Use
18615         func_cache_lookup_module.
18616
18617 2010-02-07  Bruno Haible  <bruno@clisp.org>
18618
18619         fnctl: Fix missing dependency.
18620         * modules/fcntl (Depends-on): Add getdtablesize.
18621         Reported by John W. Eaton <jwe@gnu.org>.
18622
18623 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18624
18625         Argp: fix recognition of short alias options.
18626
18627         * lib/argp-parse.c (convert_options): Fix improper use of
18628         `|' between character values.
18629         * tests/test-argp.c (group1_option): New alias option
18630         --read (-r).
18631         (group1_parser): Special handling for 'r'.
18632         (test15): New test case.
18633         (test_fun): Add test15.
18634         * tests/test-argp-2.sh: Update expected --help and --usage
18635         outputs.
18636
18637 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18638
18639         * tests/test-argp.c: Fix indentation.
18640
18641 2010-02-04  Eric Blake  <ebb9@byu.net>
18642
18643         gettimeofday: expose type of second argument
18644         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18645         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18646         * tests/test-gettimeofday.c: Use it to silence warning.
18647         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18648         the issue.
18649
18650 2010-02-03  Jim Meyering  <meyering@redhat.com>
18651
18652         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18653         * lib/regcomp.c (TYPE_SIGNED): Define.
18654         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18655
18656         regcomp.c: avoid a new -Wshadow warning
18657         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18658
18659 2010-02-01  Jim Meyering  <meyering@redhat.com>
18660
18661         removing useless parentheses in cpp #define directives
18662         For motivation, see commit c0221df4, "define STREQ(a,b)
18663         consistently, removing useless parentheses"
18664         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18665         * lib/mountlist.c (MNT_IGNORE): Likewise.
18666         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18667
18668 2010-02-01  Eric Blake  <ebb9@byu.net>
18669
18670         sys_time: use link-warning
18671         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18672         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18673         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18674         * modules/sys_time (Depends-on): Add warn-on-use.
18675         (Makefile.am): Always build replacement.
18676         (configure.ac): Update substitutions.
18677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18678         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18679         bother with SYS_TIME_H.
18680         * modules/gettimeofday (configure.ac): Declare indicator.
18681         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18682         in use.
18683
18684         closein-tests: silence compiler warning
18685         * tests/test-closein.c (main): Ignore fread result.
18686         * modules/closein-tests (Depends-on): Add ignore-value.
18687
18688         tests: silence warning about system return
18689         * tests/test-areadlink-with-size.c (main): Ignore system result.
18690         * tests/test-areadlink.c (main): Likewise.
18691         * tests/test-areadlinkat-with-size.c (main): Likewise.
18692         * tests/test-areadlinkat.c (main): Likewise.
18693         * tests/test-canonicalize-lgpl.c (main): Likewise.
18694         * tests/test-canonicalize.c (main): Likewise.
18695         * tests/test-chown.c (main): Likewise.
18696         * tests/test-fchownat.c (main): Likewise.
18697         * tests/test-fdutimensat.c (main): Likewise.
18698         * tests/test-fstatat.c (main): Likewise.
18699         * tests/test-futimens.c (main): Likewise.
18700         * tests/test-lchown.c (main): Likewise.
18701         * tests/test-link.c (main): Likewise.
18702         * tests/test-linkat.c (main): Likewise.
18703         * tests/test-lstat.c (main): Likewise.
18704         * tests/test-mkdir.c (main): Likewise.
18705         * tests/test-mkdirat.c (main): Likewise.
18706         * tests/test-mkfifo.c (main): Likewise.
18707         * tests/test-mkfifoat.c (main): Likewise.
18708         * tests/test-mknod.c (main): Likewise.
18709         * tests/test-readlink.c (main): Likewise.
18710         * tests/test-remove.c (main): Likewise.
18711         * tests/test-rename.c (main): Likewise.
18712         * tests/test-renameat.c (main): Likewise.
18713         * tests/test-rmdir.c (main): Likewise.
18714         * tests/test-symlink.c (main): Likewise.
18715         * tests/test-symlinkat.c (main): Likewise.
18716         * tests/test-unlink.c (main): Likewise.
18717         * tests/test-unlinkat.c (main): Likewise.
18718         * tests/test-utimens.c (main): Likewise.
18719         * tests/test-utimensat.c (main): Likewise.
18720         * modules/areadlink-tests (Depends-on): Add ignore-value.
18721         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18722         * modules/areadlinkat-tests (Depends-on): Likewise.
18723         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18724         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18725         * modules/canonicalize-tests (Depends-on): Likewise.
18726         * modules/chown-tests (Depends-on): Likewise.
18727         * modules/fdutimensat-tests (Depends-on): Likewise.
18728         * modules/futimens-tests (Depends-on): Likewise.
18729         * modules/lchown-tests (Depends-on): Likewise.
18730         * modules/link-tests (Depends-on): Likewise.
18731         * modules/linkat-tests (Depends-on): Likewise.
18732         * modules/lstat-tests (Depends-on): Likewise.
18733         * modules/mkdir-tests (Depends-on): Likewise.
18734         * modules/mkfifo-tests (Depends-on): Likewise.
18735         * modules/mkfifoat-tests (Depends-on): Likewise.
18736         * modules/mknod-tests (Depends-on): Likewise.
18737         * modules/openat-tests (Depends-on): Likewise.
18738         * modules/readlink-tests (Depends-on): Likewise.
18739         * modules/remove-tests (Depends-on): Likewise.
18740         * modules/rename-tests (Depends-on): Likewise.
18741         * modules/renameat-tests (Depends-on): Likewise.
18742         * modules/rmdir-tests (Depends-on): Likewise.
18743         * modules/symlink-tests (Depends-on): Likewise.
18744         * modules/symlinkat-tests (Depends-on): Likewise.
18745         * modules/unlink-tests (Depends-on): Likewise.
18746         * modules/utimens-tests (Depends-on): Likewise.
18747         * modules/utimensat-tests (Depends-on): Likewise.
18748
18749 2010-01-31  Bruno Haible  <bruno@clisp.org>
18750
18751         Perform the same test for many <math.h> functions.
18752         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18753         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18754         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18755         of gl_MATHFUNC.
18756         * modules/acos (configure.ac): Likewise.
18757         * modules/asin (configure.ac): Likewise.
18758         * modules/atan (configure.ac): Likewise.
18759         * modules/atan2 (configure.ac): Likewise.
18760         * modules/cbrt (configure.ac): Likewise.
18761         * modules/copysign (configure.ac): Likewise.
18762         * modules/cos (configure.ac): Likewise.
18763         * modules/cosh (configure.ac): Likewise.
18764         * modules/erf (configure.ac): Likewise.
18765         * modules/erfc (configure.ac): Likewise.
18766         * modules/exp (configure.ac): Likewise.
18767         * modules/fmod (configure.ac): Likewise.
18768         * modules/hypot (configure.ac): Likewise.
18769         * modules/j0 (configure.ac): Likewise.
18770         * modules/j1 (configure.ac): Likewise.
18771         * modules/jn (configure.ac): Likewise.
18772         * modules/lgamma (configure.ac): Likewise.
18773         * modules/log (configure.ac): Likewise.
18774         * modules/log10 (configure.ac): Likewise.
18775         * modules/log1p (configure.ac): Likewise.
18776         * modules/pow (configure.ac): Likewise.
18777         * modules/remainder (configure.ac): Likewise.
18778         * modules/sin (configure.ac): Likewise.
18779         * modules/sinh (configure.ac): Likewise.
18780         * modules/tan (configure.ac): Likewise.
18781         * modules/tanh (configure.ac): Likewise.
18782         * modules/y0 (configure.ac): Likewise.
18783         * modules/y1 (configure.ac): Likewise.
18784         * modules/yn (configure.ac): Likewise.
18785         Suggested by Paolo Bonzini.
18786
18787 2010-01-31  Bruno Haible  <bruno@clisp.org>
18788
18789         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18790
18791 2010-01-31  Bruno Haible  <bruno@clisp.org>
18792
18793         Work around getdelim() bug on FreeBSD 8.0.
18794         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18795         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18796         not work.
18797         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18798         is 1.
18799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18800         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18801         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18802         a non-zero size.
18803         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18804
18805 2010-01-31  Bruno Haible  <bruno@clisp.org>
18806
18807         Work around getline() bug on FreeBSD 8.0.
18808         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18809         and a non-zero size.
18810         * tests/test-getline.c (main): Likewise.
18811         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18812         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18813
18814 2010-01-28  Eric Blake  <ebb9@byu.net>
18815
18816         regex: fix build failure
18817         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18818         platforms.
18819
18820 2010-01-28  Jim Meyering  <meyering@redhat.com>
18821
18822         regex: do not ignore memory allocation failure
18823         * lib/regex_internal.c (create_cd_newstate): Detect
18824         re_node_set_init_copy failure.   Extracted from glibc commit
18825         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18826
18827         regex: sync more white-space changes from libc
18828         * lib/regex_internal.c: White-space only changes.
18829         * lib/regexec.c: Likewise.
18830
18831         regex: add many uses of __attribute_warn_unused_result__
18832         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18833         * lib/regexec.c: Likewise.
18834         Extracted from a messy glibc commit.
18835
18836         regcomp.c: spelling and merge-artifact from glibc
18837         * lib/regcomp.c: Merge remainder of glibc's
18838         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18839
18840         regcomp.c: sync white-space changes from glibc
18841         * lib/regcomp.c: Merge to accommodate white space
18842         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18843
18844         regcomp.c: do not ignore internal return values
18845         * lib/regcomp.c: Do not ignore internal return values.
18846         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18847         but without its white-space changes and spelling fixes.
18848
18849         regex_internal.h: define __attribute_warn_unused_result__
18850         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18851
18852         maint: add a syntax-check rule to check for vulnerable Makefile.in
18853         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18854
18855 2010-01-27  Jim Meyering  <meyering@redhat.com>
18856
18857         ncftpput-ftp: clean up spaces
18858         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18859         Remove trailing blanks.
18860
18861 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18862
18863         * build-aux/git-version-gen: Fix copyright statement.
18864         * build-aux/gnupload: Likewise.
18865         * tests/test-arcfour.c: Likewise.
18866         * tests/test-arctwo.c: Likewise.
18867         * tests/test-count-one-bits.c: Likewise.
18868         * tests/test-crc.c: Likewise.
18869         * tests/test-des.c: Likewise.
18870         * tests/test-gc-arcfour.c: Likewise.
18871         * tests/test-gc-arctwo.c: Likewise.
18872         * tests/test-gc-des.c: Likewise.
18873         * tests/test-gc-hmac-md5.c: Likewise.
18874         * tests/test-gc-hmac-sha1.c: Likewise.
18875         * tests/test-gc-md2.c: Likewise.
18876         * tests/test-gc-md4.c: Likewise.
18877         * tests/test-gc-md5.c: Likewise.
18878         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18879         * tests/test-gc-rijndael.c: Likewise.
18880         * tests/test-gc-sha1.c: Likewise.
18881         * tests/test-gc.c: Likewise.
18882         * tests/test-gethostname.c: Likewise.
18883         * tests/test-gettimeofday.c: Likewise.
18884         * tests/test-hash.c: Likewise.
18885         * tests/test-hmac-md5.c: Likewise.
18886         * tests/test-hmac-sha1.c: Likewise.
18887         * tests/test-md2.c: Likewise.
18888         * tests/test-md4.c: Likewise.
18889         * tests/test-md5.c: Likewise.
18890         * tests/test-memchr.c: Likewise.
18891         * tests/test-memchr2.c: Likewise.
18892         * tests/test-memcmp.c: Likewise.
18893         * tests/test-memmem.c: Likewise.
18894         * tests/test-memrchr.c: Likewise.
18895         * tests/test-rawmemchr.c: Likewise.
18896         * tests/test-read-file.c: Likewise.
18897         * tests/test-rijndael.c: Likewise.
18898         * tests/test-sockets.c: Likewise.
18899         * tests/test-strchrnul.c: Likewise.
18900         * tests/test-strstr.c: Likewise.
18901         * tests/test-strtod.c: Likewise.
18902         * build-aux/ncftpput-ftp: Likewise.
18903
18904 2010-01-26  Eric Blake  <ebb9@byu.net>
18905
18906         ignore-value: update recommended header name
18907         * modules/ignore-value (Include): Only use <> for headers that
18908         exist in glibc.
18909
18910 2010-01-26  Jim Meyering  <meyering@redhat.com>
18911
18912         test-userspec.c: avoid compiler warnings
18913         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18914         and "initialization discards qualifiers..." warnings.
18915         Put the first "uid" in its own scope, and make char* members "const".
18916
18917 2010-01-25  Bruno Haible  <bruno@clisp.org>
18918
18919         gnulib-tool: Make warning diagnostics consistent.
18920         * gnulib-tool (func_warning): New function.
18921         Use it everywhere where gnulib-tool produces output to stderr and it is
18922         not a fatal error.
18923
18924 2010-01-25  Bruno Haible  <bruno@clisp.org>
18925
18926         Fix test dependencies.
18927         * modules/xstrtol-tests (Depends-on): Add inttypes.
18928         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18929
18930 2010-01-25 Pádraig Brady <P@draigBrady.com>
18931
18932         syntax-check: detect incorrect boolean macro values in config.h
18933         * modules/maintainer-makefile (configure.ac): Parameterize the location
18934         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18935         The logic is from Eric Blake and the location indicated by Jim Meyering.
18936         Note the more natural CONFIG_HEADER name is prohibited by automake
18937         for backwards compatibility reasons.
18938         * top/maint.mk (sc_Wundef_boolean): New rule.
18939
18940 2010-01-25  Jim Meyering  <meyering@redhat.com>
18941
18942         bootstrap: detect MacOS 10.6's shasum, too
18943         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18944         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18945
18946 2010-01-23  Jim Meyering  <meyering@redhat.com>
18947
18948         xstrtoll: new module
18949         * modules/xstrtoll: New file.
18950         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18951         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18952         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18953         ./configure fails if you use this module and lack "long long".
18954         * modules/xstrtoll-tests: New module.
18955         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18956         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18957         new init.sh-based test framework.
18958
18959 2010-01-24  Bruno Haible  <bruno@clisp.org>
18960
18961         Tests for module 'yn'.
18962         * modules/yn-tests: New file.
18963         * tests/test-yn.c: New file.
18964
18965         Tests for module 'y1'.
18966         * modules/y1-tests: New file.
18967         * tests/test-y1.c: New file.
18968
18969         Tests for module 'y0'.
18970         * modules/y0-tests: New file.
18971         * tests/test-y0.c: New file.
18972
18973         Tests for module 'tanh'.
18974         * modules/tanh-tests: New file.
18975         * tests/test-tanh.c: New file.
18976
18977         Tests for module 'tan'.
18978         * modules/tan-tests: New file.
18979         * tests/test-tan.c: New file.
18980
18981         Tests for module 'sqrt'.
18982         * modules/sqrt-tests: New file.
18983         * tests/test-sqrt.c: New file.
18984
18985         Tests for module 'sinh'.
18986         * modules/sinh-tests: New file.
18987         * tests/test-sinh.c: New file.
18988
18989         Tests for module 'sin'.
18990         * modules/sin-tests: New file.
18991         * tests/test-sin.c: New file.
18992
18993         Tests for module 'rint'.
18994         * modules/rint-tests: New file.
18995         * tests/test-rint.c: New file.
18996
18997         Tests for module 'remainder'.
18998         * modules/remainder-tests: New file.
18999         * tests/test-remainder.c: New file.
19000
19001         Tests for module 'pow'.
19002         * modules/pow-tests: New file.
19003         * tests/test-pow.c: New file.
19004
19005         Tests for module 'nextafter'.
19006         * modules/nextafter-tests: New file.
19007         * tests/test-nextafter.c: New file.
19008
19009         Tests for module 'modf'.
19010         * modules/modf-tests: New file.
19011         * tests/test-modf.c: New file.
19012
19013         Tests for module 'logb'.
19014         * modules/logb-tests: New file.
19015         * tests/test-logb.c: New file.
19016
19017         Tests for module 'log1p'.
19018         * modules/log1p-tests: New file.
19019         * tests/test-log1p.c: New file.
19020
19021         Tests for module 'log10'.
19022         * modules/log10-tests: New file.
19023         * tests/test-log10.c: New file.
19024
19025         Tests for module 'log'.
19026         * modules/log-tests: New file.
19027         * tests/test-log.c: New file.
19028
19029         Tests for module 'lgamma'.
19030         * modules/lgamma-tests: New file.
19031         * tests/test-lgamma.c: New file.
19032
19033         Tests for module 'ldexp'.
19034         * modules/ldexp-tests: New file.
19035         * tests/test-ldexp.c: New file.
19036
19037         Tests for module 'jn'.
19038         * modules/jn-tests: New file.
19039         * tests/test-jn.c: New file.
19040
19041         Tests for module 'j1'.
19042         * modules/j1-tests: New file.
19043         * tests/test-j1.c: New file.
19044
19045         Tests for module 'j0'.
19046         * modules/j0-tests: New file.
19047         * tests/test-j0.c: New file.
19048
19049         Tests for module 'hypot'.
19050         * modules/hypot-tests: New file.
19051         * tests/test-hypot.c: New file.
19052
19053         Tests for module 'fmod'.
19054         * modules/fmod-tests: New file.
19055         * tests/test-fmod.c: New file.
19056
19057         Tests for module 'fabs'.
19058         * modules/fabs-tests: New file.
19059         * tests/test-fabs.c: New file.
19060
19061         Tests for module 'exp'.
19062         * modules/exp-tests: New file.
19063         * tests/test-exp.c: New file.
19064
19065         Tests for module 'erfc'.
19066         * modules/erfc-tests: New file.
19067         * tests/test-erfc.c: New file.
19068
19069         Tests for module 'erf'.
19070         * modules/erf-tests: New file.
19071         * tests/test-erf.c: New file.
19072
19073         Tests for module 'cosh'.
19074         * modules/cosh-tests: New file.
19075         * tests/test-cosh.c: New file.
19076
19077         Tests for module 'cos'.
19078         * modules/cos-tests: New file.
19079         * tests/test-cos.c: New file.
19080
19081         Tests for module 'copysign'.
19082         * modules/copysign-tests: New file.
19083         * tests/test-copysign.c: New file.
19084
19085         Tests for module 'cbrt'.
19086         * modules/cbrt-tests: New file.
19087         * tests/test-cbrt.c: New file.
19088
19089         Tests for module 'atan2'.
19090         * modules/atan2-tests: New file.
19091         * tests/test-atan2.c: New file.
19092
19093         Tests for module 'atan'.
19094         * modules/atan-tests: New file.
19095         * tests/test-atan.c: New file.
19096
19097         Tests for module 'asin'.
19098         * modules/asin-tests: New file.
19099         * tests/test-asin.c: New file.
19100
19101         Tests for module 'acos'.
19102         * modules/acos-tests: New file.
19103         * tests/test-acos.c: New file.
19104
19105 2010-01-24  Bruno Haible  <bruno@clisp.org>
19106
19107         Fix tests for common <math.h> functions.
19108         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
19109         code snippet that references the function pointer, rather than merely
19110         calling the function. Substitute the FUNC_LIBM variable.
19111         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
19112         * modules/acos (configure.ac): Likewise.
19113         * modules/asin (configure.ac): Likewise.
19114         * modules/atan (configure.ac): Likewise.
19115         * modules/atan2 (configure.ac): Likewise.
19116         * modules/cbrt (configure.ac): Likewise.
19117         * modules/copysign (configure.ac): Likewise.
19118         * modules/cos (configure.ac): Likewise.
19119         * modules/cosh (configure.ac): Likewise.
19120         * modules/erf (configure.ac): Likewise.
19121         * modules/erfc (configure.ac): Likewise.
19122         * modules/exp (configure.ac): Likewise.
19123         * modules/fabs (configure.ac): Likewise.
19124         * modules/fmod (configure.ac): Likewise.
19125         * modules/hypot (configure.ac): Likewise.
19126         * modules/j0 (configure.ac): Likewise.
19127         * modules/j1 (configure.ac): Likewise.
19128         * modules/jn (configure.ac): Likewise.
19129         * modules/ldexp (configure.ac): Likewise.
19130         * modules/lgamma (configure.ac): Likewise.
19131         * modules/log (configure.ac): Likewise.
19132         * modules/log10 (configure.ac): Likewise.
19133         * modules/log1p (configure.ac): Likewise.
19134         * modules/logb (configure.ac): Likewise.
19135         * modules/modf (configure.ac): Likewise.
19136         * modules/nextafter (configure.ac): Likewise.
19137         * modules/pow (configure.ac): Likewise.
19138         * modules/remainder (configure.ac): Likewise.
19139         * modules/rint (configure.ac): Likewise.
19140         * modules/sin (configure.ac): Likewise.
19141         * modules/sinh (configure.ac): Likewise.
19142         * modules/tan (configure.ac): Likewise.
19143         * modules/tanh (configure.ac): Likewise.
19144         * modules/y0 (configure.ac): Likewise.
19145         * modules/y1 (configure.ac): Likewise.
19146         * modules/yn (configure.ac): Likewise.
19147
19148 2010-01-24  Bruno Haible  <bruno@clisp.org>
19149
19150         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
19151         * tests/test-acosl.c (x): New variable.
19152         (main): Store argument in x and fetch it from x.
19153         * tests/test-asinl.c (x): New variable.
19154         (main): Store argument in x and fetch it from x.
19155         * tests/test-atanl.c (x): New variable.
19156         (main): Store argument in x and fetch it from x.
19157         * tests/test-cosl.c (x): New variable.
19158         (main): Store argument in x and fetch it from x.
19159         * tests/test-expl.c (x): New variable.
19160         (main): Store argument in x and fetch it from x.
19161         * tests/test-logl.c (x): New variable.
19162         (main): Store argument in x and fetch it from x.
19163         * tests/test-sinl.c (x): New variable.
19164         (main): Store argument in x and fetch it from x.
19165         * tests/test-sqrtl.c (x): New variable.
19166         (main): Store argument in x and fetch it from x.
19167         * tests/test-tanl.c (x): New variable.
19168         (main): Store argument in x and fetch it from x.
19169
19170 2010-01-24  Bruno Haible  <bruno@clisp.org>
19171
19172         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
19173         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
19174         assignments to the initial TESTS_ENVIRONMENT.
19175         * doc/gnulib.texi (Unit test modules): Document it.
19176         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
19177         TESTS_ENVIRONMENT.
19178         * modules/btowc-tests (Makefile.am): Likewise.
19179         * modules/c-stack-tests (Makefile.am): Likewise.
19180         * modules/c-strcase-tests (Makefile.am): Likewise.
19181         * modules/copy-file-tests (Makefile.am): Likewise.
19182         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
19183         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
19184         * modules/mbrtowc-tests (Makefile.am): Likewise.
19185         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19186         * modules/mbscasestr-tests (Makefile.am): Likewise.
19187         * modules/mbschr-tests (Makefile.am): Likewise.
19188         * modules/mbscspn-tests (Makefile.am): Likewise.
19189         * modules/mbsinit-tests (Makefile.am): Likewise.
19190         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19191         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
19192         * modules/mbspbrk-tests (Makefile.am): Likewise.
19193         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19194         * modules/mbsrchr-tests (Makefile.am): Likewise.
19195         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
19196         * modules/mbsspn-tests (Makefile.am): Likewise.
19197         * modules/mbsstr-tests (Makefile.am): Likewise.
19198         * modules/nl_langinfo-tests (Makefile.am): Likewise.
19199         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
19200         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19201         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19202         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19203         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19204         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
19205         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19206         * modules/wcrtomb-tests (Makefile.am): Likewise.
19207         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
19208         * modules/wcsrtombs-tests (Makefile.am): Likewise.
19209         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
19210         assignments from TESTS_ENVIRONMENT.
19211         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
19212         augmentation.
19213         * modules/argp-version-etc-tests (Makefile.am): Likewise.
19214         * modules/atexit-tests (Makefile.am): Likewise.
19215         * modules/binary-io-tests (Makefile.am): Likewise.
19216         * modules/closein-tests (Makefile.am): Likewise.
19217         * modules/dprintf-posix-tests (Makefile.am): Likewise.
19218         * modules/exclude-tests (Makefile.am): Likewise.
19219         * modules/fflush-tests (Makefile.am): Likewise.
19220         * modules/fpending-tests (Makefile.am): Likewise.
19221         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19222         * modules/freadahead-tests (Makefile.am): Likewise.
19223         * modules/freadptr-tests (Makefile.am): Likewise.
19224         * modules/freadseek-tests (Makefile.am): Likewise.
19225         * modules/fseek-tests (Makefile.am): Likewise.
19226         * modules/fseeko-tests (Makefile.am): Likewise.
19227         * modules/ftell-tests (Makefile.am): Likewise.
19228         * modules/ftello-tests (Makefile.am): Likewise.
19229         * modules/idpriv-drop-tests (Makefile.am): Likewise.
19230         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
19231         * modules/lseek-tests (Makefile.am): Likewise.
19232         * modules/parse-duration-tests (Makefile.am): Likewise.
19233         * modules/perror-tests (Makefile.am): Likewise.
19234         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
19235         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
19236         * modules/pipe-tests (Makefile.am): Likewise.
19237         * modules/pread-tests (Makefile.am): Likewise.
19238         * modules/printf-posix-tests (Makefile.am): Likewise.
19239         * modules/select-tests (Makefile.am): Likewise.
19240         * modules/sigpipe-tests (Makefile.am): Likewise.
19241         * modules/tsearch-tests (Makefile.am): Likewise.
19242         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
19243         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
19244         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19245         * modules/uniwidth/width-tests (Makefile.am): Likewise.
19246         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
19247         * modules/version-etc-tests (Makefile.am): Likewise.
19248         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19249         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19250         * modules/xalloc-die-tests (Makefile.am): Likewise.
19251         * modules/xprintf-posix-tests (Makefile.am): Likewise.
19252         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19253         * modules/xstrtol-tests (Makefile.am): Likewise.
19254         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19255         * modules/yesno-tests (Makefile.am): Likewise.
19256         Suggested by Jim Meyering.
19257
19258 2010-01-24  Bruno Haible  <bruno@clisp.org>
19259
19260         More documentation.
19261         * doc/gnulib.texi (Writing modules): New chapter.
19262         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
19263         the new chapter.
19264
19265 2010-01-24  Jim Meyering  <meyering@redhat.com>
19266
19267         maint.mk: do not prepend "./" after filtering
19268         * top/maint.mk (_prepend_srcdir_prefix): New variable
19269         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
19270         "./" when $(srcdir) is ".".
19271
19272         define STREQ(a,b) consistently, removing useless parentheses
19273         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
19274         since the only risk is that "a" or "b" contains an unparenthesized
19275         comma, but if either did that, STREQ would have 3 or more arguments.
19276         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
19277         * lib/fts.c (STREQ): Remove unnecessary parentheses.
19278         * lib/hash-triple.c (STREQ): Likewise.
19279         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
19280         * lib/getugroups.c (STREQ): Likewise.
19281
19282 2010-01-23  Jim Meyering  <meyering@redhat.com>
19283
19284         maint.mk: fix syntax-check in a non-srcdir build directory
19285         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
19286         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
19287
19288 2010-01-22  Jim Meyering  <meyering@redhat.com>
19289
19290         userspec: add unit tests
19291         * tests/test-userspec.c: New file.
19292         * modules/userspec-tests: Likewise.
19293
19294 2010-01-21  Jim Meyering  <meyering@redhat.com>
19295
19296         maint.mk: handle source file names containing "." robustly
19297         * top/maint.mk (_dot_escaped_srcdir): Define.
19298         (VC_LIST): Use it in LHS of sed substitution.
19299
19300 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
19301
19302         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
19303         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
19304         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
19305         from a non-srcdir build.
19306
19307 2010-01-20  Eric Blake  <ebb9@byu.net>
19308
19309         warn-on-use: use instead of link-warning
19310         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
19311         * modules/unistd (Depends-on, Makefile.am): Likewise.
19312         * modules/arpa_inet (Depends-on): Replace link-warning with
19313         warn-on-use.
19314         (Makefile.am): Update rules accordingly.
19315         * modules/ctype (Depends-on, Makefile.am): Likewise.
19316         * modules/dirent (Depends-on, Makefile.am): Likewise.
19317         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
19318         * modules/inttypes (Depends-on, Makefile.am): Likewise.
19319         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19320         * modules/locale (Depends-on, Makefile.am): Likewise.
19321         * modules/math (Depends-on, Makefile.am): Likewise.
19322         * modules/search (Depends-on, Makefile.am): Likewise.
19323         * modules/signal (Depends-on, Makefile.am): Likewise.
19324         * modules/spawn (Depends-on, Makefile.am): Likewise.
19325         * modules/stdlib (Depends-on, Makefile.am): Likewise.
19326         * modules/string (Depends-on, Makefile.am): Likewise.
19327         * modules/strings (Depends-on, Makefile.am): Likewise.
19328         * modules/sys_file (Depends-on, Makefile.am): Likewise.
19329         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
19330         * modules/sys_select (Depends-on, Makefile.am): Likewise.
19331         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
19332         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
19333         * modules/sys_times (Depends-on, Makefile.am): Likewise.
19334         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19335         * modules/wchar (Depends-on, Makefile.am): Likewise.
19336         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
19337         should be poisoned.
19338         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
19339         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
19340         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
19341         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19342         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19343         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19344         * m4/math_h.m4 (gl_MATH_H): Likewise.
19345         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19346         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19347         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19348         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19349         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19350         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19351         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
19352         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
19353         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19354         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19355         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19356         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19357         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19358         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19359         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19360         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19361         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
19362         GL_LINK_WARNING.
19363         * lib/ctype.in.h: Likewise.
19364         * lib/dirent.in.h: Likewise.
19365         * lib/fcntl.in.h: Likewise.
19366         * lib/inttypes.in.h: Likewise.
19367         * lib/langinfo.in.h: Likewise.
19368         * lib/locale.in.h: Likewise.
19369         * lib/math.in.h: Likewise.
19370         * lib/search.in.h: Likewise.
19371         * lib/signal.in.h: Likewise.
19372         * lib/spawn.in.h: Likewise.
19373         * lib/stdio.in.h: Likewise.
19374         * lib/stdlib.in.h: Likewise.
19375         * lib/string.in.h: Likewise.
19376         * lib/strings.in.h: Likewise.
19377         * lib/sys_file.in.h: Likewise.
19378         * lib/sys_ioctl.in.h: Likewise.
19379         * lib/sys_select.in.h: Likewise.
19380         * lib/sys_socket.in.h: Likewise.
19381         * lib/sys_stat.in.h: Likewise.
19382         * lib/sys_times.in.h: Likewise.
19383         * lib/sys_utsname.in.h: Likewise.
19384         * lib/unistd.in.h: Likewise.
19385         * lib/wchar.in.h: Likewise.
19386
19387 2010-01-20  Bruno Haible  <bruno@clisp.org>
19388
19389         Avoid duplicate -lm.
19390         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
19391         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
19392         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
19393         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
19394         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
19395         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
19396         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
19397         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
19398         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
19399         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
19400         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
19401         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19402         Reported by Paolo Bonzini.
19403
19404 2010-01-19  Bruno Haible  <bruno@clisp.org>
19405
19406         langinfo, nl_langinfo: Relicense under LGPLv2+.
19407         * modules/langinfo (License): Change to LGPLv2+.
19408         * modules/nl_langinfo (License): Likewise.
19409         Patch by David Lutterkort <lutter@redhat.com>.
19410
19411 2010-01-19  Bruno Haible  <bruno@clisp.org>
19412
19413         Avoid compilation error with cc on OSF/1 5.1.
19414         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
19415         statement, not before.
19416         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19417
19418 2010-01-18  Bruno Haible  <bruno@clisp.org>
19419
19420         Avoid a link error due to the __printf__ symbol.
19421         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
19422         and 2.6.x.
19423         (__format__, __printf__): Remove definitions.
19424         * lib/argp-fmtstream.h: Likewise.
19425         * lib/argp.h: Likewise.
19426         * lib/error.h: Likewise.
19427         * lib/vasnprintf.h: Likewise.
19428         * lib/xprintf.h: Likewise.
19429         * lib/xvasprintf.h: Likewise.
19430         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19431
19432 2010-01-18  Bruno Haible  <bruno@clisp.org>
19433
19434         Tests for module 'tanl'.
19435         * modules/tanl-tests: New file.
19436         * tests/test-tanl.c: New file.
19437
19438         Tests for module 'sqrtl'.
19439         * modules/sqrtl-tests: New file.
19440         * tests/test-sqrtl.c: New file.
19441
19442         Tests for module 'sinl'.
19443         * modules/sinl-tests: New file.
19444         * tests/test-sinl.c: New file.
19445
19446         Tests for module 'logl'.
19447         * modules/logl-tests: New file.
19448         * tests/test-logl.c: New file.
19449
19450         Tests for module 'expl'.
19451         * modules/expl-tests: New file.
19452         * tests/test-expl.c: New file.
19453
19454         Tests for module 'cosl'.
19455         * modules/cosl-tests: New file.
19456         * tests/test-cosl.c: New file.
19457
19458         Tests for module 'atanl'.
19459         * modules/atanl-tests: New file.
19460         * tests/test-atanl.c: New file.
19461
19462         Tests for module 'asinl'.
19463         * modules/asinl-tests: New file.
19464         * tests/test-asinl.c: New file.
19465
19466         Tests for module 'acosl'.
19467         * modules/acosl-tests: New file.
19468         * tests/test-acosl.c: New file.
19469
19470         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19471         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19472         tanl): Use the standard gnulib idiom.
19473         * lib/cosl.c: Don't include trigl.c and sincosl.c.
19474         * lib/sinl.c: Likewise.
19475         * lib/tanl.c: Don't include trigl.c.
19476         (kernel_tanl): Make static.
19477         * lib/sincosl.c: Include trigl.h first.
19478         * lib/trigl.c: Likewise.
19479         * m4/acosl.m4: New file.
19480         * m4/asinl.m4: New file.
19481         * m4/atanl.m4: New file.
19482         * m4/cosl.m4: New file.
19483         * m4/expl.m4: New file.
19484         * m4/logl.m4: New file.
19485         * m4/sinl.m4: New file.
19486         * m4/sqrtl.m4: New file.
19487         * m4/tanl.m4: New file.
19488         * m4/mathl.m4: Remove file.
19489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
19490         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19491         Don't initialize GNULIB_MATHL.
19492         * modules/acosl: New file.
19493         * modules/asinl: New file.
19494         * modules/atanl: New file.
19495         * modules/cosl: New file.
19496         * modules/expl: New file.
19497         * modules/logl: New file.
19498         * modules/sinl: New file.
19499         * modules/sqrtl: New file.
19500         * modules/tanl: New file.
19501         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
19502         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
19503         substitute GNULIB_MATHL.
19504         * modules/mathl: Rewritten.
19505         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
19506         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
19507         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
19508         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
19509         * doc/posix-functions/expl.texi: Mention the 'expl' module.
19510         * doc/posix-functions/logl.texi: Mention the 'logl' module.
19511         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
19512         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
19513         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
19514
19515 2010-01-18  Bruno Haible  <bruno@clisp.org>
19516
19517         sqrt: Make gl_FUNC_SQRT requirable.
19518         * m4/sqrt.m4: New file.
19519         * modules/sqrt (Files): Add it.
19520         (configure.ac): Invoke gl_FUNC_SQRT.
19521
19522 2010-01-18  Bruno Haible  <bruno@clisp.org>
19523
19524         New modules for common <math.h> functions.
19525         * m4/mathfunc.m4: New file.
19526         * modules/acos: New file.
19527         * modules/asin: New file.
19528         * modules/atan: New file.
19529         * modules/atan2: New file.
19530         * modules/cbrt: New file.
19531         * modules/copysign: New file.
19532         * modules/cos: New file.
19533         * modules/cosh: New file.
19534         * modules/erf: New file.
19535         * modules/erfc: New file.
19536         * modules/exp: New file.
19537         * modules/fabs: New file.
19538         * modules/fmod: New file.
19539         * modules/hypot: New file.
19540         * modules/j0: New file.
19541         * modules/j1: New file.
19542         * modules/jn: New file.
19543         * modules/ldexp: New file.
19544         * modules/lgamma: New file.
19545         * modules/log: New file.
19546         * modules/log10: New file.
19547         * modules/log1p: New file.
19548         * modules/logb: New file.
19549         * modules/modf: New file.
19550         * modules/nextafter: New file.
19551         * modules/pow: New file.
19552         * modules/remainder: New file.
19553         * modules/rint: New file.
19554         * modules/sin: New file.
19555         * modules/sinh: New file.
19556         * modules/sqrt: New file.
19557         * modules/tan: New file.
19558         * modules/tanh: New file.
19559         * modules/y0: New file.
19560         * modules/y1: New file.
19561         * modules/yn: New file.
19562         * doc/posix-functions/acos.texi: Mention the 'acos' module.
19563         * doc/posix-functions/asin.texi: Mention the 'asin' module.
19564         * doc/posix-functions/atan.texi: Mention the 'atan' module.
19565         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
19566         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
19567         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
19568         * doc/posix-functions/cos.texi: Mention the 'cos' module.
19569         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
19570         * doc/posix-functions/erf.texi: Mention the 'erf' module.
19571         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
19572         * doc/posix-functions/exp.texi: Mention the 'exp' module.
19573         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
19574         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
19575         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
19576         * doc/posix-functions/j0.texi: Mention the 'j0' module.
19577         * doc/posix-functions/j1.texi: Mention the 'j1' module.
19578         * doc/posix-functions/jn.texi: Mention the 'jn' module.
19579         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
19580         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
19581         * doc/posix-functions/log.texi: Mention the 'log' module.
19582         * doc/posix-functions/log10.texi: Mention the 'log10' module.
19583         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
19584         * doc/posix-functions/logb.texi: Mention the 'logb' module.
19585         * doc/posix-functions/modf.texi: Mention the 'modf' module.
19586         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
19587         * doc/posix-functions/pow.texi: Mention the 'pow' module.
19588         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
19589         * doc/posix-functions/rint.texi: Mention the 'rint' module.
19590         * doc/posix-functions/sin.texi: Mention the 'sin' module.
19591         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
19592         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
19593         * doc/posix-functions/tan.texi: Mention the 'tan' module.
19594         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
19595         * doc/posix-functions/y0.texi: Mention the 'y0' module.
19596         * doc/posix-functions/y1.texi: Mention the 'y1' module.
19597         * doc/posix-functions/yn.texi: Mention the 'yn' module.
19598
19599 2010-01-18  Jim Meyering  <meyering@redhat.com>
19600
19601         ignore-value: relax license to LGPLv2+
19602         * modules/ignore-value (License): Relax to LGPLv2+.
19603
19604         getdate: don't leak when TZ contains two or more '"'s
19605         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
19606         double quote in TZ after the first one.
19607
19608         readtokens: do not leak internal token_lengths buffer
19609         * lib/readtokens.c (readtokens): Free the local, lengths,
19610         when the supplied "token_lengths" parameter is NULL.
19611
19612 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19613
19614         Fix a couple of missing LIBTHREAD link failures on AIX.
19615         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
19616         $(LIBTHREAD).
19617         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
19618
19619         Link test-poll against INET_PTON_LIB.
19620         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
19621         for inet_pton on Solaris 10.
19622
19623 2010-01-17  Bruno Haible  <bruno@clisp.org>
19624
19625         unistdio/*-sprintf: Fix typo in module description.
19626         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
19627         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
19628         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
19629         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
19630         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
19631         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
19632         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
19633         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19634
19635 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19636
19637         gnulib-tool: fix filelist for AIX, HP-UX ksh.
19638         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
19639         variables in shell case patterns, for AIX and HP-UX ksh.
19640
19641         Split large sed scripts, for HP-UX sed.
19642         * modules/stdio: Split sed scripts around 50 sed commands,
19643         to avoid HP-UX limit of 99 commands, in the near future.
19644         * modules/string: Likewise.
19645         * modules/unistd: Likewise.
19646
19647         gnulib-tool: avoid writing in the current directory.
19648         * gnulib-tool (func_emit_lib_Makefile_am)
19649         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19650         not in the current directory, so concurrent gnulib-tool
19651         instances do not interfere.
19652
19653 2010-01-16  Jim Meyering  <meyering@redhat.com>
19654
19655         doc: update users.txt
19656         * users.txt: Add grep.
19657         (diffutils, gzip): Update URLs.
19658
19659 2010-01-12  Bruno Haible  <bruno@clisp.org>
19660
19661         posix_spawn: Avoid test failure on Cygwin.
19662         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19663         characters.
19664         Reported by Simon Josefsson.
19665
19666 2010-01-12  Bruno Haible  <bruno@clisp.org>
19667
19668         * tests/test-cond.c (main): When skipping the test, show the reason.
19669
19670 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19671
19672         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19673
19674 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19675
19676         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19677         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19678
19679 2010-01-12  Eric Blake  <ebb9@byu.net>
19680
19681         build: guarantee AS_VAR_IF
19682         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19683         (gl_AS_VAR_IF): Move...
19684         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19685         Reported by Simon Josefsson.
19686
19687 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19688
19689         * lib/stdio.in.h: Fix typo.
19690
19691 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19692
19693         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19694         libgpg-error.
19695
19696 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19697
19698         * tests/test-xalloc-die.sh: Use $EXEEXT.
19699
19700 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19701             Bruno Haible  <bruno@clisp.org>
19702
19703         getlogin, getlogin_r: Avoid test failure.
19704         * tests/test-getlogin.c: Include <stdio.h>.
19705         (main): Skip the test when the function fails because stdin is not a
19706         tty.
19707         * tests/test-getlogin_r.c: Include <stdio.h>.
19708         (main): Skip the test when the function fails because stdin is not a
19709         tty.
19710
19711 2010-01-11  Eric Blake  <ebb9@byu.net>
19712
19713         tests: avoid more large file warnings
19714         * tests/test-fflush.c: Avoid warning about ftell use.
19715         * tests/test-fseek.c: Avoid warning about fseek use.
19716
19717 2010-01-10  Bruno Haible  <bruno@clisp.org>
19718
19719         nproc: Work better on Linux when /proc and /sys are not mounted.
19720         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19721         as lower bound when, on glibc/Linux systems,
19722         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19723         Suggested by Pádraig Brady <P@draigbrady.com>.
19724         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19725
19726         nproc: Refactor.
19727         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19728         extracted from num_processors.
19729         (num_processors): Call it.
19730
19731 2010-01-11  Jim Meyering  <meyering@redhat.com>
19732
19733         utimecmp: avoid new warning from upcoming gcc-4.5.0
19734         * lib/utimecmp.c (BILLION): Define using #define rather than an
19735         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19736
19737 2010-01-11  Eric Blake  <ebb9@byu.net>
19738
19739         math: add portability warnings for classification macros
19740         * modules/math (Depends-on): Add warn-on-use.
19741         (Makefile.am): Provide new substitutions.
19742         * m4/math_h.m4 (gl_MATH_H): Require inline.
19743         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19744         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19745         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19746         implement warnings.
19747
19748         unistd: warn on use of environ without module
19749         * modules/unistd (Depends-on): Add warn-on-use.
19750         (Makefile.am): Provide new substitutions.
19751         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19752         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19753
19754         stdio: warn on suspicious uses
19755         * modules/stdio (Depends-on): Add warn-on-use.
19756         (Makefile.am): Provide new substitutions.
19757         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19758         fseeko.
19759         * lib/stdio.in.h (gets): Always warn on use.
19760         (fseek, ftell): Adjust when warnings are issued, and honor
19761         _GL_NO_LARGE_FILES as a way to silence the warning.
19762         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19763         any warning about large file offsets.
19764         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19765         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19766         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19767         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19768         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19769         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19770         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19771         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19772
19773         warn-on-use: new module
19774         * modules/warn-on-use: New file.
19775         * build-aux/warn-on-use.h: Likewise.
19776         * m4/warn-on-use.m4: Likewise.
19777         * MODULES.html.sh (Support for building): Mention it.
19778
19779 2010-01-10  Bruno Haible  <bruno@clisp.org>
19780
19781         Tests for module 'unistr/u32-strdup'.
19782         * modules/unistr/u32-strdup-tests: New file.
19783         * tests/unistr/test-u32-strdup.c: New file.
19784
19785         Tests for module 'unistr/u16-strdup'.
19786         * modules/unistr/u16-strdup-tests: New file.
19787         * tests/unistr/test-u16-strdup.c: New file.
19788
19789         Tests for module 'unistr/u8-strdup'.
19790         * modules/unistr/u8-strdup-tests: New file.
19791         * tests/unistr/test-u8-strdup.c: New file.
19792         * tests/unistr/test-strdup.h: New file.
19793
19794         Tests for module 'unistr/u32-strncmp'.
19795         * modules/unistr/u32-strncmp-tests: New file.
19796         * tests/unistr/test-u32-strncmp.c: New file.
19797
19798         Tests for module 'unistr/u16-strncmp'.
19799         * modules/unistr/u16-strncmp-tests: New file.
19800         * tests/unistr/test-u16-strncmp.c: New file.
19801
19802         Tests for module 'unistr/u8-strncmp'.
19803         * modules/unistr/u8-strncmp-tests: New file.
19804         * tests/unistr/test-u8-strncmp.c: New file.
19805         * tests/unistr/test-strncmp.h: New file.
19806
19807         Tests for module 'unistr/u32-strcoll'.
19808         * modules/unistr/u32-strcoll-tests: New file.
19809         * tests/unistr/test-u32-strcoll.c: New file.
19810
19811         Tests for module 'unistr/u16-strcoll'.
19812         * modules/unistr/u16-strcoll-tests: New file.
19813         * tests/unistr/test-u16-strcoll.c: New file.
19814
19815         Tests for module 'unistr/u8-strcoll'.
19816         * modules/unistr/u8-strcoll-tests: New file.
19817         * tests/unistr/test-u8-strcoll.c: New file.
19818
19819         Tests for module 'unistr/u32-strcmp'.
19820         * modules/unistr/u32-strcmp-tests: New file.
19821         * tests/unistr/test-u32-strcmp.c: New file.
19822         * tests/unistr/test-u32-strcmp.h: New file.
19823
19824         Tests for module 'unistr/u16-strcmp'.
19825         * modules/unistr/u16-strcmp-tests: New file.
19826         * tests/unistr/test-u16-strcmp.c: New file.
19827         * tests/unistr/test-u16-strcmp.h: New file.
19828
19829         Tests for module 'unistr/u8-strcmp'.
19830         * modules/unistr/u8-strcmp-tests: New file.
19831         * tests/unistr/test-u8-strcmp.c: New file.
19832         * tests/unistr/test-u8-strcmp.h: New file.
19833         * tests/unistr/test-strcmp.h: New file.
19834
19835         Tests for module 'unistr/u32-strncat'.
19836         * modules/unistr/u32-strncat-tests: New file.
19837         * tests/unistr/test-u32-strncat.c: New file.
19838
19839         Tests for module 'unistr/u16-strncat'.
19840         * modules/unistr/u16-strncat-tests: New file.
19841         * tests/unistr/test-u16-strncat.c: New file.
19842
19843         Tests for module 'unistr/u8-strncat'.
19844         * modules/unistr/u8-strncat-tests: New file.
19845         * tests/unistr/test-u8-strncat.c: New file.
19846         * tests/unistr/test-strncat.h: New file.
19847
19848         Tests for module 'unistr/u32-strcat'.
19849         * modules/unistr/u32-strcat-tests: New file.
19850         * tests/unistr/test-u32-strcat.c: New file.
19851
19852         Tests for module 'unistr/u16-strcat'.
19853         * modules/unistr/u16-strcat-tests: New file.
19854         * tests/unistr/test-u16-strcat.c: New file.
19855
19856         Tests for module 'unistr/u8-strcat'.
19857         * modules/unistr/u8-strcat-tests: New file.
19858         * tests/unistr/test-u8-strcat.c: New file.
19859         * tests/unistr/test-strcat.h: New file.
19860
19861         Tests for module 'unistr/u32-stpncpy'.
19862         * modules/unistr/u32-stpncpy-tests: New file.
19863         * tests/unistr/test-u32-stpncpy.c: New file.
19864
19865         Tests for module 'unistr/u16-stpncpy'.
19866         * modules/unistr/u16-stpncpy-tests: New file.
19867         * tests/unistr/test-u16-stpncpy.c: New file.
19868
19869         Tests for module 'unistr/u8-stpncpy'.
19870         * modules/unistr/u8-stpncpy-tests: New file.
19871         * tests/unistr/test-u8-stpncpy.c: New file.
19872         * tests/unistr/test-stpncpy.h: New file.
19873
19874         Tests for module 'unistr/u32-strncpy'.
19875         * modules/unistr/u32-strncpy-tests: New file.
19876         * tests/unistr/test-u32-strncpy.c: New file.
19877
19878         Tests for module 'unistr/u16-strncpy'.
19879         * modules/unistr/u16-strncpy-tests: New file.
19880         * tests/unistr/test-u16-strncpy.c: New file.
19881
19882         Tests for module 'unistr/u8-strncpy'.
19883         * modules/unistr/u8-strncpy-tests: New file.
19884         * tests/unistr/test-u8-strncpy.c: New file.
19885         * tests/unistr/test-strncpy.h: New file.
19886
19887         Tests for module 'unistr/u32-stpcpy'.
19888         * modules/unistr/u32-stpcpy-tests: New file.
19889         * tests/unistr/test-u32-stpcpy.c: New file.
19890
19891         Tests for module 'unistr/u16-stpcpy'.
19892         * modules/unistr/u16-stpcpy-tests: New file.
19893         * tests/unistr/test-u16-stpcpy.c: New file.
19894
19895         Tests for module 'unistr/u8-stpcpy'.
19896         * modules/unistr/u8-stpcpy-tests: New file.
19897         * tests/unistr/test-u8-stpcpy.c: New file.
19898         * tests/unistr/test-stpcpy.h: New file.
19899
19900         Tests for module 'unistr/u32-strcpy'.
19901         * modules/unistr/u32-strcpy-tests: New file.
19902         * tests/unistr/test-u32-strcpy.c: New file.
19903
19904         Tests for module 'unistr/u16-strcpy'.
19905         * modules/unistr/u16-strcpy-tests: New file.
19906         * tests/unistr/test-u16-strcpy.c: New file.
19907
19908         Tests for module 'unistr/u8-strcpy'.
19909         * modules/unistr/u8-strcpy-tests: New file.
19910         * tests/unistr/test-u8-strcpy.c: New file.
19911         * tests/unistr/test-strcpy.h: New file.
19912
19913         Tests for module 'unistr/u32-strnlen'.
19914         * modules/unistr/u32-strnlen-tests: New file.
19915         * tests/unistr/test-u32-strnlen.c: New file.
19916
19917         Tests for module 'unistr/u16-strnlen'.
19918         * modules/unistr/u16-strnlen-tests: New file.
19919         * tests/unistr/test-u16-strnlen.c: New file.
19920
19921         Tests for module 'unistr/u8-strnlen'.
19922         * modules/unistr/u8-strnlen-tests: New file.
19923         * tests/unistr/test-u8-strnlen.c: New file.
19924         * tests/unistr/test-strnlen.h: New file.
19925
19926         Tests for module 'unistr/u32-strlen'.
19927         * modules/unistr/u32-strlen-tests: New file.
19928         * tests/unistr/test-u32-strlen.c: New file.
19929
19930         Tests for module 'unistr/u16-strlen'.
19931         * modules/unistr/u16-strlen-tests: New file.
19932         * tests/unistr/test-u16-strlen.c: New file.
19933
19934         Tests for module 'unistr/u8-strlen'.
19935         * modules/unistr/u8-strlen-tests: New file.
19936         * tests/unistr/test-u8-strlen.c: New file.
19937
19938         Tests for module 'unistr/u32-prev'.
19939         * modules/unistr/u32-prev-tests: New file.
19940         * tests/unistr/test-u32-prev.c: New file.
19941
19942         Tests for module 'unistr/u16-prev'.
19943         * modules/unistr/u16-prev-tests: New file.
19944         * tests/unistr/test-u16-prev.c: New file.
19945
19946         Tests for module 'unistr/u8-prev'.
19947         * modules/unistr/u8-prev-tests: New file.
19948         * tests/unistr/test-u8-prev.c: New file.
19949
19950         Tests for module 'unistr/u32-next'.
19951         * modules/unistr/u32-next-tests: New file.
19952         * tests/unistr/test-u32-next.c: New file.
19953
19954         Tests for module 'unistr/u16-next'.
19955         * modules/unistr/u16-next-tests: New file.
19956         * tests/unistr/test-u16-next.c: New file.
19957
19958         Tests for module 'unistr/u8-next'.
19959         * modules/unistr/u8-next-tests: New file.
19960         * tests/unistr/test-u8-next.c: New file.
19961
19962         Tests for module 'unistr/u32-strmbtouc'.
19963         * modules/unistr/u32-strmbtouc-tests: New file.
19964         * tests/unistr/test-u32-strmbtouc.c: New file.
19965
19966         Tests for module 'unistr/u16-strmbtouc'.
19967         * modules/unistr/u16-strmbtouc-tests: New file.
19968         * tests/unistr/test-u16-strmbtouc.c: New file.
19969
19970         Tests for module 'unistr/u8-strmbtouc'.
19971         * modules/unistr/u8-strmbtouc-tests: New file.
19972         * tests/unistr/test-u8-strmbtouc.c: New file.
19973
19974         Tests for module 'unistr/u32-strmblen'.
19975         * modules/unistr/u32-strmblen-tests: New file.
19976         * tests/unistr/test-u32-strmblen.c: New file.
19977
19978         Tests for module 'unistr/u16-strmblen'.
19979         * modules/unistr/u16-strmblen-tests: New file.
19980         * tests/unistr/test-u16-strmblen.c: New file.
19981
19982         Tests for module 'unistr/u8-strmblen'.
19983         * modules/unistr/u8-strmblen-tests: New file.
19984         * tests/unistr/test-u8-strmblen.c: New file.
19985
19986         Tests for module 'unistr/u32-cpy-alloc'.
19987         * modules/unistr/u32-cpy-alloc-tests: New file.
19988         * tests/unistr/test-u32-cpy-alloc.c: New file.
19989
19990         Tests for module 'unistr/u16-cpy-alloc'.
19991         * modules/unistr/u16-cpy-alloc-tests: New file.
19992         * tests/unistr/test-u16-cpy-alloc.c: New file.
19993
19994         Tests for module 'unistr/u8-cpy-alloc'.
19995         * modules/unistr/u8-cpy-alloc-tests: New file.
19996         * tests/unistr/test-u8-cpy-alloc.c: New file.
19997         * tests/unistr/test-cpy-alloc.h: New file.
19998
19999         Tests for module 'unistr/u32-mbsnlen'.
20000         * modules/unistr/u32-mbsnlen-tests: New file.
20001         * tests/unistr/test-u32-mbsnlen.c: New file.
20002
20003         Tests for module 'unistr/u16-mbsnlen'.
20004         * modules/unistr/u16-mbsnlen-tests: New file.
20005         * tests/unistr/test-u16-mbsnlen.c: New file.
20006
20007         Tests for module 'unistr/u8-mbsnlen'.
20008         * modules/unistr/u8-mbsnlen-tests: New file.
20009         * tests/unistr/test-u8-mbsnlen.c: New file.
20010
20011         Tests for module 'unistr/u32-chr'.
20012         * modules/unistr/u32-chr-tests: New file.
20013         * tests/unistr/test-u32-chr.c: New file.
20014
20015         Tests for module 'unistr/u16-chr'.
20016         * modules/unistr/u16-chr-tests: New file.
20017         * tests/unistr/test-u16-chr.c: New file.
20018
20019         Tests for module 'unistr/u8-chr'.
20020         * modules/unistr/u8-chr-tests: New file.
20021         * tests/unistr/test-u8-chr.c: New file.
20022         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
20023
20024         Tests for module 'unistr/u32-cmp2'.
20025         * modules/unistr/u32-cmp2-tests: New file.
20026         * tests/unistr/test-u32-cmp2.c: New file.
20027
20028         Tests for module 'unistr/u16-cmp2'.
20029         * modules/unistr/u16-cmp2-tests: New file.
20030         * tests/unistr/test-u16-cmp2.c: New file.
20031
20032         Tests for module 'unistr/u8-cmp2'.
20033         * modules/unistr/u8-cmp2-tests: New file.
20034         * tests/unistr/test-u8-cmp2.c: New file.
20035         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
20036
20037         Tests for module 'unistr/u32-cmp'.
20038         * modules/unistr/u32-cmp-tests: New file.
20039         * tests/unistr/test-u32-cmp.c: New file.
20040
20041         Tests for module 'unistr/u16-cmp'.
20042         * modules/unistr/u16-cmp-tests: New file.
20043         * tests/unistr/test-u16-cmp.c: New file.
20044
20045         Tests for module 'unistr/u8-cmp'.
20046         * modules/unistr/u8-cmp-tests: New file.
20047         * tests/unistr/test-u8-cmp.c: New file.
20048         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
20049
20050         Tests for module 'unistr/u32-set'.
20051         * modules/unistr/u32-set-tests: New file.
20052         * tests/unistr/test-u32-set.c: New file.
20053
20054         Tests for module 'unistr/u16-set'.
20055         * modules/unistr/u16-set-tests: New file.
20056         * tests/unistr/test-u16-set.c: New file.
20057
20058         Tests for module 'unistr/u8-set'.
20059         * modules/unistr/u8-set-tests: New file.
20060         * tests/unistr/test-u8-set.c: New file.
20061         * tests/unistr/test-set.h: New file.
20062
20063         Tests for module 'unistr/u32-move'.
20064         * modules/unistr/u32-move-tests: New file.
20065         * tests/unistr/test-u32-move.c: New file.
20066
20067         Tests for module 'unistr/u16-move'.
20068         * modules/unistr/u16-move-tests: New file.
20069         * tests/unistr/test-u16-move.c: New file.
20070
20071         Tests for module 'unistr/u8-move'.
20072         * modules/unistr/u8-move-tests: New file.
20073         * tests/unistr/test-u8-move.c: New file.
20074         * tests/unistr/test-move.h: New file.
20075
20076         Tests for module 'unistr/u32-cpy'.
20077         * modules/unistr/u32-cpy-tests: New file.
20078         * tests/unistr/test-u32-cpy.c: New file.
20079
20080         Tests for module 'unistr/u16-cpy'.
20081         * modules/unistr/u16-cpy-tests: New file.
20082         * tests/unistr/test-u16-cpy.c: New file.
20083
20084         Tests for module 'unistr/u8-cpy'.
20085         * modules/unistr/u8-cpy-tests: New file.
20086         * tests/unistr/test-u8-cpy.c: New file.
20087         * tests/unistr/test-cpy.h: New file.
20088
20089 2010-01-09  Bruno Haible  <bruno@clisp.org>
20090
20091         Tests for module 'unistr/u32-uctomb'.
20092         * modules/unistr/u32-uctomb-tests: New file.
20093         * tests/unistr/test-u32-uctomb.c: New file.
20094
20095         Tests for module 'unistr/u16-uctomb'.
20096         * modules/unistr/u16-uctomb-tests: New file.
20097         * tests/unistr/test-u16-uctomb.c: New file.
20098
20099         Tests for module 'unistr/u8-uctomb'.
20100         * modules/unistr/u8-uctomb-tests: New file.
20101         * tests/unistr/test-u8-uctomb.c: New file.
20102
20103         Tests for module 'unistr/u32-mbtoucr'.
20104         * modules/unistr/u32-mbtoucr-tests: New file.
20105         * tests/unistr/test-u32-mbtoucr.c: New file.
20106
20107         Tests for module 'unistr/u16-mbtoucr'.
20108         * modules/unistr/u16-mbtoucr-tests: New file.
20109         * tests/unistr/test-u16-mbtoucr.c: New file.
20110
20111         Tests for module 'unistr/u8-mbtoucr'.
20112         * modules/unistr/u8-mbtoucr-tests: New file.
20113         * tests/unistr/test-u8-mbtoucr.c: New file.
20114
20115         Tests for module 'unistr/u32-mbtouc'.
20116         * modules/unistr/u32-mbtouc-tests: New file.
20117         * tests/unistr/test-u32-mbtouc.c: New file.
20118
20119         Tests for module 'unistr/u16-mbtouc'.
20120         * modules/unistr/u16-mbtouc-tests: New file.
20121         * tests/unistr/test-u16-mbtouc.c: New file.
20122
20123         Tests for module 'unistr/u8-mbtouc'.
20124         * modules/unistr/u8-mbtouc-tests: New file.
20125         * tests/unistr/test-u8-mbtouc.c: New file.
20126
20127         Tests for module 'unistr/u32-mbtouc-unsafe'.
20128         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
20129         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
20130         * tests/unistr/test-u32-mbtouc.h: New file.
20131
20132         Tests for module 'unistr/u16-mbtouc-unsafe'.
20133         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
20134         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
20135         * tests/unistr/test-u16-mbtouc.h: New file.
20136
20137         Tests for module 'unistr/u8-mbtouc-unsafe'.
20138         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
20139         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
20140         * tests/unistr/test-u8-mbtouc.h: New file.
20141
20142         Tests for module 'unistr/u32-mblen'.
20143         * modules/unistr/u32-mblen-tests: New file.
20144         * tests/unistr/test-u32-mblen.c: New file.
20145
20146         Tests for module 'unistr/u16-mblen'.
20147         * modules/unistr/u16-mblen-tests: New file.
20148         * tests/unistr/test-u16-mblen.c: New file.
20149
20150         Tests for module 'unistr/u8-mblen'.
20151         * modules/unistr/u8-mblen-tests: New file.
20152         * tests/unistr/test-u8-mblen.c: New file.
20153
20154         Tests for module 'unistr/u32-to-u16'.
20155         * modules/unistr/u32-to-u16-tests: New file.
20156         * tests/unistr/test-u32-to-u16.c: New file.
20157
20158         Tests for module 'unistr/u32-to-u8'.
20159         * modules/unistr/u32-to-u8-tests: New file.
20160         * tests/unistr/test-u32-to-u8.c: New file.
20161
20162         Tests for module 'unistr/u16-to-u32'.
20163         * modules/unistr/u16-to-u32-tests: New file.
20164         * tests/unistr/test-u16-to-u32.c: New file.
20165
20166         Tests for module 'unistr/u16-to-u8'.
20167         * modules/unistr/u16-to-u8-tests: New file.
20168         * tests/unistr/test-u16-to-u8.c: New file.
20169
20170         Tests for module 'unistr/u8-to-u32'.
20171         * modules/unistr/u8-to-u32-tests: New file.
20172         * tests/unistr/test-u8-to-u32.c: New file.
20173
20174         Tests for module 'unistr/u8-to-u16'.
20175         * modules/unistr/u8-to-u16-tests: New file.
20176         * tests/unistr/test-u8-to-u16.c: New file.
20177
20178         Tests for module 'unistr/u32-check'.
20179         * modules/unistr/u32-check-tests: New file.
20180         * tests/unistr/test-u32-check.c: New file.
20181
20182         Tests for module 'unistr/u16-check'.
20183         * modules/unistr/u16-check-tests: New file.
20184         * tests/unistr/test-u16-check.c: New file.
20185
20186         Tests for module 'unistr/u8-check'.
20187         * modules/unistr/u8-check-tests: New file.
20188         * tests/unistr/test-u8-check.c: New file.
20189
20190         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
20191         (category_equals): New function.
20192         (main): Add more tests.
20193         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
20194
20195         * tests/unictype/test-bidi_byname.c (main): Add more tests.
20196
20197 2010-01-10  Bruno Haible  <bruno@clisp.org>
20198
20199         unistr/u*-strcoll: Try harder to distinguish different strings.
20200         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
20201         compare s1 and s2 to see if they are different.
20202
20203 2010-01-10  Bruno Haible  <bruno@clisp.org>
20204
20205         unistr/u*-stpncpy: Fix the return value.
20206         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
20207         description of the return value consistent with stpncpy in glibc.
20208         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
20209         written non-NUL unit.
20210
20211 2010-01-10  Bruno Haible  <bruno@clisp.org>
20212
20213         unistr/u*-next: Add missing dependencies.
20214         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
20215         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
20216         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
20217
20218 2010-01-10  Bruno Haible  <bruno@clisp.org>
20219
20220         unistr/u8-mbsnlen: Fix return value for incomplete character.
20221         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
20222         u8_mblen.
20223         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
20224         Remove unistr/u8-mblen.
20225         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
20226         u16_mblen.
20227         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
20228         Remove unistr/u16-mblen.
20229
20230 2010-01-10  Bruno Haible  <bruno@clisp.org>
20231
20232         wchar: Fix compilation error when <wchar.h> is used from coreutils.
20233         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
20234         Reported by Brian Gough <bjg@gnu.org> and
20235         Chris Clayton <chris2553@googlemail.com> via
20236         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
20237
20238 2010-01-09  Bruno Haible  <bruno@clisp.org>
20239
20240         unistr/u16-to-u32: Reject invalid input.
20241         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
20242         u16_mbtouc.
20243         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
20244         Remove unistr/u16-mbtouc.
20245
20246         unistr/u16-to-u8: Reject invalid input.
20247         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
20248         u16_mbtouc.
20249         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
20250         Remove unistr/u16-mbtouc.
20251
20252         unistr/u8-to-u32: Reject invalid input.
20253         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
20254         u8_mbtouc.
20255         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
20256         Remove unistr/u8-mbtouc.
20257
20258         unistr/u8-to-u16: Reject invalid input.
20259         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
20260         u8_mbtouc.
20261         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
20262         Remove unistr/u8-mbtouc.
20263
20264 2010-01-09  Bruno Haible  <bruno@clisp.org>
20265
20266         Tests for module 'getlogin'.
20267         * modules/getlogin-tests: New file.
20268         * tests/test-getlogin.c: New file.
20269
20270         New module 'getlogin'.
20271         * lib/unistd.in.h (getlogin): New declaration.
20272         * lib/getlogin.c: New file.
20273         * m4/getlogin.m4: New file.
20274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
20275         HAVE_GETLOGIN.
20276         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
20277         HAVE_GETLOGIN.
20278         * modules/getlogin: New file.
20279         * doc/posix-functions/getlogin.texi: Mention the new module.
20280         Reported by John W. Eaton <jwe@gnu.org>.
20281
20282 2010-01-09  Bruno Haible  <bruno@clisp.org>
20283
20284         getlogin_r: Support for native Windows.
20285         * lib/getlogin_r.c: Include <windows.h>
20286         (getlogin_r): Implement for native Windows.
20287         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
20288         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
20289         via John W. Eaton <jwe@gnu.org>.
20290
20291 2010-01-09  Bruno Haible  <bruno@clisp.org>
20292
20293         getlogin_r: Small fixes.
20294         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
20295         succeeds.
20296         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
20297         before testing whether getlogin_r is declared. No need to set
20298         HAVE_DECL_GETLOGIN_R to 1.
20299         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
20300
20301 2010-01-09  Bruno Haible  <bruno@clisp.org>
20302
20303         * lib/unistd.in.h (getlogin_r): Add comment.
20304
20305 2010-01-09  Bruno Haible  <bruno@clisp.org>
20306
20307         Tests for module 'getlogin_r'.
20308         * modules/getlogin_r-tests: New file.
20309         * tests/test-getlogin_r.c: New file.
20310
20311 2010-01-09  Jim Meyering  <meyering@redhat.com>
20312
20313         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
20314         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
20315         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
20316
20317 2010-01-08  Simon Josefsson  <simon@josefsson.org>
20318
20319         * lib/dup2.c (rpl_dup2): Improve comment.
20320
20321 2010-01-08  Eric Blake  <ebb9@byu.net>
20322
20323         maint.mk: allow packages to add makefile @@ exceptions
20324         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
20325         (sc_makefile_check): Rename...
20326         (sc_makefile_at_at_check): ...to this, and use hook.
20327
20328         dup2: work around mingw bug
20329         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
20330         Reported by Simon Josefsson.
20331
20332 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
20333
20334         glob: Fix C++ compilation.
20335         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
20336         C++.
20337
20338 2010-01-07  Bruno Haible  <bruno@clisp.org>
20339
20340         Fix indentation of wctype.in.h, broken since 2007-01-06.
20341         * lib/wctype.in.h: Fix indentation of preprocessor directives.
20342
20343 2010-01-07  Bruno Haible  <bruno@clisp.org>
20344
20345         mbslen: Avoid collision with system function.
20346         * lib/string.in.h [MirBSD]: Include <wchar.h>.
20347         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
20348         * m4/mbslen.m4: New file.
20349         * modules/mbslen (Files): Add it.
20350         (configure.ac): Invoke gl_MBSLEN.
20351         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
20352         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
20353         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
20354         via Ian Beckwith <ianb@erislabs.net>.
20355
20356 2010-01-07  Bruno Haible  <bruno@clisp.org>
20357
20358         dirent: Document the last fix.
20359         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
20360
20361 2010-01-07  Bruno Haible  <bruno@clisp.org>
20362
20363         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
20364         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
20365         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
20366         va_list are defined.
20367         * doc/posix-headers/stdio.texi: Document the bug of missing types.
20368         Reported by Eric Blake.
20369
20370 2010-01-07  Bruno Haible  <bruno@clisp.org>
20371
20372         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
20373         * modules/xlist (Depends-on): Add 'list',
20374         * modules/xoset (Depends-on): Add 'oset'.
20375         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20376
20377 2010-01-07  Bruno Haible  <bruno@clisp.org>
20378
20379         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
20380         * doc/posix-functions/strncasecmp.texi: Likewise.
20381
20382 2010-01-07  Bruno Haible  <bruno@clisp.org>
20383
20384         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
20385
20386 2010-01-07  John W. Eaton  <jwe@octave.org>
20387
20388         wctype: allow C++ use
20389         * lib/wctype.in.h: Add extern "C" block for C++.
20390
20391 2010-01-06  Eric Blake  <ebb9@byu.net>
20392
20393         maint.mk: detect incorrect GFDL usage
20394         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
20395
20396 2010-01-06  Jim Meyering  <meyering@redhat.com>
20397         and Eric Blake  <ebb9@byu.net>
20398
20399         maint.mk: ignore multi-line copyright in NEWS
20400         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
20401
20402 2010-01-06  Eric Blake  <ebb9@byu.net>
20403
20404         select: add missing dependency
20405         * modules/select-tests (Depends-on): Move sockets dependency...
20406         * modules/select (Depends-on): ...here.
20407         Reported by Ian Beckwith.
20408
20409         doc: regenerate INSTALL
20410         * doc/INSTALL: Reflect recent autoconf update.
20411         * doc/INSTALL.ISO: Likewise.
20412         * doc/INSTALL.UTF-8: Likewise.
20413
20414         pread: fix compilation on glibc
20415         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
20416         Reported by Ralf Wildenhues.
20417
20418         dirent: fix test failure
20419         * lib/dirent.in.h (includes): Guarantee ino_t.
20420         Reported by Ralf Wildenhues.
20421
20422 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
20423
20424         linkat, renameat: avoid bad free
20425         * lib/at-func2.c (at_func2): Fix typo.
20426         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
20427
20428 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20429
20430         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
20431         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
20432         to avoid failure of symlink test later.
20433
20434 2010-01-06  Eric Blake  <ebb9@byu.net>
20435
20436         stdio, unistd: guarantee ssize_t
20437         * lib/unistd.in.h (includes): Ensure that types required by POSIX
20438         2008 are exposed when needed.
20439         * lib/stdio.in.h (includes): Likewise.
20440         Reported by Ralf Wildenhues.
20441
20442 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
20443
20444         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
20445         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
20446         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
20447
20448 2010-01-06  Jim Meyering  <meyering@redhat.com>
20449
20450         readtokens: this module *does* require xalloc.h
20451         It uses only functions that were omitted by the old syntax-check rule.
20452         * lib/readtokens.c: Include "xalloc.h" once again.
20453         * modules/readtokens (Depends-on): Add xalloc.
20454         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
20455
20456 2010-01-05  Eric Blake  <ebb9@byu.net>
20457
20458         maint: support 'make announcement' from a VPATH build
20459         * top/maint.mk (announcement): Look for correct NEWS file.
20460
20461 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
20462
20463         utimens (fdutimens): ignore a negative FD, per contract
20464         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
20465         when we have a valid file descriptor.  Otherwise, using a brand
20466         new glibc (with just-patched futimens that now fails with EBADF)
20467         would cause this function to fail with ENOSYS.
20468         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
20469         See also http://bugzilla.redhat.com/552320.
20470
20471 2010-01-05  Eric Blake  <ebb9@byu.net>
20472
20473         strcase: document what it provides
20474         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
20475         gnulib module.
20476         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
20477         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
20478
20479 2010-01-05  Jim Meyering  <meyering@redhat.com>
20480
20481         maint: remove useless inclusions of "xalloc.h"
20482         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
20483         * lib/readtokens.c: Likewise.
20484         * lib/same.c: Likewise.
20485         * modules/getloadavg (Depends-on): Remove xalloc.
20486         * modules/readtokens: Likewise.
20487         * modules/same: Likewise.
20488
20489         maint.mk: include 4 more function names in alloca.h-checking regexp
20490         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
20491         regexp.  Before, we would give a false-positive (saying alloca.h
20492         is included unnecessarily) when the only uses involved omitted symbols.
20493
20494         xalloc.h: use consistent formatting
20495         * lib/xalloc.h: Move declarations to start in the first column.
20496
20497 2010-01-05  Eric Blake  <ebb9@byu.net>
20498
20499         mkdir: avoid xalloc
20500         * lib/mkdir.c (includes): Drop unused header.
20501         Reported by John W. Eaton.
20502
20503 2010-01-04  Jim Meyering  <meyering@redhat.com>
20504
20505         nl_langinfo: avoid configure-time syntax error
20506         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
20507         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
20508         the empty string.  Don't let that provoke a shell syntax error.
20509
20510         regcomp, regexec, fnmatch: avoid array bounds read error
20511         * lib/regcomp.c (build_equiv_class): From glibc:
20512         Use only the low 24 bits of a findidx return value as an index
20513         into the weights array.  Patch by Ulrich Drepper:
20514         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
20515         * lib/regexec.c (check_node_accept_bytes): Likewise.
20516         * lib/fnmatch_loop.c (FCT): Likewise.
20517
20518         regcomp: skip collseq lookup when there are no rules
20519         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
20520         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
20521
20522         regcomp: recognize ill-formed { } expressions
20523         * lib/regcomp.c (parse_dup_op): From glibc:
20524         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
20525
20526         regcomp: fix typo in comment
20527         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
20528         s/satisfy/satisfies/.
20529
20530         regcomp: sync from glibc: remove dead store
20531         * lib/regcomp.c (duplicate_node_closure): Remove useless
20532         search_duplicated_node call and dead store.
20533
20534         regcomp: sync from glibc; always use nl_langinfo
20535         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
20536         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
20537         * modules/regex (Depends-on): Add nl_langinfo.
20538
20539 2010-01-04  Eric Blake  <ebb9@byu.net>
20540
20541         fdopendir: fix configure test
20542         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
20543
20544 2010-01-01  Bruno Haible  <bruno@clisp.org>
20545
20546         wchar: Remove unused configure check.
20547         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
20548
20549 2010-01-01  Eric Blake  <ebb9@byu.net>
20550
20551         headers: make check of system header explicit
20552         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
20553         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
20554         ourselves.
20555         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20556         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20557         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
20558         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
20559         internals.
20560         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
20561         missing.
20562         Suggested by Bruno Haible.
20563
20564 2010-01-01  Jim Meyering  <meyering@redhat.com>
20565
20566         ChangeLog: tweak to eliminate unnecessary copyright line
20567         * ChangeLog: Remove a copyright line that was mistakenly updated
20568         by today's update-copyright run.  Reported by Eric Blake.
20569
20570         test-update-copyright: don't let envvar setting cause test failure
20571         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20572
20573 2010-01-01  Bruno Haible  <bruno@clisp.org>
20574
20575         localename: Avoid gcc warning.
20576         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
20577         function if it is not used.
20578
20579 2010-01-01  Jim Meyering  <meyering@redhat.com>
20580
20581         update nearly all FSF copyright year lists to include 2010
20582         Use the same procedure as for 2009, outlined in
20583         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
20584
20585         version-etc: set COPYRIGHT_YEAR to 2010
20586         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
20587
20588 2009-12-31  Eric Blake  <ebb9@byu.net>
20589
20590         doc: correct availability of cygwin 1.5.x getopt
20591         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
20592         variables.
20593         * doc/posix-functions/opterr.texi (opterr): Likewise.
20594         * doc/posix-functions/optind.texi (optind): Likewise.
20595         * doc/posix-functions/optopt.texi (optopt): Likewise.
20596         * doc/posix-functions/tzname.texi (tzname): Likewise.
20597
20598         openat: update maintainer
20599         * modules/openat (Maintainer): Add myself.
20600
20601         utimens: avoid shadowing warning
20602         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
20603         buffers into one, to avoid shadowing, as well as avoiding a
20604         redundant stat.
20605         Reported by Jim Meyering.
20606
20607         test-dup2: avoid compiler warning
20608         * tests/test-dup2.c (is_inheritable): Only define if used.
20609
20610 2010-01-01  Bruno Haible  <bruno@clisp.org>
20611
20612         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
20613         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
20614         defined, use wctomb instead of wcrtomb.
20615
20616 2010-01-01  Bruno Haible  <bruno@clisp.org>
20617
20618         iconv: Reject native Solaris iconv.
20619         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
20620         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
20621
20622 2009-12-31  Bruno Haible  <bruno@clisp.org>
20623
20624         * tests/test-signal.c (main): Remove test of 'SIG'.
20625
20626 2009-12-31  Bruno Haible  <bruno@clisp.org>
20627
20628         spawn: Fix incomplete fix.
20629         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20630         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20631         warnings for GNULIB_POSIXCHECK again.
20632         Reported by Eric Blake.
20633
20634 2009-12-31  Bruno Haible  <bruno@clisp.org>
20635
20636         Avoid namespace pollution on glibc systems.
20637         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
20638         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
20639         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
20640         glibc systems.
20641
20642 2009-12-31  Bruno Haible  <bruno@clisp.org>
20643
20644         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20645         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20646         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20647         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20648         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20649         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20650         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20651
20652 2009-12-31  Bruno Haible  <bruno@clisp.org>
20653
20654         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20655         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20656         afterwards.
20657
20658 2009-12-31  Bruno Haible  <bruno@clisp.org>
20659
20660         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20661         SYS_UTSNAME_H.
20662
20663 2009-12-31  Bruno Haible  <bruno@clisp.org>
20664
20665         spawn: Fix misapplied patch.
20666         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20667         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20668         warnings for GNULIB_POSIXCHECK.
20669
20670 2009-12-31  Bruno Haible  <bruno@clisp.org>
20671
20672         times: Update after sys_times changed.
20673         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20674         * modules/times (Files): Add it.
20675         (configure.ac): Invoke gl_FUNC_TIMES.
20676
20677 2009-12-31  Bruno Haible  <bruno@clisp.org>
20678
20679         Use AC_C_INLINE where necessary.
20680         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20681         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20682         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20683         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20684         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20685         * m4/mbiter.m4 (gl_MBITER): Likewise.
20686         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20687         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20688         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20689         * modules/u64 (configure.ac): Likewise.
20690
20691 2009-12-31  Bruno Haible  <bruno@clisp.org>
20692
20693         Use AC_C_INLINE instead of module 'inline' where possible.
20694         * modules/inline (Description): Clarify purpose.
20695         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20696         * modules/count-one-bits (Depends-on): Remove inline.
20697         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20698         * modules/openat (Depends-on): Remove inline.
20699         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20700         instead of depending on module 'inline'.
20701         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20702         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20703         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20704         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20705         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20706         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20707         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20708         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20709         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20710         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20711         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20712         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20713         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20714         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20715         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20716         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20717         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20718         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20719         Likewise.
20720         * modules/unictype/property-ascii-hex-digit (Depends-on,
20721         configure.ac): Likewise.
20722         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20723         configure.ac): Likewise.
20724         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20725         configure.ac): Likewise.
20726         * modules/unictype/property-bidi-block-separator (Depends-on,
20727         configure.ac): Likewise.
20728         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20729         configure.ac): Likewise.
20730         * modules/unictype/property-bidi-common-separator (Depends-on,
20731         configure.ac): Likewise.
20732         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20733         Likewise.
20734         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20735         configure.ac): Likewise.
20736         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20737         configure.ac): Likewise.
20738         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20739         configure.ac): Likewise.
20740         * modules/unictype/property-bidi-european-digit (Depends-on,
20741         configure.ac): Likewise.
20742         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20743         configure.ac): Likewise.
20744         * modules/unictype/property-bidi-left-to-right (Depends-on,
20745         configure.ac): Likewise.
20746         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20747         configure.ac): Likewise.
20748         * modules/unictype/property-bidi-other-neutral (Depends-on,
20749         configure.ac): Likewise.
20750         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20751         Likewise.
20752         * modules/unictype/property-bidi-segment-separator (Depends-on,
20753         configure.ac): Likewise.
20754         * modules/unictype/property-bidi-whitespace (Depends-on,
20755         configure.ac): Likewise.
20756         * modules/unictype/property-combining (Depends-on, configure.ac):
20757         Likewise.
20758         * modules/unictype/property-composite (Depends-on, configure.ac):
20759         Likewise.
20760         * modules/unictype/property-currency-symbol (Depends-on,
20761         configure.ac): Likewise.
20762         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20763         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20764         Likewise.
20765         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20766         configure.ac): Likewise.
20767         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20768         Likewise.
20769         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20770         Likewise.
20771         * modules/unictype/property-extender (Depends-on, configure.ac):
20772         Likewise.
20773         * modules/unictype/property-format-control (Depends-on, configure.ac):
20774         Likewise.
20775         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20776         Likewise.
20777         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20778         Likewise.
20779         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20780         Likewise.
20781         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20782         Likewise.
20783         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20784         Likewise.
20785         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20786         Likewise.
20787         * modules/unictype/property-id-start (Depends-on, configure.ac):
20788         Likewise.
20789         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20790         Likewise.
20791         * modules/unictype/property-ids-binary-operator (Depends-on,
20792         configure.ac): Likewise.
20793         * modules/unictype/property-ids-trinary-operator (Depends-on,
20794         configure.ac): Likewise.
20795         * modules/unictype/property-ignorable-control (Depends-on,
20796         configure.ac): Likewise.
20797         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20798         Likewise.
20799         * modules/unictype/property-join-control (Depends-on, configure.ac):
20800         Likewise.
20801         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20802         Likewise.
20803         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20804         Likewise.
20805         * modules/unictype/property-logical-order-exception (Depends-on,
20806         configure.ac): Likewise.
20807         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20808         Likewise.
20809         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20810         * modules/unictype/property-non-break (Depends-on, configure.ac):
20811         Likewise.
20812         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20813         Likewise.
20814         * modules/unictype/property-numeric (Depends-on, configure.ac):
20815         Likewise.
20816         * modules/unictype/property-other-alphabetic (Depends-on,
20817         configure.ac): Likewise.
20818         * modules/unictype/property-other-default-ignorable-code-point
20819         (Depends-on, configure.ac): Likewise.
20820         * modules/unictype/property-other-grapheme-extend (Depends-on,
20821         configure.ac): Likewise.
20822         * modules/unictype/property-other-id-continue (Depends-on,
20823         configure.ac): Likewise.
20824         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20825         Likewise.
20826         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20827         Likewise.
20828         * modules/unictype/property-other-math (Depends-on, configure.ac):
20829         Likewise.
20830         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20831         Likewise.
20832         * modules/unictype/property-paired-punctuation (Depends-on,
20833         configure.ac): Likewise.
20834         * modules/unictype/property-paragraph-separator (Depends-on,
20835         configure.ac): Likewise.
20836         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20837         Likewise.
20838         * modules/unictype/property-pattern-white-space (Depends-on,
20839         configure.ac): Likewise.
20840         * modules/unictype/property-private-use (Depends-on, configure.ac):
20841         Likewise.
20842         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20843         Likewise.
20844         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20845         Likewise.
20846         * modules/unictype/property-radical (Depends-on, configure.ac):
20847         Likewise.
20848         * modules/unictype/property-sentence-terminal (Depends-on,
20849         configure.ac): Likewise.
20850         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20851         Likewise.
20852         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20853         * modules/unictype/property-terminal-punctuation (Depends-on,
20854         configure.ac): Likewise.
20855         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20856         Likewise.
20857         * modules/unictype/property-unassigned-code-value (Depends-on,
20858         configure.ac): Likewise.
20859         * modules/unictype/property-unified-ideograph (Depends-on,
20860         configure.ac): Likewise.
20861         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20862         Likewise.
20863         * modules/unictype/property-variation-selector (Depends-on,
20864         configure.ac): Likewise.
20865         * modules/unictype/property-white-space (Depends-on, configure.ac):
20866         Likewise.
20867         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20868         Likewise.
20869         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20870         Likewise.
20871         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20872         Likewise.
20873         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20874         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20875         Likewise.
20876
20877 2009-12-31  Bruno Haible  <bruno@clisp.org>
20878
20879         Remove unnecessary AC_C_INLINE invocation.
20880         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20881         since 2009-08-21.
20882
20883 2009-12-31  Jim Meyering  <meyering@redhat.com>
20884
20885         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20886         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20887         With this change, we can all remove the gpg_key_ID = ... definition
20888         from our respective cfg.mk files.
20889
20890         maint.mk: create announcement template in ~/, not in /tmp
20891         * top/maint.mk (emit_upload_commands): Adjust.
20892         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20893         Remove temporary file, .ci-msg.
20894
20895 2009-12-31  Eric Blake  <ebb9@byu.net>
20896
20897         link-warning: always build headers with link warnings
20898         * modules/arpa_inet (Makefile.am): Always build replacement
20899         header.
20900         * modules/ctype (Makefile.am): Likewise.
20901         * modules/dirent (Makefile.am): Likewise.
20902         * modules/inttypes (Makefile.am): Likewise.
20903         * modules/langinfo (Makefile.am): Likewise.
20904         * modules/locale (Makefile.am): Likewise.
20905         * modules/spawn (Makefile.am): Likewise.
20906         * modules/sys_file (Makefile.am): Likewise.
20907         * modules/sys_ioctl (Makefile.am): Likewise.
20908         * modules/sys_select (Makefile.am): Likewise.
20909         * modules/sys_socket (Makefile.am): Likewise.
20910         * modules/sys_times (Makefile.am): Likewise.
20911         * modules/sys_utsname (Makefile.am): Likewise.
20912         * modules/sys_wait (Makefile.am): Likewise.
20913         * modules/wchar (Makefile.am): Likewise.
20914         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20915         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20916         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20917         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20918         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20919         Likewise.
20920         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20921         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20922         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20923         Likewise.
20924         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20925         Likewise.
20926         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20927         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20928         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20929         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20930         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20931         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20932         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20933         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20934         (gl_WCHAR_H_DEFAULTS): Likewise.
20935
20936 2009-12-31  Eric Blake  <ebb9@byu.net>
20937
20938         signal, spawn: use link warnings
20939         * lib/signal.in.h (sigset_t): Make unconditional.
20940         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20941         (sigpending, sigprocmask, sigaction): Add link warnings.
20942         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20943         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20944         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20945         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20946         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20947         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20948         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20949         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20950         (posix_spawn_file_actions_destroy)
20951         (posix_spawn_file_actions_addopen)
20952         (posix_spawn_file_actions_addclose)
20953         (posix_spawn_file_actions_adddup2): Likewise.
20954         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20955         * tests/test-signal.c (main): Enhance test.
20956
20957         spawn: improve wrapper support
20958         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20959         (gl_SPAWN_H_DEFAULTS): New defaults.
20960         * modules/spawn (Makefile.am): Substitute them.
20961         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20962         Only declare if missing or broken.
20963
20964         sys_times, sys_utsname: use include_next
20965         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20966         header.
20967         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20968         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20969         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20970         * modules/sys_times (Depends-on): Add include_next.
20971         (Makefile.am): Substitute additional values.
20972         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20973         * lib/sys_times.in.h (includes): Include native header, if
20974         available.
20975         * lib/sys_utsname.in.h (includes): Likewise.
20976         * tests/test-sys_times.c (main): Enhance test.
20977
20978         fdutimensat: revert prior patch
20979         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20980         utimens.h.
20981         Reported by Bruno Haible.
20982
20983 2009-12-30  Eric Blake  <ebb9@byu.net>
20984
20985         sys_wait: drop link-warning dependency
20986         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20987         link-warning efforts.
20988         * lib/sys_wait.in.h: Likewise.
20989
20990         fdutimensat: remove bogus dependency
20991         * modules/fdutimensat (Depends-on): Drop inline.
20992
20993         unistd: fix typo
20994         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20995
20996 2009-12-30  Bruno Haible  <bruno@clisp.org>
20997
20998         Fix compilation error with Solaris cc.
20999         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
21000         * lib/unicase/u16-is-invariant.c: Likewise.
21001         * lib/unicase/u32-is-invariant.c: Likewise.
21002         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21003
21004 2009-12-30  Bruno Haible  <bruno@clisp.org>
21005
21006         Fix test crash.
21007         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
21008         locales.
21009         Reported by Simon Josefsson <simon@josefsson.org>.
21010
21011 2009-12-30  Bruno Haible  <bruno@clisp.org>
21012
21013         Fix compilation error on most platforms.
21014         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
21015         Reported by Simon Josefsson <simon@josefsson.org>
21016         and Nelson H. F. Beebe <beebe@math.utah.edu>.
21017
21018 2009-12-30  Eric Blake  <ebb9@byu.net>
21019
21020         futimens, utimensat: work around ntfs-3g bug
21021         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
21022         a ctime bug is present, and expand workaround to cover ntfs-3g.
21023         * lib/utimens.c (fdutimens, lutimens): Likewise.
21024         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
21025         (validate_timespec): Adjust return value.
21026         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
21027         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21028         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
21029
21030 2009-12-29  Eric Blake  <ebb9@byu.net>
21031
21032         link-warning: make usage consistent
21033         * modules/ctype (Depends-on): Add link-warning.
21034         (Makefile.am): Update rules accordingly.
21035         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21036         * modules/locale (Depends-on, Makefile.am): Likewise.
21037         * modules/sys_file (Makefile.am): Likewise.
21038         * modules/getopt-posix (Makefile.am): Delete unused link warning
21039         efforts.
21040         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
21041         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
21042         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
21043         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
21044
21045         stdio: remove unused variables
21046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
21047         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
21048         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21049
21050         tests: test more substitute headers
21051         * modules/ctype-tests: New file.
21052         * modules/dirent-tests: Likewise.
21053         * modules/spawn-tests: Likewise.
21054         * modules/sys_file-tests: Likewise.
21055         * modules/sys_ioctl-tests: Likewise.
21056         * modules/sys_wait-tests: Likewise.
21057         * tests/test-ctype.c: Likewise.
21058         * tests/test-dirent.c: Likewise.
21059         * tests/test-spawn.c: Likewise.
21060         * tests/test-sys_file.c: Likewise.
21061         * tests/test-sys_ioctl.c: Likewise.
21062         * tests/test-sys_wait.c: Likewise.
21063         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
21064         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
21065         whether or not flock is in use.
21066
21067         tests: remove License section from module
21068         * modules/arpa_inet-tests: Remove unneeded section.
21069         * modules/byteswap-tests: Likewise.
21070         * modules/ceilf-tests: Likewise.
21071         * modules/ceill-tests: Likewise.
21072         * modules/crypto/des-tests: Likewise.
21073         * modules/crypto/gc-arcfour-tests: Likewise.
21074         * modules/crypto/gc-arctwo-tests: Likewise.
21075         * modules/crypto/gc-des-tests: Likewise.
21076         * modules/crypto/gc-hmac-md5-tests: Likewise.
21077         * modules/crypto/gc-hmac-sha1-tests: Likewise.
21078         * modules/crypto/gc-md2-tests: Likewise.
21079         * modules/crypto/gc-md4-tests: Likewise.
21080         * modules/crypto/gc-md5-tests: Likewise.
21081         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
21082         * modules/crypto/gc-rijndael-tests: Likewise.
21083         * modules/crypto/gc-sha1-tests: Likewise.
21084         * modules/crypto/gc-tests: Likewise.
21085         * modules/crypto/md2-tests: Likewise.
21086         * modules/crypto/md4-tests: Likewise.
21087         * modules/fcntl-h-tests: Likewise.
21088         * modules/floorf-tests: Likewise.
21089         * modules/floorl-tests: Likewise.
21090         * modules/frexp-nolibm-tests: Likewise.
21091         * modules/frexp-tests: Likewise.
21092         * modules/frexpl-nolibm-tests: Likewise.
21093         * modules/frexpl-tests: Likewise.
21094         * modules/getaddrinfo-tests: Likewise.
21095         * modules/inttypes-tests: Likewise.
21096         * modules/isfinite-tests: Likewise.
21097         * modules/isinf-tests: Likewise.
21098         * modules/ldexpl-tests: Likewise.
21099         * modules/locale-tests: Likewise.
21100         * modules/math-tests: Likewise.
21101         * modules/netdb-tests: Likewise.
21102         * modules/netinet_in-tests: Likewise.
21103         * modules/printf-frexp-tests: Likewise.
21104         * modules/printf-frexpl-tests: Likewise.
21105         * modules/priv-set-tests: Likewise.
21106         * modules/random_r-tests: Likewise.
21107         * modules/round-tests: Likewise.
21108         * modules/roundf-tests: Likewise.
21109         * modules/roundl-tests: Likewise.
21110         * modules/search-tests: Likewise.
21111         * modules/select-tests: Likewise.
21112         * modules/signal-tests: Likewise.
21113         * modules/stdbool-tests: Likewise.
21114         * modules/stddef-tests: Likewise.
21115         * modules/stdint-tests: Likewise.
21116         * modules/stdio-tests: Likewise.
21117         * modules/stdlib-tests: Likewise.
21118         * modules/string-tests: Likewise.
21119         * modules/strings-tests: Likewise.
21120         * modules/sys_select-tests: Likewise.
21121         * modules/sys_socket-tests: Likewise.
21122         * modules/sys_stat-tests: Likewise.
21123         * modules/sys_time-tests: Likewise.
21124         * modules/sys_utsname-tests: Likewise.
21125         * modules/sysexits-tests: Likewise.
21126         * modules/time-tests: Likewise.
21127         * modules/trunc-tests: Likewise.
21128         * modules/truncf-tests: Likewise.
21129         * modules/truncl-tests: Likewise.
21130         * modules/tsearch-tests: Likewise.
21131         * modules/unistd-tests: Likewise.
21132         * modules/wchar-tests: Likewise.
21133         * modules/wctype-tests: Likewise.
21134
21135         tests: fix license on several tests
21136         * tests/test-des.c: Update to GPLv3+.
21137         * tests/test-flock.c: Likewise.
21138         * tests/test-fsync.c: Likewise.
21139         * tests/test-futimens.h: Likewise.
21140         * tests/test-gc-arcfour.c: Likewise.
21141         * tests/test-gc-arctwo.c: Likewise.
21142         * tests/test-gc-des.c: Likewise.
21143         * tests/test-gc-hmac-md5.c: Likewise.
21144         * tests/test-gc-hmac-sha1.c: Likewise.
21145         * tests/test-gc-md2.c: Likewise.
21146         * tests/test-gc-md4.c: Likewise.
21147         * tests/test-gc-md5.c: Likewise.
21148         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21149         * tests/test-gc-rijndael.c: Likewise.
21150         * tests/test-gc-sha1.c: Likewise.
21151         * tests/test-gc.c: Likewise.
21152         * tests/test-getcwd.c: Likewise.
21153         * tests/test-link.c: Likewise.
21154         * tests/test-link.h: Likewise.
21155         * tests/test-lutimens.h: Likewise.
21156         * tests/test-md2.c: Likewise.
21157         * tests/test-md4.c: Likewise.
21158         * tests/test-mkdir.h: Likewise.
21159         * tests/test-rename.c: Likewise.
21160         * tests/test-rename.h: Likewise.
21161         * tests/test-safe-alloc.c: Likewise.
21162         * tests/test-utimens-common.h: Likewise.
21163         * tests/test-utimens.h: Likewise.
21164
21165         maint: sync license texts
21166         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
21167         * doc/gpl-3.0.texi: Revert copyright year update.
21168         * doc/lgpl-3.0.texi: Likewise.
21169
21170 2009-12-29  Jim Meyering  <meyering@redhat.com>
21171
21172         update nearly all FSF copyright year lists to include 2009
21173         The files named by the following are exempted:
21174             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
21175               test -f "$dst" && { echo "$dst"; continue; }
21176               test -d "$dst" || continue
21177               echo "$dst"/$(basename "$src")
21178             done > exempt
21179             git ls-files tests/unictype >> exempt
21180         In the remaining files, convert to all-interval notation if
21181         - there is already at least one year interval like 2000-2003
21182         - the file is maintained by me
21183         - the file is in lib/uni*/, where that style already prevails
21184         Otherwise, use update-copyright's default.
21185
21186 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21187         and Eric Blake  <ebb9@byu.net>
21188
21189         tests: don't require debug system() to pass
21190         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
21191         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21192         * tests/test-unlink.h (test_unlink_func): Likewise.
21193         * tests/test-fstatat.c (main): ...into callers.
21194         * tests/test-lstat.c (main): Likewise.
21195         * tests/test-rmdir.c (main): Likewise.
21196         * tests/test-unlink.c (main): Likewise.
21197         * tests/test-unlinkat.c (main): Likewise.
21198         * tests/test-areadlink-with-size.c (main): Don't require a
21199         debug-only system call to pass, aiding cross-testing to mingw.
21200         * tests/test-areadlink.c (main): Likewise.
21201         * tests/test-areadlinkat-with-size.c (main): Likewise.
21202         * tests/test-areadlinkat.c (main): Likewise.
21203         * tests/test-canonicalize-lgpl.c (main): Likewise.
21204         * tests/test-canonicalize.c (main): Likewise.
21205         * tests/test-chown.c (main): Likewise.
21206         * tests/test-fchownat.c (main): Likewise.
21207         * tests/test-lchown.c (main): Likewise.
21208         * tests/test-fdutimensat.c (main): Likewise.
21209         * tests/test-futimens.c (main): Likewise.
21210         * tests/test-link.c (main): Likewise.
21211         * tests/test-linkat.c (main): Likewise.
21212         * tests/test-mkdir.c (main): Likewise.
21213         * tests/test-mkdirat.c (main): Likewise.
21214         * tests/test-mkfifo.c (main): Likewise.
21215         * tests/test-mkfifoat.c (main): Likewise.
21216         * tests/test-mknod.c (main): Likewise.
21217         * tests/test-readlink.c (main): Likewise.
21218         * tests/test-remove.c (main): Likewise.
21219         * tests/test-rename.c (main): Likewise.
21220         * tests/test-renameat.c (main): Likewise.
21221         * tests/test-symlink.c (main): Likewise.
21222         * tests/test-symlinkat.c (main): Likewise.
21223         * tests/test-utimens.c (main): Likewise.
21224         * tests/test-utimensat.c (main): Likewise.
21225
21226 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21227
21228         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
21229         on $(UNUSED_PARAMETER_H) to avoid build failure.
21230
21231 2009-12-28  Jim Meyering  <meyering@redhat.com>
21232
21233         update-copyright: you may specify a max. line length other than 72
21234         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21235
21236         maint: use consistent FSF copyright line syntax
21237         * lib/posixtm.c: Add missing comma in FSF copyright line.
21238         * lib/posixtm.h: Likewise.
21239         * lib/getugroups.c: Add missing ", Inc.".
21240
21241         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
21242         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
21243         FSF copyright line.  Remove trailing blanks.
21244
21245 2009-12-28  Eric Blake  <ebb9@byu.net>
21246
21247         test-dup2: reduce dependencies
21248         * modules/cloexec (Configure.ac): Set witness.
21249         * modules/dup2-tests (Depends-on): Drop cloexec.
21250         * tests/test-dup2.c (main): Skip portion of test if cloexec module
21251         not present.
21252         Suggested by Bruno Haible.
21253
21254 2009-12-26  Bruno Haible  <bruno@clisp.org>
21255
21256         Remove an unneeded dependency.
21257         * modules/fseterr (Depends-on): Remove dup2.
21258
21259 2009-12-26  Eric Blake  <ebb9@byu.net>
21260
21261         tests: use macros.h in more places
21262         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
21263         (ASSERT_STREAM): Provide default of stderr.
21264         * tests/test-dirent-safer.c: Include macros.h, using alternate
21265         stream for assertions.
21266         * tests/test-dup-safer.c: Likewise.
21267         * tests/test-freopen-safer.c: Likewise.
21268         * tests/test-getopt.c: Likewise.
21269         * tests/test-openat-safer.c: Likewise.
21270         * tests/test-pipe.c: Likewise.
21271         * tests/test-popen-safer.c: Likewise.
21272         * modules/dirent-safer-tests (Files): Include macros.h.
21273         * modules/unistd-safer-tests (Files): Likewise.
21274         * modules/freopen-safer-tests (Files): Likewise.
21275         * modules/getopt-posix-tests (Files): Likewise.
21276         * modules/openat-safer-tests (Files): Likewise.
21277         * modules/pipe-tests (Files): Likewise.
21278
21279 2009-12-26  Bruno Haible  <bruno@clisp.org>
21280
21281         javacomp: Portability fix.
21282         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
21283         that it also works on Solaris.
21284
21285 2009-12-26  Bruno Haible  <bruno@clisp.org>
21286
21287         localename: Fix storage allocation of gl_locale_name_thread's result.
21288         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
21289         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
21290         all platforms that have 'uselocale'.
21291         (gl_locale_name_thread_unsafe): New function, extracted from
21292         gl_locale_name_thread.
21293         (gl_locale_name_thread): Call struniq on all platforms that have
21294         'uselocale'.
21295         * tests/test-localename.c (test_locale_name_thread): Check that the
21296         resulting strings are permanently allocated.
21297         * modules/localename-tests (Depends-on): Add strdup.
21298
21299 2009-12-26  Bruno Haible  <bruno@clisp.org>
21300
21301         * tests/test-localename.c (categories): Fill in the strings.
21302
21303 2009-12-26  Jim Meyering  <meyering@redhat.com>
21304
21305         isdir: complete the removal of m4/isdir.m4
21306         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
21307
21308         isdir: clean up, since at least grep still uses it
21309         * lib/isdir.c: Include "isdir.h".
21310         (S_ISDIR): Remove now-unneeded definition.
21311         * modules/isdir (Files): Add lib/isdir.h.
21312         * lib/isdir.h: New file, with declaration.
21313         * m4/isdir.m4: Remove file -- unneeded.
21314
21315 2009-12-25  Bruno Haible  <bruno@clisp.org>
21316
21317         selinux-h: Make generated .h files standalone.
21318         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
21319         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
21320         * lib/se-selinux.in.h: Likewise.
21321         * modules/selinux-h (Depends-on): Add unused-parameter.
21322         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
21323         selinux/selinux.h and selinux/context.h.
21324         Suggested by Eric Blake.
21325
21326 2009-12-25  Bruno Haible  <bruno@clisp.org>
21327
21328         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
21329         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
21330         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
21331         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
21332         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
21333
21334 2009-12-24  Bruno Haible  <bruno@clisp.org>
21335
21336         openat: Fix warning.
21337         * lib/openat-proc.c: Include <unistd.h>.
21338
21339 2009-12-24  Bruno Haible  <bruno@clisp.org>
21340
21341         New module 'unused-parameter'.
21342         * build-aux/unused-parameter.h: New file, extracted from earlier
21343         gnulib-common.m4.
21344         * modules/unused-parameter: New file.
21345         * lib/unistr.h: Include unused-parameter.h.
21346         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
21347         _GL_UNUSED.
21348         * modules/unistr/base (Depends-on): Add unused-parameter.
21349
21350 2009-12-24  Bruno Haible  <bruno@clisp.org>
21351
21352         Add missing dependencies to 'extensions' module.
21353         * m4/extensions.m4: Add comment.
21354         * modules/accept4 (Depends-on): Add extensions.
21355         * modules/dup3 (Depends-on): Likewise.
21356         * modules/fcntl (Depends-on): Likewise.
21357         * modules/futimens (Depends-on): Likewise.
21358         * modules/mknod (Depends-on): Likewise.
21359         * modules/pipe2 (Depends-on): Likewise.
21360         * modules/stat-time (Depends-on): Likewise.
21361         * modules/strcasestr-simple (Depends-on): Likewise.
21362         * modules/strsignal (Depends-on): Likewise.
21363         * modules/utimensat (Depends-on): Likewise.
21364         * modules/localcharset (Depends-on): Likewise. Needed because of
21365         gl_FCNTL_O_FLAGS.
21366         * modules/wcrtomb (Depends-on): Likewise. Needed because of
21367         AC_TYPE_MBSTATE_T.
21368         * modules/wcsnrtombs (Depends-on): Likewise.
21369         * modules/wcsrtombs (Depends-on): Likewise.
21370
21371 2009-12-24  Bruno Haible  <bruno@clisp.org>
21372
21373         binary-io: Avoid gcc warning due to SET_BINARY.
21374         * lib/binary-io.h (SET_BINARY): Cast the result to void.
21375         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
21376
21377 2009-12-24  Bruno Haible  <bruno@clisp.org>
21378
21379         Avoid future namespace pollution on glibc systems.
21380         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
21381         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
21382         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
21383         glibc systems.
21384
21385 2009-12-24  Bruno Haible  <bruno@clisp.org>
21386
21387         Refactor common macros used in tests.
21388         * tests/macros.h: New file.
21389         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
21390         and/or <stdlib.h>, if appropriate.
21391         (ASSERT, SIZEOF): Remove macros.
21392         * tests/test-areadlink-with-size.c: Likewise.
21393         * tests/test-areadlinkat.c: Likewise.
21394         * tests/test-areadlinkat-with-size.c: Likewise.
21395         * tests/test-argmatch.c: Likewise.
21396         * tests/test-argv-iter.c: Likewise.
21397         * tests/test-array-mergesort.c: Likewise.
21398         * tests/test-array_list.c: Likewise.
21399         * tests/test-array_oset.c: Likewise.
21400         * tests/test-avltree_list.c: Likewise.
21401         * tests/test-avltree_oset.c: Likewise.
21402         * tests/test-avltreehash_list.c: Likewise.
21403         * tests/test-base64.c: Likewise.
21404         * tests/test-binary-io.c: Likewise.
21405         * tests/test-bitrotate.c: Likewise.
21406         * tests/test-btowc.c: Likewise.
21407         * tests/test-byteswap.c: Likewise.
21408         * tests/test-c-ctype.c: Likewise.
21409         * tests/test-c-stack.c: Likewise.
21410         * tests/test-c-strcasecmp.c: Likewise.
21411         * tests/test-c-strcasestr.c: Likewise.
21412         * tests/test-c-strncasecmp.c: Likewise.
21413         * tests/test-c-strstr.c: Likewise.
21414         * tests/test-canonicalize-lgpl.c: Likewise.
21415         * tests/test-canonicalize.c: Likewise.
21416         * tests/test-carray_list.c: Likewise.
21417         * tests/test-ceilf1.c: Likewise.
21418         * tests/test-ceilf2.c: Likewise.
21419         * tests/test-ceill.c: Likewise.
21420         * tests/test-chown.c: Likewise.
21421         * tests/test-cloexec.c: Likewise.
21422         * tests/test-copy-acl.c: Likewise.
21423         * tests/test-copy-file.c: Likewise.
21424         * tests/test-count-one-bits.c: Likewise.
21425         * tests/test-dprintf-posix.c: Likewise.
21426         * tests/test-dup2.c: Likewise.
21427         * tests/test-dup3.c: Likewise.
21428         * tests/test-duplocale.c: Likewise.
21429         * tests/test-fbufmode.c: Likewise.
21430         * tests/test-fchdir.c: Likewise.
21431         * tests/test-fchownat.c: Likewise.
21432         * tests/test-fcntl-safer.c: Likewise.
21433         * tests/test-fcntl.c: Likewise.
21434         * tests/test-fdopendir.c: Likewise.
21435         * tests/test-fdutimensat.c: Likewise.
21436         * tests/test-fflush2.c: Likewise.
21437         * tests/test-file-has-acl.c: Likewise.
21438         * tests/test-filevercmp.c: Likewise.
21439         * tests/test-flock.c: Likewise.
21440         * tests/test-floorf1.c: Likewise.
21441         * tests/test-floorf2.c: Likewise.
21442         * tests/test-floorl.c: Likewise.
21443         * tests/test-fnmatch.c: Likewise.
21444         * tests/test-fopen.h: Likewise.
21445         * tests/test-fpending.c: Likewise.
21446         * tests/test-fprintf-posix.c: Likewise.
21447         * tests/test-fpurge.c: Likewise.
21448         * tests/test-freadable.c: Likewise.
21449         * tests/test-freadahead.c: Likewise.
21450         * tests/test-freading.c: Likewise.
21451         * tests/test-freadptr.c: Likewise.
21452         * tests/test-freadptr2.c: Likewise.
21453         * tests/test-freadseek.c: Likewise.
21454         * tests/test-freopen.c: Likewise.
21455         * tests/test-frexp.c: Likewise.
21456         * tests/test-frexpl.c: Likewise.
21457         * tests/test-fseek.c: Likewise.
21458         * tests/test-fseeko.c: Likewise.
21459         * tests/test-fstatat.c: Likewise.
21460         * tests/test-fstrcmp.c: Likewise.
21461         * tests/test-fsync.c: Likewise.
21462         * tests/test-ftell.c: Likewise.
21463         * tests/test-ftello.c: Likewise.
21464         * tests/test-func.c: Likewise.
21465         * tests/test-futimens.c: Likewise.
21466         * tests/test-fwritable.c: Likewise.
21467         * tests/test-fwriting.c: Likewise.
21468         * tests/test-getcwd.c: Likewise.
21469         * tests/test-getdate.c: Likewise.
21470         * tests/test-getdelim.c: Likewise.
21471         * tests/test-getdtablesize.c: Likewise.
21472         * tests/test-getgroups.c: Likewise.
21473         * tests/test-getline.c: Likewise.
21474         * tests/test-getndelim2.c: Likewise.
21475         * tests/test-glob.c: Likewise.
21476         * tests/test-hash.c: Likewise.
21477         * tests/test-i-ring.c: Likewise.
21478         * tests/test-iconv-utf.c: Likewise.
21479         * tests/test-iconv.c: Likewise.
21480         * tests/test-idpriv-drop.c: Likewise.
21481         * tests/test-idpriv-droptemp.c: Likewise.
21482         * tests/test-inet_ntop.c: Likewise.
21483         * tests/test-inet_pton.c: Likewise.
21484         * tests/test-isblank.c: Likewise.
21485         * tests/test-isfinite.c: Likewise.
21486         * tests/test-isinf.c: Likewise.
21487         * tests/test-isnan.c: Likewise.
21488         * tests/test-isnand.h: Likewise.
21489         * tests/test-isnanf.h: Likewise.
21490         * tests/test-isnanl.h: Likewise.
21491         * tests/test-lchown.c: Likewise.
21492         * tests/test-ldexpl.c: Likewise.
21493         * tests/test-link.c: Likewise.
21494         * tests/test-linkat.c: Likewise.
21495         * tests/test-linked_list.c: Likewise.
21496         * tests/test-linkedhash_list.c: Likewise.
21497         * tests/test-localename.c: Likewise.
21498         * tests/test-lseek.c: Likewise.
21499         * tests/test-lstat.c: Likewise.
21500         * tests/test-mbmemcasecmp.c: Likewise.
21501         * tests/test-mbmemcasecoll.c: Likewise.
21502         * tests/test-mbrtowc.c: Likewise.
21503         * tests/test-mbscasecmp.c: Likewise.
21504         * tests/test-mbscasestr1.c: Likewise.
21505         * tests/test-mbscasestr2.c: Likewise.
21506         * tests/test-mbscasestr3.c: Likewise.
21507         * tests/test-mbscasestr4.c: Likewise.
21508         * tests/test-mbschr.c: Likewise.
21509         * tests/test-mbscspn.c: Likewise.
21510         * tests/test-mbsinit.c: Likewise.
21511         * tests/test-mbsncasecmp.c: Likewise.
21512         * tests/test-mbsnrtowcs.c: Likewise.
21513         * tests/test-mbspbrk.c: Likewise.
21514         * tests/test-mbspcasecmp.c: Likewise.
21515         * tests/test-mbsrchr.c: Likewise.
21516         * tests/test-mbsrtowcs.c: Likewise.
21517         * tests/test-mbsspn.c: Likewise.
21518         * tests/test-mbsstr1.c: Likewise.
21519         * tests/test-mbsstr2.c: Likewise.
21520         * tests/test-mbsstr3.c: Likewise.
21521         * tests/test-memchr.c: Likewise.
21522         * tests/test-memchr2.c: Likewise.
21523         * tests/test-memcmp.c: Likewise.
21524         * tests/test-memmem.c: Likewise.
21525         * tests/test-memrchr.c: Likewise.
21526         * tests/test-mkdir.c: Likewise.
21527         * tests/test-mkdirat.c: Likewise.
21528         * tests/test-mkfifo.c: Likewise.
21529         * tests/test-mkfifoat.c: Likewise.
21530         * tests/test-mknod.c: Likewise.
21531         * tests/test-nanosleep.c: Likewise.
21532         * tests/test-nl_langinfo.c: Likewise.
21533         * tests/test-obstack-printf.c: Likewise.
21534         * tests/test-open.c: Likewise.
21535         * tests/test-openat.c: Likewise.
21536         * tests/test-pipe-filter-gi1.c: Likewise.
21537         * tests/test-pipe-filter-gi2-main.c: Likewise.
21538         * tests/test-pipe-filter-ii1.c: Likewise.
21539         * tests/test-pipe-filter-ii2-main.c: Likewise.
21540         * tests/test-pipe2.c: Likewise.
21541         * tests/test-popen.h: Likewise.
21542         * tests/test-posixtm.c: Likewise.
21543         * tests/test-pread.c: Likewise.
21544         * tests/test-printf-frexp.c: Likewise.
21545         * tests/test-printf-frexpl.c: Likewise.
21546         * tests/test-printf-posix.c: Likewise.
21547         * tests/test-priv-set.c: Likewise.
21548         * tests/test-quotearg.c: Likewise.
21549         * tests/test-random_r.c: Likewise.
21550         * tests/test-rawmemchr.c: Likewise.
21551         * tests/test-rbtree_list.c: Likewise.
21552         * tests/test-rbtree_oset.c: Likewise.
21553         * tests/test-rbtreehash_list.c: Likewise.
21554         * tests/test-readlink.c: Likewise.
21555         * tests/test-remove.c: Likewise.
21556         * tests/test-rename.c: Likewise.
21557         * tests/test-renameat.c: Likewise.
21558         * tests/test-rmdir.c: Likewise.
21559         * tests/test-round1.c: Likewise.
21560         * tests/test-roundf1.c: Likewise.
21561         * tests/test-roundl.c: Likewise.
21562         * tests/test-safe-alloc.c: Likewise.
21563         * tests/test-sameacls.c: Likewise.
21564         * tests/test-set-mode-acl.c: Likewise.
21565         * tests/test-setenv.c: Likewise.
21566         * tests/test-sigaction.c: Likewise.
21567         * tests/test-signbit.c: Likewise.
21568         * tests/test-sleep.c: Likewise.
21569         * tests/test-snprintf-posix.c: Likewise.
21570         * tests/test-snprintf.c: Likewise.
21571         * tests/test-sprintf-posix.c: Likewise.
21572         * tests/test-stat-time.c: Likewise.
21573         * tests/test-stat.c: Likewise.
21574         * tests/test-strcasestr.c: Likewise.
21575         * tests/test-strchrnul.c: Likewise.
21576         * tests/test-strerror.c: Likewise.
21577         * tests/test-striconv.c: Likewise.
21578         * tests/test-striconveh.c: Likewise.
21579         * tests/test-striconveha.c: Likewise.
21580         * tests/test-strsignal.c: Likewise.
21581         * tests/test-strstr.c: Likewise.
21582         * tests/test-strtod.c: Likewise.
21583         * tests/test-strverscmp.c: Likewise.
21584         * tests/test-symlink.c: Likewise.
21585         * tests/test-symlinkat.c: Likewise.
21586         * tests/test-trunc1.c: Likewise.
21587         * tests/test-trunc2.c: Likewise.
21588         * tests/test-truncf1.c: Likewise.
21589         * tests/test-truncf2.c: Likewise.
21590         * tests/test-truncl.c: Likewise.
21591         * tests/test-uname.c: Likewise.
21592         * tests/test-unlink.c: Likewise.
21593         * tests/test-unlinkat.c: Likewise.
21594         * tests/test-unsetenv.c: Likewise.
21595         * tests/test-usleep.c: Likewise.
21596         * tests/test-utimens.c: Likewise.
21597         * tests/test-utimensat.c: Likewise.
21598         * tests/test-vasnprintf-posix.c: Likewise.
21599         * tests/test-vasnprintf-posix2.c: Likewise.
21600         * tests/test-vasnprintf.c: Likewise.
21601         * tests/test-vasprintf-posix.c: Likewise.
21602         * tests/test-vasprintf.c: Likewise.
21603         * tests/test-vdprintf-posix.c: Likewise.
21604         * tests/test-vfprintf-posix.c: Likewise.
21605         * tests/test-vprintf-posix.c: Likewise.
21606         * tests/test-vsnprintf-posix.c: Likewise.
21607         * tests/test-vsnprintf.c: Likewise.
21608         * tests/test-vsprintf-posix.c: Likewise.
21609         * tests/test-wcrtomb.c: Likewise.
21610         * tests/test-wcsnrtombs.c: Likewise.
21611         * tests/test-wcsrtombs.c: Likewise.
21612         * tests/test-wctype.c: Likewise.
21613         * tests/test-wcwidth.c: Likewise.
21614         * tests/test-xfprintf-posix.c: Likewise.
21615         * tests/test-xmemdup0.c: Likewise.
21616         * tests/test-xprintf-posix.c: Likewise.
21617         * tests/test-xvasprintf.c: Likewise.
21618         * tests/unicase/test-locale-language.c: Likewise.
21619         * tests/unicase/test-mapping-part1.h: Likewise.
21620         * tests/unicase/test-predicate-part1.h: Likewise.
21621         * tests/unicase/test-u8-casecmp.c: Likewise.
21622         * tests/unicase/test-u8-casecoll.c: Likewise.
21623         * tests/unicase/test-u8-casefold.c: Likewise.
21624         * tests/unicase/test-u8-is-cased.c: Likewise.
21625         * tests/unicase/test-u8-is-casefolded.c: Likewise.
21626         * tests/unicase/test-u8-is-lowercase.c: Likewise.
21627         * tests/unicase/test-u8-is-titlecase.c: Likewise.
21628         * tests/unicase/test-u8-is-uppercase.c: Likewise.
21629         * tests/unicase/test-u8-tolower.c: Likewise.
21630         * tests/unicase/test-u8-totitle.c: Likewise.
21631         * tests/unicase/test-u8-toupper.c: Likewise.
21632         * tests/unicase/test-u16-casecmp.c: Likewise.
21633         * tests/unicase/test-u16-casecoll.c: Likewise.
21634         * tests/unicase/test-u16-casefold.c: Likewise.
21635         * tests/unicase/test-u16-is-cased.c: Likewise.
21636         * tests/unicase/test-u16-is-casefolded.c: Likewise.
21637         * tests/unicase/test-u16-is-lowercase.c: Likewise.
21638         * tests/unicase/test-u16-is-titlecase.c: Likewise.
21639         * tests/unicase/test-u16-is-uppercase.c: Likewise.
21640         * tests/unicase/test-u16-tolower.c: Likewise.
21641         * tests/unicase/test-u16-totitle.c: Likewise.
21642         * tests/unicase/test-u16-toupper.c: Likewise.
21643         * tests/unicase/test-u32-casecmp.c: Likewise.
21644         * tests/unicase/test-u32-casecoll.c: Likewise.
21645         * tests/unicase/test-u32-casefold.c: Likewise.
21646         * tests/unicase/test-u32-is-cased.c: Likewise.
21647         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21648         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21649         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21650         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21651         * tests/unicase/test-u32-tolower.c: Likewise.
21652         * tests/unicase/test-u32-totitle.c: Likewise.
21653         * tests/unicase/test-u32-toupper.c: Likewise.
21654         * tests/unicase/test-ulc-casecmp.c: Likewise.
21655         * tests/unicase/test-ulc-casecoll.c: Likewise.
21656         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21657         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21658         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21659         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21660         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21661         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21662         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21663         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21664         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21665         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21666         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21667         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21668         * tests/unictype/test-bidi_byname.c: Likewise.
21669         * tests/unictype/test-bidi_name.c: Likewise.
21670         * tests/unictype/test-bidi_of.c: Likewise.
21671         * tests/unictype/test-bidi_test.c: Likewise.
21672         * tests/unictype/test-block_list.c: Likewise.
21673         * tests/unictype/test-block_of.c: Likewise.
21674         * tests/unictype/test-block_test.c: Likewise.
21675         * tests/unictype/test-categ_and.c: Likewise.
21676         * tests/unictype/test-categ_and_not.c: Likewise.
21677         * tests/unictype/test-categ_byname.c: Likewise.
21678         * tests/unictype/test-categ_name.c: Likewise.
21679         * tests/unictype/test-categ_none.c: Likewise.
21680         * tests/unictype/test-categ_of.c: Likewise.
21681         * tests/unictype/test-categ_or.c: Likewise.
21682         * tests/unictype/test-categ_test_withtable.c: Likewise.
21683         * tests/unictype/test-combining.c: Likewise.
21684         * tests/unictype/test-decdigit.c: Likewise.
21685         * tests/unictype/test-digit.c: Likewise.
21686         * tests/unictype/test-mirror.c: Likewise.
21687         * tests/unictype/test-numeric.c: Likewise.
21688         * tests/unictype/test-pr_byname.c: Likewise.
21689         * tests/unictype/test-pr_test.c: Likewise.
21690         * tests/unictype/test-predicate-part1.h: Likewise.
21691         * tests/unictype/test-scripts.c: Likewise.
21692         * tests/unictype/test-sy_c_ident.c: Likewise.
21693         * tests/unictype/test-sy_java_ident.c: Likewise.
21694         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21695         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21696         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21697         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21698         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21699         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21700         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21701         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21702         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21703         * tests/uninorm/test-compat-decomposition.c: Likewise.
21704         * tests/uninorm/test-composition.c: Likewise.
21705         * tests/uninorm/test-decomposing-form.c: Likewise.
21706         * tests/uninorm/test-decomposition.c: Likewise.
21707         * tests/uninorm/test-u8-nfc.c: Likewise.
21708         * tests/uninorm/test-u8-nfd.c: Likewise.
21709         * tests/uninorm/test-u8-nfkc.c: Likewise.
21710         * tests/uninorm/test-u8-nfkd.c: Likewise.
21711         * tests/uninorm/test-u8-normcmp.c: Likewise.
21712         * tests/uninorm/test-u8-normcoll.c: Likewise.
21713         * tests/uninorm/test-u16-nfc.c: Likewise.
21714         * tests/uninorm/test-u16-nfd.c: Likewise.
21715         * tests/uninorm/test-u16-nfkc.c: Likewise.
21716         * tests/uninorm/test-u16-nfkd.c: Likewise.
21717         * tests/uninorm/test-u16-normcmp.c: Likewise.
21718         * tests/uninorm/test-u16-normcoll.c: Likewise.
21719         * tests/uninorm/test-u32-nfc.c: Likewise.
21720         * tests/uninorm/test-u32-nfd.c: Likewise.
21721         * tests/uninorm/test-u32-nfkc.c: Likewise.
21722         * tests/uninorm/test-u32-nfkd.c: Likewise.
21723         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21724         * tests/uninorm/test-u32-normcmp.c: Likewise.
21725         * tests/uninorm/test-u32-normcoll.c: Likewise.
21726         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21727         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21728         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21729         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21730         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21731         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21732         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21733         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21734         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21735         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21736         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21737         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21738         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21739         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21740         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21741         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21742         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21743         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21744         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21745         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21746         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21747         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21748         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21749         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21750         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21751         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21752         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21753         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21754         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21755         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21756         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21757         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21758         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21759         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21760         * tests/uniwidth/test-u8-width.c: Likewise.
21761         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21762         * tests/uniwidth/test-u16-width.c: Likewise.
21763         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21764         * tests/uniwidth/test-u32-width.c: Likewise.
21765         * tests/uniwidth/test-uc_width.c: Likewise.
21766         * tests/uniwidth/test-uc_width2.c: Likewise.
21767         * modules/acl-tests (Files): Add tests/macros.h.
21768         * modules/areadlink-tests (Files): Likewise.
21769         * modules/areadlink-with-size-tests (Files): Likewise.
21770         * modules/areadlinkat-tests (Files): Likewise.
21771         * modules/areadlinkat-with-size-tests (Files): Likewise.
21772         * modules/argmatch-tests (Files): Likewise.
21773         * modules/argv-iter-tests (Files): Likewise.
21774         * modules/array-list-tests (Files): Likewise.
21775         * modules/array-mergesort-tests (Files): Likewise.
21776         * modules/array-oset-tests (Files): Likewise.
21777         * modules/avltree-list-tests (Files): Likewise.
21778         * modules/avltree-oset-tests (Files): Likewise.
21779         * modules/avltreehash-list-tests (Files): Likewise.
21780         * modules/base64-tests (Files): Likewise.
21781         * modules/binary-io-tests (Files): Likewise.
21782         * modules/bitrotate-tests (Files): Likewise.
21783         * modules/btowc-tests (Files): Likewise.
21784         * modules/byteswap-tests (Files): Likewise.
21785         * modules/c-ctype-tests (Files): Likewise.
21786         * modules/c-stack-tests (Files): Likewise.
21787         * modules/c-strcase-tests (Files): Likewise.
21788         * modules/c-strcasestr-tests (Files): Likewise.
21789         * modules/c-strstr-tests (Files): Likewise.
21790         * modules/canonicalize-lgpl-tests (Files): Likewise.
21791         * modules/canonicalize-tests (Files): Likewise.
21792         * modules/carray-list-tests (Files): Likewise.
21793         * modules/ceilf-tests (Files): Likewise.
21794         * modules/ceill-tests (Files): Likewise.
21795         * modules/chown-tests (Files): Likewise.
21796         * modules/cloexec-tests (Files): Likewise.
21797         * modules/copy-file-tests (Files): Likewise.
21798         * modules/count-one-bits-tests (Files): Likewise.
21799         * modules/dprintf-posix-tests (Files): Likewise.
21800         * modules/dup2-tests (Files): Likewise.
21801         * modules/dup3-tests (Files): Likewise.
21802         * modules/duplocale-tests (Files): Likewise.
21803         * modules/fbufmode-tests (Files): Likewise.
21804         * modules/fchdir-tests (Files): Likewise.
21805         * modules/fcntl-safer-tests (Files): Likewise.
21806         * modules/fcntl-tests (Files): Likewise.
21807         * modules/fdopendir-tests (Files): Likewise.
21808         * modules/fdutimensat-tests (Files): Likewise.
21809         * modules/fflush-tests (Files): Likewise.
21810         * modules/filevercmp-tests (Files): Likewise.
21811         * modules/flock-tests (Files): Likewise.
21812         * modules/floorf-tests (Files): Likewise.
21813         * modules/floorl-tests (Files): Likewise.
21814         * modules/fnmatch-tests (Files): Likewise.
21815         * modules/fopen-safer-tests (Files): Likewise.
21816         * modules/fopen-tests (Files): Likewise.
21817         * modules/fpending-tests (Files): Likewise.
21818         * modules/fprintf-posix-tests (Files): Likewise.
21819         * modules/fpurge-tests (Files): Likewise.
21820         * modules/freadable-tests (Files): Likewise.
21821         * modules/freadahead-tests (Files): Likewise.
21822         * modules/freading-tests (Files): Likewise.
21823         * modules/freadptr-tests (Files): Likewise.
21824         * modules/freadseek-tests (Files): Likewise.
21825         * modules/freopen-tests (Files): Likewise.
21826         * modules/frexp-nolibm-tests (Files): Likewise.
21827         * modules/frexp-tests (Files): Likewise.
21828         * modules/frexpl-nolibm-tests (Files): Likewise.
21829         * modules/frexpl-tests (Files): Likewise.
21830         * modules/fseek-tests (Files): Likewise.
21831         * modules/fseeko-tests (Files): Likewise.
21832         * modules/fstrcmp-tests (Files): Likewise.
21833         * modules/fsync-tests (Files): Likewise.
21834         * modules/ftell-tests (Files): Likewise.
21835         * modules/ftello-tests (Files): Likewise.
21836         * modules/func-tests (Files): Likewise.
21837         * modules/futimens-tests (Files): Likewise.
21838         * modules/fwritable-tests (Files): Likewise.
21839         * modules/fwriting-tests (Files): Likewise.
21840         * modules/getcwd-tests (Files): Likewise.
21841         * modules/getdate-tests (Files): Likewise.
21842         * modules/getdelim-tests (Files): Likewise.
21843         * modules/getdtablesize-tests (Files): Likewise.
21844         * modules/getgroups-tests (Files): Likewise.
21845         * modules/getline-tests (Files): Likewise.
21846         * modules/getndelim2-tests (Files): Likewise.
21847         * modules/glob-tests (Files): Likewise.
21848         * modules/hash-tests (Files): Likewise.
21849         * modules/i-ring-tests (Files): Likewise.
21850         * modules/iconv-tests (Files): Likewise.
21851         * modules/iconv_open-utf-tests (Files): Likewise.
21852         * modules/idpriv-drop-tests (Files): Likewise.
21853         * modules/idpriv-droptemp-tests (Files): Likewise.
21854         * modules/inet_ntop-tests (Files): Likewise.
21855         * modules/inet_pton-tests (Files): Likewise.
21856         * modules/isblank-tests (Files): Likewise.
21857         * modules/isfinite-tests (Files): Likewise.
21858         * modules/isinf-tests (Files): Likewise.
21859         * modules/isnan-tests (Files): Likewise.
21860         * modules/isnand-nolibm-tests (Files): Likewise.
21861         * modules/isnand-tests (Files): Likewise.
21862         * modules/isnanf-nolibm-tests (Files): Likewise.
21863         * modules/isnanf-tests (Files): Likewise.
21864         * modules/isnanl-nolibm-tests (Files): Likewise.
21865         * modules/isnanl-tests (Files): Likewise.
21866         * modules/lchown-tests (Files): Likewise.
21867         * modules/ldexpl-tests (Files): Likewise.
21868         * modules/link-tests (Files): Likewise.
21869         * modules/linkat-tests (Files): Likewise.
21870         * modules/linked-list-tests (Files): Likewise.
21871         * modules/linkedhash-list-tests (Files): Likewise.
21872         * modules/localename-tests (Files): Likewise.
21873         * modules/lseek-tests (Files): Likewise.
21874         * modules/lstat-tests (Files): Likewise.
21875         * modules/mbmemcasecmp-tests (Files): Likewise.
21876         * modules/mbmemcasecoll-tests (Files): Likewise.
21877         * modules/mbrtowc-tests (Files): Likewise.
21878         * modules/mbscasecmp-tests (Files): Likewise.
21879         * modules/mbscasestr-tests (Files): Likewise.
21880         * modules/mbschr-tests (Files): Likewise.
21881         * modules/mbscspn-tests (Files): Likewise.
21882         * modules/mbsinit-tests (Files): Likewise.
21883         * modules/mbsncasecmp-tests (Files): Likewise.
21884         * modules/mbsnrtowcs-tests (Files): Likewise.
21885         * modules/mbspbrk-tests (Files): Likewise.
21886         * modules/mbspcasecmp-tests (Files): Likewise.
21887         * modules/mbsrchr-tests (Files): Likewise.
21888         * modules/mbsrtowcs-tests (Files): Likewise.
21889         * modules/mbsspn-tests (Files): Likewise.
21890         * modules/mbsstr-tests (Files): Likewise.
21891         * modules/memchr-tests (Files): Likewise.
21892         * modules/memchr2-tests (Files): Likewise.
21893         * modules/memcmp-tests (Files): Likewise.
21894         * modules/memmem-tests (Files): Likewise.
21895         * modules/memrchr-tests (Files): Likewise.
21896         * modules/mkdir-tests (Files): Likewise.
21897         * modules/mkfifo-tests (Files): Likewise.
21898         * modules/mkfifoat-tests (Files): Likewise.
21899         * modules/mknod-tests (Files): Likewise.
21900         * modules/nanosleep-tests (Files): Likewise.
21901         * modules/nl_langinfo-tests (Files): Likewise.
21902         * modules/obstack-printf-tests (Files): Likewise.
21903         * modules/open-tests (Files): Likewise.
21904         * modules/openat-tests (Files): Likewise.
21905         * modules/pipe-filter-gi-tests (Files): Likewise.
21906         * modules/pipe-filter-ii-tests (Files): Likewise.
21907         * modules/pipe2-tests (Files): Likewise.
21908         * modules/popen-safer-tests (Files): Likewise.
21909         * modules/popen-tests (Files): Likewise.
21910         * modules/posixtm-tests (Files): Likewise.
21911         * modules/pread-tests (Files): Likewise.
21912         * modules/printf-frexp-tests (Files): Likewise.
21913         * modules/printf-frexpl-tests (Files): Likewise.
21914         * modules/printf-posix-tests (Files): Likewise.
21915         * modules/priv-set-tests (Files): Likewise.
21916         * modules/quotearg-tests (Files): Likewise.
21917         * modules/random_r-tests (Files): Likewise.
21918         * modules/rawmemchr-tests (Files): Likewise.
21919         * modules/rbtree-list-tests (Files): Likewise.
21920         * modules/rbtree-oset-tests (Files): Likewise.
21921         * modules/rbtreehash-list-tests (Files): Likewise.
21922         * modules/readlink-tests (Files): Likewise.
21923         * modules/remove-tests (Files): Likewise.
21924         * modules/rename-tests (Files): Likewise.
21925         * modules/renameat-tests (Files): Likewise.
21926         * modules/rmdir-tests (Files): Likewise.
21927         * modules/round-tests (Files): Likewise.
21928         * modules/roundf-tests (Files): Likewise.
21929         * modules/roundl-tests (Files): Likewise.
21930         * modules/safe-alloc-tests (Files): Likewise.
21931         * modules/setenv-tests (Files): Likewise.
21932         * modules/sigaction-tests (Files): Likewise.
21933         * modules/signbit-tests (Files): Likewise.
21934         * modules/sleep-tests (Files): Likewise.
21935         * modules/snprintf-posix-tests (Files): Likewise.
21936         * modules/snprintf-tests (Files): Likewise.
21937         * modules/sprintf-posix-tests (Files): Likewise.
21938         * modules/stat-tests (Files): Likewise.
21939         * modules/stat-time-tests (Files): Likewise.
21940         * modules/strcasestr-tests (Files): Likewise.
21941         * modules/strchrnul-tests (Files): Likewise.
21942         * modules/strerror-tests (Files): Likewise.
21943         * modules/striconv-tests (Files): Likewise.
21944         * modules/striconveh-tests (Files): Likewise.
21945         * modules/striconveha-tests (Files): Likewise.
21946         * modules/strsignal-tests (Files): Likewise.
21947         * modules/strstr-tests (Files): Likewise.
21948         * modules/strtod-tests (Files): Likewise.
21949         * modules/strverscmp-tests (Files): Likewise.
21950         * modules/symlink-tests (Files): Likewise.
21951         * modules/symlinkat-tests (Files): Likewise.
21952         * modules/trunc-tests (Files): Likewise.
21953         * modules/truncf-tests (Files): Likewise.
21954         * modules/truncl-tests (Files): Likewise.
21955         * modules/uname-tests (Files): Likewise.
21956         * modules/unicase/cased-tests (Files): Likewise.
21957         * modules/unicase/ignorable-tests (Files): Likewise.
21958         * modules/unicase/locale-language-tests (Files): Likewise.
21959         * modules/unicase/tolower-tests (Files): Likewise.
21960         * modules/unicase/totitle-tests (Files): Likewise.
21961         * modules/unicase/toupper-tests (Files): Likewise.
21962         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21963         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21964         * modules/unicase/u8-casefold-tests (Files): Likewise.
21965         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21966         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21967         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21968         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21969         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21970         * modules/unicase/u8-tolower-tests (Files): Likewise.
21971         * modules/unicase/u8-totitle-tests (Files): Likewise.
21972         * modules/unicase/u8-toupper-tests (Files): Likewise.
21973         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21974         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21975         * modules/unicase/u16-casefold-tests (Files): Likewise.
21976         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21977         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21978         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21979         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21980         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21981         * modules/unicase/u16-tolower-tests (Files): Likewise.
21982         * modules/unicase/u16-totitle-tests (Files): Likewise.
21983         * modules/unicase/u16-toupper-tests (Files): Likewise.
21984         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21985         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21986         * modules/unicase/u32-casefold-tests (Files): Likewise.
21987         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21988         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21989         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21990         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21991         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21992         * modules/unicase/u32-tolower-tests (Files): Likewise.
21993         * modules/unicase/u32-totitle-tests (Files): Likewise.
21994         * modules/unicase/u32-toupper-tests (Files): Likewise.
21995         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21996         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21997         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21998         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21999         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
22000         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
22001         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
22002         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
22003         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
22004         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
22005         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
22006         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
22007         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
22008         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
22009         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
22010         * modules/unictype/bidicategory-name-tests (Files): Likewise.
22011         * modules/unictype/bidicategory-of-tests (Files): Likewise.
22012         * modules/unictype/bidicategory-test-tests (Files): Likewise.
22013         * modules/unictype/block-list-tests (Files): Likewise.
22014         * modules/unictype/block-of-tests (Files): Likewise.
22015         * modules/unictype/block-test-tests (Files): Likewise.
22016         * modules/unictype/category-C-tests (Files): Likewise.
22017         * modules/unictype/category-Cc-tests (Files): Likewise.
22018         * modules/unictype/category-Cf-tests (Files): Likewise.
22019         * modules/unictype/category-Cn-tests (Files): Likewise.
22020         * modules/unictype/category-Co-tests (Files): Likewise.
22021         * modules/unictype/category-Cs-tests (Files): Likewise.
22022         * modules/unictype/category-L-tests (Files): Likewise.
22023         * modules/unictype/category-Ll-tests (Files): Likewise.
22024         * modules/unictype/category-Lm-tests (Files): Likewise.
22025         * modules/unictype/category-Lo-tests (Files): Likewise.
22026         * modules/unictype/category-Lt-tests (Files): Likewise.
22027         * modules/unictype/category-Lu-tests (Files): Likewise.
22028         * modules/unictype/category-M-tests (Files): Likewise.
22029         * modules/unictype/category-Mc-tests (Files): Likewise.
22030         * modules/unictype/category-Me-tests (Files): Likewise.
22031         * modules/unictype/category-Mn-tests (Files): Likewise.
22032         * modules/unictype/category-N-tests (Files): Likewise.
22033         * modules/unictype/category-Nd-tests (Files): Likewise.
22034         * modules/unictype/category-Nl-tests (Files): Likewise.
22035         * modules/unictype/category-No-tests (Files): Likewise.
22036         * modules/unictype/category-P-tests (Files): Likewise.
22037         * modules/unictype/category-Pc-tests (Files): Likewise.
22038         * modules/unictype/category-Pd-tests (Files): Likewise.
22039         * modules/unictype/category-Pe-tests (Files): Likewise.
22040         * modules/unictype/category-Pf-tests (Files): Likewise.
22041         * modules/unictype/category-Pi-tests (Files): Likewise.
22042         * modules/unictype/category-Po-tests (Files): Likewise.
22043         * modules/unictype/category-Ps-tests (Files): Likewise.
22044         * modules/unictype/category-S-tests (Files): Likewise.
22045         * modules/unictype/category-Sc-tests (Files): Likewise.
22046         * modules/unictype/category-Sk-tests (Files): Likewise.
22047         * modules/unictype/category-Sm-tests (Files): Likewise.
22048         * modules/unictype/category-So-tests (Files): Likewise.
22049         * modules/unictype/category-Z-tests (Files): Likewise.
22050         * modules/unictype/category-Zl-tests (Files): Likewise.
22051         * modules/unictype/category-Zp-tests (Files): Likewise.
22052         * modules/unictype/category-Zs-tests (Files): Likewise.
22053         * modules/unictype/category-and-not-tests (Files): Likewise.
22054         * modules/unictype/category-and-tests (Files): Likewise.
22055         * modules/unictype/category-byname-tests (Files): Likewise.
22056         * modules/unictype/category-name-tests (Files): Likewise.
22057         * modules/unictype/category-none-tests (Files): Likewise.
22058         * modules/unictype/category-of-tests (Files): Likewise.
22059         * modules/unictype/category-or-tests (Files): Likewise.
22060         * modules/unictype/category-test-withtable-tests (Files): Likewise.
22061         * modules/unictype/combining-class-tests (Files): Likewise.
22062         * modules/unictype/ctype-alnum-tests (Files): Likewise.
22063         * modules/unictype/ctype-alpha-tests (Files): Likewise.
22064         * modules/unictype/ctype-blank-tests (Files): Likewise.
22065         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
22066         * modules/unictype/ctype-digit-tests (Files): Likewise.
22067         * modules/unictype/ctype-graph-tests (Files): Likewise.
22068         * modules/unictype/ctype-lower-tests (Files): Likewise.
22069         * modules/unictype/ctype-print-tests (Files): Likewise.
22070         * modules/unictype/ctype-punct-tests (Files): Likewise.
22071         * modules/unictype/ctype-space-tests (Files): Likewise.
22072         * modules/unictype/ctype-upper-tests (Files): Likewise.
22073         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
22074         * modules/unictype/decimal-digit-tests (Files): Likewise.
22075         * modules/unictype/digit-tests (Files): Likewise.
22076         * modules/unictype/mirror-tests (Files): Likewise.
22077         * modules/unictype/numeric-tests (Files): Likewise.
22078         * modules/unictype/property-alphabetic-tests (Files): Likewise.
22079         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
22080         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
22081         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
22082         Likewise.
22083         * modules/unictype/property-bidi-block-separator-tests (Files):
22084         Likewise.
22085         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
22086         Likewise.
22087         * modules/unictype/property-bidi-common-separator-tests (Files):
22088         Likewise.
22089         * modules/unictype/property-bidi-control-tests (Files): Likewise.
22090         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
22091         Likewise.
22092         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
22093         Likewise.
22094         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
22095         Likewise.
22096         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
22097         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
22098         Likewise.
22099         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
22100         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
22101         Likewise.
22102         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
22103         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
22104         * modules/unictype/property-bidi-segment-separator-tests (Files):
22105         Likewise.
22106         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
22107         * modules/unictype/property-byname-tests (Files): Likewise.
22108         * modules/unictype/property-combining-tests (Files): Likewise.
22109         * modules/unictype/property-composite-tests (Files): Likewise.
22110         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
22111         * modules/unictype/property-dash-tests (Files): Likewise.
22112         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
22113         * modules/unictype/property-default-ignorable-code-point-tests (Files):
22114         Likewise.
22115         * modules/unictype/property-deprecated-tests (Files): Likewise.
22116         * modules/unictype/property-diacritic-tests (Files): Likewise.
22117         * modules/unictype/property-extender-tests (Files): Likewise.
22118         * modules/unictype/property-format-control-tests (Files): Likewise.
22119         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
22120         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
22121         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
22122         * modules/unictype/property-hex-digit-tests (Files): Likewise.
22123         * modules/unictype/property-hyphen-tests (Files): Likewise.
22124         * modules/unictype/property-id-continue-tests (Files): Likewise.
22125         * modules/unictype/property-id-start-tests (Files): Likewise.
22126         * modules/unictype/property-ideographic-tests (Files): Likewise.
22127         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
22128         * modules/unictype/property-ids-trinary-operator-tests (Files):
22129         Likewise.
22130         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
22131         * modules/unictype/property-iso-control-tests (Files): Likewise.
22132         * modules/unictype/property-join-control-tests (Files): Likewise.
22133         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
22134         * modules/unictype/property-line-separator-tests (Files): Likewise.
22135         * modules/unictype/property-logical-order-exception-tests (Files):
22136         Likewise.
22137         * modules/unictype/property-lowercase-tests (Files): Likewise.
22138         * modules/unictype/property-math-tests (Files): Likewise.
22139         * modules/unictype/property-non-break-tests (Files): Likewise.
22140         * modules/unictype/property-not-a-character-tests (Files): Likewise.
22141         * modules/unictype/property-numeric-tests (Files): Likewise.
22142         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
22143         * modules/unictype/property-other-default-ignorable-code-point-tests
22144         (Files): Likewise.
22145         * modules/unictype/property-other-grapheme-extend-tests (Files):
22146         Likewise.
22147         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
22148         * modules/unictype/property-other-id-start-tests (Files): Likewise.
22149         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
22150         * modules/unictype/property-other-math-tests (Files): Likewise.
22151         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
22152         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
22153         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
22154         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
22155         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
22156         * modules/unictype/property-private-use-tests (Files): Likewise.
22157         * modules/unictype/property-punctuation-tests (Files): Likewise.
22158         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
22159         * modules/unictype/property-radical-tests (Files): Likewise.
22160         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
22161         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
22162         * modules/unictype/property-space-tests (Files): Likewise.
22163         * modules/unictype/property-terminal-punctuation-tests (Files):
22164         Likewise.
22165         * modules/unictype/property-test-tests (Files): Likewise.
22166         * modules/unictype/property-titlecase-tests (Files): Likewise.
22167         * modules/unictype/property-unassigned-code-value-tests (Files):
22168         Likewise.
22169         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
22170         * modules/unictype/property-uppercase-tests (Files): Likewise.
22171         * modules/unictype/property-variation-selector-tests (Files): Likewise.
22172         * modules/unictype/property-white-space-tests (Files): Likewise.
22173         * modules/unictype/property-xid-continue-tests (Files): Likewise.
22174         * modules/unictype/property-xid-start-tests (Files): Likewise.
22175         * modules/unictype/property-zero-width-tests (Files): Likewise.
22176         * modules/unictype/scripts-tests (Files): Likewise.
22177         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
22178         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
22179         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
22180         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
22181         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
22182         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
22183         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
22184         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
22185         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
22186         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
22187         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
22188         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
22189         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
22190         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
22191         * modules/uninorm/composition-tests (Files): Likewise.
22192         * modules/uninorm/decomposing-form-tests (Files): Likewise.
22193         * modules/uninorm/decomposition-tests (Files): Likewise.
22194         * modules/uninorm/filter-tests (Files): Likewise.
22195         * modules/uninorm/nfc-tests (Files): Likewise.
22196         * modules/uninorm/nfd-tests (Files): Likewise.
22197         * modules/uninorm/nfkc-tests (Files): Likewise.
22198         * modules/uninorm/nfkd-tests (Files): Likewise.
22199         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
22200         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
22201         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
22202         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
22203         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
22204         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
22205         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
22206         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22207         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
22208         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
22209         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
22210         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
22211         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22212         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
22213         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
22214         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
22215         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
22216         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22217         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
22218         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
22219         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
22220         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
22221         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22222         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
22223         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
22224         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
22225         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
22226         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
22227         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
22228         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
22229         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
22230         * modules/uniwidth/u8-width-tests (Files): Likewise.
22231         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
22232         * modules/uniwidth/u16-width-tests (Files): Likewise.
22233         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
22234         * modules/uniwidth/u32-width-tests (Files): Likewise.
22235         * modules/uniwidth/width-tests (Files): Likewise.
22236         * modules/unlink-tests (Files): Likewise.
22237         * modules/unsetenv-tests (Files): Likewise.
22238         * modules/usleep-tests (Files): Likewise.
22239         * modules/utimens-tests (Files): Likewise.
22240         * modules/utimensat-tests (Files): Likewise.
22241         * modules/vasnprintf-posix-tests (Files): Likewise.
22242         * modules/vasnprintf-tests (Files): Likewise.
22243         * modules/vasprintf-posix-tests (Files): Likewise.
22244         * modules/vasprintf-tests (Files): Likewise.
22245         * modules/vdprintf-posix-tests (Files): Likewise.
22246         * modules/vfprintf-posix-tests (Files): Likewise.
22247         * modules/vprintf-posix-tests (Files): Likewise.
22248         * modules/vsnprintf-posix-tests (Files): Likewise.
22249         * modules/vsnprintf-tests (Files): Likewise.
22250         * modules/vsprintf-posix-tests (Files): Likewise.
22251         * modules/wcrtomb-tests (Files): Likewise.
22252         * modules/wcsnrtombs-tests (Files): Likewise.
22253         * modules/wcsrtombs-tests (Files): Likewise.
22254         * modules/wctype-tests (Files): Likewise.
22255         * modules/wcwidth-tests (Files): Likewise.
22256         * modules/xmemdup0-tests (Files): Likewise.
22257         * modules/xprintf-posix-tests (Files): Likewise.
22258         * modules/xvasprintf-tests (Files): Likewise.
22259
22260 2009-12-24  Eric Blake  <ebb9@byu.net>
22261
22262         test-nanosleep: fix typo
22263         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
22264         patch.
22265         Reported by Bruno Haible.
22266
22267 2009-12-24  Bruno Haible  <bruno@clisp.org>
22268
22269         Reduce namespace pollution on glibc systems.
22270         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
22271         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
22272         systems.
22273         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
22274         <getopt.h> on glibc systems.
22275         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
22276         systems.
22277         * lib/fcntl.c: Include <unistd.h> here instead.
22278
22279 2009-12-24  Bruno Haible  <bruno@clisp.org>
22280
22281         * lib/stdlib.in.h (includes): Fix typo in today's commit.
22282
22283 2009-12-24  Eric Blake  <ebb9@byu.net>
22284
22285         tests: add signature checks
22286         * tests/signature.h (SIGNATURE_CHECK): New file.
22287         * modules/atexit-tests (Files): Use it.
22288         * modules/btowc-tests (Files): Likewise.
22289         * modules/canonicalize-lgpl-tests (Files): Likewise.
22290         * modules/ceilf-tests (Files): Likewise.
22291         * modules/ceill-tests (Files): Likewise.
22292         * modules/chown-tests (Files): Likewise.
22293         * modules/dprintf-posix-tests (Files): Likewise.
22294         * modules/dup2-tests (Files): Likewise.
22295         * modules/dup3-tests (Files): Likewise.
22296         * modules/duplocale-tests (Files): Likewise.
22297         * modules/fchdir-tests (Files): Likewise.
22298         * modules/fcntl-tests (Files): Likewise.
22299         * modules/fdopendir-tests (Files): Likewise.
22300         * modules/fflush-tests (Files): Likewise.
22301         * modules/flock-tests (Files): Likewise.
22302         * modules/floorf-tests (Files): Likewise.
22303         * modules/floorl-tests (Files): Likewise.
22304         * modules/fnmatch-tests (Files): Likewise.
22305         * modules/fopen-tests (Files): Likewise.
22306         * modules/fprintf-posix-tests (Files): Likewise.
22307         * modules/freopen-tests (Files): Likewise.
22308         * modules/frexp-nolibm-tests (Files): Likewise.
22309         * modules/frexp-tests (Files): Likewise.
22310         * modules/frexpl-nolibm-tests (Files): Likewise.
22311         * modules/frexpl-tests (Files): Likewise.
22312         * modules/fseek-tests (Files): Likewise.
22313         * modules/fseeko-tests (Files): Likewise.
22314         * modules/fsync-tests (Files): Likewise.
22315         * modules/ftell-tests (Files): Likewise.
22316         * modules/ftello-tests (Files): Likewise.
22317         * modules/futimens-tests (Files): Likewise.
22318         * modules/getaddrinfo-tests (Files): Likewise.
22319         * modules/getcwd-tests (Files): Likewise.
22320         * modules/getdelim-tests (Files): Likewise.
22321         * modules/getdtablesize-tests (Files): Likewise.
22322         * modules/getgroups-tests (Files): Likewise.
22323         * modules/gethostname-tests (Files): Likewise.
22324         * modules/getline-tests (Files): Likewise.
22325         * modules/getopt-posix-tests (Files): Likewise.
22326         * modules/gettimeofday-tests (Files): Likewise.
22327         * modules/glob-tests (Files): Likewise.
22328         * modules/iconv-tests (Files): Likewise.
22329         * modules/inet_ntop-tests (Files): Likewise.
22330         * modules/inet_pton-tests (Files): Likewise.
22331         * modules/isblank-tests (Files): Likewise.
22332         * modules/lchown-tests (Files): Likewise.
22333         * modules/ldexpl-tests (Files): Likewise.
22334         * modules/link-tests (Files): Likewise.
22335         * modules/linkat-tests (Files): Likewise.
22336         * modules/lseek-tests (Files): Likewise.
22337         * modules/lstat-tests (Files): Likewise.
22338         * modules/mbrtowc-tests (Files): Likewise.
22339         * modules/mbsinit-tests (Files): Likewise.
22340         * modules/mbsnrtowcs-tests (Files): Likewise.
22341         * modules/mbsrtowcs-tests (Files): Likewise.
22342         * modules/memchr-tests (Files): Likewise.
22343         * modules/memcmp-tests (Files): Likewise.
22344         * modules/memmem-tests (Files): Likewise.
22345         * modules/memrchr-tests (Files): Likewise.
22346         * modules/mkdir-tests (Files): Likewise.
22347         * modules/mkfifo-tests (Files): Likewise.
22348         * modules/mkfifoat-tests (Files): Likewise.
22349         * modules/mknod-tests (Files): Likewise.
22350         * modules/nanosleep-tests (Files): Likewise.
22351         * modules/nl_langinfo-tests (Files): Likewise.
22352         * modules/obstack-printf-tests (Files): Likewise.
22353         * modules/open-tests (Files): Likewise.
22354         * modules/openat-tests (Files): Likewise.
22355         * modules/perror-tests (Files): Likewise.
22356         * modules/pipe2-tests (Files): Likewise.
22357         * modules/poll-tests (Files): Likewise.
22358         * modules/popen-tests (Files): Likewise.
22359         * modules/posix_spawn-tests (Files): Likewise.
22360         * modules/posix_spawnp-tests (Files): Likewise.
22361         * modules/pread-tests (Files): Likewise.
22362         * modules/printf-posix-tests (Files): Likewise.
22363         * modules/pty-tests (Files): Likewise.
22364         * modules/random_r-tests (Files): Likewise.
22365         * modules/rawmemchr-tests (Files): Likewise.
22366         * modules/readlink-tests (Files): Likewise.
22367         * modules/remove-tests (Files): Likewise.
22368         * modules/rename-tests (Files): Likewise.
22369         * modules/renameat-tests (Files): Likewise.
22370         * modules/rmdir-tests (Files): Likewise.
22371         * modules/round-tests (Files): Likewise.
22372         * modules/roundf-tests (Files): Likewise.
22373         * modules/roundl-tests (Files): Likewise.
22374         * modules/select-tests (Files): Likewise.
22375         * modules/setenv-tests (Files): Likewise.
22376         * modules/sigaction-tests (Files): Likewise.
22377         * modules/sleep-tests (Files): Likewise.
22378         * modules/snprintf-posix-tests (Files): Likewise.
22379         * modules/snprintf-tests (Files): Likewise.
22380         * modules/sprintf-posix-tests (Files): Likewise.
22381         * modules/stat-tests (Files): Likewise.
22382         * modules/strcasestr-tests (Files): Likewise.
22383         * modules/strchrnul-tests (Files): Likewise.
22384         * modules/strerror-tests (Files): Likewise.
22385         * modules/strsignal-tests (Files): Likewise.
22386         * modules/strstr-tests (Files): Likewise.
22387         * modules/strtod-tests (Files): Likewise.
22388         * modules/strverscmp-tests (Files): Likewise.
22389         * modules/symlink-tests (Files): Likewise.
22390         * modules/symlinkat-tests (Files): Likewise.
22391         * modules/times-tests (Files): Likewise.
22392         * modules/trunc-tests (Files): Likewise.
22393         * modules/truncf-tests (Files): Likewise.
22394         * modules/truncl-tests (Files): Likewise.
22395         * modules/tsearch-tests (Files): Likewise.
22396         * modules/uname-tests (Files): Likewise.
22397         * modules/unlink-tests (Files): Likewise.
22398         * modules/unsetenv-tests (Files): Likewise.
22399         * modules/usleep-tests (Files): Likewise.
22400         * modules/utimensat-tests (Files): Likewise.
22401         * modules/vasprintf-tests (Files): Likewise.
22402         * modules/vdprintf-posix-tests (Files): Likewise.
22403         * modules/vfprintf-posix-tests (Files): Likewise.
22404         * modules/vprintf-posix-tests (Files): Likewise.
22405         * modules/vsnprintf-posix-tests (Files): Likewise.
22406         * modules/vsnprintf-tests (Files): Likewise.
22407         * modules/vsprintf-posix-tests (Files): Likewise.
22408         * modules/wcrtomb-tests (Files): Likewise.
22409         * modules/wcsnrtombs-tests (Files): Likewise.
22410         * modules/wcsrtombs-tests (Files): Likewise.
22411         * modules/wcwidth-tests (Files): Likewise.
22412         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
22413         * tests/test-isinf.c (isinf): Likewise.
22414         * tests/test-isnan.c (isnan): Likewise.
22415         * tests/test-signbit.c (signbit): Likewise.
22416         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
22417         declaration, either as macro or with correct signature.
22418         (select): Ensure function under test is declared with correct
22419         signature in correct header.
22420         * tests/test-atexit.c (atexit): Likewise.
22421         * tests/test-btowc.c (btowc): Likewise.
22422         * tests/test-canonicalize-lgpl.c (realpath)
22423         (canonicalize_file_name): Likewise.
22424         * tests/test-ceilf1.c (ceilf): Likewise.
22425         * tests/test-ceill.c (ceill): Likewise.
22426         * tests/test-chown.c (chown): Likewise.
22427         * tests/test-dprintf-posix.c (dprintf): Likewise.
22428         * tests/test-dup2.c (dup2): Likewise.
22429         * tests/test-dup3.c (dup3): Likewise.
22430         * tests/test-duplocale.c (duplocale): Likewise.
22431         * tests/test-fchdir.c (fchdir): Likewise.
22432         * tests/test-fchownat.c (fchownat): Likewise.
22433         * tests/test-fcntl.c (fcntl): Likewise.
22434         * tests/test-fdopendir.c (fdopendir): Likewise.
22435         * tests/test-fflush.c (fflush): Likewise.
22436         * tests/test-flock.c (flock): Likewise.
22437         * tests/test-floorf1.c (floorf): Likewise.
22438         * tests/test-floorl.c (floorl): Likewise.
22439         * tests/test-fnmatch.c (fnmatch): Likewise.
22440         * tests/test-fopen.c (fopen): Likewise.
22441         * tests/test-fprintf-posix.c (fprintf): Likewise.
22442         * tests/test-freopen.c (freopen): Likewise.
22443         * tests/test-frexp.c (frexp): Likewise.
22444         * tests/test-frexpl.c (frexpl): Likewise.
22445         * tests/test-fseek.c (fseek): Likewise.
22446         * tests/test-fseeko.c (fseeko): Likewise.
22447         * tests/test-fstatat.c (fstatat): Likewise.
22448         * tests/test-fsync.c (fsync): Likewise.
22449         * tests/test-ftell.c (ftell): Likewise.
22450         * tests/test-ftello.c (ftello): Likewise.
22451         * tests/test-futimens.c (futimens): Likewise.
22452         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
22453         (gai_strerror): Likewise.
22454         * tests/test-getcwd.c (getcwd): Likewise.
22455         * tests/test-getdelim.c (getdelim): Likewise.
22456         * tests/test-getdtablesize.c (getdtablesize): Likewise.
22457         * tests/test-getgroups.c (getgroups): Likewise.
22458         * tests/test-gethostname.c (gethostname): Likewise.
22459         * tests/test-getline.c (getline): Likewise.
22460         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
22461         Likewise.
22462         * tests/test-gettimeofday.c (gettimeofday): Likewise.
22463         * tests/test-glob.c (glob, globfree): Likewise.
22464         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
22465         * tests/test-inet_ntop.c (inet_ntop): Likewise.
22466         * tests/test-inet_pton.c (inet_pton): Likewise.
22467         * tests/test-isblank.c (isblank): Likewise.
22468         * tests/test-lchown.c (lchown): Likewise.
22469         * tests/test-ldexpl.c (ldexpl): Likewise.
22470         * tests/test-link.c (link): Likewise.
22471         * tests/test-linkat.c (linkat): Likewise.
22472         * tests/test-lseek.c (lseek): Likewise.
22473         * tests/test-lstat.c (lstat): Likewise.
22474         * tests/test-mbrtowc.c (mbrtowc): Likewise.
22475         * tests/test-mbsinit.c (mbsinit): Likewise.
22476         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
22477         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
22478         * tests/test-memchr.c (memchr): Likewise.
22479         * tests/test-memcmp.c (memcmp): Likewise.
22480         * tests/test-memmem.c (memmem): Likewise.
22481         * tests/test-memrchr.c (memrchr): Likewise.
22482         * tests/test-mkdir.c (mkdir): Likewise.
22483         * tests/test-mkdirat.c (mkdirat): Likewise.
22484         * tests/test-mkfifo.c (mkfifo): Likewise.
22485         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
22486         * tests/test-mknod.c (mknod): Likewise.
22487         * tests/test-nanosleep.c (nanosleep): Likewise.
22488         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
22489         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
22490         Likewise.
22491         * tests/test-open.c (open): Likewise.
22492         * tests/test-openat.c (openat): Likewise.
22493         * tests/test-perror.c (perror): Likewise.
22494         * tests/test-pipe2.c (pipe2): Likewise.
22495         * tests/test-poll.c (poll): Likewise.
22496         * tests/test-popen.c (popen, pclose): Likewise.
22497         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
22498         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
22499         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
22500         (posix_spawn_file_actions_destroy)
22501         (posix_spawn_file_actions_addclose)
22502         (posix_spawn_file_actions_addopen)
22503         (posix_spawn_file_actions_adddup2): Likewise.
22504         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
22505         * tests/test-pread.c (pread): Likewise.
22506         * tests/test-printf-posix.c (printf): Likewise.
22507         * tests/test-pty.c (openpty, forkpty): Likewise.
22508         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
22509         (random_r): Likewise.
22510         * tests/test-rawmemchr.c (rawmemchr): Likewise.
22511         * tests/test-readlink.c (readlink): Likewise.
22512         * tests/test-remove.c (remove): Likewise.
22513         * tests/test-rename.c (rename): Likewise.
22514         * tests/test-renameat.c (renameat): Likewise.
22515         * tests/test-rmdir.c (rmdir): Likewise.
22516         * tests/test-round1.c (round): Likewise.
22517         * tests/test-roundf1.c (roundf): Likewise.
22518         * tests/test-roundl.c (roundl): Likewise.
22519         * tests/test-setenv.c (setenv): Likewise.
22520         * tests/test-sigaction.c (sigaction): Likewise.
22521         * tests/test-sleep.c (sleep): Likewise.
22522         * tests/test-snprintf.c (snprintf): Likewise.
22523         * tests/test-sprintf-posix.c (sprintf): Likewise.
22524         * tests/test-stat.c (stat): Likewise.
22525         * tests/test-stpncpy.c (stpncpy): Likewise.
22526         * tests/test-strcasestr.c (strcasestr): Likewise.
22527         * tests/test-strchrnul.c (strchrnul): Likewise.
22528         * tests/test-strerror.c (strerror): Likewise.
22529         * tests/test-strsignal.c (strsignal): Likewise.
22530         * tests/test-strstr.c (strstr): Likewise.
22531         * tests/test-strtod.c (strtod): Likewise.
22532         * tests/test-strverscmp.c (strverscmp): Likewise.
22533         * tests/test-symlink.c (symlink): Likewise.
22534         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
22535         * tests/test-times.c (times): Likewise.
22536         * tests/test-trunc1.c (trunc): Likewise.
22537         * tests/test-truncf1.c (truncf): Likewise.
22538         * tests/test-truncl.c (truncl): Likewise.
22539         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
22540         Likewise.
22541         * tests/test-uname.c (uname): Likewise.
22542         * tests/test-unlink.c (unlink): Likewise.
22543         * tests/test-unlinkat.c (unlinkat): Likewise.
22544         * tests/test-unsetenv.c (unsetenv): Likewise.
22545         * tests/test-usleep.c (usleep): Likewise.
22546         * tests/test-utimensat.c (utimensat): Likewise.
22547         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
22548         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
22549         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
22550         * tests/test-vprintf-posix.c (vprintf): Likewise.
22551         * tests/test-vsnprintf.c (vsnprintf): Likewise.
22552         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
22553         * tests/test-wcrtomb.c (wcrtomb): Likewise.
22554         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
22555         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
22556         * tests/test-wcwidth.c (wcwidth): Likewise.
22557
22558         build: pull in conditional headers during GNULIB_POSIXCHECK
22559         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
22560         definitions from any conditionally-included headers.
22561         * lib/stdlib.in.h (includes): Likewise.
22562         * lib/unistd.in.h (includes): Likewise.
22563
22564 2009-12-24  Bruno Haible  <bruno@clisp.org>
22565
22566         * tests/test-argv-iter.c: Include header file being tested immediately
22567         after config.h.
22568         * tests/test-base64.c: Likewise.
22569         * tests/test-flock.c: Likewise.
22570         * tests/test-fsync.c: Likewise.
22571         * tests/test-getdate.c: Likewise.
22572         * tests/test-getndelim2.c: Likewise.
22573         * tests/test-isfinite.c: Likewise.
22574         * tests/test-isinf.c: Likewise.
22575         * tests/test-strerror.c: Likewise.
22576         * tests/test-strsignal.c: Likewise.
22577
22578 2009-12-23  Eric Blake  <ebb9@byu.net>
22579
22580         unistd: work around cygwin bug
22581         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
22582         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
22583         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22584
22585 2009-12-23  Bruno Haible  <bruno@clisp.org>
22586
22587         localename: More tests.
22588         * tests/test-localename.c (SIZEOF): New macro.
22589         (categories): New variable.
22590         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
22591         test_locale_name_default): Add test w.r.t. thread locale.
22592         (test_locale_name_thread): New function.
22593         (main): Invoke it.
22594
22595         localename: Make aware of thread locale.
22596         * lib/localename.h (gl_locale_name_thread): New declaration.
22597         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
22598         behaviour with respect to thread locale.
22599         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
22600         <langinfo.h>, glthread/lock.h.
22601         (SIZE_BITS): New macro.
22602         (string_hash): New function.
22603         (struct hash_node): New type.
22604         (HASH_TABLE_SIZE): New macro.
22605         (struniq_hash_table, struniq_lock): New variables.
22606         (struniq): New function.
22607         (gl_locale_name_thread): New function.
22608         (gl_locale_name): Invoke it.
22609         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
22610         * modules/localename (Depends-on): Add lock.
22611         Reported by Mike Gran <spk121@yahoo.com>.
22612
22613 2009-12-23  Eric Blake  <ebb9@byu.net>
22614
22615         va-args: new module
22616         * modules/va-args: New file.
22617         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
22618         * MODULES.html.sh (Core language properties): Mention it.
22619
22620         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
22621         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
22622         named alias for __attribute__((__unused__)).
22623         * lib/chown.c: Update client.
22624         * lib/fchmodat.c: Likewise.
22625         * lib/fts.c: Likewise.
22626         * lib/getdate.y: Likewise.
22627         * lib/getgroups.c: Likewise.
22628         * lib/getopt.c: Likewise.
22629         * lib/getugroups.c: Likewise.
22630         * lib/mkdir.c: Likewise.
22631         * lib/mkfifo.c: Likewise.
22632         * lib/mkfifoat.c: Likewise.
22633         * lib/mknod.c: Likewise.
22634         * lib/mknodat.c: Likewise.
22635         * lib/readlink.c: Likewise.
22636         * lib/se-context.in.h: Likewise.
22637         * lib/se-selinux.in.h: Likewise.
22638         * lib/sockets.c: Likewise.
22639         * lib/symlink.c: Likewise.
22640         * lib/symlinkat.c: Likewise.
22641         * lib/unicodeio.c: Likewise.
22642         * lib/unistr.h: Likewise.
22643         * tests/test-areadlink.c: Likewise.
22644         * tests/test-areadlinkat.c: Likewise.
22645         * tests/test-filenamecat.c: Likewise.
22646         * tests/test-fseeko.c: Likewise.
22647         * tests/test-ftello.c: Likewise.
22648         * tests/test-getdate.c: Likewise.
22649         * tests/test-getgroups.c: Likewise.
22650         * tests/test-gethostname.c: Likewise.
22651         * tests/test-quotearg.c: Likewise.
22652         * tests/test-version-etc.c: Likewise.
22653         * tests/test-xalloc-die.c: Likewise.
22654         * tests/test-xfprintf-posix.c: Likewise.
22655         * tests/test-xprintf-posix.c: Likewise.
22656         * tests/test-xvasprintf.c: Likewise.
22657
22658         tests: avoid compiler warnings
22659         * tests/test-fcntl.c (main): Delete unused parameters.
22660         * tests/test-freopen-safer.c (main): Likewise.
22661         * tests/test-xalloc-die.c (main): Mark unused parameters.
22662         * tests/test-fseeko.c (main): Likewise.
22663         * tests/test-ftello.c (main): Likewise.
22664         * tests/test-nanosleep.c (main): Avoid declaration warning.
22665         * tests/test-sleep.c (main): Likewise.
22666         * tests/test-unsetenv.c (main): Silence warning about string
22667         literal.
22668         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22669
22670 2009-12-23  Bruno Haible  <bruno@clisp.org>
22671
22672         * tests/test-localename.c (test_locale_name): New function, extracted
22673         from main. Also test mixed situations.
22674         (test_locale_name_posix, test_locale_name_environ,
22675         test_locale_name_default): New functions.
22676         (main): Invoke them all.
22677         * modules/localename-tests (configure.ac): Test for newlocale.
22678
22679 2009-12-23  Bruno Haible  <bruno@clisp.org>
22680
22681         unistd: Ensure getcwd gets declared before being overridden.
22682         * lib/unistd.in.h: Conditionally include <io.h>.
22683
22684 2009-12-22  Bruno Haible  <bruno@clisp.org>
22685
22686         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22687         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22688         (gl_WCHAR_H): Invoke it.
22689         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22690         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22691         Reported by Karl Berry <karl@freefriends.org>.
22692
22693 2009-12-22  Eric Blake  <ebb9@byu.net>
22694
22695         math, unistd: avoid redundant includes
22696         * lib/math.in.h (isnan): No need to re-include <math.h>.
22697         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22698
22699         getsubopt: work around cygwin bug
22700         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22701         avoid conflicting with system getsubopt.
22702         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22703         bug.
22704
22705         getopt: synchronize from glibc
22706         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22707         parameter order.  Adjust all callers.
22708         (_getopt_internal_r, main): Adjust quoting in error messages.
22709         Drop considerations for outdated POSIX 1003.2 error message.
22710         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22711         callers.
22712         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22713
22714         test-getopt: test stderr behavior
22715         * modules/getopt-posix-tests (Depends-on): Add dup2.
22716         * tests/test-getopt.c (ASSERT): Avoid stderr.
22717         (main): Move stderr to a temporary file.
22718         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22719         Instead, add parameter to inform caller if output occurred.
22720         (test_getopt): Adjust all existing tests to expect silence, and
22721         add new tests of leading ":".
22722         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22723         glibc shortcomings with leading "-:" or "+:" in optstring.
22724         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22725         Likewise.
22726         * doc/posix-functions/getopt.texi (getopt): Likewise.
22727
22728         test-getopt: enhance test
22729         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22730         supports optind=0.
22731         * tests/test-getopt.c (OPTIND_MIN): Move...
22732         * tests/test-getopt.h (OPTIND_MIN): ...here.
22733         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22734         Require that optind=0 works, since modern BSD supports it in
22735         addition to optreset, and since coreutils expects it.
22736         (test_getopt_long_only): New test.
22737         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22738         glibc shortcomings with 'W;', and enforcement of optind=0.
22739         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22740         Likewise.
22741
22742 2009-12-21  Bruno Haible  <bruno@clisp.org>
22743
22744         localename: Improvements for MacOS X and Cygwin.
22745         * lib/localename.h (gl_locale_name_environ): New declaration.
22746         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22747         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22748         (gl_locale_name_posix): Invoke it.
22749         (gl_locale_name_default): Add comments. Use Windows native API also on
22750         Cygwin.
22751
22752 2009-12-21  Bruno Haible  <bruno@clisp.org>
22753
22754         Update list of Win32 locale ids.
22755         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22756         (LANG_SAMI): Renamed from LANG_SAAMI.
22757         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22758         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22759         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22760         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22761         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22762         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22763         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22764         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22765         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22766         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22767         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22768         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22769         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22770         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22771         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22772         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22773         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22774         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22775         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22776         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22777         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22778         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22779         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22780         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22781         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22782         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22783         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22784         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22785         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22786         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22787         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22788         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22789         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22790         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22791         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22792         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22793         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22794         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22795         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22796         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22797         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22798         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22799         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22800         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22801         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22802         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22803         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22804         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22805         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22806         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22807         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22808         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22809         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22810         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22811         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22812         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22813         Add more languages and countries for Sami, Sorbian. Add more countries
22814         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22815         for Pashto. Change country for Syriac, Tswana.
22816
22817 2009-12-21  Eric Blake  <ebb9@byu.net>
22818
22819         test-utimens: avoid spurious failure
22820         * tests/test-chown.h (nap): Factor...
22821         * tests/nap.h: ...into new file.
22822         * tests/test-lchown.h (nap): Avoid duplication.
22823         * tests/test-utimens-common.h (nap): Use shared implementation,
22824         necessary on file systems with 1-second resolution.
22825         * modules/chown-tests (Files): Include new file.
22826         * modules/fdutimensat-tests (Files): Likewise.
22827         * modules/futimens-tests (Files): Likewise.
22828         * modules/lchown-tests (Files): Likewise.
22829         * modules/openat-tests (Files): Likewise.
22830         * modules/utimens-tests (Files): Likewise.
22831         * modules/utimensat-tests (Files): Likewise.
22832
22833 2009-12-19  Eric Blake  <ebb9@byu.net>
22834
22835         futimens, utimensat: work around Linux bug
22836         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22837         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22838         * lib/utimensat.c (rpl_utimensat): Work around it.
22839         * lib/futimens.c (rpl_futimens): Adjust comment.
22840
22841         utimens: work around Linux ctime bug
22842         * lib/utimens.c (detect_ctime_bug): New helper function.
22843         (update_timespec): Differentiate between workaround needed for
22844         this bug vs. what is needed for systems that lack utimensat.
22845         (fdutimens, lutimens): Work around bug.
22846
22847         utimens: check for ctime update
22848         * tests/test-utimens-common.h (check_ctime): Define.
22849         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22850         * tests/test-futimens.h (test_futimens): Likewise.
22851         * tests/test-lutimens.h (test_lutimens): Likewise.
22852         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22853         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22854
22855 2009-12-19  Bruno Haible  <bruno@clisp.org>
22856
22857         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22858         * tests/test-dprintf-posix2.sh: New file.
22859         * tests/test-dprintf-posix2.c: New file.
22860         * modules/dprintf-posix-tests (Files): Add them.
22861         (configure.ac): Check for getrlimit and setrlimit.
22862         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22863
22864 2009-12-19  Bruno Haible  <bruno@clisp.org>
22865
22866         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22867         * tests/test-fprintf-posix3.sh: New file.
22868         * tests/test-fprintf-posix3.c: New file.
22869         * modules/fprintf-posix-tests (Files): Add them.
22870         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22871
22872 2009-12-19  Eric Blake  <ebb9@byu.net>
22873
22874         dirfd: fix prototype
22875         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22876         * lib/dirfd.c (dirfd): Likewise.
22877
22878         canonicalize: reduce memory usage
22879         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22880         allocation to size.
22881         Reported by Solar Designer <solar@openwall.com>.
22882
22883 2009-12-19  Bruno Haible  <bruno@clisp.org>
22884
22885         New module attribute 'Applicability'.
22886         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22887         * gnulib-tool: New option --extract-applicability.
22888         (func_usage): Document it.
22889         (sed_extract_prog): Recognize it.
22890         (func_get_applicability): New function.
22891         (func_import): Generalize handling of 'link-warning' module.
22892         * modules/link-warning (Applicability): New section.
22893         * modules/arg-nonnull (Applicability): New section.
22894         Repoted by Simon Josefsson <simon@josefsson.org>.
22895
22896 2009-12-19  Bruno Haible  <bruno@clisp.org>
22897
22898         fflush: tweak
22899         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22900         * lib/fseeko.c (rpl_fseeko): Likewise.
22901
22902 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22903
22904         * lib/gl_list.h: Fix typo in comment.
22905
22906 2009-12-16  Eric Blake  <ebb9@byu.net>
22907
22908         fcntl: use to simplify other modules
22909         * modules/cloexec (Depends-on): Add fcntl.
22910         * modules/fchdir (Depends-on): Likewise.
22911         * modules/fd-safer-flag (Depends-on): Likewise.
22912         * modules/unistd-safer (Depends-on): Likewise.
22913         * modules/dup3 (configure.ac): Set module indicator.
22914         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22915         missing.
22916         * lib/fchdir.c (_gl_register_dup): Fix comment.
22917         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22918         * lib/dup-safer.c (dup_safer): Likewise.
22919         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22920         * lib/dup3.c (dup3): Likewise.
22921         * tests/test-fchdir.c (main): Enhance test.
22922         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22923
22924         fcntl: port portions of fcntl to mingw
22925         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22926         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22927         replacement for mingw.
22928         * modules/fcntl (Description): Update.
22929         (Depends-on): Add dup2.
22930         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22931         * modules/fcntl-h (Makefile.am): Substitute it.
22932         * lib/fcntl.in.h (fcntl): Update declaration.
22933         (F_DUPFD, F_GETFD): New macros, when needed.
22934         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22935         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22936         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22937         we now guarantee.
22938
22939         fcntl: work around cygwin bug in F_DUPFD
22940         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22941         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22942         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22943         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22944         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22945
22946         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22947         * modules/fcntl (Files): List new files.
22948         (configure.ac): Run a test.
22949         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22950         * lib/fcntl.c (rpl_fcntl): Likewise.
22951         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22952         (gl_FCNTL_H): Always replace fcntl.h.
22953         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22954         * lib/fcntl.in.h (fcntl): Declare replacement.
22955         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22956         needed, plus a witness.
22957         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22958         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22959         * tests/test-fcntl.c: New file.
22960         * modules/fcntl-tests: Likewise.
22961
22962         binary-io: avoid potential compilation warning
22963         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22964         directives.
22965
22966         fflush: avoid compilation error on NetBSD
22967         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22968         between off_t and fpos_t, since the latter is sometimes a struct.
22969         * lib/fseeko.c (rpl_fseeko): Likewise.
22970         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22971
22972 2009-12-15  Eric Blake  <ebb9@byu.net>
22973
22974         fcntl-h, stdio, sys_ioctl: fix declarations
22975         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22976         function must not take arguments.
22977         * lib/sys_ioctl.in.h (ioctl): Likewise.
22978         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22979         (open): Add a link warning.
22980
22981 2009-12-15  Jim Meyering  <meyering@redhat.com>
22982
22983         areadlink, areadlink-with-size: relax license to LGPLv2+
22984         * modules/areadlink (License): Relax to LGPLv2+.
22985         * modules/areadlink-with-size (License): Likewise.
22986
22987 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22988             Bruno Haible  <bruno@clisp.org>
22989
22990         *printf: Fix memory leak.
22991         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22992         * lib/vfprintf.c (vfprintf): Likewise.
22993         * lib/dprintf.c (dprintf): Likewise.
22994         * lib/vdprintf.c (vdprintf): Likewise.
22995
22996 2009-12-14  Eric Blake  <ebb9@byu.net>
22997
22998         accept4: adjust module dependencies
22999         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
23000
23001         utimens: one more try at avoiding compiler warning
23002         * lib/utimens.c (lutimens): Lower scope of result.
23003
23004 2009-12-13  Bruno Haible  <bruno@clisp.org>
23005
23006         Move the malloc checking from module 'list' to new module 'xlist'.
23007         * modules/xlist: New file.
23008         * lib/gl_xlist.h: New file.
23009         * lib/gl_xlist.c: New file.
23010         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
23011         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
23012         gl_list_add_last, gl_list_add_before, gl_list_add_after,
23013         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
23014         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
23015         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
23016         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
23017         gl_sortedlist_nx_add): New declarations.
23018         (struct gl_list_implementation): Rename and change methods accordingly.
23019         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
23020         (gl_list_nx_create): Renamed from gl_list_create.
23021         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23022         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23023         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23024         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23025         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23026         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23027         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23028         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23029         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
23030         gl_list_create_empty.
23031         (gl_list_nx_create): Renamed from gl_list_create.
23032         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23033         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23034         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23035         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23036         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23037         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23038         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23039         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23040         * lib/gl_array_list.c: Don't include xalloc.h.
23041         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
23042         NULL upon out-of-memory.
23043         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
23044         out-of-memory.
23045         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
23046         Change return type to 'int'.
23047         (gl_array_nx_set_at): Renamed from gl_array_set_at.
23048         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23049         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
23050         upon out-of-memory.
23051         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
23052         upon out-of-memory.
23053         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
23054         upon out-of-memory.
23055         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
23056         upon out-of-memory.
23057         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
23058         out-of-memory.
23059         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
23060         Update.
23061         (gl_array_list_implementation): Update.
23062         * lib/gl_carray_list.c: Don't include xalloc.h.
23063         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
23064         Return NULL upon out-of-memory.
23065         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
23066         out-of-memory.
23067         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
23068         Change return type to 'int'.
23069         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
23070         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23071         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
23072         upon out-of-memory.
23073         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
23074         upon out-of-memory.
23075         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
23076         out-of-memory.
23077         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
23078         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
23079         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
23080         Update.
23081         (gl_carray_list_implementation): Update.
23082         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
23083         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
23084         gl_linked_create_empty. Return NULL upon out-of-memory.
23085         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
23086         out-of-memory.
23087         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
23088         Change return type to 'int'. Return -1 upon out-of-memory.
23089         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
23090         out-of-memory.
23091         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
23092         upon out-of-memory.
23093         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
23094         upon out-of-memory.
23095         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
23096         NULL upon out-of-memory.
23097         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
23098         upon out-of-memory.
23099         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
23100         out-of-memory.
23101         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
23102         Update.
23103         * lib/gl_linked_list.c: Don't include xalloc.h.
23104         (gl_linked_list_implementation): Update.
23105         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
23106         (add_to_bucket): Change return type to 'int'.
23107         (gl_linkedhash_list_implementation): Update.
23108         * lib/gl_anytree_list1.h (free_subtree): New function.
23109         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
23110         gl_tree_create_empty. Return NULL upon out-of-memory.
23111         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
23112         Change return type to 'int'. Return -1 upon out-of-memory.
23113         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
23114         out-of-memory.
23115         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
23116         (gl_tree_remove_node): New function, moved here from
23117         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
23118         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
23119         Update.
23120         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
23121         malloc, not xmalloc. Return NULL upon out-of-memory.
23122         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23123         out-of-memory.
23124         (gl_tree_remove_node_from_tree): New function, extracted from
23125         gl_tree_remove_node.
23126         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23127         upon out-of-memory.
23128         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23129         out-of-memory.
23130         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23131         upon out-of-memory.
23132         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23133         upon out-of-memory.
23134         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23135         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
23136         not xmalloc. Return NULL upon out-of-memory.
23137         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23138         out-of-memory.
23139         (gl_tree_remove_node_from_tree): New function, extracted from
23140         gl_tree_remove_node.
23141         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23142         upon out-of-memory.
23143         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23144         out-of-memory.
23145         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23146         upon out-of-memory.
23147         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23148         upon out-of-memory.
23149         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23150         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
23151         gl_anytree_list1.h before gl_anyavltree_list2.h.
23152         (gl_avltree_list_implementation): Update.
23153         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
23154         gl_anytree_list1.h before gl_anyavltree_list2.h.
23155         (gl_rbtree_list_implementation): Update.
23156         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
23157         Change return type to 'int'. Return -1 upon out-of-memory. Use
23158         __builtin_expect.
23159         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
23160         (gl_avltreehash_list_implementation): Update.
23161         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
23162         (gl_rbtreehash_list_implementation): Update.
23163         * modules/array-list (Depends-on): Remove xalloc.
23164         * modules/carray-list (Depends-on): Likewise.
23165         * modules/linked-list (Depends-on): Likewise.
23166         * modules/linkedhash-list (Depends-on): Likewise.
23167         * modules/avltree-list (Depends-on): Likewise.
23168         * modules/rbtree-list (Depends-on): Likewise.
23169         * modules/avltreehash-list (Depends-on): Likewise.
23170         * modules/rbtreehash-list (Depends-on): Likewise.
23171
23172         * modules/xsublist: New file.
23173         * lib/gl_xsublist.h: New file.
23174         * lib/gl_xsublist.c: New file.
23175         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
23176         (gl_sublist_nx_create): New declaration.
23177         * lib/gl_sublist.c: Don't include xalloc.h.
23178         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
23179         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
23180         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
23181         Change return type to 'int'. Return -1 upon out-of-memory.
23182         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
23183         upon out-of-memory.
23184         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
23185         NULL upon out-of-memory.
23186         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
23187         upon out-of-memory.
23188         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
23189         NULL upon out-of-memory.
23190         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
23191         NULL upon out-of-memory.
23192         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
23193         upon out-of-memory.
23194         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
23195         (gl_sublist_list_implementation): Update.
23196         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
23197         upon out-of-memory.
23198         * modules/sublist (Depends-on): Remove xalloc.
23199
23200         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
23201         * tests/test-carray_list.c: Likewise.
23202         * tests/test-linked_list.c: Likewise.
23203         * tests/test-linkedhash_list.c: Likewise.
23204         * tests/test-avltree_list.c: Likewise.
23205         * tests/test-rbtree_list.c: Likewise.
23206         * tests/test-avltreehash_list.c: Likewise.
23207         * tests/test-rbtreehash_list.c: Likewise.
23208         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
23209         * modules/carray-list-tests (Makefile.am): Likewise.
23210         * modules/linked-list-tests (Makefile.am): Likewise.
23211         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23212         * modules/avltree-list-tests (Makefile.am): Likewise.
23213         * modules/rbtree-list-tests (Makefile.am): Likewise.
23214         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23215         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23216
23217         * NEWS: Mention the changes.
23218
23219         * lib/clean-temp.c: Include gl_xlist.h.
23220         * modules/clean-temp (Depends-on): Add xlist.
23221
23222         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
23223         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
23224
23225         * tests/test-array_oset.c: Include gl_xlist.h.
23226         * modules/array-oset-tests (Depends-on): Add xlist.
23227
23228         Reported by José E. Marchesi <jemarch@gnu.org>.
23229
23230 2009-12-13  Bruno Haible  <bruno@clisp.org>
23231
23232         Move the malloc checking from module 'oset' to new module 'xoset'.
23233         * modules/xoset: New file.
23234         * lib/gl_xoset.h: New file.
23235         * lib/gl_xoset.c: New file.
23236         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
23237         declarations.
23238         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
23239         (struct gl_oset_implementation): Rename and change methods accordingly.
23240         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
23241         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23242         'int'. Mark as __warn_unused_result__.
23243         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
23244         gl_oset_create_empty.
23245         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23246         'int'.
23247         * lib/gl_array_oset.c: Don't include xalloc.h.
23248         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
23249         malloc, not xmalloc.
23250         (grow): Change return type to 'int'. Don't call xalloc_die.
23251         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
23252         to 'int'.
23253         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
23254         'int'.
23255         (gl_array_oset_implementation): Update.
23256         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
23257         gl_tree_create_empty.
23258         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
23259         'int'.
23260         * lib/gl_avltree_oset.c: Don't include xalloc.h.
23261         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23262         xmalloc.
23263         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23264         not xmalloc.
23265         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23266         xmalloc.
23267         (gl_avltree_oset_implementation): Update.
23268         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
23269         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23270         xmalloc.
23271         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23272         not xmalloc.
23273         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23274         xmalloc.
23275         (gl_rbtree_oset_implementation): Update.
23276         * modules/array-oset (Depends-on): Remove xalloc.
23277         * modules/avltree-oset (Depends-on): Likewise.
23278         * modules/rbtree-oset (Depends-on): Likewise.
23279         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
23280         * tests/test-avltree_oset.c: Likewise.
23281         * tests/test-rbtree_oset.c: Likewise.
23282         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
23283         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
23284         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23285         * NEWS: Mention the change.
23286
23287 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
23288
23289         maint.mk: allow a project to override release-prep commands
23290         * top/maint.mk (alpha, beta, stable): Move release-preparatory
23291         commands into a new rule.
23292         (release-prep): New rule.
23293         (release-prep-hook): New overridable variable.
23294
23295 2009-12-13  Bruno Haible  <bruno@clisp.org>
23296
23297         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
23298
23299 2009-12-13  Jim Meyering  <meyering@redhat.com>
23300
23301         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
23302         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
23303
23304 2009-12-12  Bruno Haible  <bruno@clisp.org>
23305
23306         duplocale: Tweak.
23307         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
23308
23309 2009-12-12  Karl Berry  <karl@gnu.org>
23310
23311         * config/srclist.txt (strtoll.c): tab changes, no more sync.
23312
23313 2009-12-12  Bruno Haible  <bruno@clisp.org>
23314
23315         * m4/po.m4: Undo incorrect untabification.
23316
23317 2009-12-12  Bruno Haible  <bruno@clisp.org>
23318
23319         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
23320         * modules/c-strtod (Depends-on): Add locale.
23321         * modules/c-strtold (Depends-on): Likewise.
23322
23323 2009-12-12  Bruno Haible  <bruno@clisp.org>
23324
23325         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
23326
23327 2009-12-11  Eric Blake  <ebb9@byu.net>
23328
23329         setenv: relax requirement in light of POSIX ruling
23330         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
23331         not NULL.
23332         * tests/test-setenv.c (main): Relax test.
23333         * tests/test-unsetenv.c (main): Likewise.
23334         * doc/posix-functions/setenv.texi (setenv): Document this.
23335         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23336
23337 2009-12-11  Bruno Haible  <bruno@clisp.org>
23338
23339         New module 'fd-safer-flag'.
23340         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
23341         * lib/dup-safer.c (dup_safer_flag): Remove function.
23342         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
23343         * lib/fd-safer.c (fd_safer_flag): Remove function.
23344         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
23345         * modules/cloexec (configure.ac): Drop indicator macro.
23346         * modules/fd-safer-flag: New file.
23347         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
23348         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
23349         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
23350
23351 2009-12-11  Bruno Haible  <bruno@clisp.org>
23352
23353         Tests for module 'nl_langinfo'.
23354         * modules/nl_langinfo-tests: New file.
23355         * tests/test-nl_langinfo.sh: New file.
23356         * tests/test-nl_langinfo.c: New file.
23357
23358         New module 'nl_langinfo'.
23359         * lib/nl_langinfo.c: New file.
23360         * m4/nl_langinfo.m4: New file.
23361         * modules/nl_langinfo: New file.
23362         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
23363
23364 2009-12-11  Bruno Haible  <bruno@clisp.org>
23365
23366         Tests for module 'langinfo'.
23367         * modules/langinfo-tests: New file.
23368         * tests/test-langinfo.c: New file.
23369
23370         New module 'langinfo'.
23371         * lib/langinfo.in.h: New file.
23372         * m4/langinfo_h.m4: New file.
23373         * modules/langinfo: New file.
23374         * doc/posix-headers/langinfo.texi: Mention the new module.
23375
23376 2009-12-11  Bruno Haible  <bruno@clisp.org>
23377
23378         * lib/config.charset: Untabify.
23379
23380 2009-12-11  Bruno Haible  <bruno@clisp.org>
23381
23382         * modules/unistd-safer (configure.ac): Drop indicator macro.
23383
23384 2009-12-11  Bruno Haible  <bruno@clisp.org>
23385
23386         Move pipe2-safer code to its own file.
23387         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
23388         * lib/pipe-safer.c (pipe2_safer): Remove function.
23389         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
23390         (Makefile.am): Add it to lib_SOURCES.
23391
23392 2009-12-10  Bruno Haible  <bruno@clisp.org>
23393
23394         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
23395
23396 2009-12-10  Bruno Haible  <bruno@clisp.org>
23397
23398         Declare which arguments expect non-NULL values, for GCC and clang.
23399         * build-aux/arg-nonnull.h: New file.
23400         * modules/arg-nonnull: New file.
23401         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
23402         (inet_ntop, inet_pton): Use it.
23403         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
23404         (closedir, dirfd, opendir, scandir, alphasort): Use it.
23405         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
23406         (open, openat): Use it.
23407         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
23408         (fnmatch): Use it.
23409         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
23410         (getopt, getopt_long, getopt_long_only): Use it.
23411         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
23412         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
23413         Use it.
23414         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
23415         (iconv_open): Use it.
23416         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
23417         (strtoimax, strtoumax): Use it.
23418         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
23419         (duplocale): Use it.
23420         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
23421         (frexp, frexpl): Use it.
23422         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
23423         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
23424         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
23425         (tsearch, tfind, tdelete, twalk): Use it.
23426         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
23427         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23428         sigpending): Use it.
23429         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
23430         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23431         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23432         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23433         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23434         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23435         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23436         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23437         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23438         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23439         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23440         Use it.
23441         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
23442         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
23443         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
23444         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
23445         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
23446         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
23447         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
23448         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
23449         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
23450         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
23451         strtoull, unsetenv): Use it.
23452         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
23453         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23454         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23455         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23456         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23457         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
23458         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
23459         (strcasecmp, strncasecmp): Use it.
23460         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
23461         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
23462         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
23463         rpl_setsockopt): Use it.
23464         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
23465         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
23466         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
23467         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
23468         (gettimeofday): Use it.
23469         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
23470         (times): Use it.
23471         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
23472         (uname): Use it.
23473         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
23474         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
23475         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
23476         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
23477         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
23478         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
23479         unlinkat, write): Use it.
23480         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
23481         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
23482         * lib/argv-iter.h: Include arg-nonnull.h.
23483         (_ATTRIBUTE_NONNULL_): Remove macro.
23484         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
23485         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
23486         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
23487         optimization.
23488         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
23489         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
23490         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
23491         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
23492         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
23493         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
23494         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
23495         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
23496         * modules/arpa_inet (Depends-on): Add arg-nonnull.
23497         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
23498         * modules/dirent (Depends-on): Add arg-nonnull.
23499         (Makefile.am): Insert arg-nonnull.h into dirent.h.
23500         * modules/fcntl-h (Depends-on): Add arg-nonnull.
23501         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
23502         * modules/fnmatch (Depends-on): Add arg-nonnull.
23503         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
23504         * modules/getopt-posix (Depends-on): Add arg-nonnull.
23505         (Makefile.am): Insert arg-nonnull.h into getopt.h.
23506         * modules/glob (Depends-on): Add arg-nonnull.
23507         (Makefile.am): Insert arg-nonnull.h into glob.h.
23508         * modules/iconv_open (Depends-on): Add arg-nonnull.
23509         (Makefile.am): Insert arg-nonnull.h into iconv.h.
23510         * modules/inttypes (Depends-on): Add arg-nonnull.
23511         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
23512         * modules/locale (Depends-on): Add arg-nonnull.
23513         (Makefile.am): Insert arg-nonnull.h into locale.h.
23514         * modules/math (Depends-on): Add arg-nonnull.
23515         (Makefile.am): Insert arg-nonnull.h into math.h.
23516         * modules/netdb (Depends-on): Add arg-nonnull.
23517         (Makefile.am): Insert arg-nonnull.h into netdb.h.
23518         * modules/search (Depends-on): Add arg-nonnull.
23519         (Makefile.am): Insert arg-nonnull.h into search.h.
23520         * modules/signal (Depends-on): Add arg-nonnull.
23521         (Makefile.am): Insert arg-nonnull.h into signal.h.
23522         * modules/spawn (Depends-on): Add arg-nonnull.
23523         (Makefile.am): Insert arg-nonnull.h into spawn.h.
23524         * modules/stdio (Depends-on): Add arg-nonnull.
23525         (Makefile.am): Insert arg-nonnull.h into stdio.h.
23526         * modules/stdlib (Depends-on): Add arg-nonnull.
23527         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
23528         * modules/string (Depends-on): Add arg-nonnull.
23529         (Makefile.am): Insert arg-nonnull.h into string.h.
23530         * modules/strings (Depends-on): Add arg-nonnull.
23531         (Makefile.am): Insert arg-nonnull.h into strings.h.
23532         * modules/sys_socket (Depends-on): Add arg-nonnull.
23533         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
23534         * modules/sys_stat (Depends-on): Add arg-nonnull.
23535         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
23536         * modules/sys_time (Depends-on): Add arg-nonnull.
23537         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
23538         * modules/sys_times (Depends-on): Add arg-nonnull.
23539         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
23540         * modules/sys_utsname (Depends-on): Add arg-nonnull.
23541         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
23542         * modules/time (Depends-on): Add arg-nonnull.
23543         (Makefile.am): Insert arg-nonnull.h into time.h.
23544         * modules/unistd (Depends-on): Add arg-nonnull.
23545         (Makefile.am): Insert arg-nonnull.h into unistd.h.
23546         * modules/wchar (Depends-on): Add arg-nonnull.
23547         (Makefile.am): Insert arg-nonnull.h into wchar.h.
23548         * modules/argv-iter (Depends-on): Add arg-nonnull.
23549         * tests/test-canonicalize.c (null_ptr): New function.
23550         (main): Use it.
23551         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
23552         (main): Use it.
23553         * tests/test-memmem.c (null_ptr): New function.
23554         (main): Use it.
23555         Reported by Jim Meyering.
23556
23557 2009-12-10  Bruno Haible  <bruno@clisp.org>
23558
23559         Use spaces for indentation, not tabs.
23560         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23561         * m4/*.m4: Untabify.
23562         * build-aux/*.h: Untabify.
23563         * tests/**/*.[hc]: Untabify.
23564         * README: New section "Indent with spaces, not TABs", based on
23565         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
23566         * NEWS: Mention the change.
23567
23568 2009-12-10  Bruno Haible  <bruno@clisp.org>
23569
23570         pty test: Fix link error.
23571         * modules/pty-tests (Makefile.am): Add the default LDADD value to
23572         test_pty_LDADD.
23573
23574 2009-12-07  Simon Josefsson  <simon@josefsson.org>
23575
23576         * modules/pty: New file.
23577         * modules/pty-tests: New file.
23578         * m4/pty.m4: New file.
23579         * tests/test-pty.c: New file.
23580         * doc/glibc-headers/pty.texi: Modified.
23581         * doc/glibc-functions/forkpty.texi: Modified.
23582         * doc/glibc-functions/openpty.texi: Modified.
23583
23584 2009-12-10  Bruno Haible  <bruno@clisp.org>
23585
23586         Avoid syntax error in C++ mode.
23587         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
23588
23589 2009-12-10  Bruno Haible  <bruno@clisp.org>
23590
23591         Use sed with option -e.
23592         * gnulib-tool (func_version, func_emit_copyright_notice,
23593         func_emit_initmacro_end, func_import, func_create_testdir): Pass
23594         option -e to sed.
23595         * modules/link-warning (Makefile.am): Likewise.
23596
23597 2009-12-10  Jim Meyering  <meyering@redhat.com>
23598
23599         mgetgroups: do not write bytes beyond end of malloc'd buffer
23600         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
23601         username, we call getgroups with a one-element-shorter buffer,
23602         but still told it the length was original, max_n_groups.
23603
23604 2009-12-09  Eric Blake  <ebb9@byu.net>
23605
23606         cloexec: relax license
23607         * modules/cloexec (Maintainer): Add myself.
23608         (License): Use LGPL, not GPL.
23609
23610         link-warning: optimize generation
23611         * modules/link-warning (Makefile.am): Reduce process usage.
23612
23613 2009-12-09  Bruno Haible  <bruno@clisp.org>
23614
23615         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
23616         workaround was added on 2009-11-17.
23617
23618 2009-12-09  Jim Meyering  <meyering@redhat.com>
23619             Bruno Haible  <bruno@clisp.org>
23620
23621         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
23622         * modules/link-warning (Makefile.am): Make the comment-removing sed
23623         command more robust in the face of bootstrap-prepended comment lines.
23624
23625 2009-12-09  Bruno Haible  <bruno@clisp.org>
23626
23627         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
23628         most one group.
23629
23630 2009-12-09  Simon Josefsson <simon@josefsson.org>
23631             Bruno Haible  <bruno@clisp.org>
23632
23633         * build-aux/link-warning.h: Add copyright notice.
23634         * modules/link-warning (Makefile.am): Generate link-warning.h from
23635         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
23636         * NEWS: Mention change in link-warning module.
23637         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
23638         * modules/dirent (Makefile.am): Add dependency to dirent.h.
23639         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
23640         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
23641         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
23642         * modules/math (Makefile.am): Add dependency to math.h.
23643         * modules/search (Makefile.am): Add dependency to search.h.
23644         * modules/signal (Makefile.am): Add dependency to signal.h.
23645         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23646         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23647         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23648         * modules/string (Makefile.am): Add dependency to string.h.
23649         * modules/strings (Makefile.am): Add dependency to strings.h.
23650         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23651         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23652         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23653         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23654         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23655         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23656         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23657         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23658         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23659
23660 2009-12-09  Bruno Haible  <bruno@clisp.org>
23661
23662         fchdir: Optimize away rpl_fstat when possible.
23663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23664         REPLACE_OPEN_DIRECTORY.
23665         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23666
23667 2009-12-09  Bruno Haible  <bruno@clisp.org>
23668
23669         * lib/fchdir.c: Update comment.
23670
23671 2009-12-09  Bruno Haible  <bruno@clisp.org>
23672
23673         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23674
23675 2009-12-08  Eric Blake  <ebb9@byu.net>
23676
23677         fchdir: avoid memory leak on re-registration.
23678         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23679
23680 2009-12-08  Jim Meyering  <meyering@redhat.com>
23681
23682         init.sh: avoid Solaris 10 /bin/sh portability problem
23683         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23684         sourced script:
23685           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23686           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23687           bar
23688         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23689         and two tests used that idiom.
23690         * tests/init.sh: Update suggested usage comments.
23691         (path_prepend_): New function, to be used in place
23692         of the --src-path=DIR option.
23693         (setup_): Move PATH-prepending code into path_prepend_.
23694         * tests/test-pread.sh: Adapt to new usage.
23695         * tests/test-xalloc-die.sh: Likewise.
23696
23697 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23698
23699         * doc/gnulib.texi (Glibc pty.h): Add.
23700         * doc/glibc-functions/forkpty.texi: Add.
23701         * doc/glibc-functions/openpty.texi: Add.
23702         Suggested by Bruno Haible.
23703
23704 2009-12-08  Eric Blake  <ebb9@byu.net>
23705
23706         fchdir: fix logic bugs
23707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23708         * tests/test-fchdir.c (main): Enhance test.
23709         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23710         is in use.
23711
23712         dup2: fix logic bugs
23713         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23714         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23715         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23716         exists.
23717         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23718
23719 2009-12-07  Eric Blake  <ebb9@byu.net>
23720
23721         unlink: fix m4 detection
23722         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23723
23724         unistd-safer: add unit test
23725         * modules/unistd-safer-tests: New file.
23726         * tests/test-dup-safer.c: Likewise.
23727         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23728         * tests/test-dup2.c (setmode): Likewise.
23729         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23730
23731         cloexec: preserve text vs. binary across dup_cloexec
23732         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23733         mode.
23734         * modules/dup2-tests (Depends-on): Add binary-io.
23735         * modules/cloexec-tests (Depends-on): Likewise.
23736         * tests/test-dup2.c (setmode, is_mode): New helpers.
23737         (main): Add tests that translation mode is preserved.
23738         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23739         Reported by Bruno Haible.
23740
23741         mgetgroups: reduce duplicate listings
23742         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23743         resulting array.
23744         * tests/test-chown.h (test_chown): Simplify client.
23745         * tests/test-lchown.h (test_lchown): Likewise.
23746
23747 2009-12-06  Bruno Haible  <bruno@clisp.org>
23748
23749         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23750         value.
23751
23752 2009-12-06  Bruno Haible  <bruno@clisp.org>
23753
23754         * lib/progname.c: Include stdio.h, stdlib.h.
23755         (set_program_name): Reject a NULL argument.
23756
23757 2009-12-05  Eric Blake  <ebb9@byu.net>
23758
23759         pipe2-safer: new module
23760         * modules/pipe2-safer: New file.
23761         * lib/unistd-safer.h (pipe2_safer): New prototype.
23762         * lib/unistd--.h (pipe2): New wrapper.
23763         * lib/pipe-safer.c (pipe2_safer): New function.
23764         * modules/pipe (Depends-on): Add pipe2-safer.
23765         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23766
23767         stdlib-safer: preserve cloexec flag for mkostemp[s]
23768         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23769         fd_safer_flag.
23770
23771         unistd-safer: allow preservation of cloexec status via flag
23772         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23773         prototypes.
23774         * lib/dup-safer.c (dup_safer_flag): New function.
23775         * lib/fd-safer.c (fd_safer_flag): Likewise.
23776         * modules/cloexec (configure.ac): Set witness.
23777
23778         test-dup2: enhance test
23779         * modules/dup2-tests (Depends-on): Add cloexec.
23780         * tests/test-dup2.c (main): Enhance test.
23781
23782         cloexec: add dup_cloexec
23783         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23784         header and comments.
23785         * lib/cloexec.c (set_cloexec_flag): Add comments.
23786         (dup_cloexec): New function, with mingw implementation borrowed
23787         from...
23788         * lib/w32spawn.h (dup_noinherit): ...here.
23789         * modules/execute (Depends-on): Add cloexec.
23790         * modules/pipe (Depends-on): Likewise.
23791         * modules/cloexec (Depends-on): Add dup2.
23792         * modules/cloexec-tests (Files): New file.
23793         * tests/test-cloexec.c: Likewise.
23794
23795         test-xalloc-die: fix test for mingw
23796         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23797         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23798         directory and .exe suffix off argv[0] output.
23799
23800         test-fseeko: fix test for mingw
23801         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23802         than undefining fseek, so test will pass on mingw.
23803
23804 2009-12-05  Bruno Haible  <bruno@clisp.org>
23805
23806         * lib/progname.h (set_program_name): Clarify specification.
23807         * lib/progname.c (set_program_name): Likewise.
23808         Reported by Jim Meyering.
23809
23810 2009-12-05  Jim Meyering  <meyering@redhat.com>
23811
23812         maint.mk: backslash-escape parens in default regexp
23813         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23814         backslash-escape the literal parentheses.
23815
23816         maint.mk: news-date-check: use grep -E
23817         * top/maint.mk (today): Define a Make variable, not a...
23818         (news-date-check): ...shell variable.
23819         (news-date-regexp): Use the Make variable.
23820         Use grep's -E option.  Change the failing diagnostic to mention
23821         the variable, $(news-date-regexp).
23822
23823 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23824
23825         maintainer-makefile: allow customization of NEWS entry format
23826         * top/maint.mk (news-date-regexp): New overridable variable.
23827         (news-date-check): Use it.
23828
23829 2009-12-04  Eric Blake  <ebb9@byu.net>
23830
23831         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23832         * lib/mgetgroups.h (xgetgroups): New prototype.
23833         * lib/mgetgroups.c (xgetgroups): New wrapper.
23834         (mgetgroups): Handle ENOSYS.
23835         * modules/mgetgroups (Depends-on): Add realloc.
23836         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23837
23838         mgetgroups: avoid argument promotion issues with -1
23839         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23840         for invalid gid_t.
23841         * tests/test-chown.h (getegid, test_chown): Likewise.
23842         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23843
23844 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23845
23846         exclude: Fix header file problems.
23847         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23848
23849 2009-12-01  Jim Meyering  <meyering@redhat.com>
23850
23851         fts: fts_open: do not let an empty string cause immediate failure
23852         This is required in support of GNU rm, for which the command
23853         "rm A '' B" must process and remove both A and B, in spite of
23854         the empty string argument.
23855         * lib/fts.c (fts_open): Do not let the presence of an empty string
23856         cause fts_open to fail immediately.  Most fts-using tools must be
23857         able to process all arguments, in order, and can be expected to
23858         diagnose such arguments themselves.
23859
23860 2009-11-30  Eric Blake  <ebb9@byu.net>
23861
23862         utimens: fix compilation error
23863         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23864         Declare variable at right scope.
23865
23866 2009-11-29  Jim Meyering  <meyering@redhat.com>
23867
23868         bootstrap: handle perl-5.11's changed --version output
23869         * build-aux/bootstrap (get_version): Handle perl separately,
23870         since perl-5.11's --version output is different.
23871
23872 2009-11-28  Jim Meyering  <meyering@redhat.com>
23873
23874         userspec: depend on the inttostr module, too
23875         * modules/userspec (Depends-on): Add inttostr.
23876
23877         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23878         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23879         number of MAXUID when it evaluates to (uid_t) -1.
23880         Likewise for group ID.  Reported by Matt McCutchen in
23881         <http://savannah.gnu.org/bugs/?28113>
23882
23883         userspec: reformat to use spaces, not TABs
23884         * lib/userspec.c: Expand TABs to spaces.
23885         Add Emacs' "indent-tabs-mode: nil" hint.
23886
23887 2009-11-27  Eric Blake  <ebb9@byu.net>
23888
23889         getopt-gnu: flush out another BSD bug
23890         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23891         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23892         flush out BSD bug.
23893         * tests/test-getopt.h (test_getopt): End lists with NULL.
23894         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23895         (test_getopt_long_posix): Enhance test.
23896         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23897         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23898         getopt-gnu.
23899         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23900         Likewise.
23901
23902 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23903
23904         * modules/idpriv-droptemp-tests (Notice): Fix text.
23905
23906 2009-11-27  Jim Meyering  <meyering@redhat.com>
23907
23908         test-xalloc-die: avoid spurious failure due to libtool argv difference
23909         In a libtool-enabled project, this test would fail due to a difference
23910         in the emitted program name, e.g.,
23911         -test-xalloc-die: memory exhausted
23912         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23913         Use program to avoid that.
23914         * modules/xalloc-die-tests (Depends-on): Add progname.
23915         * tests/test-xalloc-die.c: Include progname.h".
23916         (program_name): Remove decl.
23917         (main): Call set_program_name.
23918         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23919
23920 2009-11-26  Richard Jones  <rjones@redhat.com>
23921
23922         w32sock: leave win32 error in place.
23923         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23924
23925 2009-11-26  Eric Blake  <ebb9@byu.net>
23926
23927         init.sh: suggest to use skip_ and fail_ functions in comments
23928         * tests/init.sh: Add a sentence.
23929
23930 2009-11-25  Bruno Haible  <bruno@clisp.org>
23931
23932         init.sh: add documentation in comments
23933         * tests/init.sh: Add some developer and user documentation.
23934
23935 2009-11-26  Jim Meyering  <meyering@redhat.com>
23936
23937         init.sh: accommodate even those who specify bogus srcdir manually
23938         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23939         configure-time tests to be sanitized, so that there is no need to
23940         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23941         (with no double quotes) suffices.  However, since tests may be
23942         invoked manually, and since you may explicitly set srcdir to the
23943         name of a directory containing spaces, do quote its uses here.
23944         * tests/test-pread.sh: Likewise.
23945         Suggested by Bruno Haible.
23946
23947         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23948         * tests/test-pread.sh: Write no data into the pipe, because
23949         test-pread actually reads none.  This avoids a diagnostic,
23950         "bash: echo: write error: Broken pipe", that arises in the unusual
23951         event something is ignoring SIGPIPE, and might be interpreted
23952         as some sort of failure.  Reported by Bruno Haible.
23953
23954 2009-11-25  Jim Meyering  <meyering@redhat.com>
23955
23956         test-pread: cover failure with ESPIPE and EINVAL
23957         * tests/test-pread.c (main): Test for failure, too.
23958         * tests/test-pread.sh: Invoke with stdin on a pipe.
23959         Suggested by Eric Blake.
23960
23961         pread: improvement and fix
23962         * modules/pread (Depends-on): Depend on lseek, for portability to
23963         e.g., mingw.  Suggested by Eric Blake.
23964         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23965
23966         unistd.in.h: correct declaration of pread
23967         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23968         Reported by Richard W.M. Jones.
23969
23970         test-pread.sh: distribute the test script
23971         * modules/pread-tests (Files): Include test-pread.sh.
23972
23973         test-pread.sh: clean up
23974         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23975         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23976         That is unnecessary, since it's always ".".
23977         Suggestion from Eric Blake.
23978
23979         test-pread.sh: make executable
23980         * tests/test-pread.sh: Set executable bit.
23981         Reported by Eric Blake.
23982
23983         correct typo in test-pread.sh
23984         * tests/test-pread.sh: Add #! line.
23985
23986         test pread
23987         * tests/test-pread.c: New file.
23988         * tests/test-pread.sh: Likewise.
23989         * modules/pread-tests: Likewise.
23990
23991         pread: new module
23992         * modules/pread: New file.
23993         * lib/unistd.in.h (pread): Define/declare.
23994         * lib/pread.c (pread): New file.
23995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23996         * modules/unistd (Makefile.am): Substitute witnesses.
23997         * doc/posix-functions/pread.texi (pread): Update.
23998         * MODULES.html.sh: Add pread.
23999
24000 2009-11-25  Jim Meyering  <meyering@redhat.com>
24001
24002         tests/init.sh: new file to be used via most *.sh tests
24003         * tests/init.sh: New file.
24004
24005 2009-11-25  Eric Blake  <ebb9@byu.net>
24006
24007         utimens: work around older Linux failure with symlinks
24008         * lib/utimens.c (lutimensat_works_really): New variable.
24009         (fdutimens, lutimens): Use it to manage kernels that support
24010         nanosecond times on files, but not on symlinks.
24011         Reported by OndÅ™ej Vašík.
24012
24013         utimes: fix configure grammar
24014         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
24015
24016 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
24017
24018         regex: Fix fastmap for multibyte character ranges.
24019         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
24020         characters when a multibyte character range is included.
24021
24022 2009-11-22  Andy Wingo  <wingo@pobox.com>
24023
24024         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
24025         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
24026
24027 2009-11-24  Bruno Haible  <bruno@clisp.org>
24028
24029         doc: Most *_l functions exist in MacOS X 10.5.
24030         * doc/posix-functions/duplocale.texi: Update platforms list.
24031         * doc/posix-functions/freelocale.texi: Likewise.
24032         * doc/posix-functions/newlocale.texi: Likewise.
24033         * doc/posix-functions/uselocale.texi: Likewise.
24034         * doc/posix-functions/isalnum_l.texi: Likewise.
24035         * doc/posix-functions/isalpha_l.texi: Likewise.
24036         * doc/posix-functions/isblank_l.texi: Likewise.
24037         * doc/posix-functions/iscntrl_l.texi: Likewise.
24038         * doc/posix-functions/isdigit_l.texi: Likewise.
24039         * doc/posix-functions/isgraph_l.texi: Likewise.
24040         * doc/posix-functions/islower_l.texi: Likewise.
24041         * doc/posix-functions/isprint_l.texi: Likewise.
24042         * doc/posix-functions/ispunct_l.texi: Likewise.
24043         * doc/posix-functions/isspace_l.texi: Likewise.
24044         * doc/posix-functions/isupper_l.texi: Likewise.
24045         * doc/posix-functions/iswalnum_l.texi: Likewise.
24046         * doc/posix-functions/iswalpha_l.texi: Likewise.
24047         * doc/posix-functions/iswblank_l.texi: Likewise.
24048         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24049         * doc/posix-functions/iswctype_l.texi: Likewise.
24050         * doc/posix-functions/iswdigit_l.texi: Likewise.
24051         * doc/posix-functions/iswgraph_l.texi: Likewise.
24052         * doc/posix-functions/iswlower_l.texi: Likewise.
24053         * doc/posix-functions/iswprint_l.texi: Likewise.
24054         * doc/posix-functions/iswpunct_l.texi: Likewise.
24055         * doc/posix-functions/iswspace_l.texi: Likewise.
24056         * doc/posix-functions/iswupper_l.texi: Likewise.
24057         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24058         * doc/posix-functions/isxdigit_l.texi: Likewise.
24059         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
24060         * doc/posix-functions/strcasecmp_l.texi: Likewise.
24061         * doc/posix-functions/strcoll_l.texi: Likewise.
24062         * doc/posix-functions/strfmon_l.texi: Likewise.
24063         * doc/posix-functions/strftime_l.texi: Likewise.
24064         * doc/posix-functions/strncasecmp_l.texi: Likewise.
24065         * doc/posix-functions/strxfrm_l.texi: Likewise.
24066         * doc/posix-functions/tolower_l.texi: Likewise.
24067         * doc/posix-functions/toupper_l.texi: Likewise.
24068         * doc/posix-functions/towctrans_l.texi: Likewise.
24069         * doc/posix-functions/towlower_l.texi: Likewise.
24070         * doc/posix-functions/towupper_l.texi: Likewise.
24071         * doc/posix-functions/wcscoll_l.texi: Likewise.
24072         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24073         * doc/posix-functions/wctrans_l.texi: Likewise.
24074         * doc/posix-functions/wctype_l.texi: Likewise.
24075         * doc/glibc-functions/strptime_l.texi: Likewise.
24076         * doc/glibc-functions/strtod_l.texi: Likewise.
24077         * doc/glibc-functions/strtof_l.texi: Likewise.
24078         * doc/glibc-functions/strtol_l.texi: Likewise.
24079         * doc/glibc-functions/strtold_l.texi: Likewise.
24080         * doc/glibc-functions/strtoll_l.texi: Likewise.
24081         * doc/glibc-functions/strtoul_l.texi: Likewise.
24082         * doc/glibc-functions/strtoull_l.texi: Likewise.
24083         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24084         * doc/glibc-functions/wcstod_l.texi: Likewise.
24085         * doc/glibc-functions/wcstof_l.texi: Likewise.
24086         * doc/glibc-functions/wcstol_l.texi: Likewise.
24087         * doc/glibc-functions/wcstold_l.texi: Likewise.
24088         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24089         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24090         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24091
24092 2009-11-24  Bruno Haible  <bruno@clisp.org>
24093
24094         duplocale: Fix logic bug.
24095         * lib/duplocale.c: Don't include <langinfo.h>.
24096         (_NL_LOCALE_NAME): Remove macro.
24097         (rpl_duplocale): Use setlocale instead of nl_langinfo.
24098         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
24099
24100 2009-11-23  Jim Meyering  <meyering@redhat.com>
24101
24102         test-update-copyright: don't hard-code /usr/bin/perl
24103         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
24104         perl to print the current year.  Gilles Espinasse reported that
24105         the replaced use of perl was hard-coded as /usr/bin/perl.
24106
24107 2009-11-23  Bruno Haible  <bruno@clisp.org>
24108
24109         duplocale: Add support for glibc 2.3.x.
24110         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
24111
24112 2009-11-22  Bruno Haible  <bruno@clisp.org>
24113
24114         vasnprintf: Tiny optimization.
24115         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
24116         MacOS X.
24117
24118 2009-11-22  Bruno Haible  <bruno@clisp.org>
24119
24120         Tests for module 'duplocale'.
24121         * modules/duplocale-tests: New file.
24122         * tests/test-duplocale.c: New file.
24123
24124         New module 'duplocale'.
24125         * m4/duplocale.m4: New file.
24126         * lib/locale.in.h (duplocale): New declaration.
24127         * lib/duplocale.c: New file.
24128         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
24129         gl_LOCALE_H_DEFAULTS): New macros.
24130         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
24131         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
24132         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
24133         REPLACE_DUPLOCALE.
24134         * modules/duplocale: New file.
24135         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
24136
24137 2009-11-22  Bruno Haible  <bruno@clisp.org>
24138
24139         * modules/locale-tests (configure.ac): Test for newlocale function.
24140         * tests/test-locale.c: When the system has extended locale functions,
24141         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
24142
24143         locale: Make locale_t available when possible.
24144         * lib/locale.in.h: Include <xlocale.h> when it exists.
24145         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
24146         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
24147         * modules/locale (Depends-on): Add extensions.
24148         (Makefile.am): Also substitute HAVE_XLOCALE_H.
24149         * doc/posix-headers/locale.texi: Document the problem with locale_t.
24150
24151 2009-11-22  Bruno Haible  <bruno@clisp.org>
24152
24153         Add comments.
24154         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
24155         invocation.
24156         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24157         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24158         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24159
24160 2009-11-22  Bruno Haible  <bruno@clisp.org>
24161
24162         error: account for the possibility of freopen (stdout).
24163         * lib/error.c: Include <unistd.h>.
24164         (flush_stdout): New function, extracted from error and error_at_line.
24165         Determine stdout's fd dynamically.
24166         (error, error_at_line): Invoke flush_stdout.
24167         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
24168         * modules/error (Depends-on): Add unistd.
24169
24170 2009-11-22  Bruno Haible  <bruno@clisp.org>
24171
24172         diffseq: Add comment.
24173         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
24174
24175 2009-11-22  Jim Meyering  <meyering@redhat.com>
24176
24177         c-stack: avoid defining an unused static function
24178         * lib/c-stack.c (find_stack_direction): Do not define this function
24179         when it will not be used.
24180
24181         diffseq: avoid spurious gcc warnings
24182         * lib/diffseq.h (IF_LINT2): Define.
24183         (compareseq): Use it to initialize two members of "part".
24184         This avoids two used-uninitialized warnings.
24185
24186 2009-11-21  Jim Meyering  <meyering@redhat.com>
24187
24188         c-stack: avoid "ignoring return value of `write'" warning
24189         * lib/c-stack.c: Include "ignore-value.h".
24190         (die): Explicitly ignore each write return value.
24191         * modules/c-stack (Depends-on): Add ignore-value.
24192
24193 2009-11-21  Bruno Haible  <bruno@clisp.org>
24194
24195         diffseq: reduce scope of variable 'best'.
24196         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
24197         variable, earlier used for two different purposes.
24198
24199 2009-11-21  Jim Meyering  <meyering@redhat.com>
24200
24201         diffseq: remove useless assignment to "best"
24202         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
24203         assignment.  At that point "best" is already guaranteed to be zero.
24204
24205 2009-11-20  Eric Blake  <ebb9@byu.net>
24206
24207         build: mention ftp redirector in release announcements
24208         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
24209         values that used to come from cfg.mk; mention FTP redirect URL.
24210         * build-aux/announce-gen: Mention the mirror list.
24211         Suggested by Karl Berry.
24212
24213         nanosleep: improve port to mingw
24214         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
24215         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
24216         LIB_NANOSLEEP, but only when needed.
24217         * modules/select (Link): Document LIBSOCKET.
24218         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
24219         enough.
24220
24221         nanosleep: work around cygwin bug
24222         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
24223         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
24224         bug.
24225         (getnow): Delete, not needed.
24226         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
24227         LIB_CLOCK_GETTIME.
24228         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
24229         clock-time, gettime.
24230         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
24231         bug.
24232         * modules/nanosleep-tests: New test.
24233         * tests/test-nanosleep.c: New file.
24234
24235         sleep: work around cygwin bug
24236         * lib/sleep.c (rpl_sleep): Work around the bug.
24237         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
24238         (gl_PREREQ_SLEEP): Delete unused macro.
24239         * modules/sleep (Depends-on): Add verify.
24240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24241         * modules/unistd (Makefile.am): Substitute witness.
24242         * lib/unistd.in.h (sleep): Update prototype.
24243         * doc/posix-functions/sleep.texi (sleep): Document the bug.
24244         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
24245         * modules/sleep-tests (Depends-on): Check for alarm.
24246
24247 2009-11-20  Jim Meyering  <meyering@redhat.com>
24248
24249         maint.mk: improve sc_prohibit_magic_number_exit
24250         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
24251         so it does not match uses like System.exit(1).
24252         Add comments showing how to correct all offenders.
24253
24254 2009-11-19  Eric Blake  <ebb9@byu.net>
24255
24256         xalloc-die-tests: add missing library
24257         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
24258
24259         test-xvasprintf: silence compiler warnings
24260         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
24261         empty string from gcc.
24262
24263 2009-11-19  Jim Meyering  <meyering@redhat.com>
24264
24265         xfreopen: new module, from coreutils
24266         * modules/xfreopen: New module.
24267         * lib/xfreopen.c: New file.
24268         * lib/xfreopen.h: New file.
24269         * MODULES.html.sh (File stream based Input/Output"): Add it.
24270
24271 2009-11-19  Eric Blake  <ebb9@byu.net>
24272
24273         manywarnings: depend on warnings
24274         * modules/manywarnings (Depends-on): Add warnings.
24275
24276         build: avoid compiler warnings
24277         * lib/select.c (rpl_select): Delete unused variable.
24278         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
24279
24280 2009-11-18  Eric Blake  <ebb9@byu.net>
24281
24282         tests: avoid false negative with --with-packager
24283         * tests/test-version-etc.sh: Discard packager information.
24284         * tests/test-argp-version-etc-1.sh: Likewise.
24285         Reported by Mike Frysinger.
24286
24287         utimens: fix regression on Solaris
24288         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
24289         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
24290         can only change fd timestamps via futimesat.  Instead, use an
24291         additional witness macro to avoid BSD bug.
24292         Reported by Jim Meyering.
24293
24294 2009-11-17  Eric Blake  <ebb9@byu.net>
24295
24296         usleep: use it to simplify tests
24297         * modules/stat-time-tests (Depends-on): Add usleep.
24298         (configure.ac): Drop usleep check.
24299         * modules/chown-tests (Depends-on, configure.ac): Likewise.
24300         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
24301         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
24302         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
24303         * modules/openat-tests (Depends-on, configure.ac): Likewise.
24304         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
24305         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
24306         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
24307         Likewise.
24308         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
24309         * tests/test-lchown.h (nap): Likewise.
24310         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
24311         * tests/test-stat-time.c (nap): Likewise.
24312         * tests/test-utimens-common.h (nap): Update comments.
24313
24314         usleep: new module
24315         * modules/usleep: New file.
24316         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
24317         * lib/usleep.c (usleep): Likewise.
24318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24319         * modules/unistd (Makefile.am): Substitute witnesses.
24320         * lib/unistd.in.h (usleep): Add declaration.
24321         * doc/pastposix-functions/usleep.texi (usleep): Document this.
24322         * MODULES.html.sh (Date and time): Likewise.
24323         * modules/usleep-tests (Depends-on): New test.
24324         * tests/test-usleep.c: New file.
24325
24326         chown: work around OpenBSD bug
24327         * lib/chown.c (rpl_chown): Work around the bug.
24328         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
24329         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
24330         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
24331         * modules/chown (Depends-on): Add stdbool.
24332         * modules/lchown (Depends-on): Likewise.
24333         * doc/posix-functions/chown.texi (chown): Document the bug.
24334         * doc/posix-functions/lchown.texi (lchown): Likewise.
24335         * tests/test-lchown.h (test_chown): Relax test.
24336
24337         mkstemp: avoid conflict with C++ keyword template
24338         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
24339         * lib/mkostemp.c (mkostemp): Likewise.
24340         * lib/mkostemps.c (mkostemps): Likewise.
24341         * lib/mkstemp.c (mkstemp): Likewise.
24342         * lib/mkstemps.c (mkstemps): Likewise.
24343
24344         xalloc-die-tests: optimize
24345         * tests/test-xalloc-die.sh: Reduce number of processes.
24346
24347 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24348
24349         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
24350         patch from ludo@gnu.org (Ludovic Courtès).
24351
24352 2009-11-17  Jim Meyering  <meyering@redhat.com>
24353
24354         version-etc: use proper license string
24355         * modules/version-etc (License): Use LGPL, not LGPLv3+.
24356         * modules/version-etc-fsf: Likewise.
24357
24358 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24359
24360         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
24361         printed to stdout.  Deal with EOL differences.
24362
24363 2009-11-17  Eric Blake  <ebb9@byu.net>
24364
24365         unsetenv: work around Solaris bug
24366         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
24367         * lib/unsetenv.c (rpl_unsetenv): Work around it.
24368         Reported by Jim Meyering.
24369
24370         vasnprintf: avoid compiler warnings
24371         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
24372         variables.
24373         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
24374
24375 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24376
24377         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
24378         settings since xalloc-die is no longer the self test,
24379         xalloc-die.sh is.
24380
24381 2009-11-17  Jim Meyering  <meyering@redhat.com>
24382
24383         test-xalloc-die.sh: make the code agree with the commit log
24384         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
24385         at the end, just in case you happen to have a test-xalloc-die
24386         program in some other PATH directory.
24387
24388         test-xalloc-die.sh: fix a portability bug
24389         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
24390         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
24391         Otherwise, argv[0] (as often seen in diagnostics) would be too
24392         system-dependent, sometimes with, and sometimes without the leading "./".
24393
24394         version-etc-fsf: relax license to LGPLv3+
24395         * modules/version-etc-fsf (License): Relax license.
24396
24397 2009-11-16  Eric Blake  <ebb9@byu.net>
24398
24399         xalloc-die-tests: avoid printing null pointer
24400         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
24401         shell script.
24402         * tests/test-xalloc-die.c (program_name): Declare.
24403         * tests/test-xalloc-die.sh (tmpfiles): New file.
24404
24405         setenv, unsetenv: work around various bugs
24406         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
24407         (setenv) [HAVE_SETENV]: Work around bugs.
24408         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
24409         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
24410         for bugs.
24411         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
24412         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
24413         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
24414         * modules/stdlib (Makefile.am): Update substitutions.
24415         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
24416         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
24417         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24418         * modules/setenv-tests: New test.
24419         * modules/unsetenv-tests: Likewise.
24420         * tests/test-setenv.c: New file.
24421         * tests/test-unsetenv.c: Likewise.
24422
24423 2009-11-16  Jim Meyering  <meyering@redhat.com>
24424
24425         version-etc: relax license to LGPLv3+
24426         * modules/version-etc (License): Relax license.
24427
24428         better AC_REQUIRE expanded-before-required-warning avoidance
24429         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
24430         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
24431         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
24432         which is no longer needed.
24433
24434 2009-11-16  Eric Blake  <ebb9@byu.net>
24435
24436         test-freading: clean up temporary file
24437         * tests/test-freading.c (main): Remove file on success, and use
24438         ASSERT more liberally.
24439         Reported by Jim Meyering.
24440
24441 2009-11-16  Jim Meyering  <meyering@redhat.com>
24442
24443         avoid new AC_REQUIRE expanded-before-required warnings
24444         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
24445         merely using it.
24446         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
24447         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
24448
24449 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24450
24451         * tests/test-xalloc-die.c: New file.
24452         * modules/xalloc-die-tests: New file.
24453         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
24454         XFAIL_TESTS so it can be appended by modules.
24455
24456 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24457
24458         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
24459         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
24460
24461 2009-11-14  Eric Blake  <ebb9@byu.net>
24462
24463         fnmatch: avoid compiler warning
24464         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
24465         to silence compiler warning about mismatch signedness in ?:.
24466         Reported by Robert Millan.
24467
24468         intprops: add double-inclusion guard
24469         * lib/intprops.h: Allow idempotent includes.
24470         Suggested by Bruce Korb.
24471
24472         openat: detect Solaris fchownat bug
24473         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
24474         penalizing glibc chownat when only lchownat is broken.
24475         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
24476         trailing slash bugs.
24477         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
24478         * modules/openat-tests (Files): Include more files.
24479         (Depends-on): Add mgetgroups, sleep, stat-time.
24480         (configure.ac): Add additional checks.
24481         (Makefile.am): Build new test.
24482         * tests/test-fchownat.c: New file.
24483
24484         lchown: detect Solaris and FreeBSD bug
24485         * lib/lchown.c (rpl_lchown): Work around bug.
24486         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
24487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24488         * modules/unistd (Makefile.am): Populate it.
24489         * lib/unistd.in.h (lchown): Update declaration.
24490         * doc/posix-functions/lchown.texi (lchown): Document the bug.
24491         * modules/lchown-tests: New file.
24492         * tests/test-lchown.h (test_lchown): Likewise.
24493         * tests/test-lchown.c (main): Likewise.
24494
24495         chown: detect Solaris and FreeBSD bug
24496         * lib/chown.c (rpl_chown): Work around bug.
24497         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
24498         (gl_PREREQ_CHOWN): Delete.
24499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24500         * modules/unistd (Makefile.am): Populate it.
24501         * lib/unistd.in.h (chown): Update declaration.
24502         * lib/lchown.c (chown): Update client.
24503         * modules/lchown (Depends-on): Add lstat.
24504         * doc/posix-functions/chown.texi (chown): Document the bug.
24505         * doc/posix-functions/getgroups.texi (getgroups): Document
24506         getgroups pitfall.
24507         * modules/chown-tests: New file.
24508         * tests/test-chown.h (test_chown): Likewise.
24509         * tests/test-chown.c (main): Likewise.
24510
24511 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
24512
24513         gnulib-tool: correctly detect absence of m4 directories
24514         * gnulib-tool: Avoid extra newline on data passed to wc -l.
24515
24516 2009-11-14  Jim Meyering  <meyering@redhat.com>
24517
24518         maint.mk: Prohibit inclusion of "xalloc.h" without use.
24519         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24520
24521 2009-11-14  John W. Eaton  <jwe@gnu.org>
24522
24523         strftime.h: wrap funtion declaration in extern "C" block
24524         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
24525
24526 2009-11-13  Eric Blake  <ebb9@byu.net>
24527
24528         getgroups: avoid compiler warning
24529         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
24530
24531         getgroups: work around FreeBSD bug
24532         * lib/getgroups.c (rpl_getgroups): Work around the bug.
24533         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
24534         * doc/posix-functions/getgroups.texi (getgroups): Document it.
24535         * tests/test-getgroups.c (main): Fix buffer overrun.
24536
24537         getgroups: avoid compilation failure
24538         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
24539         * modules/getgroups (Depends-on): Add stdint.
24540
24541 2009-11-13  Jim Meyering  <meyering@redhat.com>
24542
24543         test-getgroups: avoid compilation failure
24544         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
24545
24546 2009-11-13  Eric Blake  <ebb9@byu.net>
24547
24548         mgetgroups: new module, taken from coreutils
24549         * modules/mgetgroups: New file.
24550         * lib/mgetgroups.h: Likewise.
24551         * lib/mgetgroups.c (mgetgroups): Likewise.
24552         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
24553         * MODULES.html.sh (Users and groups): Mention it.
24554
24555         getgroups: don't expose GETGROUPS_T to user
24556         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
24557         an element at a time if GETGROUPS_T is wrong size.
24558         * lib/getugroups.h (getugroups): Change signature.
24559         * lib/unistd.in.h (getgroups): Likewise.
24560         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
24561         signature needs fixing.
24562         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
24563         AC_TYPE_GETGROUPS.
24564         * modules/group-member (Depends-on): Add getgroups.
24565         * lib/group-member.c (group_info, get_group_info): Use gid_t.
24566         (group_member): Rely on getgroups replacement.
24567         * lib/getugroups.c (getugroups): Use gid_t.
24568         * tests/test-getgroups.c (main): Likewise.
24569         * NEWS: Mention the signature change.
24570         * doc/posix-functions/getgroups.texi (getgroups): Mention the
24571         problem with signature.
24572         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
24573         GETGROUPS_T is still useful for setgroups.
24574
24575         getgroups, getugroups: provide stubs for mingw
24576         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
24577         * lib/getugroups.c (getugroups): Likewise.
24578         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
24579         function.  Modernize replacement scheme.
24580         (gl_PREREQ_GETGROUPS): Delete.
24581         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
24582         * modules/getgroups (configure.ac): Declare witness.
24583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24584         * modules/unistd (Depends-on): Substitute witness.
24585         * lib/unistd.in.h (getgroups): Declare replacement.
24586
24587         getgroups: avoid calling exit
24588         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
24589         drop xalloc.
24590         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
24591         dependencies.
24592         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
24593         exiting, in the rare case of malloc failure.
24594
24595         getgroups: fix logic error
24596         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
24597         has more than 20 groups.
24598         * modules/getgroups-tests: New test.
24599         * tests/test-getgroups.c: New file.
24600
24601 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24602
24603         * tests/test-base64.c: Improve.
24604
24605 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24606
24607         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
24608         Blake <ebb9@byu.net>.
24609
24610 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24611
24612         * tests/test-xvasprintf.c: Add %s%s related checks.
24613
24614 2009-11-12  Eric Blake  <ebb9@byu.net>
24615
24616         version-etc: match standards.texi style
24617         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
24618         and use <> only for URLs.
24619
24620 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
24621
24622         fts: do not fail on a submount during traversal
24623         * lib/fts.c (fts_build): Read the stat info again after opening
24624         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
24625         Original report at http://bugzilla.redhat.com/501848.
24626
24627 2009-11-12  Jim Meyering  <meyering@redhat.com>
24628
24629         bootstrap: sync from coreutils
24630         * build-aux/bootstrap (bootstrap_epilogue): New function.
24631         Use git_modules_config in one more place.  This make bootstrap's
24632         --gnulib-srcdir option more useful for testing.
24633
24634         bootstrap: generalize autoheader check
24635         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
24636         AC_CONFIG_HEADERS.
24637
24638 2009-11-11  Eric Blake  <ebb9@byu.net>
24639
24640         mkfifoat: use new modules for Solaris and BSD bugs
24641         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
24642         * lib/mkfifoat.c (mknodat): Split...
24643         * lib/mknodat.c (mknodat): ...into new file.
24644         * modules/mkfifoat (Files): Ship new file.
24645         (Depends-on): Add mkfifo, mknod.
24646         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24647         (Depends-on): Add symlink.
24648         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24649         redundant with test_mkfifo.h.
24650         (do_mkfifoat, do_mknodat): New helpers.
24651
24652         mknod: new module
24653         * modules/mknod: New file.
24654         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24655         * lib/mknod.c (mknod): Likewise.
24656         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24657         defaults.
24658         * modules/sys_stat (Makefile.am): Substitute them.
24659         * lib/sys_stat.in.h (mknod): Declare replacement.
24660         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24661         Document it.
24662         * doc/posix-functions/mknod.texi (mknod): Likewise.
24663         * modules/mknod-tests: New test.
24664         * tests/test-mknod.c: Likewise.
24665
24666         mkfifo: new module
24667         * modules/mkfifo: New file.
24668         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24669         * lib/mkfifo.c (mkfifo): Likewise.
24670         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24671         defaults.
24672         * modules/sys_stat (Makefile.am): Substitute them.
24673         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24674         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24675         Document it.
24676         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24677         * modules/mkfifo-tests: New test.
24678         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24679         from test-mkfifoat.c.
24680         * tests/test-mkfifo.c: New file.
24681
24682         readlink: detect FreeBSD bug
24683         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24684         slash on symlink.
24685         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24686         * tests/test-readlink.h (test_readlink): Enhance test.
24687
24688         symlink: detect FreeBSD bug
24689         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24690         slash on symlink.
24691         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24692         * tests/test-symlink.h (test_symlink): Enhance test.
24693
24694 2009-11-10  Eric Blake  <ebb9@byu.net>
24695
24696         link: detect FreeBSD bug
24697         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24698         symlink.
24699         * doc/posix-functions/link.texi (link): Document the bug.
24700         * tests/test-link.h (test_link): Enhance test.
24701         * tests/test-linkat.c (main): Update caller.
24702
24703         unlink, remove: detect FreeBSD bug
24704         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24705         slash on symlink.
24706         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24707         * doc/posix-functions/remove.texi (remove): Likewise.
24708         * tests/test-unlink.h (test_unlink): Enhance test.
24709         * tests/test-remove.c (main): Likewise.
24710
24711 2009-11-09  Eric Blake  <ebb9@byu.net>
24712
24713         rename: detect FreeBSD bug
24714         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24715         slash on symlink.
24716         * modules/renameat-tests (Depends-on): Add filenamecat.
24717         * tests/test-rename.h (test_rename): Allow one more errno.
24718         * tests/test-renameat.c (main): Likewise.
24719         * doc/posix-functions/rename.texi (rename): Document the bug.
24720
24721         open: detect FreeBSD bug
24722         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24723         symlink.
24724         * doc/posix-functions/open.texi (open): Document the bug.
24725         * doc/posix-functions/utimes.texi (utimes): Likewise.
24726         * tests/test-open.h (test_open): Add parameters, and test symlink
24727         handling.
24728         * tests/test-open.c (main): Adjust caller.
24729         * tests/test-fcntl-safer.c (main): Likewise.
24730         * modules/open-tests (Depends-on): Add stdbool, symlink.
24731         * modules/fcntl-safer-tests (Depends-on): Likewise.
24732         * tests/test-openat.c (main): Add test-open tests.
24733
24734         stat: detect FreeBSD bug
24735         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24736         symlink.
24737         * doc/posix-functions/stat.texi (stat): Document the bug.
24738         * tests/test-stat.h (test_stat_func): Add argument.
24739         * tests/test-stat.c (main): Adjust caller.
24740         * tests/test-fstatat.c (main): Likewise.
24741         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24742         Reported by Jim Meyering.
24743
24744 2009-11-09  James Youngman  <jay@gnu.org>
24745
24746         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24747         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24748
24749 2009-11-08  Jim Meyering  <meyering@redhat.com>
24750
24751         utimens: remove invalid futimesat call
24752         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24753         It used the file descriptor of the target file as the DIR_FD
24754         parameter and NULL as the file name.  That caused failure with
24755         errno == EFAULT on FreeBSD-8.0-rc2
24756
24757 2009-11-07  Eric Blake  <ebb9@byu.net>
24758
24759         fflush, freadseek: use fseeko, not fseek
24760         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24761         (clear_ungetc_buffer): Avoid potential problems on large files.
24762         * lib/freadseek.c (freadseek): Likewise.
24763         * modules/freadseek (Depends-on): Add fseeko.
24764         * modules/fseek (configure.ac): Set a witness.
24765         * tests/test-fflush.c (main): Use fseeko.
24766         * tests/test-fpurge.c (fseek): Disable link warning.
24767         * tests/test-freadable.c (fseek): Likewise.
24768         * tests/test-freading.c (fseek): Likewise.
24769         * tests/test-fseeko.c (fseek): Likewise.
24770         * tests/test-ftell.c (fseek): Likewise.
24771         * tests/test-ftello.c (fseek): Likewise.
24772         * tests/test-fwritable.c (fseek): Likewise.
24773         * tests/test-fwriting.c (fseek): Likewise.
24774
24775 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24776
24777         * modules/memchr (Depends-on): Drop getpagesize dependency.
24778
24779 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24780
24781         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24782         Reported by Ludovic Courtès.
24783         * build-aux/pmccabe2html: Improve example usage.
24784         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24785
24786 2009-11-06  Jim Meyering  <meyering@redhat.com>
24787
24788         do-release-commit-and-tag: New module.
24789         Automate the release-commit and tag process.
24790         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24791         * modules/do-release-commit-and-tag: New file.
24792         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24793
24794 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24795
24796         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24797         because test-select.c uses inet_pton.
24798
24799 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24800
24801         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24802         GETADDRINFO_LIB.  Bump serial number.
24803         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24804         Suggested by Eric Blake <ebb9@byu.net>.
24805
24806 2009-11-05  Eric Blake  <ebb9@byu.net>
24807
24808         strtod: detect darwin bug
24809         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24810         Reported by Leo Davis.
24811
24812         freopen-safer: new module
24813         * modules/freopen-safer: New module.
24814         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24815         * lib/freopen-safer.c (freopen_safer): New file.
24816         * lib/stdio-safer.h (freopen_safer): New declaration.
24817         * lib/stdio--.h (freopen): New override.
24818         * MODULES.html.sh (File stream based Input/Output): Mention it.
24819         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24820         freopen-safer module.
24821         * doc/posix-functions/stderr.texi (stderr): Likewise.
24822         * doc/posix-functions/stdin.texi (stdin): Likewise.
24823         * doc/posix-functions/stdout.texi (stdout): Likewise.
24824         * modules/freopen-safer-tests: New test.
24825         * tests/test-reopen-safer.c: New file.
24826
24827 2009-11-05  Jim Meyering  <meyering@redhat.com>
24828
24829         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24830         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24831
24832 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24833
24834         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24835
24836 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24837
24838         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24839
24840 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24841
24842         Fix link error.
24843         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24844         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24845
24846 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24847
24848         * tests/test-func.c: Also test value of __func__.
24849
24850 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24851
24852         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24853         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24854
24855 2009-11-05  Bruno Haible  <bruno@clisp.org>
24856
24857         Fix link error.
24858         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24859         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24860         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24861
24862 2009-11-05  Bruno Haible  <bruno@clisp.org>
24863
24864         Tests for module 'inet_pton'.
24865         * modules/inet_pton-tests: New file.
24866         * tests/test-inet_pton.c: New file.
24867
24868 2009-11-05  Bruno Haible  <bruno@clisp.org>
24869
24870         Tests for module 'inet_ntop'.
24871         * modules/inet_ntop-tests: New file.
24872         * tests/test-inet_ntop.c: New file.
24873
24874 2009-11-04  Eric Blake  <ebb9@byu.net>
24875
24876         stdlib-safer: wrap all mkstemp variants
24877         * modules/mkostemp (configure.ac): Set witness.
24878         * modules/mkostemps (configure.ac): Likewise.
24879         * modules/mkstemps (configure.ac): Likewise.
24880         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24881         (mkstemps_safer): Wrap more functions.
24882         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24883         wrapping.
24884         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24885         (mkstemps_safer): Implement the wrappers.
24886
24887         mkstemps, mkostemps: new modules
24888         * modules/mkostemps: New module.
24889         * modules/mkstemps: Likewise.
24890         * lib/mkostemps.c (mkostemps): New file.
24891         * lib/mkstemps.c (mkstemps): Likewise.
24892         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24893         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24895         * modules/stdlib (Makefile.am): Substitute them.
24896         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24897         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24898         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24899         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24900         * MODULES.html.sh (File system functions): Mention them.
24901
24902         tempname: resync from glibc
24903         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24904         same values for __GT_FILE as glibc.  Abort even when assertions
24905         are disabled.
24906         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24907         match its value otherwise.  Allow idempotent inclusion.
24908         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24909         * lib/mkostemp.c (mkostemp): Likewise.
24910         * lib/mkstemp.c (mkstemp): Likewise.
24911         * lib/tmpfile.c (tmpfile): Likewise.
24912         * NEWS: Document this.
24913
24914         utimens: fix use of futimens on older Linux
24915         * lib/utimens.c (fdutimens): Use updated, rather than original,
24916         timespec to avoid bug in older Linux kernel.
24917         Reported by Simon Josefsson.
24918
24919 2009-11-04  Bruno Haible  <bruno@clisp.org>
24920
24921         Make num_processors more flexible and consistent.
24922         * lib/nproc.h (enum nproc_query): New type.
24923         (num_processors): Add a 'query' argument.
24924         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24925         (num_processors): Add a 'query' argument. Test the value of the
24926         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24927         mingw, count the number of CPUs available for the current process.
24928         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24929         Check for sched_getaffinity and sched_getaffinity_np.
24930         * modules/nproc (Depends-on): Add c-ctype, extensions.
24931         * NEWS: Mention the change.
24932
24933 2009-11-03  Bruno Haible  <bruno@clisp.org>
24934
24935         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24936
24937 2009-11-03  Jim Meyering  <meyering@redhat.com>
24938
24939         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24940         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24941         if it is defined.
24942
24943 2009-11-02  Eric Blake  <ebb9@byu.net>
24944
24945         mktime, timegm: share common declaration
24946         * lib/mktime-internal.h: New file.
24947         * lib/mktime.c: Use it rather than open-coding a declaration.
24948         * lib/timegm.c: Likewise.
24949         * modules/mktime (Files): Ship it.
24950         * modules/timegm (Files): Likewise.
24951         Suggested by Bruno Haible.
24952
24953         test-update-copyright: update test to match script changes
24954         * tests/test-update-copyright.sh: Avoid hard-coding perl
24955         location.  Don't update *.bak created by earlier runs.
24956
24957 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24958             Simon Josefsson  <simon@josefsson.org>
24959             Bruno Haible  <bruno@clisp.org>
24960
24961         Fix link error on Solaris 8.
24962         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24963         also in libnsl. Define also INET_PTON_LIB.
24964         * modules/inet_pton (Link): New section.
24965
24966 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24967             Bruno Haible  <bruno@clisp.org>
24968
24969         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24970         * modules/inet_ntop (Link): New section.
24971         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24972
24973 2009-11-02  Eric Blake  <ebb9@byu.net>
24974
24975         maint: avoid compiler warnings in m4 macros
24976         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24977         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24978
24979 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24980
24981         * m4/pmccabe2html.m4: Remove file.
24982         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24983         function.  Change maintainer.
24984         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24985         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24986         Courtès).
24987
24988 2009-10-31  Eric Blake  <ebb9@byu.net>
24989
24990         fseeko: fix m4 regression
24991         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24992         regression from 2009-10-27.
24993         Reported by Ralf Wildenhues.
24994
24995 2009-10-31  Jim Meyering  <meyering@redhat.com>
24996
24997         inttostr: aesthetics and improved (compile-time) safety
24998         Define inttype_is_signed rather than inttype_is_unsigned,
24999         since the sole use is via "#if inttype_is_signed".
25000         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
25001         inttype_is_unsigned.
25002         * lib/offtostr.c (inttype_is_signed): Likewise.
25003         * lib/uinttostr.c (inttype_is_signed): Likewise.
25004         * lib/umaxtostr.c (inttype_is_signed): Likewise.
25005         * lib/inttostr.c (inttostr): Use verify to cross-check the
25006         inttype_is_signed value and the signedness of the actual type.
25007         * modules/inttostr (Depends-on): Add verify.
25008
25009 2009-10-30  Eric Blake  <ebb9@byu.net>
25010
25011         build: avoid compiler warnings
25012         * lib/fchmodat.c (lchmod): Mark unused variables.
25013         * lib/getopt.c (_getopt_initialize): Likewise.
25014         * lib/mktime.c (__mktime_internal): Provide prototype.
25015         * lib/inttostr.c (inttostr): Avoid compiler warning even with
25016         older gcc that do not understand #pragma GCC diagnostic.
25017         * lib/uinttostr.c (inttype_is_unsigned): Define.
25018         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
25019
25020 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
25021
25022         stat: fix compilation on AIX
25023         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
25024         only see struct stat64.
25025
25026 2009-10-30  Eric Blake  <ebb9@byu.net>
25027
25028         exclude: make more robust
25029         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
25030         rather than masking a coding bug.
25031         Suggested by Bruno Haible.
25032
25033 2009-10-30  Jim Meyering  <meyering@redhat.com>
25034
25035         perl scripts: remove #!/usr/bin/perl in favor of more portable...
25036         Rather than putting #!/usr/bin/perl on the first line,
25037         start with a variant of what's recommended by "man perlrun" that
25038         invokes the first "perl" program from your shell's search path.
25039         * build-aux/gitlog-to-changelog: Replace #!... as above.
25040         Add a "Local Variables" perl mode setting.
25041         Prompted by a patch from Ludovic Courtès.
25042         Improved by Eric Blake.
25043         * build-aux/useless-if-before-free: Likewise.
25044         * build-aux/announce-gen: Likewise.
25045         * build-aux/update-copyright: Likewise.
25046
25047 2009-10-29  Eric Blake  <ebb9@byu.net>
25048
25049         filenamecat-lgpl: adjust clients
25050         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
25051         filenamecat.
25052         * modules/renameat (Depends-on): Likewise.
25053
25054         filenamecat: split into filenamecat-lgpl
25055         * modules/filenamecat-lgpl: New module.
25056         * modules/filenamecat (Files): Move library-safe files into
25057         filenamecat-lgpl.
25058         (Depends-on): Add filenamecat-lgpl.
25059         (configure.ac): Declare witness.
25060         * lib/filenamecat.h (file_name_concat): Only declare when using
25061         GPL module.
25062         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
25063         Move...
25064         * lib/filenamecat-lgpl.c: ...into new file.
25065         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
25066         (gl_FILE_NAME_CONCAT): Use it.
25067         * MODULES.html.sh (File system functions): Mention new module.
25068
25069         argp: avoid memory leak
25070         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
25071         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
25072         base_name, since the latter malloc()s and can call exit().
25073         Leak introduced 2006-07-03.
25074
25075         dirname-lgpl: adjust clients that don't need full dirname
25076         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
25077         * modules/filenamecat (Depends-on): Likewise.
25078         * modules/linkat (Depends-on): Likewise.
25079         * modules/mkancesdirs (Depends-on): Likewise.
25080         * modules/mkdir (Depends-on): Likewise.
25081         * modules/openat (Depends-on): Likewise.
25082         * modules/savewd (Depends-on): Likewise.
25083         * modules/rename (Depends-on): Likewise.
25084         (License): Relax license.
25085         * modules/mkdir-tests (Depends-on): Drop progname.
25086         (Makefile.am): Delete unneeded LDADD.
25087         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
25088
25089         dirname: split into dirname-lgpl
25090         * modules/dirname-lgpl: New module.
25091         * modules/dirname (Files): Move library-safe files into
25092         dirname-lgpl.
25093         (Depends-on): Add dirname-lgpl.
25094         (configure.ac): Declare witness.
25095         * modules/double-slash-root (License): Relax license.
25096         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
25097         module.
25098         * lib/dirname.c (dir_len, mdir_name): Move...
25099         * lib/dirname-lgpl.c: ...into new file.
25100         * lib/basename.c (last_component, base_len): Move...
25101         * lib/basename-lgpl.c: ...into new file.
25102         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
25103         (gl_DIRNAME): Use it.
25104         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
25105         Mention new module.
25106         * modules/dirname-tests (Depends-on): Add progname.
25107         * tests/test-dirname.c (program_name): Delete.
25108
25109         mkdir: make safe for libraries
25110         * modules/mkdir (Depends-on): Drop xalloc.
25111         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
25112         exit.
25113
25114         tests: avoid some compiler warnings
25115         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
25116         literals.
25117         * tests/test-memchr.c (main): Avoid type mismatch.
25118         * tests/test-arpa_inet.c (main): Avoid unused parameters.
25119         * tests/test-base64.c (main): Likewise.
25120         * tests/test-getdelim.c (main): Likewise.
25121         * tests/test-gethostname.c (main): Likewise.
25122         * tests/test-getline.c (main): Likewise.
25123         * tests/test-netinet_in.c (main): Likewise.
25124         * tests/test-select.c (open_server_socket, main): Likewise.
25125         * tests/test-select-stdin.c (main): Likewise.
25126         * tests/test-sockets.c (main): Likewise.
25127         * tests/test-strsignal.c (main): Likewise.
25128         * tests/test-sys_select.c (main): Likewise.
25129         * tests/test-sys_socket.c (main): Likewise.
25130         * tests/test-u64.c (main): Likewise.
25131         * tests/test-xfprintf-posix.c (main): Likewise.
25132         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
25133
25134         sockets: avoid compiler warning
25135         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
25136
25137         maint: detect usage(1) and other suspicious exits
25138         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
25139
25140 2009-10-29  Jim Meyering  <meyering@redhat.com>
25141
25142         timespec: long-to-int truncation could make timespec_cmp malfunction
25143         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
25144         a multiple of 2^32 nanoseconds as no difference.
25145
25146 2009-10-28  Jim Meyering  <meyering@redhat.com>
25147
25148         fprintftime: wrap macro code argument in "do {...} while(0)"
25149         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
25150         cpy macro must be a statement that can be followed by a semicolon.
25151         Now that the else clause contains a comment and is hence longer
25152         than one line, I require curly braces.  That in turn requires
25153         that we wrap this code block in the standard do...while(0).
25154
25155         fprintftime: remove stray semicolon from previous change
25156         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
25157
25158         fprintftime: avoid a warning about ignored fwrite return value
25159         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
25160         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
25161         that is unsafe.
25162         * modules/fprintftime (Depends-on): Add ignore-value.
25163
25164         exclude: avoid an unwarranted warning
25165         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
25166
25167 2009-10-27  Eric Blake  <ebb9@byu.net>
25168
25169         fseek: avoid compilation failure when fflush is replaced
25170         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
25171         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
25172         module is in use.
25173         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
25174         module is not in use; since REPLACE_FSEEK worked otherwise.
25175         (GNULIB_FTELLO): Likewise for ftell.
25176         Reported by Ian Beckwith and others.
25177
25178 2009-10-27  Bruno Haible  <bruno@clisp.org>
25179
25180         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
25181         Reported by Jim Meyering.
25182
25183 2009-10-27  Jim Meyering  <jim@meyering.net>
25184             Bruno Haible  <bruno@clisp.org>
25185
25186         Avoid warning despite dropping the return value of fwrite.
25187         * lib/unicodeio.c: Include ignore-value.h.
25188         (fwrite_success_callback): Explicitly ignore fwrite's return value.
25189         * modules/unicodeio (Depends-on): Add ignore-value.
25190
25191 2009-10-26  Eric Blake  <ebb9@byu.net>
25192
25193         areadlinkat: fix fallback path
25194         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
25195         pointer and zero.
25196
25197 2009-10-22  Pádraig Brady  <P@draigBrady.com>
25198
25199         Use a better IO block size for modern systems
25200         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
25201         * lib/md2.c: Likewise.
25202         * lib/md4.c: Likewise.
25203         * lib/md5.c: Likewise.
25204         * lib/sha1.c: Likewise.
25205         * lib/sha256.c: Likewise.
25206         * lib/sha512.c: Likewise.
25207
25208 2009-10-22  Eric Blake  <ebb9@byu.net>
25209
25210         tests: avoid several compiler warnings
25211         * tests/test-getcwd.c (main): Avoid buffer underflow.
25212         * tests/test-getdate.c (main): String literals are not safe with
25213         putenv, so use setenv.  Declare unused argument.
25214         * modules/getdate-tests (Depends-on): Add setenv.
25215         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
25216         problems with string literals in char *.
25217         * tests/test-hash.c (main): Avoid shadowing declaration.
25218         (insert_new): Treat string literals as char const *.
25219         * tests/test-getopt.h (test_getopt): Likewise.
25220         (getopt_loop): Alter types to minimize casting elsewhere.
25221         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
25222         (test_getopt_long_posix): Likewise.
25223         (do_getopt_long): Add wrapper to minimize casting.
25224         * tests/test-atexit.c (clear_temp_file): Use void.
25225         * tests/test-areadlink-with-size.c (main): Declare unused
25226         arguments.
25227         * tests/test-areadlink.c (main): Likewise.
25228         * tests/test-areadlinkat-with-size.c (main): Likewise.
25229         * tests/test-areadlinkat.c (main): Likewise.
25230         * tests/test-canonicalize-lgpl.c (main): Likewise.
25231         * tests/test-canonicalize.c (main): Likewise.
25232         * tests/test-dirent-safer.c (main): Likewise.
25233         * tests/test-dirname.c (main): Likewise.
25234         * tests/test-dup2.c (main): Likewise.
25235         * tests/test-fchdir.c (main): Likewise.
25236         * tests/test-fcntl-h.c (main): Likewise.
25237         * tests/test-fcntl-safer.c (main): Likewise.
25238         * tests/test-fdopendir.c (main): Likewise.
25239         * tests/test-fdutimensat.c (main): Likewise.
25240         * tests/test-fflush.c (main): Likewise.
25241         * tests/test-filenamecat.c (main): Likewise.
25242         * tests/test-filevercmp.c (main): Likewise.
25243         * tests/test-fopen-safer.c (main): Likewise.
25244         * tests/test-fopen.c (main): Likewise.
25245         * tests/test-fpending.c (main): Likewise.
25246         * tests/test-fpurge.c (main): Likewise.
25247         * tests/test-freading.c (main): Likewise.
25248         * tests/test-fstatat.c (main): Likewise.
25249         * tests/test-fsync.c (main): Likewise.
25250         * tests/test-futimens.c (main): Likewise.
25251         * tests/test-getndelim2.c (main): Likewise.
25252         * tests/test-gettimeofday.c (main): Likewise.
25253         * tests/test-getopt.c (main): Likewise.
25254         * tests/test-i-ring.c (main): Likewise.
25255         * tests/test-inttypes.c (main): Likewise.
25256         * tests/test-link.c (main): Likewise.
25257         * tests/test-lstat.c (main): Likewise.
25258         * tests/test-math.c (main): Likewise.
25259         * tests/test-md5.c (main): Likewise.
25260         * tests/test-memchr2.c (main): Likewise.
25261         * tests/test-memrchr.c (main): Likewise.
25262         * tests/test-mkdir.c (main): Likewise.
25263         * tests/test-mkdirat.c (main): Likewise.
25264         * tests/test-mkfifoat.c (main): Likewise.
25265         * tests/test-open.c (main): Likewise.
25266         * tests/test-openat-safer.c (main): Likewise.
25267         * tests/test-openat.c (main): Likewise.
25268         * tests/test-quotearg.c (main): Likewise.
25269         * tests/test-rawmemchr.c (main): Likewise.
25270         * tests/test-readlink.c (main): Likewise.
25271         * tests/test-remove.c (main): Likewise.
25272         * tests/test-rename.c (main): Likewise.
25273         * tests/test-renameat.c (main): Likewise.
25274         * tests/test-rmdir.c (main): Likewise.
25275         * tests/test-sha1.c (main): Likewise.
25276         * tests/test-signal.c (main): Likewise.
25277         * tests/test-sigaction.c (main): Likewise.
25278         * tests/test-stat.c (main): Likewise.
25279         * tests/test-stat-time.c (main): Likewise.
25280         * tests/test-stddef.c (main): Likewise.
25281         * tests/test-stdint.c (main): Likewise.
25282         * tests/test-stdio.c (main): Likewise.
25283         * tests/test-stdlib.c (main): Likewise.
25284         * tests/test-strchrnul.c (main): Likewise.
25285         * tests/test-strerror.c (main): Likewise.
25286         * tests/test-string.c (main): Likewise.
25287         * tests/test-strtod.c (main): Likewise.
25288         * tests/test-strverscmp.c (main): Likewise.
25289         * tests/test-symlink.c (main): Likewise.
25290         * tests/test-symlinkat.c (main): Likewise.
25291         * tests/test-sys_stat.c (main): Likewise.
25292         * tests/test-sys_time.c (main): Likewise.
25293         * tests/test-time.c (main): Likewise.
25294         * tests/test-unistd.c (main): Likewise.
25295         * tests/test-unlink.c (main): Likewise.
25296         * tests/test-unlinkat.c (main): Likewise.
25297         * tests/test-utimens.c (main): Likewise.
25298         * tests/test-utimensat.c (main): Likewise.
25299         * tests/test-version-etc.c (main): Likewise.
25300         * tests/test-wchar.c (main): Likewise.
25301         * tests/test-wctype.c (main): Likewise.
25302         * tests/test-xprintf-posix.c (main): Likewise.
25303         * tests/test-posixtm.c (main): Likewise.
25304         (STREQ): Delete unused macro.
25305         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
25306         shadowed variables.
25307         * tests/test-memchr.c (main): Likewise.
25308
25309 2009-10-21  Eric Blake  <ebb9@byu.net>
25310
25311         areadlinkat: avoid failure on older glibc
25312         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
25313         rather than mis-comparing 0 against FUNC_RESULT of char*.
25314
25315 2009-10-21  Bruno Haible  <bruno@clisp.org>
25316
25317         * modules/stpncpy (License): Relicense under LGPLv2+.
25318         Reported by David Lutterkort <lutter@redhat.com>.
25319
25320 2009-10-20  Eric Blake  <ebb9@byu.net>
25321
25322         utimensat: work around Solaris 9 bug
25323         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
25324         has trailing slash bugs.
25325         * tests/test-lutimens.h (test_lutimens): Enhance test.
25326         * tests/test-utimens.h (test_utimens): Likewise.
25327         * doc/posix-functions/utime.texi (utime): Enhance documentation.
25328         * doc/posix-functions/utimes.texi (utimes): Likewise.
25329         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25330         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
25331         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
25332         * doc/posix-functions/futimens.texi (futimens): Likewise.
25333
25334         fdutimensat: new module
25335         * modules/fdutimensat: New file.
25336         * lib/fdutimensat.c (fdutimensat): Likewise.
25337         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
25338         * MODULES.html.sh (File system functions): Mention module.
25339         * modules/fdutimensat-tests: New test.
25340         * tests/test-fdutimensat.c: Likewise.
25341
25342         doc: regenerate INSTALL
25343         * doc/INSTALL: Reflect recent autoconf update.
25344         * doc/INSTALL.ISO: Likewise.
25345         * doc/INSTALL.UTF-8: Likewise.
25346
25347 2009-10-20  Pádraig Brady  <P@draigBrady.com>
25348
25349         acl: warn if ACL support is not detected
25350         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
25351
25352 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
25353
25354         * lib/nproc.h: Add extern "C" block for C++.
25355
25356 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
25357             Bruno Haible  <bruno@clisp.org>
25358
25359         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
25360         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
25361         * doc/posix-functions/isalpha.texi: Likewise.
25362         * doc/posix-functions/isblank.texi: Likewise.
25363         * doc/posix-functions/iscntrl.texi: Likewise.
25364         * doc/posix-functions/isdigit.texi: Likewise.
25365         * doc/posix-functions/isgraph.texi: Likewise.
25366         * doc/posix-functions/islower.texi: Likewise.
25367         * doc/posix-functions/isprint.texi: Likewise.
25368         * doc/posix-functions/ispunct.texi: Likewise.
25369         * doc/posix-functions/isspace.texi: Likewise.
25370         * doc/posix-functions/isupper.texi: Likewise.
25371         * doc/posix-functions/isxdigit.texi: Likewise.
25372
25373 2009-10-18  Bruno Haible  <bruno@clisp.org>
25374
25375         Tests for module 'isblank'.
25376         * modules/isblank-tests: New file.
25377         * tests/test-isblank.c: New file.
25378
25379         New module 'isblank'.
25380         * lib/isblank.c: New file.
25381         * m4/isblank.m4: New file.
25382         * modules/isblank: New file.
25383         * doc/posix-functions/isblank.texi: Mention the new module.
25384
25385 2009-10-18  Bruno Haible  <bruno@clisp.org>
25386
25387         New module 'ctype'.
25388         * lib/ctype.in.h: New file.
25389         * m4/ctype.m4: New file.
25390         * modules/ctype: New file.
25391         * doc/posix-headers/ctype.texi: Mention the new module.
25392
25393 2009-10-18  Jim Meyering  <meyering@redhat.com>
25394
25395         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
25396         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
25397         right after its initialization, rather than farther down.
25398         Keeping these in close proximity makes it easier to ensure
25399         that each such variable is initialized.  E.g.,
25400
25401             LIB_CLOCK_GETTIME=
25402             AC_SUBST([LIB_CLOCK_GETTIME])
25403
25404         This change also increments these serial numbers.
25405         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
25406         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25408
25409 2009-10-18  Bruno Haible  <bruno@clisp.org>
25410
25411         Don't let environment variables perturb build.
25412         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
25413         (gl_PREREQ_GETHRXTIME): ... not here.
25414
25415 2009-10-18  Bruno Haible  <bruno@clisp.org>
25416
25417         Avoid symlink attack in localcharset module.
25418         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
25419         (O_NOFOLLOW): Define fallback.
25420         (get_charset_aliases): Don't open the file if it is a symbolic link.
25421         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
25422         gl_FCNTL_H.
25423         (gl_FCNTL_H): Require it.
25424         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
25425         * modules/localcharset (Files): Add m4/fcntl_h.m4.
25426         Reported by Fergal Glynn <fglynn@veracode.com>.
25427
25428 2009-10-18  Bruno Haible  <bruno@clisp.org>
25429
25430         Implement nproc for mingw.
25431         * lib/nproc.c: Include <windows.h>
25432         (num_processors): On native Windows platforms, try GetSystemInfo.
25433
25434 2009-10-18  Bruno Haible  <bruno@clisp.org>
25435
25436         Implement nproc for IRIX.
25437         * lib/nproc.c: Include <sys/sysmp.h>.
25438         (num_processors): On IRIX systems, try sysmp.
25439         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
25440
25441 2009-10-18  Bruno Haible  <bruno@clisp.org>
25442
25443         Implement nproc for HP-UX.
25444         * lib/nproc.c: Include <sys/pstat.h>
25445         (num_processors): On HP-UX systems, try pstat_getdynamic.
25446         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
25447         pstat_getdynamic.
25448
25449 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
25450             Bruno Haible  <bruno@clisp.org>
25451
25452         Implement nproc for NetBSD, OpenBSD.
25453         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
25454         (ARRAY_SIZE): New macro.
25455         (num_processors): On BSD systems, try sysctl of HW_NCPU.
25456         * m4/nproc.m4: New file.
25457         * modules/nproc (Files): Add m4/nproc.m4.
25458         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
25459         (Makefile.am): Instead, augment lib_SOURCES.
25460
25461 2009-10-18  Bruno Haible  <bruno@clisp.org>
25462
25463         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
25464         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
25465         sys/param.h.
25466
25467 2009-10-16  Eric Blake  <ebb9@byu.net>
25468
25469         utimensat: new module
25470         * modules/utimensat: New file.
25471         * lib/utimensat.c (utimensat): Likewise.
25472         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25473         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
25474         so we can work around Linux bugs.
25475         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25476         * modules/sys_stat (Makefile.am): Substitute them.
25477         * lib/sys_stat.in.h (utimensat): Declare it.
25478         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25479         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25480         * modules/utimensat-tests: New test.
25481         * tests/test-utimensat.c: Likewise.
25482
25483         utimens: let lutimens work on non-symlinks
25484         * lib/utimens.c (lutimens): Fall back to utimens rather than
25485         failing with ENOSYS, when file is not a symlink.
25486         (utimens): Reduce redirection.
25487         * tests/test-lutimens.h (test_lutimens): Update test to cover
25488         non-symlinks.
25489         * tests/test-utimens.h (test_utimens): Update test to cover
25490         symlinks.
25491         * tests/test-utimens.c (main): Update caller.
25492
25493         utimens: cache whether utimensat syscall works
25494         * lib/utimens.c (utimensat_works_really): New cache variable.
25495         (fdutimens, lutimens): Use it to avoid failing syscall.
25496
25497         test-stat-time, test-utimens: improve portability
25498         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
25499         ext4 on alpha, and for cygwin.
25500         * tests/test-utimens-common.h: New file.
25501         (nap): Factor delays into single function.
25502         * tests/test-lutimens.h (test_lutimens): Use new header.
25503         * tests/test-futimens.h (test_futimens): Likewise.
25504         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
25505         timestamps to occur from same machine, as was done previously for
25506         test_utimens.
25507         * modules/utimens-tests (Files): Ship new file.
25508         * modules/futimens-tests (Files): Likewise.
25509         Reported in part by Jim Meyering.
25510
25511         sys_stat: sort replacement declarations
25512         * lib/sys_stat.in.h: Sort declarations.
25513         * lib/futimens.c (futimens): Fix typo.
25514
25515 2009-10-15  Jim Meyering  <meyering@redhat.com>
25516
25517         don't let environment settings perturb build
25518         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
25519         could cause a configure-time and/or build-time malfunction.
25520         Typically, a configure-time function-in-library test is performed
25521         via code like this:
25522
25523           LIB_VAR=
25524           AC_SUBST([LIB_VAR])
25525           prefix_saved_LIBS=$LIBS
25526             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
25527                        [test "$ac_cv_search_FUNC" = "none required" ||
25528                         LIB_VAR=$ac_cv_search_FUNC])
25529           LIBS=$prefix_saved_LIBS
25530
25531         However, in each of the files affected by this change, the LIB_VAR=
25532         initialization was omitted.  Thus, when set in the environment, its
25533         value would propagate into generated Makefiles when FUNC is not found
25534         in LIB_NAME.
25535         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
25536         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25537         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25538
25539 2009-10-14  Eric Blake  <ebb9@byu.net>
25540
25541         fchdir: avoid infinite recursion in mingw
25542         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
25543         recursing.
25544
25545         test-stat-time: port to mingw
25546         * tests/test-stat-time.c (force_unlink): Return a value.
25547         (test_ctime) [W32]: Fix compilation error.
25548         (nap): Don't call usleep with too large an argument.  Use
25549         force_unlink.
25550         * doc/pastposix-functions/usleep.texi (usleep): Document the
25551         portability issue.
25552
25553 2009-10-13  Jim Meyering  <meyering@redhat.com>
25554
25555         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
25556         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
25557         * modules/pipe-filter-ii: Likewise.
25558         * modules/sys_socket-tests: Likewise.
25559         * modules/tsearch-tests: Likewise.
25560         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
25561         (check): Depend on it.
25562
25563 2009-10-12  Eric Blake  <ebb9@byu.net>
25564
25565         utimens-tests: port to NFS file systems
25566         * tests/test-utimens.h (test_utimens): Refactor utimecmp
25567         comparisons to avoid spurious failures from timestamp drift
25568         between NFS machines.
25569
25570 2009-10-12  Eric Blake  <ebb9@byu.net>
25571
25572         stat-time-tests: minor cleanups
25573         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
25574         * tests/test-stat-time.c (nap): Separate assignment from call.
25575         Suggested by Paolo Bonzini and Bruno Haible.
25576
25577         sys_stat: guarantee struct timespec
25578         * lib/sys_stat.in.h (includes): Always include <time.h>
25579         * modules/sys_stat (Depends-on): Add time.
25580         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
25581         mode_t permission values.
25582         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
25583         get at subsecond timestamps.
25584
25585 2009-10-10  Eric Blake  <ebb9@byu.net>
25586
25587         futimens: new module
25588         * modules/futimens: New file.
25589         * lib/futimens.c (futimens): Likewise.
25590         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
25591         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
25592         we can work around Linux bugs.
25593         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25594         * modules/sys_stat (Makefile.am): Substitute them.
25595         * lib/sys_stat.in.h (futimens): Declare it.
25596         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25597         * doc/posix-functions/futimens.texi (futimens): Likewise.
25598         * modules/futimens-tests: New test.
25599         * tests/test-futimens.c: Likewise.
25600
25601         utimens: introduce fdutimens
25602         * lib/utimens.h (fdutimens): New prototype.
25603         * lib/utimens.c (gl_futimens): Move guts...
25604         (fdutimens): ...to new interface.
25605         * tests/test-utimens.c (do_fdutimens): Use it.
25606
25607         utimens: add UTIME_NOW and UTIME_OMIT support
25608         * lib/utimens.c (validate_timespec, update_timespec): New helper
25609         functions.
25610         (gl_futimens, lutimens): Use them.
25611         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
25612         stdbool, sys_stat.
25613         (Link): Mention resulting library dependency.
25614         * modules/utimecmp (Link): Likewise.
25615         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
25616         (Makefile.am): Pick up library dependency.
25617         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
25618         definition.
25619         * tests/test-sys_stat.c: Test the definitions.
25620         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
25621         * NEWS: Document library dependency.
25622
25623         utimecmp: support symlink timestamps
25624         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
25625         hashing when possible.  Use pathconf when available.
25626         (SYSCALL_RESOLUTION): Recognize tighter resolution.
25627         * modules/utimecmp (Depends-on): Add lstat.
25628
25629         utimens: add lutimens interface
25630         * lib/utimens.c (lutimens): New function.
25631         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
25632         * lib/utimens.h (lutimens): Declare new interface.
25633         * tests/test-utimens.c (main): Enhance test.
25634         * tests/test-lutimens.h (test_lutimens): New file.
25635         * modules/utimens-tests (Files): Distribute it.
25636         (Depends-on): Add symlink.
25637         (configure.ac): Check for usleep.
25638
25639         utimens: validate futimens usage
25640         * lib/utimens.c (gl_futimens): Require valid fd up front, using
25641         fewer syscalls on failure later on.  Avoid compiler warning on
25642         mingw.
25643         * modules/utimens (Depends-on): Add dup2.
25644
25645         utimens: add test
25646         * modules/utimens-tests: New test.
25647         * tests/test-utimens.h: New file.
25648         * tests/test-futimens.h: Likewise.
25649         * tests/test-utimens.c: Likewise.
25650
25651         doc: mention timestamp portability issues
25652         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25653         instead.
25654         * doc/posix-functions/utime.texi (utime): Likewise.
25655         * doc/posix-functions/utimes.texi (utimes): Likewise.
25656         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25657         instead.
25658         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25659         module.
25660         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25661         Mention weakness with symlink timestamps.
25662         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25663         to utimensat/futimens instead.
25664         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25665
25666         test-dup2: enhance test
25667         * tests/test-dup2.c (main): Also check AT_FDCWD.
25668
25669         test-stat-time: avoid more spurious failures
25670         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25671         xfs; and avoid race if the two timestamps cross quantization edge.
25672
25673         relocatable: prefer 'file system' over 'filesystem'
25674         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25675         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25676         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25677         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25678         * lib/relocatable.c (compute_curr_prefix): Likewise.
25679
25680 2009-10-10  Jim Meyering  <meyering@redhat.com>
25681
25682         stat-time-tests: check for the usleep function
25683         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25684
25685 2009-10-10  Bruno Haible  <bruno@clisp.org>
25686
25687         * modules/xnanosleep: Put the Link section after the Include section.
25688
25689 2009-10-09  Eric Blake  <ebb9@byu.net>
25690
25691         dup2: work around FreeBSD 6.1 bug
25692         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25693         * doc/posix-functions/dup2.texi (dup2): Document it.
25694         Reported by Nelson H. F. Beebe and Jim Meyering.
25695
25696         test-stat-time: port to buggy NFS clients
25697         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25698         (test_ctime): Also skip test if mtime and ctime are skewed.
25699
25700         maint: prefer 'file system' over 'filesystem'
25701         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25702         * doc/posix-functions/lstat.texi (lstat): Likewise.
25703         * lib/file-has-acl.c (file_has_acl): Likewise.
25704         * lib/fwriteerror.c [TEST]: Likewise.
25705         * tests/test-areadlink.h (test_areadlink): Likewise.
25706         * tests/test-areadlinkat-with-size.c (main): Likewise.
25707         * tests/test-areadlinkat.c (main): Likewise.
25708         * tests/test-canonicalize-lgpl.c (main): Likewise.
25709         * tests/test-canonicalize.c (main): Likewise.
25710         * tests/test-fstatat.c (main): Likewise.
25711         * tests/test-linkat.c (main): Likewise.
25712         * tests/test-lstat.h (test_lstat_func): Likewise.
25713         * tests/test-mkdir.h (test_mkdir): Likewise.
25714         * tests/test-readlink.h (test_readlink): Likewise.
25715         * tests/test-remove.c (main): Likewise.
25716         * tests/test-rename.h (test_rename): Likewise.
25717         * tests/test-renameat.c (main): Likewise.
25718         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25719         * tests/test-symlink.h (test_symlink): Likewise.
25720         * tests/test-symlinkat.c (main): Likewise.
25721         * tests/test-unlink.h (test_unlink_func): Likewise.
25722         * tests/test-unlinkat.c (main): Likewise.
25723
25724         maint: make realtime library usage explicit
25725         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25726         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25727         * modules/settime (Link): Likewise.
25728         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25729
25730         test-stat-time: speed up execution
25731         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25732         warning on mingw.
25733         (nap): New helper function.
25734         (prepare_test): Use it to reduce sleep time.
25735         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25736         execution.
25737         * modules/stat-time-tests (configure.ac): Check for usleep.
25738
25739 2009-10-09  Jim Meyering  <meyering@redhat.com>
25740
25741         selinux-h: always use getfilecon wrappers
25742         * lib/getfilecon.c: New file.
25743         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25744         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25745         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25746         (fgetfilecon): Provide a stub.
25747         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25748         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25749         file unconditionally.
25750         When <selinux/selinux.h> is found, arrange to use wrappers.
25751         * modules/selinux-h (Files): Add getfilecon.c.
25752         (Makefile.am): Substitute include-next-related bits
25753         into the now-always-generated selinux/selinux.h file.
25754         * doc/glibc-functions/lgetfilecon.texi: New file.
25755         * doc/glibc-functions/fgetfilecon.texi: New file.
25756         * doc/glibc-functions/getfilecon.texi: New file.
25757         * doc/glibc-functions/getfilecon-desc.texi: New file.
25758         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25759         which to pull in the new files.
25760         * MODULES.html.sh (Misc): Add selinux-h.
25761
25762 2009-10-08  Jim Meyering  <meyering@redhat.com>
25763
25764         unistd: fix comment typo
25765         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25766
25767 2009-10-08  Eric Blake  <ebb9@byu.net>
25768
25769         areadlink: use SIZE_MAX consistently
25770         * modules/areadlink (Depends-on): Add stdint.
25771         * modules/areadlink-with-size (Depends-on): Likewise.
25772         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25773         gives NULL; drop sys/types, since unistd gives size_t; and add
25774         stdint for SIZE_MAX.
25775         (SIZE_MAX): Rely on headers.
25776         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25777         and add stdint.
25778         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25779         (SIZE_MAX): Likewise.
25780         (INITIAL_BUF_SIZE): Turn into enum.
25781         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25782
25783 2009-10-08  Jim Meyering  <meyering@redhat.com>
25784
25785         areadlinkat: avoid compilation failure
25786         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25787         Fix typo in comment.
25788
25789 2009-10-07  Eric Blake  <ebb9@byu.net>
25790
25791         areadlinkat-with-size: new module
25792         * modules/areadlinkat-with-size: New module.
25793         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25794         * lib/areadlink.h (areadlinkat): Declare it.
25795         * MODULES.html.sh (File system functions): Mention it.
25796         * modules/areadlinkat-with-size-tests: New test.
25797         * tests/test-areadlinkat-with-size.c: New file.
25798
25799         xreadlinkat: new module
25800         * modules/xreadlinkat: New module.
25801         * lib/xreadlinkat.c (xreadlinkat): New file.
25802         * lib/xreadlink.h (xreadlinkat): Declare it.
25803         * MODULES.html.sh (File system functions): Mention it.
25804
25805         areadlinkat: new module
25806         * lib/at-func.c (FUNC_FAIL): New define.
25807         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25808         * modules/areadlinkat: New module.
25809         * lib/linkat.c (areadlinkat): Move...
25810         * lib/areadlinkat.c (areadlinkat): ...to new file.
25811         * lib/areadlink.h (areadlinkat): Declare it.
25812         * modules/linkat (Depends-on): Add areadlinkat.
25813         * MODULES.html.sh (File system functions): Mention it.
25814         * modules/areadlinkat-tests: New test.
25815         * tests/test-areadlinkat.c: New file.
25816
25817         areadlink, areadlink-with-size: add tests
25818         * modules/areadlink-tests: New test.
25819         * modules/areadlink-with-size-tests: Likewise.
25820         * tests/test-areadlink.h: New file.
25821         * tests/test-areadlink.c: Likewise.
25822         * tests/test-areadlink-with-size.c: Likewise.
25823
25824         maint: minor cleanups
25825         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25826         _UNUSED_PARAMETER_ instead.
25827         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25828         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25829         * modules/linkat-tests (Files): Distribute test-link.h.
25830
25831         openat, utimens: whitespace cleanup
25832         * lib/openat.c: Prefer space throughout, rather than mix of 8
25833         spaces vs. tabs.
25834         * lib/at-func.c: Likewise.
25835         * lib/utimens.c: Likewise.
25836
25837         openat: avoid using wrong fd
25838         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25839         working directory chooses same fd.
25840         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25841
25842         mkdir, mkdirat: fix cygwin 1.5.x bug
25843         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25844         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25845         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25846         bug.
25847         (gl_PREREQ_MKDIR): Delete unused macro.
25848         * modules/mkdir (Files): Track file rename.
25849         (configure.ac): Update macro name.
25850         * modules/openat (Depends-on): Add mkdir.
25851         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25852
25853         mkdir, mkdirat: add tests
25854         * modules/mkdir-tests: New test.
25855         * tests/test-mkdir.h: New file.
25856         * tests/test-mkdir.c: Likewise.
25857         * tests/test-mkdirat.c: Likewise.
25858         * modules/openat-tests (Files): Add new files.
25859         (Makefile.am): Run new test.
25860
25861 2009-10-06  Eric Blake  <ebb9@byu.net>
25862
25863         doc: tweak *at function documentation
25864         * doc/posix-functions/faccessat.texi (faccessat): Mention
25865         known issue with replacement.
25866         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25867         * doc/posix-functions/linkat.texi (linkat): Likewise.
25868         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25869         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25870         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25871         * doc/posix-functions/renameat.texi (renameat): Likewise.
25872         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25873
25874         openat: fix GNU/Hurd bug in unlinkat
25875         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25876         broken.
25877         * doc/posix-functions/unlink.texi (unlink): Document this.
25878         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25879
25880         fdopendir: fix GNU/Hurd bug
25881         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25882         allowing non-directory fds.
25883         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25884         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25885         * modules/dirent (Makefile.am): Substitute it.
25886         * lib/dirent.in.h (fdopendir): Declare replacement.
25887         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25888         * tests/test-fdopendir.c (main): Test something other than
25889         /dev/null, since on Hurd that behaves like a directory.
25890
25891         test-symlink: port to GNU/Hurd
25892         * tests/test-symlink.h (test_symlink): Relax expected errno.
25893
25894         doc: tweak more cygwin information
25895         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25896         now compatible with glibc.
25897         * doc/posix-functions/getopt.texi (getopt): Likewise.
25898
25899         getopt-gnu: add another test
25900         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25901         guarantee behavior relied on by m4.
25902         * tests/test-getopt.c (main): Use it.
25903         * modules/getopt-posix-tests (Depends-on): Add setenv.
25904         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25905
25906         getopt: fix compilation on darwin
25907         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25908         include.
25909         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25910         Reported by Ludovic Courtès.
25911
25912 2009-10-06  Bruno Haible  <bruno@clisp.org>
25913
25914         * modules/size_max (Description): Discourage its use.
25915         Reported by Simon Josefsson.
25916
25917 2009-10-06  Jim Meyering  <meyering@redhat.com>
25918
25919         linkat: avoid compilation failure
25920         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25921
25922 2009-10-05  Eric Blake  <ebb9@byu.net>
25923
25924         linkat: support Linux 2.6.17
25925         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25926         linkat on Linux, but allow cache variable override.
25927         * lib/linkat.c (rpl_linkat): Define override.
25928         * modules/linkat (Depends-on): Add symlinkat.
25929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25930         * modules/unistd (Makefile.am): Substitute it.
25931         * lib/unistd.in.h (linkat): Declare replacement.
25932         Reported by Pádraig Brady.
25933
25934         quotearg: port test to systems with C.UTF-8 locale
25935         * tests/test-quotearg.c (struct result_strings): Add another
25936         member, differentiating between C.ASCII and C.UTF-8 handling.
25937         (compare_strings): Add parameter.
25938         (main): Adjust all callers.
25939
25940         getopt: avoid clash with FreeBSD _getopt_internal
25941         * lib/getopt.in.h (_getopt_internal): Override the name.
25942         * lib/getopt_int.h (includes): Pick up any overrides.
25943         Reported by Reuben Thomas.
25944
25945         hash: allow C89 compilation
25946         * lib/hash.c (check_tuning): Move declaration before statement.
25947         Reported by Reuben Thomas.
25948
25949 2009-10-05  Karl Berry  <karl@gnu.org>
25950
25951         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25952
25953 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25954             Bruno Haible  <bruno@clisp.org>
25955
25956         * lib/uname.c (uname): Use a table-driven algorithm to compute
25957         Windows NT versions.
25958
25959 2009-10-04  Bruno Haible  <bruno@clisp.org>
25960
25961         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25962         program_invocation_short_name.
25963         * modules/progname (configure.ac): Test for presence of
25964         program_invocation_short_name.
25965         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25966
25967 2009-10-04  Bruno Haible  <bruno@clisp.org>
25968
25969         * lib/progname.c (set_program_name): Fix comment.
25970         Reported by Jim Meyering.
25971
25972 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25973             Bruno Haible  <bruno@clisp.org>
25974
25975         * lib/uname.c: Include <string.h>.
25976         (uname): Do only one call to GetVersionEx in the common case.
25977
25978 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25979             Bruno Haible  <bruno@clisp.org>
25980
25981         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25982         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25983         (uname): Add support for Windows CE and various non-x86 CPU types.
25984
25985 2009-10-03  Bruno Haible  <bruno@clisp.org>
25986
25987         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25988         invocation to tests/configure.ac.
25989         Reported by Ian Beckwith <ianb@erislabs.net>.
25990
25991 2009-10-02  Eric Blake  <ebb9@byu.net>
25992
25993         fchdir: avoid compiler warning
25994         * lib/fchdir.c (canonicalize_file_name)
25995         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25996
25997         test-open: support mingw errno values
25998         * tests/test-open.h (test_open): Relax test.
25999         * tests/test-fopen.h (test_fopen): Likewise.
26000         * tests/test-openat-safer.c (main): Likewise.
26001
26002         open: fix opening directory on mingw
26003         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
26004
26005         test-open: on GNU/Hurd, /dev/null is a directory
26006         * tests/test-fopen.h (main): Rename...
26007         (test_fopen): ...to this.  Use a guaranteed non-directory when
26008         confirming open behavior on trailing slash.
26009         * tests/test-openat-safer.c (main): Likewise.
26010         * tests/test-open.h (main): Likewise....
26011         (test_open): ...to this.
26012         * tests/test-fopen.c (main): Adjust caller.
26013         * tests/test-fopen-safer.c (main): Likewise.
26014         * tests/test-open.c (main): Likewise.
26015         * tests/test-fcntl-safer.c (main): Likewise.
26016         Reported by Samuel Thibault.
26017
26018         rename, fchdir: don't ignore chdir failure
26019         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
26020         * lib/rename.c (rpl_rename) [W32]: Likewise.
26021         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
26022         an empty destination directory if source cannot be renamed,
26023         although there is still possibility for failure.
26024         * doc/posix-functions/rename.texi (rename): Document the race.
26025         Reported by Jim Meyering.
26026
26027         maint: cleanup whitespace in recent commits
26028         * lib/rename.c (rpl_rename): Remove tabs.
26029         * tests/test-link.h (test_link): Likewise.
26030         * lib/fchdir.c (get_name): Likewise.
26031         Reported by Jim Meyering.
26032
26033 2009-10-02  Ben Pfaff  <blp@gnu.org>
26034
26035         relocatable-prog-wrapper: Add missing dependency on
26036         double-slash-root.
26037         * modules/relocatable-prog-wrapper: Add dependency.
26038         Reported by Ian Beckwith <ianb@erislabs.net>.
26039
26040 2009-10-02  Eric Blake  <ebb9@byu.net>
26041
26042         renameat: fix Solaris bugs
26043         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
26044         needed fixing.
26045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
26046         * modules/stdio (Makefile.am): Substitute it.
26047         * lib/stdio.in.h (renameat): Declare replacement.
26048         * lib/renameat.c (rpl_renameat): Implement fix.
26049
26050         renameat: new module
26051         * modules/renameat: New file.
26052         * lib/renameat.c (renameat): Likewise.
26053         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
26054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26055         * modules/stdio (Makefile.am): Substitute them.
26056         * lib/stdio.in.h (renameat): Declare it.
26057         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26058         * doc/posix-functions/renameat.texi (renameat): Likewise.
26059         * modules/renameat-tests: New test.
26060         * tests/test-renameat.c: Likewise.
26061
26062         rename: fix mingw bugs
26063         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
26064         directory overwrite bugs.
26065
26066         rename: fix another cygwin 1.5 bug
26067         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
26068         checks.
26069         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
26070         unnecessary cygwin workarounds.  Also work around bug with moving
26071         full directory onto an empty one.
26072         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
26073
26074         rename-dest-slash: merge into rename module
26075         * modules/rename-dest-slash (Status): Mark obsolete.
26076         (Depends-on): Add rename.
26077         (Files): Let rename do it all.
26078         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
26079         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
26080         * m4/rename-dest-slash.m4: ...so this file can be deleted.
26081         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
26082         * lib/rename.c (rpl_rename): Update comments.
26083
26084         rename: fix cygwin 1.5.x bugs
26085         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
26086         * lib/rename.c (rpl_rename): Work around them.
26087         * modules/rename (Depends-on): Add same-inode.
26088
26089         rename: fix Solaris 10 bug
26090         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26091         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
26092         was the only bug.
26093
26094         rename: fix Solaris 9 bug
26095         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
26096         on non-directory.  Avoid calling exit.
26097         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
26098         strdup.
26099         * modules/rename-tests (Depends-on): Drop lstat.
26100         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26101         (gl_PREREQ_RENAME): Delete unused macro.
26102
26103         rename-dest-slash: fix NetBSD bug
26104         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
26105         links.
26106         * modules/rename-dest-slash (Depends-on): Add same-inode.
26107
26108         rename-tests: new test, exposes several platform bugs
26109         * modules/rename-tests: New file.
26110         * tests/test-rename.h: Likewise.
26111         * tests/test-rename.c: Likewise.
26112         * doc/posix-functions/rename.texi (rename): Improve documentation,
26113         including bugs that will eventually be fixed in gnulib.
26114
26115 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
26116
26117         * lib/uname.c: Include <stdlib.h>
26118         (uname): Assume version info is available.
26119
26120 2009-10-02  Jim Meyering  <meyering@redhat.com>
26121
26122         gnu-web-doc-update: correct --help output
26123         * build-aux/gnu-web-doc-update: Make --help output relevant.
26124
26125         gnu-web-doc-update: add standard options
26126         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
26127
26128         gnu-web-doc-update: New module.
26129         Use this script to automatically update the on-line web documentation
26130         for your GNU project at http://www.gnu.org/software/$pkg/manual/
26131         * modules/gnu-web-doc-update: New file, from coreutils.
26132         * build-aux/gnu-web-doc-update: New script.
26133
26134 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
26135
26136         link: LoadLibrary is not needed.
26137         * lib/link.c: Use GetModuleHandle.
26138
26139 2009-10-01  Eric Blake  <ebb9@byu.net>
26140
26141         getopt: bump serial number
26142         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
26143         change.
26144
26145         tests: tighten link, rmdir, and remove tests
26146         * tests/test-link.h (includes): No need to use <config.h> here.
26147         Clean up if directory hard link was created, otherwise test for
26148         trailing '.'.
26149         * tests/test-linkat.c (main): Simplify.
26150         * tests/test-remove.c (main): Enhance test for trailing '.'.
26151         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26152
26153 2009-10-01  Jim Meyering  <meyering@redhat.com>
26154
26155         maint.mk: requiring "make major" was annoying, for a "minor" release.
26156         What is intended is "stable", to contrast with alpha and beta,
26157         so require "make stable", not "make major".
26158         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
26159         (get_tool_versions): Likewise.
26160         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
26161
26162 2009-09-30  Ben Pfaff  <blp@gnu.org>
26163
26164         Fix broken build of replacement for Windows tmpfile().
26165         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
26166         flags argument added along with the 'mkostemp' module.
26167
26168 2009-09-28  Bruno Haible  <bruno@clisp.org>
26169
26170         Avoid identifier clash with POSIX function 'remove' defined as a macro.
26171         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
26172         to 'remove_elt'.
26173         (gl_list_remove): Update.
26174         * lib/gl_list.c (gl_list_remove): Update.
26175         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
26176         to 'remove_elt'.
26177         (gl_oset_remove): Update.
26178         * lib/gl_list.c (gl_oset_remove): Update.
26179         Reported by Eric Blake.
26180
26181 2009-09-28  Eric Blake  <ebb9@byu.net>
26182
26183         doc: mention yet more cygwin 1.7 status
26184         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
26185         cygwin.
26186         * doc/glibc-functions/execvpe.texi (execvpe): New file.
26187         * doc/gnulib.texi (Glibc unistd.h): Mention it.
26188
26189         argp: fix test failure
26190         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
26191         that are not upper-case.  Pass correct range to tolower.
26192
26193 2009-09-27  Jim Meyering  <meyering@redhat.com>
26194
26195         test-yesno: work around sparc-dash here-document infelicity
26196         Without this change, the literal \177 byte in a here document
26197         would make dash 0.5.5.1-3 access uninitialized memory.
26198         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
26199         Instead, use a marker, "@", and filter through tr to create the desired
26200         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
26201
26202 2009-09-27  Bruno Haible  <bruno@clisp.org>
26203
26204         Disable untested support for new flavours of ACLs on AIX.
26205         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
26206         progress.
26207         * lib/set-mode-acl.c (qset_acl): Likewise.
26208
26209 2008-12-07  Bruno Haible  <bruno@clisp.org>
26210
26211         Add support for new flavours of ACLs on AIX. (Untested.)
26212         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
26213         (file_has_acl): Add support for newer AIX.
26214         * lib/set-mode-acl.c (qset_acl): Likewise.
26215         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
26216         Rainer Tammer <tammer@tammer.net>.
26217
26218 2009-09-26  Eric Blake  <ebb9@byu.net>
26219
26220         argp: fix compilation of getopt
26221         * lib/getopt.in.h (includes): Use different guard than glibc.
26222         Reported by Sergey Poznyakoff.
26223
26224         doc: mention more cygwin 1.7 status
26225         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
26226         bug.
26227         * doc/posix-functions/execl.texi (execl): Likewise.
26228         * doc/posix-functions/execle.texi (execle): Likewise.
26229         * doc/posix-functions/execlp.texi (execlp): Likewise.
26230         * doc/posix-functions/execv.texi (execv): Likewise.
26231         * doc/posix-functions/execve.texi (execve): Likewise.
26232         * doc/posix-functions/execvp.texi (execvp): Likewise.
26233         * doc/glibc-functions/canonicalize_file_name.texi
26234         (canonicalize_file_name): Cygwin 1.7 now provides this.
26235         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
26236         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
26237         on AT_SYMLINK_NOFOLLOW.
26238
26239 2009-09-24  Eric Blake  <ebb9@byu.net>
26240
26241         test-linkat: make test more robust
26242         * tests/test-linkat.c (main): Avoid collision with EEXIST.
26243
26244         getopt: fix inclusion guards for cygwin
26245         * modules/getopt-posix (Depends-on): Add include-next.
26246         (Makefile.am): Substitute more items in replacement header.
26247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
26248         <getopt.h>.
26249         * lib/getopt.in.h (includes): Use split inclusion guard, and
26250         prefer <getopt.h> over include <unistd.h> when one is present.
26251         (option): Also override name of 'struct option'.
26252
26253         same-inode: revert prior change; it is not yet ready
26254         * NEWS: Undo mention of this change.
26255         * lib/same-inode.h (same-inode.h): Undo tri-state change.
26256         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26257         * lib/cycle-check.c (cycle_check): Likewise.
26258         * lib/same.c (same_name): Likewise.
26259         * lib/at-func2.c (at_func2): Likewise.
26260
26261 2009-09-23  Eric Blake  <ebb9@byu.net>
26262
26263         linkat: new module
26264         * modules/linkat: New file.
26265         * lib/at-func2.c (at_func2): Likewise.
26266         * lib/linkat.c (linkat): Likewise.
26267         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26268         * lib/openat-priv.h (at_func2): Add declaration.
26269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26270         * modules/unistd (Makefile.am): Substitute them.
26271         * lib/unistd.in.h (linkat): Declare it.
26272         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26273         * doc/posix-functions/linkat.texi (linkat): Likewise.
26274         * doc/posix-functions/link.texi (link): Tweak wording.
26275         * tests/test-link.c (main): Move guts...
26276         * tests/test-link.h (test_link): ...into new file.
26277         * modules/linkat-tests: New test.
26278         * tests/test-linkat.c: Likewise.
26279         * modules/link-tests (Files): Ship new file.
26280         (Depends-on): Add stdbool.
26281
26282         dirname: add library-safe mdir_name
26283         * lib/dirname.h (mdir_name): New prototype.
26284         * lib/dirname.c (dir_name): Move guts...
26285         (mdir_name): ...to new function that avoids xalloc_die.
26286
26287         fchdir: another mingw fix
26288         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
26289         * lib/fchdir.c (get_name): New helper method; skips canonicalize
26290         on mingw (where it has not yet been ported), and make it optional
26291         elsewhere.
26292         (_gl_register_fd): Use it.
26293
26294         same-inode: make SAME_INODE tri-state, to port to mingw
26295         * NEWS: Mention this change.
26296         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
26297         st_ino always being 0.
26298         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26299         * lib/cycle-check.c (cycle_check): Likewise.
26300         * lib/same.c (same_name): Likewise.
26301
26302         lstat: avoid mingw compilation error
26303         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
26304         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
26305         lstat ourselves.
26306         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
26307         was adequate.
26308         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
26309         the checks for lstat.
26310         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
26311
26312         link: fix test failure on Solaris 9
26313         * lib/link.c (rpl_link): Don't assume link will catch bogus
26314         trailing slash on source.
26315
26316         test-symlinkat: enhance test
26317         * tests/test-readlink.c (main): Move guts...
26318         * tests/test-readlink.h (test_readlink): ...into new file.
26319         * tests/test-symlink.c (main): Move guts...
26320         * tests/test-symlink.h (test_symlink): ...into new file.
26321         * tests/test-symlinkat.c (main): Use new files for further
26322         coverage.
26323         (do_symlink, do_readlink): New helper functions.
26324         * modules/symlink-tests (Files): Ship new file.
26325         (Depends-on): Add stdbool.
26326         * modules/readlink-tests (Files): Ship new file.
26327         (Depends-on): Add stdbool.
26328         * modules/symlinkat-tests (Files): Use new files.
26329
26330 2009-09-23  Eric Blake  <ebb9@byu.net>
26331
26332         readlink: document portability issue with symlink length
26333         * doc/posix-functions/lstat.texi (lstat): Mention that some file
26334         systems have bogus st_size on symlinks, and mention the
26335         areadlink-with-size module.
26336         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26337         * doc/posix-functions/readlink.texi (readlink): Mention the
26338         areadlink module, and ERANGE failure.
26339         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26340         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
26341
26342         readlink: fix Solaris 9 bug with trailing slash
26343         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
26344         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
26345         * doc/posix-functions/readlink.texi (readlink): Document this.
26346         * modules/readlink-tests: New test.
26347         * tests/test-readlink.c: Likewise.
26348
26349         readlink: fix cygwin 1.5.x bug with return type
26350         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
26351         * lib/unistd.in.h (readlink): Use ssize_t.
26352         * lib/readlink.c (readlink): Likewise.
26353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26354         * modules/unistd (Makefile.am): Substitute it.
26355         * lib/unistd.in.h (readlink): Declare replacement.
26356         * doc/posix-functions/readlink.texi (readlink): Document this.
26357
26358         symlink: use throughout gnulib
26359         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
26360         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
26361         symlink is not used.
26362         * modules/symlinkat (Depends-on): Add symlink.
26363         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26364         * modules/canonicalize-tests (Depends-on): Likewise.
26365         * modules/lstat-tests (Depends-on): Likewise.
26366         * modules/openat-tests (Depends-on): Likewise.
26367         * modules/remove-tests (Depends-on): Likewise.
26368         * modules/rmdir-tests (Depends-on): Likewise.
26369         * modules/unlink-tests (Depends-on): Likewise.
26370         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
26371         * tests/test-canonicalize.c (symlink): Likewise.
26372         * tests/test-fstatat.c (symlink): Likewise.
26373         * tests/test-lstat.c (symlink): Likewise.
26374         * tests/test-remove.c (symlink): Likewise.
26375         * tests/test-rmdir.c (symlink): Likewise.
26376         * tests/test-unlink.c (symlink): Likewise.
26377         * tests/test-unlinkat.c (symlink): Likewise.
26378
26379         symlink: new module, for Solaris 9 bug
26380         * modules/symlink: New file.
26381         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26382         * lib/symlink.c: Likewise.
26383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26384         * modules/unistd (Makefile.am): Substitute them.
26385         * lib/unistd.in.h (symlink): Declare replacement.
26386         * MODULES.html.sh (File system functions): Mention it.
26387         * doc/posix-functions/symlink.texi (symlink): Likewise.
26388         * modules/symlink-tests: New test.
26389         * tests/test-symlink.c: Likewise.
26390
26391 2009-09-23  Bruno Haible  <bruno@clisp.org>
26392
26393         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
26394         when needed.
26395         Test case: gnulib-tool --import --with-tests atexit inttypes.
26396         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
26397
26398 2009-09-23  Bruno Haible  <bruno@clisp.org>
26399
26400         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
26401         subcommand, not in a subshell.
26402
26403 2009-09-22  Eric Blake  <ebb9@byu.net>
26404
26405         unistd: sort replacement declarations
26406         * lib/unistd.in.h: Sort declarations.
26407
26408         open, openat: minor optimization
26409         * lib/open.c (open): If open succeeded, len is non-zero.
26410         * lib/openat.c (rpl_openat): Likewise.
26411
26412         link-follow: ensure correct result
26413         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
26414         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
26415         distinguish between possible failures.
26416
26417 2009-09-21  Eric Blake  <ebb9@byu.net>
26418
26419         fts: avoid compiler warning
26420         * lib/fts.c (dirent_inode_sort_may_be_useful)
26421         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
26422
26423 2009-09-19  Bruno Haible  <bruno@clisp.org>
26424
26425         * lib/progreloc.c (canonicalize_file_name): New declaration.
26426
26427 2009-09-19  Eric Blake  <ebb9@byu.net>
26428
26429         link: fix quoting
26430         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
26431
26432         openat: fix openat bugs on Solaris 9
26433         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
26434         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
26435         * modules/openat (Depends-on): Add open.
26436         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
26437         * modules/fcntl-h (Makefile.am): Substitute it.
26438         * lib/fcntl.in.h (openat): Declare replacement.
26439         * doc/posix-functions/openat.texi (openat): Document this.
26440
26441         openat: move fstatat and unlinkat into correct files
26442         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
26443         compiled.
26444         * lib/openat.c (fstatat, unlinkat): Move...
26445         * lib/fstatat.c (fstatat): ...into correct files.
26446         * lib/unlinkat.c (unlinkat): Likewise.
26447
26448         openat: fix unlinkat bugs on Solaris 9
26449         * lib/unlinkat.c (unlinkat): New file.
26450         * modules/openat (Depends-on): Add unlink.
26451         (Files): Distribute it.
26452         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
26453         trailing slash behavior is broken.
26454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26455         * modules/unistd (Makefile.am): Substitute it.
26456         * lib/unistd.in.h (unlinkat): Declare replacement.
26457         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
26458
26459         openat: fix fstatat bugs on Solaris 9
26460         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
26461         stat.
26462         * doc/posix-functions/fstatat.texi (fstatat): Document this.
26463
26464         test-unlinkat: enhance test, to expose Solaris 9 bug
26465         * tests/test-unlink.c (main): Factor guts...
26466         * tests/test-unlink.h (test_rmdir_func): ...into new file.
26467         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
26468         * tests/test-rmdir.c (main): Adjust caller.
26469         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
26470         (unlinker): New helper function.
26471         (rmdirat): Enhance check.
26472         * modules/rmdir-tests (Depends-on): Add stdbool.
26473         * modules/unlink-tests (Depends-on): Likewise.
26474         (Files): Add test-unlink.h.
26475         * modules/openat-tests (Files): Likewise.
26476         (Depends-on): Add unlinkdir.
26477
26478         test-fstatat: new test, to expose Solaris 9 bugs
26479         * tests/test-stat.c (main): Factor guts...
26480         * tests/test-stat.h (test_stat_func): ...into new file.
26481         * tests/test-lstat.c (main): Factor guts...
26482         * tests/test-lstat.h (test_lstat_func): ...into new file.
26483         * tests/test-fstatat.c: New file.
26484         * modules/stat-tests (Files): Add test-stat.h.
26485         * modules/lstat-tests (Files): Add test-lstat.h.
26486         (Depends-on): Add stdbool.
26487         * modules/openat-tests (Depends-on): Add pathmax.
26488         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
26489         (Makefile.am): Run new test.
26490
26491         remove: new module, for mingw and Solaris 9 bugs
26492         * modules/remove: New file.
26493         * lib/remove.c: Likewise.
26494         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
26495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26496         * modules/stdio (Makefile.am): Use them.
26497         * lib/stdio.in.h (remove): Declare replacement.
26498         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26499         * doc/posix-functions/remove.texi (remove): Likewise.
26500         * modules/remove-tests: New test.
26501         * tests/test-remove.c: Likewise.
26502
26503         unlink: new module, for Solaris 9 bug
26504         * modules/unlink: New file.
26505         * lib/unlink.c: Likewise.
26506         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26508         * modules/unistd (Makefile.am): Use them.
26509         * lib/unistd.in.h (stat): Declare replacement.
26510         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26511         * doc/posix-functions/unlink.texi (unlink): Likewise.
26512         * modules/unlink-tests: New test.
26513         * tests/test-unlink.c: Likewise.
26514
26515         lstat: fix Solaris 9 bug
26516         * lib/lstat.c (lstat): Also check for trailing slash on
26517         non-symlink, non-directories.  Use stat module to simplify logic.
26518         * doc/posix-functions/lstat.texi (lstat): Document it.
26519         * modules/lstat-tests (Depends-on): Add errno, same-inode.
26520         (configure.ac): Check for symlink.
26521         * tests/test-lstat.c (main): Add more tests.
26522
26523         stat: add as dependency to other modules
26524         * modules/chown (Depends-on): Add stat.
26525         * modules/euidaccess (Depends-on): Likewise.
26526         * modules/fchdir (Depends-on): Likewise.
26527         * modules/isdir (Depends-on): Likewise.
26528         * modules/link (Depends-on): Likewise.
26529         * modules/lstat (Depends-on): Likewise.
26530         * modules/mkdir-p (Depends-on): Likewise.
26531         * modules/modechange (Depends-on): Likewise.
26532         * modules/open (Depends-on): Likewise.
26533         * modules/readlink (Depends-on): Likewise.
26534         * modules/same (Depends-on): Likewise.
26535
26536         stat: fix Solaris 9 bug
26537         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
26538         slash.
26539         * lib/stat.c (rpl_stat): Work around it.
26540         * doc/posix-functions/stat.texi (stat): Update documentation.
26541
26542         stat: new module, for mingw bug
26543         * modules/stat: New file.
26544         * lib/stat.c: Likewise.
26545         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26546         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26547         * modules/sys_stat (Makefile.am): Use them.
26548         * lib/sys_stat.in.h (stat): Declare replacement.
26549         * lib/openat.c (fstatat): Deal with lstat and stat being function
26550         macros.
26551         * modules/openat (Depends-on): Add inline.
26552         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26553         * doc/posix-functions/stat.texi (stat): Likewise.
26554         * modules/stat-tests: New test.
26555         * tests/test-stat.c: Likewise.
26556
26557 2009-09-19  Jim Meyering  <meyering@redhat.com>
26558
26559         syntax-check: detect unnecessary inclusion of canonicalize.h
26560         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
26561
26562 2009-09-19  Eric Blake  <ebb9@byu.net>
26563
26564         canonicalize-lgpl: adjust clients to use correct header
26565         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26566         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
26567         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
26568         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
26569         * lib/progreloc.c (includes): Likewise.
26570
26571 2009-09-19  Jim Meyering  <meyering@redhat.com>
26572
26573         test-posixtm.c: correct a comment
26574         * tests/test-posixtm.c: Correct first-line comment.
26575         Spotted by Eric Blake.
26576
26577 2009-09-16  Jim Meyering  <meyering@redhat.com>
26578
26579         posixtm-tests: make T const-correct; add a test case
26580         * tests/test-posixtm.c (T): Declare const.
26581         Add a test for -(2^31+1).
26582         Remove useless can-succeed-only-in-2002 test.
26583
26584         posixtm-tests: adjust the sole failing test
26585         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
26586         expected output matches what mktime now produces.  Cross-checked via
26587         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
26588
26589         posixtm: move #ifdef'd tests into a new module
26590         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
26591         * tests/test-posixtm.c: ... this new file.
26592         * modules/posixtm-tests: New module.
26593
26594 2009-09-19  Eric Blake  <ebb9@byu.net>
26595
26596         openat: simplify use of at-func.c
26597         * lib/at-func.c (includes): Include prerequisites here, to
26598         simplify requirements on client files.
26599         * lib/openat-priv.h: Add double-inclusion guard.
26600         * lib/faccessat.c (includes): Simplify.
26601         * lib/fchmodat.c (includes): Likewise.
26602         * lib/fchownat.c (includes): Likewise.
26603         * lib/mkdirat.c (includes): Likewise.
26604         * lib/mkfifoat.c (includes): Likewise.
26605         * lib/symlinkat.c (includes): Likewise.
26606
26607         openat: allow return of fd 0
26608         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
26609         * modules/save-cwd (Depends-on): Replace fcntl-safer with
26610         unistd-safer.
26611         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
26612         <fcntl.h>; this module does not leak fds.
26613         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
26614         must be allowed to return 0, leaving openat_safer to add the
26615         safety.
26616         (openat_permissive): Avoid writing to just-opened fd 2 if
26617         restoring the current directory fails.
26618         * lib/openat-die.c (openat_restore_fail): Add comment.
26619         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
26620         (save_cwd): Guarantee safe fd, but without use of open_safer.
26621         * tests/test-openat.c: New test.
26622         * modules/openat-tests (Files, Makefile.am): Distribute and build
26623         new file.
26624
26625         relocatable-prog-wrapper: fix build
26626         * modules/relocatable-prog-wrapper (Files): Update name of
26627         canonicalize m4 file, broken on 2009-09-17.
26628         Reported by emad hajjar <aleppos@hotmail.com>.
26629
26630 2009-09-19  Bruno Haible  <bruno@clisp.org>
26631
26632         * lib/safe-alloc.h: Use the standard header with GPL copyright.
26633         * lib/safe-alloc.c: Likewise.
26634         Reported by Ian Beckwith <ianb@erislabs.net>.
26635
26636 2009-09-18  Bruno Haible  <bruno@clisp.org>
26637
26638         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
26639         Reported by <erobles@sensacd.com.mx>.
26640
26641 2009-09-17  Eric Blake  <ebb9@byu.net>
26642
26643         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26644         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26645         slashes when checking if last component is missing.
26646         * tests/test-canonicalize.c (main): Test this.
26647
26648         canonicalize, canonicalize-lgpl: honor // if distinct from /
26649         * modules/canonicalize (Files): Add double-slash-root.m4.
26650         * modules/canonicalize-lgpl (Files): Likewise.
26651         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26652         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26653         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26654         fallback definition.
26655         (canonicalize_filename_mode): Use it to protect //.
26656         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26657         (__realpath): Likewise.
26658         * tests/test-canonicalize.c (main): Test this.
26659         * tests/test-canonicalize-lgpl.c (main): Likewise.
26660         * modules/canonicalize-tests (Depends-on): Add same-inode.
26661         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26662
26663         canonicalize-lgpl: fix glibc bug with trailing slash
26664         * m4/canonicalize-lgpl.m4: Move contents...
26665         * m4/canonicalize.m4: ...here.
26666         (gl_CANONICALIZE_LGPL): Factor realpath check...
26667         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26668         glibc 2.3.5 bug, fixed 2005-04-27.
26669         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26670         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26671         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26672         * modules/canonicalize-lgpl (Files): Manage file rename.
26673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26674         * modules/stdlib (Makefile.am): Substitute witness.
26675         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26676         is needed.
26677         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26678         replacement is required.
26679         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26680         * doc/glibc-functions/canonicalize_file_name.texi
26681         (canonicalize_file_name): Document this.
26682         * doc/posix-functions/realpath.texi (realpath): Likewise.
26683
26684         canonicalize-lgpl: reject non-directory with trailing slash
26685         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26686         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26687         catches failures in glibc 2.3.5.
26688         * tests/test-canonicalize.c (main): Likewise.
26689
26690         canonicalize-lgpl: use native realpath if it works
26691         * lib/canonicalize-lgpl.c (realpath): Guard with
26692         FUNC_REALPATH_WORKS.
26693         * lib/stdlib.in.h (realpath): Make declaration optional based on
26694         HAVE_REALPATH.
26695         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26696         native realpath works.
26697         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26698         * modules/stdlib (Makefile.am): Substitute witness.
26699
26700         canonicalize, canonicalize-lgpl: use <stdlib.h>
26701         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26702         (Include): Mention <stdlib.h>.
26703         (configure.ac): Mention functions we provide.
26704         * modules/canonicalize (configure.ac): Likewise.
26705         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26706         realpath if canonicalize_file_name is missing.
26707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26708         * modules/stdlib (Makefile.am): Substitute witnesses.
26709         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26710         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26711         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26712         * NEWS: Document this.
26713         * doc/glibc-functions/canonicalize_file_name.texi
26714         (canonicalize_file_name): Likewise.
26715         * doc/posix-functions/realpath.texi (realpath): Likewise.
26716         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26717
26718         test-canonicalize: consolidate into single C program
26719         * tests/test-canonicalize.sh: Delete; move setup into...
26720         * tests/test-canonicalize.c (main): ...the program, making it
26721         easier to run in debugger.  Add some tests.
26722         * modules/canonicalize-tests (Files): Remove unused file.
26723         (Depends-on): Add progname.
26724         (configure.ac, Makefile.am): Simplify.
26725
26726         test-canonicalize-lgpl: consolidate into single C program
26727         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26728         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26729         easier to run in debugger.  Add some tests.
26730         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26731         (configure.ac, Makefile.am): Simplify.
26732
26733         canonicalize: avoid resolvepath
26734         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26735         unnecessary checks.
26736         * lib/canonicalize.c (includes): Simplify.
26737         (canonicalize_file_name): Drop resolvepath implementation.
26738         * modules/canonicalize (Depends-on): Drop filenamecat.
26739
26740         canonicalize: don't lose errno
26741         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26742         over calls to free.
26743
26744         canonicalize: simplify errno handling
26745         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26746         assignment.
26747
26748         canonicalize, canonicalize-lgpl: update module dependencies
26749         * modules/canonicalize (Depends-on): Add extensions, lstat,
26750         pathmax, stdlib.
26751         (Files): Drop pathmax.h.
26752         (configure.ac): Adjust macro name.
26753         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26754         lstat, stdlib, sys_stat.
26755         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26756         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26757         extensions.
26758         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26759         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26760         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26761         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26762         declaration, if available.
26763         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26764         we can rely on the readlink module.
26765         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26766         (includes): Use <unistd.h> unconditionally.
26767
26768 2009-09-17  Eric Blake  <ebb9@byu.net>
26769
26770         maint: make Include sections of modules consistent
26771         * modules/alloca: Use only header name; no need to list #include.
26772         * modules/alloca-opt: Likewise.
26773         * modules/arpa_inet: Likewise.
26774         * modules/canon-host: Likewise.
26775         * modules/configmake: Likewise.
26776         * modules/dirent: Likewise.
26777         * modules/eealloc: Likewise.
26778         * modules/environ: Likewise.
26779         * modules/fchdir: Likewise.
26780         * modules/fcntl: Likewise.
26781         * modules/fcntl-h: Likewise.
26782         * modules/gethrxtime: Likewise.
26783         * modules/gettime: Likewise.
26784         * modules/ignore-value: Likewise.
26785         * modules/inet_ntop: Likewise.
26786         * modules/inet_pton: Likewise.
26787         * modules/inttypes: Likewise.
26788         * modules/isnand-nolibm: Likewise.
26789         * modules/isnanf-nolibm: Likewise.
26790         * modules/mbchar: Likewise.
26791         * modules/mbfile: Likewise.
26792         * modules/mbiter: Likewise.
26793         * modules/mbuiter: Likewise.
26794         * modules/netdb: Likewise.
26795         * modules/netinet_in: Likewise.
26796         * modules/nproc: Likewise.
26797         * modules/pagealign_alloc: Likewise.
26798         * modules/poll: Likewise.
26799         * modules/printf-frexp: Likewise.
26800         * modules/pthread: Likewise.
26801         * modules/putenv: Likewise.
26802         * modules/random_r: Likewise.
26803         * modules/relocatable-prog: Likewise.
26804         * modules/search: Likewise.
26805         * modules/select: Likewise.
26806         * modules/selinux-h: Likewise.
26807         * modules/settime: Likewise.
26808         * modules/signal: Likewise.
26809         * modules/size_max: Likewise.
26810         * modules/socklen: Likewise.
26811         * modules/ssize_t: Likewise.
26812         * modules/stdarg: Likewise.
26813         * modules/stdbool: Likewise.
26814         * modules/stddef: Likewise.
26815         * modules/stdint: Likewise.
26816         * modules/stdio: Likewise.
26817         * modules/stdlib: Likewise.
26818         * modules/string: Likewise.
26819         * modules/strings: Likewise.
26820         * modules/sys_file: Likewise.
26821         * modules/sys_ioctl: Likewise.
26822         * modules/sys_select: Likewise.
26823         * modules/sys_socket: Likewise.
26824         * modules/sys_stat: Likewise.
26825         * modules/sys_time: Likewise.
26826         * modules/sys_times: Likewise.
26827         * modules/sys_utsname: Likewise.
26828         * modules/sys_wait: Likewise.
26829         * modules/sysexits: Likewise.
26830         * modules/time: Likewise.
26831         * modules/times: Likewise.
26832         * modules/tmpfile: Likewise.
26833         * modules/trim: Likewise.
26834         * modules/unistd: Likewise.
26835         * modules/wchar: Likewise.
26836         * modules/wctype: Likewise.
26837
26838 2009-09-17  Bruno Haible  <bruno@clisp.org>
26839
26840         Make getdate.y compile on QNX and NetBSD 5 / i386.
26841         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26842         TIME_T_FITS_IN_LONG_INT.
26843         * lib/getdate.y (long_time_t): New type.
26844         (relative_time): Change type of 'seconds' field to long_time_t.
26845         (get_date): Update types of local variables. Check against overflow
26846         during conversion from long_time_t to time_t.
26847         Reported by Matt Kraai <kraai@ftbfs.org>
26848         and Hasso Tepper <hasso@netbsd.org>.
26849
26850 2009-09-17  Bruno Haible  <bruno@clisp.org>
26851
26852         * modules/COPYING: Update copyright years.
26853         * modules/README: Likeiwse.
26854         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26855         Reported by Ian Beckwith <ianb@erislabs.net>.
26856
26857 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26858
26859         * users.txt: Update references for gnuit package.
26860
26861 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26862
26863         * m4/getdelim.m4: Fix typo in copyright line.
26864
26865 2009-09-17  Bruno Haible  <bruno@clisp.org>
26866
26867         * lib/atoll.c: Use the standard header with GPL copyright.
26868         * lib/argz.in.h: Likewise.
26869         * lib/glob.c: Likewise.
26870         * lib/glob-libc.h: Likewise.
26871         * lib/random_r.c: Likewise.
26872         * lib/siglist.h: Likewise.
26873         * lib/strsignal.c: Likewise.
26874         Reported by Ian Beckwith <ianb@erislabs.net>.
26875
26876 2009-09-17  Eric Blake  <ebb9@byu.net>
26877
26878         rmdir: ensure correct dependency order
26879         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26880
26881 2009-09-17  Bruno Haible  <bruno@clisp.org>
26882
26883         Disable assertion that fails on NetBSD 5 / i386.
26884         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26885         Reported by Sam Steingold <sds@gnu.org>
26886         and Hasso Tepper <hasso@netbsd.org>.
26887
26888 2009-09-16  Eric Blake  <ebb9@byu.net>
26889
26890         unlinkdir: port to mingw
26891         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26892         on which no one can unlink a directory.
26893
26894         stdlib: sort witness names
26895         * modules/stdlib (Makefile.am): Sort replacements.
26896         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26897         * lib/stdlib.in.h: Likewise.
26898
26899         parse-duration-tests: avoid link failure
26900         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26901         LIBINTL.
26902         Reported by Tom G. Christensen.
26903
26904         openat-tests: ensure unlinkat behaves like rmdir
26905         * tests/test-rmdir.c (main): Factor guts...
26906         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26907         * modules/rmdir-tests (Files): Ship new file.
26908         * modules/openat-tests: New test.
26909         * tests/test-unlinkat.c: Likewise.
26910
26911         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26912         * modules/rmdir-errno (Status, Notice): Now obsolete.
26913
26914         rmdir: work around cygwin 1.5.x and mingw bugs
26915         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26916         * lib/rmdir.c (rmdir): Work around it.
26917         * modules/rmdir (Status, Notice): No longer obsolete.
26918         (Files): Add dos.m4.
26919         (Depends-on): Add unistd.
26920         (configure.ac): Set witnesses.
26921         (License): Relax to LGPLv2+.
26922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26923         * modules/unistd (Makefile.am): Substitute witnesses.
26924         * lib/unistd.in.h (rmdir): Declare replacement.
26925         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26926         * modules/rmdir-tests: New tests.
26927         * tests/test-rmdir.c: Likewise.
26928
26929 2009-09-15  Eric Blake  <ebb9@byu.net>
26930
26931         fchdir: improve use of replacement functions
26932         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26933         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26934         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26935         REPLACE_CLOSEDIR.
26936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26937         * modules/sys_stat (Makefile.am): Substitute correct witness.
26938         * modules/dirent (Makefile.am): Likewise.
26939         * modules/unistd (Makefile.am): Likewise.
26940         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26941         * lib/unistd.in.h (dup): Likewise.
26942         * lib/sys_stat.in.h (fstat): Likewise.
26943
26944         maint: ignore gnulib-tool temp files
26945         * .gitignore: Ignore files created during gnulib-tool --test.
26946
26947 2009-09-13  Jim Meyering  <meyering@redhat.com>
26948
26949         posixtm: don't reject a time that specify "60" as the number of seconds
26950         * lib/posixtm.c (posixtime): The code to reject invalid dates
26951         would also reject a time specified with the .60 suffix.
26952         But POSIX allows that, in order to accommodate leap seconds.
26953         So don't reject it.
26954         (main): Adjust tests accordingly.
26955         * modules/posixtm (Depends-on): Add stpcpy.
26956
26957 2009-09-11  Jim Meyering  <meyering@redhat.com>
26958
26959         announce-gen: include [$release_type] in emitted Subject:
26960         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26961         e.g., [stable] in the emitted Subject: line.
26962
26963 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26964
26965         Remove obsolete macros from several modules.
26966         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26967         obsolete Autoconf macros with their modern counterparts.
26968         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26969         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26970         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26971         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26972         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26973         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26974         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26975         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26976         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26977         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26978         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26979         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26980         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26981         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26982         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26983         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26984         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26985         * m4/time_r.m4 (gl_TIME_R): Likewise.
26986         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26987         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26988         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26989
26990         Fix copyright header in build-aux scripts.
26991         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26992         recommendation.
26993         * build-aux/ncftpput-ftp: Likewise.
26994         * build-aux/update-copyright: Likewise.
26995
26996 2009-09-09  Eric Blake  <ebb9@byu.net>
26997
26998         test-link: allow Linux choice of errno
26999         * tests/test-link.c (main): Relax test for alternate error.
27000
27001         strndup: fix improper m4 caching
27002         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
27003         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
27004         (gl_PREREQ_STRNDUP): Delete.
27005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
27006         * modules/string (Makefile.am): Substitute it.
27007         * lib/string.in.h (strndup): Modernize prototype.
27008
27009         getcwd: port to mingw
27010         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
27011         different from the POSIX assumptions made throughout the getcwd
27012         module; fortunately, the mingw getcwd does not need replacement.
27013         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
27014         * modules/getcwd-tests: New test.
27015         * tests/test-getcwd.c: Likewise.
27016
27017         link: fix platform bugs
27018         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
27019         * lib/link.c (link): Work around them.  Fix related mingw bug.
27020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
27021         * modules/unistd (Makefile.am): Substitute it.
27022         * lib/unistd.in.h (link): Declare replacement.
27023         * doc/posix-functions/link.texi (link): Document this.
27024         * modules/link (Depends-on): Add strdup-posix, sys_stat.
27025
27026         test-link: consolidate into single C program, test more cases
27027         * tests/test-link.sh: Delete.
27028         * tests/test-link.c: Test more error conditions.  Exposes bugs on
27029         at least Cygwin and Solaris.
27030         * modules/link-tests (Files): Remove unused file.
27031         (Depends-on): Add errno, sys_stat.
27032         (Makefile.am): Simplify.
27033
27034 2009-09-08  Bruno Haible  <bruno@clisp.org>
27035
27036         Work around towlower, towupper bug on mingw.
27037         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
27038         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
27039         * doc/posix-functions/towlower.texi: Mention the mingw bug.
27040         * doc/posix-functions/towupper.texi: Likewise.
27041         Reported by Eric Blake.
27042
27043 2009-09-08  Jim Meyering  <meyering@redhat.com>
27044
27045         build: don't try to run autoheader if we don't use it
27046         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
27047         is not used in configure.ac.
27048
27049 2009-09-08  Eric Blake  <ebb9@byu.net>
27050
27051         euidaccess: fix compilation error
27052         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
27053
27054         rawmemchr: relax license
27055         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
27056         okay.
27057         Reported by Jim Meyering.
27058
27059         mkfifoat: new module
27060         * modules/mkfifoat: New file.
27061         * lib/mkfifoat.c: Likewise.
27062         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
27063         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27064         * modules/sys_stat (Makefile.am): Use them.
27065         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
27066         * MODULES.html.sh (File system functions): Mention module.
27067         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27068         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27069         * modules/mkfifoat-tests: New test.
27070         * tests/test-mkfifoat.c: Likewise.
27071
27072         strchrnul: relax license
27073         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
27074         okay.
27075         Reported by Jim Meyering.
27076
27077 2009-09-08  Eric Blake  <ebb9@byu.net>
27078
27079         fstatat: fix compilation on Solaris
27080         * lib/fstatat.c (includes): Add fcntl.h.
27081         Reported by Pádraig Brady.
27082
27083 2009-09-07  Eric Blake  <ebb9@byu.net>
27084
27085         rename: modernize replacement
27086         * modules/rename (Depends-on): Add stdio.
27087         (configure.ac): Declare witness.
27088         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
27089         stdio take care of replacement.
27090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
27091         * modules/stdio (Makefile.am): Substitute them.
27092         * lib/stdio.in.h (rename): Declare replacement.
27093         * lib/rename.c (includes): Allow cross-compilation to non-windows
27094         machines.
27095         * doc/posix-functions/rename.texi (rename): Improve
27096         documentation.
27097
27098         stdio: sort witness names
27099         * modules/stdio (Makefile.am): Sort replacements.
27100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27101         * lib/stdio.in.h: Likewise.
27102
27103         getcwd: minor cleanups
27104         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
27105         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
27106
27107         openat: provide more convenience names
27108         * modules/faccessat (configure.ac): Add C witness.
27109         * lib/unistd.in.h (readlinkat): Fix typo.
27110         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
27111         convenience wrappers.
27112         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
27113         wrappers in syntax checks.
27114
27115 2009-09-06  Eric Blake  <ebb9@byu.net>
27116
27117         doc: fix comments in recent patches
27118         * lib/faccessat.c: Mention correct function.
27119         * lib/fchmodat.c: Likewise.
27120         * lib/fchownat.c: Likewise.
27121         * lib/symlinkat.c: Likewise.
27122         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
27123         constants.
27124
27125         faccessat, symlinkat: continue cleanup of previous patch
27126         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
27127         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27128         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
27129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
27130         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
27131         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
27132         set.
27133
27134 2009-09-06  Bruno Haible  <bruno@clisp.org>
27135
27136         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
27137         (fstatat): Declare if GNULIB_FSTATAT is set.
27138         (mkdirat): Declare if GNULIB_MKDIRAT is set.
27139         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
27140         (unlinkat): Declare if GNULIB_UNLINKAT is set.
27141         * modules/fcntl-h (Files): Remove m4/openat.m4.
27142         * modules/sys_stat (Files): Remove m4/openat.m4.
27143         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
27144         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
27145         * modules/unistd (Files): Remove m4/openat.m4.
27146         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
27147         GNULIB_OPENAT.
27148         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
27149         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
27150         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
27151         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
27152         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
27153         gl_OPENAT_DEFAULTS.
27154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
27155         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
27156         Don't require gl_OPENAT_DEFAULTS.
27157         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
27158         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
27159         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
27160         (gl_OPENAT_DEFAULTS): Remove macro.
27161
27162 2009-09-06  Bruno Haible  <bruno@clisp.org>
27163
27164         * modules/openat (configure.ac): Remove unneeded witness.
27165
27166 2009-09-06  Bruno Haible  <bruno@clisp.org>
27167
27168         Set errno to ENOSYS when a function is entirely unsupported.
27169         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
27170         EOPNOTSUPP.
27171         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27172         * modules/chown (Depends-on): Remove errno.
27173
27174 2009-09-06  Bruno Haible  <bruno@clisp.org>
27175
27176         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
27177
27178 2009-09-06  Bruno Haible  <bruno@clisp.org>
27179
27180         * lib/sys_stat.in.h: Fix preprocessor command indentation.
27181
27182 2009-09-06  Ben Pfaff  <blp@gnu.org>
27183             Bruno Haible  <bruno@clisp.org>
27184
27185         Work around a glibc bug in strtok_r.
27186         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
27187         Undefine if UNDEFINE_STRTOK_R is set.
27188         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
27189         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27190         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
27191         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
27192         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
27193         UNDEFINE_STRTOK_R.
27194         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
27195
27196 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27197
27198         exclude: minor fix
27199         * lib/exclude.c: Include wctype.h
27200
27201 2009-09-06  Akim Demaille  <demaille@gostai.com>
27202
27203         bootstrap: improve error message
27204         * build-aux/bootstrap (find_tool): Upon failure, report the list
27205         of candidates.
27206         Honor the initial value of the envvar.
27207
27208 2009-09-05  Eric Blake  <ebb9@byu.net>
27209
27210         symlinkat: new module
27211         * modules/symlinkat: New file.
27212         * lib/symlinkat.c: Likewise.
27213         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
27214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27215         * modules/unistd (Makefile.am): Use them.
27216         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
27217         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
27218         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
27219         * MODULES.html.sh (File system functions): Mention module.
27220         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27221         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27222         * modules/symlinkat-tests: New test.
27223         * tests/test-symlinkat.c: Likewise.
27224
27225         test-openat-safer: add more checks
27226         * tests/test-openat-safer.c (main): Check more code paths.
27227
27228 2009-09-05  Jim Meyering  <meyering@redhat.com>
27229
27230         syntax-check: detect unnecessary inclusion of openat.h
27231         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
27232
27233 2009-09-05  Bruno Haible  <bruno@clisp.org>
27234
27235         Support towlower, towupper.
27236         * doc/posix-functions/towlower.texi: Mention module wctype.
27237         * doc/posix-functions/towupper.texi: Likewise.
27238         * lib/wctype.in.h (towlower, towupper): New functions.
27239         * tests/test-wctype.c: Include stdio.h, stdlib.h.
27240         (ASSERT): New macro.
27241         (e): New variable.
27242         (main): Test also towlower, towupper. Test WEOF argument.
27243         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27244
27245 2009-09-05  Bruno Haible  <bruno@clisp.org>
27246
27247         Fix conversion behaviour when the input is invalid.
27248         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
27249         mark occurring in first pass of indirect conversion.
27250         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
27251         input.
27252         Found by clang's static analyzer.
27253
27254 2009-09-05  Bruno Haible  <bruno@clisp.org>
27255
27256         * tests/test-striconveh.c (main): Test indirect conversion on platforms
27257         where direct conversion is possible.
27258
27259 2009-09-04  Eric Blake  <ebb9@byu.net>
27260
27261         openat: fail with ENOENT on empty name
27262         * lib/openat-proc.c (openat_proc_name): Special-case the empty
27263         buffer.
27264
27265         link-follow: fix logic bug in prior patch
27266         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
27267         reversed sense of yes and no in prior patch.  Avoid confusing
27268         compilation failure with desired semantics.
27269
27270         link-follow: accomodate mingw and cross-compilation
27271         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
27272         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
27273         cross-compilation results to -1, to make linkat easier to
27274         implement when cross-compiling.  Trivially support mingw.
27275         * modules/link-follow (configure.ac): Call new name.
27276         * NEWS: Mention this.
27277
27278 2009-09-03  Eric Blake  <ebb9@byu.net>
27279
27280         faccessat: compile replacement
27281         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
27282         needed.
27283
27284         fts: fix compilation error
27285         * lib/fts.c (includes): Re-add "openat.h", for
27286         openat_needs_fchdir.
27287
27288         faccessat: new module
27289         * modules/faccessat: New file.
27290         * lib/faccessat.c: Likewise.
27291         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27293         * modules/unistd (Makefile.am): Use it.
27294         * lib/unistd.in.h (faccessat): Declare it.
27295         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
27296         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
27297         * MODULES.html.sh (File system functions): Mention it.
27298         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
27299         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27300
27301         euidaccess: prefer POSIX over non-standard implementation
27302         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
27303         * lib/euidaccess.c (euidaccess): Use it if available.
27304
27305         openat: make template easier to use
27306         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
27307         AT_FUNC_F2 to be undefined.
27308         (VALIDATE_FLAG): New macro; use it to reject bad flags.
27309         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
27310         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
27311         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
27312         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
27313         Likewise.
27314         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
27315         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
27316         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
27317         Likewise.
27318
27319         openat: declare in POSIX headers
27320         * NEWS: Mention this.
27321         * modules/openat (configure.ac): Declare witnesses.
27322         (Depends-on): Add fcntl-h, sys_stat, unistd.
27323         (Include): Mention correct headers.
27324         * modules/fcntl-h (Depends-on): Add link-warning.
27325         (Files): Add openat.m4.
27326         (Makefile.am): Substitute witnesses.
27327         * modules/sys_stat (Files, Makefile.am): Likewise.
27328         * modules/unistd (Files, Makefile.am): Likewise.
27329         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
27330         (gl_OPENAT_DEFAULTS): New macro.
27331         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
27332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
27333         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
27334         (SYS_STAT_H): Remove unused variable.
27335         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
27336         * lib/fcntl--.h (includes): Remove unneeded header.
27337         * lib/openat-safer.c (includes): Likewise.
27338         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
27339         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
27340         appropriate headers.
27341         (__OPENAT_PREFIX): Delete.
27342         * lib/fcntl.in.h (openat): Provide declaration.
27343         (AT_FDCWD): Fix Solaris bug.
27344         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
27345         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
27346         * lib/fchmodat.c (includes):  Adjust to find declaration.
27347         * lib/fchownat.c (includes): Likewise.
27348         * lib/mkdirat.c (includes): Likewise.
27349         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
27350         still visible.
27351
27352 2009-09-02  Eric Blake  <ebb9@byu.net>
27353
27354         errno: use consistently
27355         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
27356         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
27357         * lib/canonicalize.c (ELOOP): Likewise.
27358         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
27359         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
27360         * lib/lchown.c (EOPNOTSUPP): Likewise.
27361         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
27362         * lib/savewd.c (ESTALE): Likewise.
27363         * lib/settime.c (ENOSYS): Likewise.
27364         * lib/utimens.c (ENOSYS): Likewise.
27365         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
27366         * lib/chdir-safer.c (ELOOP): Likewise.
27367         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
27368         * modules/c-stack (Depends-on): Add errno.
27369         * modules/canonicalize (Depends-on): Likewise.
27370         * modules/chdir-safer (Depends-on): Likewise.
27371         * modules/fdopendir (Depends-on): Likewise.
27372         * modules/inet_ntop (Depends-on): Likewise.
27373         * modules/inet_pton (Depends-on): Likewise.
27374         * modules/lchown (Depends-on): Likewise.
27375         * modules/openat (Depends-on): Likewise.
27376         * modules/savewd (Depends-on): Likewise.
27377         * modules/settime (Depends-on): Likewise.
27378         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
27379
27380         fts: avoid leaking fds
27381         * modules/fts (Depends-on): Add cloexec.
27382         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
27383         flag.
27384
27385         fts: make directory fds more robust
27386         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
27387         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
27388
27389         backupfile, chdir-long, fts, savedir: make safer
27390         * lib/backupfile.c (includes): Use "dirent--.h", since
27391         numbered_backup can write to stderr during readdir.
27392         * lib/savedir.c (includes): Likewise.
27393         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
27394         emulation can write to stderr on failure.
27395         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
27396         * lib/getcwd.c: Document why opendir_safer is unused.
27397         * lib/glob.c: Likewise.
27398         * lib/scandir.c: Likewise.
27399         * lib/openat-proc.c: Likewise, for open_safer.
27400         * modules/backupfile (Depends-on): Add dirent-safer.
27401         * modules/savedir (Depends-on): Likewise.
27402         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
27403         * modules/chdir-long (Depends-on): Add openat-safer.
27404
27405         openat-safer: new module
27406         * modules/openat-safer: New file.
27407         * lib/openat-safer.c: Likewise.
27408         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
27409         * lib/fcntl-safer.h (openat_safer): Declare.
27410         * lib/fcntl--.h (openat): Override.
27411         * MODULES.html.sh (File descriptor based I/O): Mention it.
27412         * lib/openat.h: Add double-inclusion guards.
27413         * lib/openat.c (includes): Only include "fcntl-safer.h", not
27414         "fcntl--.h", so we can implement openat.
27415         * modules/openat-safer-tests: New test.
27416         * tests/test-openat-safer.c: New file.
27417
27418         dirent-safer: new module
27419         * modules/dirent-safer: New file.
27420         * lib/dirent--.h: Likewise.
27421         * lib/dirent-safer.h: Likewise.
27422         * lib/opendir-safer.c: Likewise.
27423         * m4/dirent-safer.m4: Likewise.
27424         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
27425         * modules/dirent-safer-tests: New test.
27426         * tests/test-dirent-safer.c: New file.
27427         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
27428
27429         fdopendir: optimize on mingw
27430         * lib/unistd.in.h (_gl_directory_name): New prototype.
27431         * lib/fchdir.c (_gl_directory_name): Implement it.
27432         (fchdir): Use it to simplify implementation.
27433         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
27434         fchdir, when available, to avoid calling [f]chdir().
27435
27436         fdopendir: split into its own module
27437         * lib/openat.c (fdopendir): Move...
27438         * lib/fdopendir.c: ...into new file.
27439         * modules/fdopendir: New module.
27440         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
27441         * modules/openat (Depends-on): Add fdopendir.
27442         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
27443         fdopendir here.
27444         * modules/savedir (Depends-on): Only need fdopendir, not full
27445         openat.
27446         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
27447         * lib/openat.h (fdopendir): Drop prototype.
27448         * lib/dirent.in.h (fdopendir): Provide prototype.
27449         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
27450         * modules/dirent (Makefile.am): Substitute them.
27451         * MODULES.html.sh (File system functions): Mention it.
27452         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
27453         * modules/fdopendir-tests: New file.
27454         * tests/test-fdopendir.c: Likewise.
27455
27456         fchdir: use more consistent macro convention
27457         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
27458         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
27459         REPLACE_FCHDIR, rather than relying on config.h macros.
27460         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
27461         inside a single make-time REPLACE_FCHDIR block, rather than using
27462         the config.h FCHDIR_REPLACEMENT.
27463         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
27464         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
27465         Manage fstat replacement.
27466         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
27467         REPLACE_FCHDIR.
27468         * modules/sys_stat (Files): Add m4/unistd_h.m4.
27469         (Makefile.am): Substitute REPLACE_FCHDIR.
27470         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
27471         FCHDIR_REPLACEMENT.
27472         * lib/dup-safer.c (dup_safer): Likewise.
27473         * lib/dup2.c (rpl_dup2): Likewise.
27474         * lib/dup3.c (rpl_dup3): Likewise.
27475         * lib/open.c (rpl_open): Likewise.
27476
27477         fchdir: simplify error handling, and support dup3
27478         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
27479         stdbool, malloc-posix, realloc-posix.
27480         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
27481         (ensure_dirs_slot): Return false on allocation failure.
27482         (rpl_dup2): Delete.
27483         (_gl_register_dup): New function.
27484         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
27485         (_gl_register_fd): Close fd on allocation failure.
27486         * lib/fcntl.in.h (_gl_register_fd): Update signature.
27487         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
27488         prototype.
27489         (rpl_dup2_fchdir): Delete prototype.
27490         * lib/open.c (open): Update caller.
27491         * lib/dup2.c (dup2): Track fchdir metadata.
27492         * lib/dup3.c (dup3): Likewise.
27493         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
27494         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
27495
27496 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27497
27498         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
27499         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
27500         don't pass arguments to AC_OUTPUT.
27501
27502 2009-09-02  Bruno Haible  <bruno@clisp.org>
27503
27504         * modules/mkdtemp (License): Relicense under LGPLv2+.
27505         Reported by Paolo Bonzini.
27506
27507 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27508
27509         Replace uses of obsolete autoconf macros in Jim's modules.
27510         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
27511         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
27512         can evoke a warning from autoconf when run with -Wobsolete
27513         enabled.  They were declared obsolete for good reasons (see
27514         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
27515         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
27516         should not continue using the deprecated macros.
27517         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
27518         obsolete Autoconf macros with modern counterparts.
27519         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27520         * m4/dos.m4 (gl_AC_DOS): Likewise.
27521         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
27522         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27523         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
27524         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
27525         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
27526         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
27527         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
27528         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
27529         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27530         Likewise.
27531         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27532         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27533         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
27534         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
27535         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
27536         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27537
27538 2009-09-01  Eric Blake  <ebb9@byu.net>
27539
27540         fchdir: fix off-by-one bug in previous patch
27541         * lib/fchdir.c (rpl_fstat): Use correct bounds.
27542         (_gl_unregister_fd): Delete useless if.
27543
27544 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
27545
27546         maint.mk: sort the list of syntax-check rules
27547         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
27548         easier to get a sense of progress when the rules are run sequentially
27549         and take a long time.
27550
27551 2009-09-01  Simon Josefsson  <simon@josefsson.org>
27552
27553         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
27554         * modules/netinet_in: Likewise.
27555         * modules/sys_file: Likewise.
27556         * modules/sys_ioctl: Likewise.
27557         * modules/sys_select: Likewise.
27558         * modules/sys_socket: Likewise.
27559         * modules/sys_stat: Likewise.
27560         * modules/sys_time: Likewise.
27561         * modules/sys_times: Likewise.
27562         * modules/sys_utsname: Likewise.
27563         * modules/sys_wait: Likewise.
27564
27565 2009-09-01  Jim Meyering  <meyering@redhat.com>
27566
27567         fts: help ensure that return values are not ignored
27568         * lib/fts_.h (__GNUC_PREREQ): Define.
27569         (__attribute_warn_unused_result__): Define.
27570         (fts_children, fts_close, fts_open, fts_read): Declare with
27571         __attribute_warn_unused_result__.
27572
27573         fts: fts_close now fails also when closing a dir file descriptor fails
27574         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
27575         and propagate to caller, along with errno.
27576
27577         announce-gen: correct formatting in --help output
27578         * build-aux/announce-gen (usage): Move the one-line description in
27579         --help output "up", to where it belongs, just after Usage:.
27580
27581 2009-08-31  Eric Blake  <ebb9@byu.net>
27582
27583         fchdir: port to mingw
27584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
27585         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
27586         opened, then use a substitute.
27587         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
27588         replacement.
27589         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
27590         (_gl_register_fd): No need to check stat if open already filters
27591         all directories.
27592         (fchdir): Fix error condition to match POSIX.
27593         * modules/fchdir (Depends-on): Add sys_stat.
27594         * doc/posix-functions/open.texi (open): Document the limitation.
27595         * modules/fchdir-tests: New file.
27596         * tests/test-fchdir.c: Likewise.
27597
27598         canonicalize: allow cross-testing from cygwin to mingw
27599         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
27600         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
27601         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
27602         Likewise.
27603         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
27604         target does not support symlinks.
27605         * tests/test-canonicalize-lgpl.sh: Likewise.
27606
27607         chown: avoid compilation warning on mingw
27608         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
27609         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
27610         mingw.
27611         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27612         * modules/chown (Depends-on): Add errno.
27613
27614 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27615
27616         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
27617         command.
27618
27619 2009-08-31  Jim Meyering  <meyering@redhat.com>
27620
27621         canonicalize: remove useless initialization
27622         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
27623         initialization of local, "end".
27624
27625 2009-08-30  Bruno Haible  <bruno@clisp.org>
27626
27627         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
27628         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
27629         ENOSYS.
27630
27631 2009-08-30  Bruno Haible  <bruno@clisp.org>
27632
27633         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
27634         /usr/xpg4/bin/tr when it exists.
27635         * tests/test-pipe-filter-gi1.sh: Likewise.
27636
27637 2009-08-30  Bruno Haible  <bruno@clisp.org>
27638
27639         Work around deficient /usr/bin/id program on Solaris.
27640         * tests/test-file-has-acl.sh (ID): New variable.
27641         * tests/test-set-mode-acl.sh (ID): Likewise.
27642         * tests/test-copy-acl.sh (ID): Likewise.
27643         * tests/test-copy-file.sh (ID): Likewise.
27644
27645 2009-08-30  Bruno Haible  <bruno@clisp.org>
27646
27647         New module 'xstriconveh'.
27648         * lib/xstriconveh.h: New file.
27649         * lib/xstriconveh.c: New file.
27650         * modules/xstriconveh: New file.
27651
27652 2009-08-30  Bruno Haible  <bruno@clisp.org>
27653
27654         Make it easier to use mem_cd_iconveh.
27655         * lib/striconveh.h (iconveh_t): New type.
27656         (iconveh_open, iconveh_close): New declarations.
27657         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27658         with a single 'const iconveh_t *' argument.
27659         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27660         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27661         with a single 'const iconveh_t *' argument.
27662         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27663         * tests/test-striconveh.c (main): Update.
27664         * NEWS: Mention the change.
27665
27666 2009-08-30  Bruno Haible  <bruno@clisp.org>
27667
27668         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27669         problem.
27670
27671 2009-08-30  Bruno Haible  <bruno@clisp.org>
27672
27673         Work around iconv_open problem on Solaris.
27674         * lib/iconv_open-solaris.gperf: New file.
27675         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27676         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27677         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27678         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27679         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27680         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27681
27682 2009-08-29  Jim Meyering  <meyering@redhat.com>
27683
27684         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27685         * top/maint.mk (cvs-check): Remove target; it was just an alias
27686         to the better-named vc-diff-check.
27687         (maintainer-distcheck): Remove rule.  It was used only from
27688         the (alpha/beta/major) target, and all of its commands but one
27689         were coreutils-specific.
27690         (vc-dist): Remove rule.
27691         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27692         Run vc-diff-check, not vc-dist.
27693         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27694
27695 2009-08-27  Bruno Haible  <bruno@clisp.org>
27696
27697         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27698         of 0.
27699
27700 2009-08-27  Bruno Haible  <bruno@clisp.org>
27701
27702         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27703         compilers.
27704         * doc/func.texi: Document the SunPRO C bug.
27705
27706 2009-08-27  Bruno Haible  <bruno@clisp.org>
27707
27708         Fix link error on Solaris.
27709         * tests/test-parse-duration.c (xstrdup): Remove function.
27710
27711 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27712
27713         ignore-value: handle pointer types, too
27714         * lib/ignore-value.h (__attribute__): Remove definition.
27715         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27716         of a more concise and more-often effective "(void) i" statement.
27717         (ignore_ptr): New function to suppress warnings from functions that
27718         return pointers, and to make it explicit that one function doesn't
27719         handle all cases.
27720
27721 2009-08-25  Bruno Haible  <bruno@clisp.org>
27722
27723         dup2: work around a Linux bug.
27724         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27725         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27726         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27727         Reported by Simon Josefsson.
27728
27729 2009-08-25  Jim Meyering  <meyering@redhat.com>
27730
27731         libguestfs uses gnulib
27732         * users.txt: Add libguestfs.
27733
27734 2009-08-24  Eric Blake  <ebb9@byu.net>
27735
27736         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27737         * lib/pipe2.c (includes): Add binary-io.h.
27738         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27739
27740 2009-08-24  Bruno Haible  <bruno@clisp.org>
27741
27742         Tolerate declared but missing accept4 syscall.
27743         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27744         available.
27745         * lib/sys_socket.in.h (accept4): If the function is already present,
27746         override it.
27747         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27748         * modules/accept4 (Makefile.am): Compile accept4.c always.
27749         Reported by Paolo Bonzini and Eric Blake.
27750
27751 2009-08-23  Bruno Haible  <bruno@clisp.org>
27752
27753         New module 'accept4'.
27754         * lib/sys_socket.in.h (accept4): New declaration.
27755         * lib/accept4.c: New file.
27756         * m4/accept4.m4: New file.
27757         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27758         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27759         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27760         HAVE_ACCEPT4.
27761         * modules/accept4: New file.
27762         * doc/glibc-functions/accept4.texi: Mention the new module.
27763
27764 2009-08-24  Jim Meyering  <meyering@redhat.com>
27765
27766         progname: also set global program_invocation_name, when possible
27767         Before this change, a libtool-enabled program that calls glibc's
27768         error function would report the program name as
27769         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27770         * modules/progname (configure.ac): Check for a declaration of
27771         program_invocation_name.
27772         * lib/progname.c:  Include <errno.h>.
27773         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27774         Set program_invocation_name.
27775
27776 2009-08-23  Bruno Haible  <bruno@clisp.org>
27777
27778         * lib/dup3.c: Include <string.h>.
27779
27780 2009-08-23  Bruno Haible  <bruno@clisp.org>
27781
27782         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27783         * lib/pipe2.c (pipe2): Likewise.
27784         Suggested by Eric Blake.
27785
27786 2009-08-23  Bruno Haible  <bruno@clisp.org>
27787
27788         Tolerate declared but missing dup3 syscall.
27789         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27790         * lib/unistd.in.h (dup3): If the function is already present,
27791         override it.
27792         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27793         * modules/dup3 (Makefile.am): Compile dup3.c always.
27794         Reported by Paolo Bonzini.
27795
27796 2009-08-23  Bruno Haible  <bruno@clisp.org>
27797
27798         Tolerate declared but missing pipe2 syscall.
27799         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27800         available.
27801         * lib/unistd.in.h (pipe2): If the function is already present,
27802         override it.
27803         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27804         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27805         Reported by Paolo Bonzini.
27806
27807 2009-08-23  Bruno Haible  <bruno@clisp.org>
27808
27809         * lib/pipe2.c (pipe2): Move #ifs inside function.
27810
27811 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27812
27813         quotearg: document limitations of quote_these_too
27814         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27815         those limitations are created.
27816         * lib/quotearg.h (set_char_quoting): Document that digits and
27817         letters that are special after backslash are not permitted.
27818         (quotearg_char): Cross-reference set_char_quoting documentation.
27819
27820 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27821
27822         quotearg: implement custom_quoting_style
27823         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27824         right_quote fields.
27825         (set_custom_quoting): New public function.
27826         (quotearg_buffer_restyled): Add left_quote and right_quote
27827         arguments, handle them very much like locale quoting, and update
27828         all uses.
27829         (quotearg_n_custom): New public function.
27830         (quotearg_n_custom_mem): New public function.
27831         (quotearg_custom): New public function.
27832         (quotearg_custom_mem): New public function.
27833         * lib/quotearg.h: Prototype and document new public functions.
27834         (enum quoting_style): For escape_quoting_style and
27835         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27836         ignored even though they're otherwise like c_quoting_style.
27837         Add custom_quoting_style member and document with comparison to
27838         clocale_quoting_style.
27839         * tests/test-quotearg.c (custom_quotes): New array.
27840         (custom_results): New array.
27841         (main): Extend to test custom quoting.
27842
27843 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27844
27845         quotearg: fix right quote escaping when it's in quote_these_too
27846         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27847         quote, be sure to prepend only one backslash.
27848         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27849         (main): Test it.
27850
27851 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27852
27853         quotearg-tests: test escaping of embedded locale quotes
27854         * tests/test-quotearg.c (struct result_strings): Add member for
27855         new input.
27856         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27857         (inputs): Add new input.
27858         (results_g): Add expected results.
27859         (flag_results): Likewise.
27860         (locale_results): Likewise.
27861         (compare_strings): Check those.
27862
27863 2009-08-23  Bruno Haible  <bruno@clisp.org>
27864
27865         Tests for module 'dup3'.
27866         * modules/dup3-tests: New file.
27867         * tests/test-dup3.c: New file.
27868
27869         New module 'dup3'.
27870         * lib/unistd.in.h (dup3): New declaration.
27871         * lib/dup3.c: New file.
27872         * m4/dup3.m4: New file.
27873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27874         HAVE_DUP3.
27875         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27876         * modules/dup3: New file.
27877         * doc/glibc-functions/dup3.texi: Mention the new module.
27878
27879 2009-08-23  Bruno Haible  <bruno@clisp.org>
27880
27881         Tweak the dup2 test.
27882         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27883         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27884         the test file is still empty. Fix argument order of lseek.
27885
27886 2009-08-23  Bruno Haible  <bruno@clisp.org>
27887
27888         Avoid test link errors when the modules getopt-gnu, gettext are used.
27889         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27890         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27891
27892 2009-08-23  Bruno Haible  <bruno@clisp.org>
27893
27894         Fix getdtablesize() on mingw.
27895         * lib/getdtablesize.c (getdtablesize): Implement differently.
27896         * lib/unistd.in.h (getdtablesize): Improve comment.
27897
27898 2009-08-23  Bruno Haible  <bruno@clisp.org>
27899
27900         New module 'mkostemp'.
27901         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27902         * lib/stdlib.in.h (mksotemp): New declaration.
27903         * lib/mkostemp.c: New file, from glibc with modifications.
27904         * lib/tempname.h (GT_FILE): Remove outdated comment.
27905         (gen_tempname): Add flags argument.
27906         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27907         (__GT_FILE): Map to 1.
27908         (small_open, large_open): Remove macros.
27909         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27910         * lib/mkstemp.c (mkstemp): Update.
27911         * lib/mkdtemp.c (mkdtemp): Likewise.
27912         * m4/mkostemp.m4: New file.
27913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27914         HAVE_MKOSTEMP.
27915         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27916         HAVE_MKOSTEMP.
27917         * modules/mkostemp: New file, based on modules/mkstemp.
27918         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27919         * NEWS: Mention the change.
27920
27921 2009-08-23  Bruno Haible  <bruno@clisp.org>
27922
27923         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27924         Reported by Eric Blake.
27925
27926 2009-08-23  Bruno Haible  <bruno@clisp.org>
27927
27928         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27929         Reported by Eric Blake.
27930
27931 2009-08-23  Bruno Haible  <bruno@clisp.org>
27932
27933         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27934         * modules/pipe2 (Depends-on): Likewise.
27935
27936 2009-08-23  Eric Blake  <ebb9@byu.net>
27937
27938         fcntl-h: add O_TTY_INIT support
27939         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27940         * tests/test-fcntl-h.c (o): Test it.
27941         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27942
27943         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27944         * modules/fcntl: Move <fcntl.h> header replacement...
27945         * modules/fcntl-h: ...to new name, so as not to collide with
27946         like-named function.
27947         * tests/test-fcntl.c: Rename...
27948         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27949         * modules/fcntl-tests: Rename...
27950         * modules/fcntl-h-tests: ...to this.  Update test file name.
27951         * modules/chdir-long (Depends-on): Update clients.
27952         * modules/chdir-safer (Depends-on): Likewise.
27953         * modules/fcntl-safer (Depends-on): Likewise.
27954         * modules/fts (Depends-on): Likewise.
27955         * modules/mkancesdirs (Depends-on): Likewise.
27956         * modules/mkdir-p (Depends-on): Likewise.
27957         * modules/open (Depends-on): Likewise.
27958         * modules/savewd (Depends-on): Likewise.
27959         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27960         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27961
27962 2009-08-22  Bruno Haible  <bruno@clisp.org>
27963
27964         * modules/binary-io (License): Relicense under LGPL.
27965         * modules/pipe2 (License): Likewise.
27966
27967 2009-08-22  Bruno Haible  <bruno@clisp.org>
27968
27969         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27970         return value.
27971         * lib/pipe-filter-gi.c (filter_init): Likewise.
27972         Reported by Eric Blake.
27973
27974 2009-08-22  Bruno Haible  <bruno@clisp.org>
27975
27976         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27977         * modules/pipe (Depends-on): Add pipe2.
27978
27979 2009-08-22  Bruno Haible  <bruno@clisp.org>
27980
27981         Tests for module 'pipe2'.
27982         * modules/pipe2-tests: New file.
27983         * tests/test-pipe2.c: New file.
27984
27985         New module 'pipe2'.
27986         * lib/unistd.in.h (pipe2): New declaration.
27987         * lib/pipe2.c: New file.
27988         * m4/pipe2.m4: New file.
27989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27990         HAVE_PIPE2.
27991         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27992         * modules/pipe2: New file.
27993         * doc/glibc-functions/pipe2.texi: Mention the new module.
27994
27995 2009-08-22  Bruno Haible  <bruno@clisp.org>
27996
27997         Reference some new glibc functions.
27998         * doc/glibc-functions/accept4.texi: New file.
27999         * doc/glibc-functions/dup3.texi: New file.
28000         * doc/glibc-functions/mkostemp.texi: New file.
28001         * doc/glibc-functions/pipe2.texi: New file.
28002         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
28003         (Glibc sys/socket.h): Refer to accept4.
28004         (Glibc unistd.h): Refer to dup3, pipe2.
28005         Reported by Eric Blake.
28006
28007 2009-08-22  Jim Meyering  <meyering@redhat.com>
28008             Bruno Haible  <bruno@clisp.org>
28009
28010         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
28011         This makes it so packages using automake-1.11's silent-rules option
28012         can print e.g., a single "GEN    configmake.h" line, rather than
28013         the 30+ statements that perform the job.  If you want to see the
28014         actual commands, you can still run "make V=1".
28015         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
28016         so that make output is abbreviated when those variables are defined
28017         appropriately.
28018         * modules/argz: Likewise.
28019         * modules/arpa_inet: Likewise.
28020         * modules/byteswap: Likewise.
28021         * modules/configmake: Likewise.
28022         * modules/dirent: Likewise.
28023         * modules/errno: Likewise.
28024         * modules/fcntl: Likewise.
28025         * modules/float: Likewise.
28026         * modules/fnmatch: Likewise.
28027         * modules/getopt-posix: Likewise.
28028         * modules/glob: Likewise.
28029         * modules/iconv_open: Likewise.
28030         * modules/inttypes: Likewise.
28031         * modules/localcharset: Likewise.
28032         * modules/locale: Likewise.
28033         * modules/math: Likewise.
28034         * modules/netdb: Likewise.
28035         * modules/netinet_in: Likewise.
28036         * modules/poll: Likewise.
28037         * modules/posix_spawnp-tests: Likewise.
28038         * modules/sched: Likewise.
28039         * modules/search: Likewise.
28040         * modules/selinux-h: Likewise.
28041         * modules/signal: Likewise.
28042         * modules/spawn: Likewise.
28043         * modules/stdarg: Likewise.
28044         * modules/stdbool: Likewise.
28045         * modules/stddef: Likewise.
28046         * modules/stdint: Likewise.
28047         * modules/stdio: Likewise.
28048         * modules/stdlib: Likewise.
28049         * modules/string: Likewise.
28050         * modules/strings: Likewise.
28051         * modules/sys_file: Likewise.
28052         * modules/sys_ioctl: Likewise.
28053         * modules/sys_select: Likewise.
28054         * modules/sys_socket: Likewise.
28055         * modules/sys_stat: Likewise.
28056         * modules/sys_time: Likewise.
28057         * modules/sys_times: Likewise.
28058         * modules/sys_utsname: Likewise.
28059         * modules/sys_wait: Likewise.
28060         * modules/sysexits: Likewise.
28061         * modules/time: Likewise.
28062         * modules/unistd: Likewise.
28063         * modules/wchar: Likewise.
28064         * modules/wctype: Likewise.
28065
28066 2009-08-22  Jim Meyering  <meyering@redhat.com>
28067
28068         announce-gen: detect write failure
28069         * build-aux/announce-gen: Add Coda at end.
28070         Remove equivalent-but-more-verbose block at top.
28071
28072 2009-08-19  Akim Demaille  <demaille@gostai.com>
28073
28074         bootstrap: --help to stdout.
28075         * bootstrap (usage): Don't send --help to stderr.
28076         Use a here doc instead of a long string.
28077
28078 2009-08-21  Eric Blake  <ebb9@byu.net>
28079
28080         test-popen-safer: split from test-popen
28081         * tests/test-popen.c (main): Move...
28082         * tests/test-popen.h: ...into new file.
28083         * tests/test-popen-safer2.c: New file.
28084         * modules/popen-tests (Files): Add test-popen.h.
28085         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
28086         Suggested by Bruno Haible.
28087
28088         test-fcntl-safer: split from test-open
28089         * tests/test-open.c (main): Move...
28090         * tests/test-open.h: ...into new file.
28091         * tests/test-fcntl-safer.c: New file.
28092         * modules/open-tests (Files): Add test-open.h.
28093         * modules/fcntl-safer-tests: New file.
28094         Suggested by Bruno Haible.
28095
28096         test-fopen-safer: split from test-fopen
28097         * tests/test-fopen.c (main): Move...
28098         * tests/test-fopen.h: ...into new file.
28099         * tests/test-fopen-safer.c: New file.
28100         * modules/fopen-tests (Files): Add test-fopen.h.
28101         * modules/fopen-safer-tests: New file.
28102         Suggested by Bruno Haible.
28103
28104 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28105
28106         popen-safer: test O_CLOEXEC at run-time.
28107         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
28108
28109 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28110
28111         fcntl: move more flags to the header
28112         * lib/cloexec.c: Do not define FD_CLOEXEC here.
28113         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
28114         * lib/fcntl.in.h: Do both things here.
28115
28116 2009-08-21  Jim Meyering  <meyering@redhat.com>
28117
28118         consistently remove $@-t before redirecting to it
28119         * modules/argz: Remove $@-t and $@ before redirecting to the former.
28120         * modules/alloca-opt: Likewise.
28121         * modules/byteswap: Likewise.
28122         * modules/fnmatch: Likewise.
28123         * modules/getopt-posix: Likewise.
28124         * modules/glob: Likewise.
28125         * modules/poll: Likewise.
28126         * modules/posix_spawnp-tests: Likewise.
28127         * modules/sys_socket: Likewise.
28128         * modules/sysexits: Likewise.
28129
28130 2009-08-21  Eric Blake  <ebb9@byu.net>
28131
28132         popen: simplify access to original popen
28133         * lib/popen.c (rpl_popen): No need to worry about popen being a
28134         macro.
28135         Reported by Bruno Haible.
28136
28137 2009-08-20  Eric Blake  <ebb9@byu.net>
28138
28139         build: avoid some compiler warnings
28140         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
28141         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
28142         type.
28143         (new_exclude_segment, excluded_file_pattern_p)
28144         (excluded_file_name_p): Reduce scope.
28145         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
28146         old-style declaration.
28147
28148 2009-08-20  Simon Josefsson  <simon@josefsson.org>
28149
28150         * tests/test-exclude1.sh: Handle Windows EOL.
28151         * tests/test-exclude2.sh: Likewise.
28152         * tests/test-exclude3.sh: Likewise.
28153         * tests/test-exclude4.sh: Likewise.
28154         * tests/test-exclude5.sh: Likewise.
28155         * tests/test-exclude6.sh: Likewise.
28156         * tests/test-exclude7.sh: Likewise.
28157
28158 2009-08-19  Akim Demaille  <demaille@gostai.com>
28159
28160         bootstrap: find sha1sum when named gsha1sum.
28161         * bootstrap (find_tool): New.
28162         ($SHA1SUM): New.
28163         Use it.
28164
28165 2009-08-20  Jim Meyering  <meyering@redhat.com>
28166
28167         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
28168         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
28169         expression that converts "." in a file name to "\." in the resulting
28170         regexp.  Start with a dummy statement, so that prior shell variable
28171         definitions are expanded portably.  Reported by Simon Josefsson.
28172
28173 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
28174
28175         Fix polling for writeability of a screen buffer.
28176         * lib/poll.c: Distinguish input and screen buffers for the
28177         Win32 implementation.
28178         * lib/select.c: Likewise.
28179
28180 2009-08-19  Eric Blake  <ebb9@byu.net>
28181
28182         popen-safer: prevent popen from clobbering std descriptors
28183         * modules/popen-safer: New file.
28184         * lib/popen-safer.c: Likewise.
28185         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
28186         * lib/stdio--.h (popen): Provide override.
28187         * lib/stdio-safer.h (popen_safer): Provide declaration.
28188         * tests/test-popen.c (includes): Partially test this.
28189         * modules/popen-safer-tests: New file, for more tests.
28190         * tests/test-popen-safer.c: Likewise.
28191         * MODULES.html.sh (file stream based Input/Output): Mention it.
28192
28193         tests: test some of the *-safer modules
28194         * modules/fopen-safer (Depends-on): Add fopen.
28195         * modules/fcntl-safer (Depends-on): Add fcntl.
28196         * modules/stdlib-safer (Depends-on): Add stdlib.
28197         (configure.ac): Set indicator.
28198         * modules/unistd-safer (configure.ac): Likewise.
28199         * modules/tmpfile-safer (configure.ac): Likewise.
28200         (Depends-on): Add tmpfile.
28201         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
28202         active.
28203         * tests/test-fopen.c (includes): Test safer versions when they are
28204         in use.
28205         * tests/test-open.c (includes): Likewise.
28206
28207         popen: fix cygwin 1.5 bug when stdin closed
28208         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
28209         * modules/popen: New file.
28210         * modules/popen-tests: Likewise.
28211         * tests/test-popen.c: Likewise.
28212         * m4/popen.m4: Likewise.
28213         * lib/popen.c: Likewise.
28214         * lib/stdio.in.h (popen): New declaration.
28215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
28216         * modules/stdio (Makefile.am): Likewise.
28217         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
28218
28219 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
28220
28221         maint.mk: give full control over update-copyright exclusions
28222         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
28223         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
28224         (update-copyright): Don't force inclusion of top-level
28225         ChangeLog.  Don't force exclusion of all COPYING files, but make
28226         them the default exclusion instead.
28227
28228 2009-08-16  Bruno Haible  <bruno@clisp.org>
28229
28230         Fix test failures on Solaris 10.
28231         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
28232         tests when Solaris iconv() is used.
28233         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28234         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28235         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28236         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28237         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28238
28239 2009-08-16  Bruno Haible  <bruno@clisp.org>
28240
28241         Fix test failures on Solaris 10.
28242         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
28243         'tr' program and pass it as first argument.
28244         * tests/test-pipe-filter-gi1.sh: Likewise.
28245         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
28246         program as first argument.
28247         * tests/test-pipe-filter-gi1.c (main): Likewise.
28248
28249 2009-08-16  Eric Blake  <ebb9@byu.net>
28250
28251         fpurge: fix previous commits
28252         * modules/fpurge (Makefile.am): Make replacement conditional,
28253         partially reverting 2007-04-29 change; missed in previous
28254         attempt.
28255         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
28256         is missing.
28257
28258 2009-08-16  Bruno Haible  <bruno@clisp.org>
28259
28260         Clarify fpurge's effect on the file position.
28261         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
28262         * tests/test-fpurge.c (main): Make a second pass for checking the file
28263         position.
28264
28265 2009-08-16  Bruno Haible  <bruno@clisp.org>
28266
28267         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
28268         declaration of fpurge is missing.
28269         * tests/test-fpurge.c (main): Check that the file has not more contents
28270         than expected. Close the file before removing it.
28271
28272 2009-08-15  Eric Blake  <ebb9@byu.net>
28273
28274         fpurge: don't wrap working cygwin implementation
28275         * lib/fpurge.c (fpurge): Fix comment typo.
28276         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
28277         1.7 to avoid replacement.
28278         * tests/test-fpurge.c (main): Enhance test.
28279
28280 2009-08-15  Eric Blake  <ebb9@byu.net>
28281         and Jim Meyering  <meyering@redhat.com>
28282
28283         test-update-copyright: skip if perl is insufficient
28284         * tests/test-update-copyright.sh: Failure to run maintainer tool
28285         should not cause testsuite failure on cygwin 1.5.
28286
28287 2009-08-14  Eric Blake  <ebb9@byu.net>
28288
28289         doc: mention more functions added in cygwin 1.7.0
28290         * doc/posix-headers/limits.texi (limits.h): Update for recent
28291         cygwin additions.
28292         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
28293         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
28294         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
28295         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
28296         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
28297
28298 2009-08-14  Eric Blake  <ebb9@byu.net>
28299
28300         maint.mk: simplify update-copyright rule
28301         * top/maint.mk (update-copyright-local): Delete, and document how
28302         to do it in cfg.mk instead.
28303         (update-copyright-exclude-regexp): Delete, and document how to do
28304         it in .x-update-copyright instead.
28305         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
28306         exclude ChangeLog.
28307
28308 2009-08-14  Bruno Haible  <bruno@clisp.org>
28309
28310         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
28311
28312 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28313
28314         maint.mk: support update-copyright-env
28315         * top/maint.mk (update-copyright-env): Define place-holder.
28316         (update-copyright): Expand $(update-copyright-env) before
28317         invoking update-copyright.
28318
28319 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28320
28321         update-copyright: implement forced reformatting
28322         * build-aux/update-copyright: Implement and document
28323         UPDATE_COPYRIGHT_FORCE.
28324         * tests/test-update-copyright.sh: Test it.
28325
28326 2009-08-14  Eric Blake  <ebb9@byu.net>
28327         and Bruno Haible  <bruno@clisp.org>
28328
28329         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
28330         * tests/test-locale.c: Revert previous patch related to NULL.
28331         * tests/test-stdio.c: Likewise.
28332         * tests/test-stdlib.c: Likewise.
28333         * tests/test-string.c: Likewise.
28334         * tests/test-unistd.c: Likewise.
28335         * modules/time-tests (Depends-on): Add verify.
28336         * modules/wchar-tests (Depends-on): Likewise.
28337         * tests/test-time.c: Test for NULL compliance.
28338         * tests/test-wchar.c: Likewise.
28339         * modules/locale (Depends-on): Add stddef.
28340         * modules/stdio (Depends-on): Likewise.
28341         * modules/stdlib (Depends-on): Likewise.
28342         * modules/string (Depends-on): Likewise.
28343         * modules/time (Depends-on): Likewise.
28344         * modules/unistd (Depends-on): Likewise.
28345         * modules/wchar (Depends-on): Likewise.
28346         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
28347         * lib/stdlib.in.h (includes): Likewise.
28348         * lib/string.in.h (includes): Likewise.
28349         * lib/time.in.h (includes): Likewise.
28350         * lib/unistd.in.h (includes): Likewise.
28351         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
28352         replaced.
28353         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28354         * m4/stddef_h.m4: New file.
28355         * modules/stddef: Likewise.
28356         * lib/stddef.in.h: Likewise.
28357         * modules/stddef-tests: Likewise.
28358         * tests/test-stddef.c: Likewise.
28359         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
28360         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
28361         * doc/posix-headers/locale.texi (locale.h): Likewise.
28362         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
28363         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28364         * doc/posix-headers/string.texi (string.h): Likewise.
28365         * doc/posix-headers/time.texi (time.h): Likewise.
28366         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
28367         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
28368
28369 2009-08-14  Eric Blake  <ebb9@byu.net>
28370
28371         doc: improve git diff of texinfo files
28372         * .gitattributes: Add rule for *.texi files, with hint on how to
28373         use it.
28374         Copied from m4, and based on a report by Bruno Haible.
28375
28376 2009-08-14  Bruno Haible  <bruno@clisp.org>
28377
28378         Disable multithread support by default on Cygwin 1.5.x for real.
28379         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
28380
28381 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28382
28383         update-copyright: much ado about intervals
28384         * build-aux/update-copyright: Implement and document
28385         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
28386         of copyright year intervals.
28387         Also, document UPDATE_COPYRIGHT_YEAR.
28388         * tests/test-update-copyright.sh: Test it.
28389
28390         update-copyright: convert 2-digit to 4-digit years
28391         * build-aux/update-copyright: Implement and document.
28392         * tests/test-update-copyright.sh: Update.
28393
28394 2009-08-14  Jim Meyering  <meyering@redhat.com>
28395
28396         test-exclude: avoid coreutils "make check" failure
28397         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
28398         just as in test-argmatch.c.
28399
28400 2009-08-13  Eric Blake  <ebb9@byu.net>
28401
28402         test-dup2: fix bad assumption
28403         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
28404         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
28405
28406         test-version-etc: fix CRLF portability issue
28407         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
28408         recognize \r.
28409         * tests/test-argp-version-etc-1.sh: Likewise.
28410
28411         getopt: update client modules
28412         * modules/argp (Depends-on): Use getopt-gnu.
28413         * modules/git-merge-changelog (Depends-on): Likewise.
28414         * modules/long-options (Depends-on): Likewise.
28415         * modules/xstrtol (Depends-on): Likewise.
28416
28417 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28418
28419         * tests/test-version-etc.sh: Don't fail on different
28420         project/version.  Don't fail on CRLF differences.  Rewrite to use
28421         multiple -e instead of multiple sed forks, suggested by Eric Blake
28422         <ebb9@byu.net>.
28423         * tests/test-argp-version-etc-1.sh: Likewise.
28424
28425 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28426
28427         * tests/test-version-etc.sh: Don't fail on different
28428         project/version.
28429
28430 2009-08-12  Bruno Haible  <bruno@clisp.org>
28431
28432         Tests for modules 'getopt-posix', 'getopt-gnu'.
28433         * modules/getopt-posix-tests: New file.
28434         * tests/test-getopt.c: New file.
28435         * tests/test-getopt.h: New file.
28436         * tests/test-getopt_long.h: New file.
28437
28438         New modules 'getopt-posix', 'getopt-gnu'.
28439         * modules/getopt-gnu: New file, renamed from modules/getopt.
28440         * modules/getopt-posix: New file.
28441         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
28442         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
28443         (gl_GETOPT): Remove macro.
28444         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
28445         Disable the test against BSD systems that declare optreset. Test
28446         against mingw bug. Test against lack of support of optional arguments
28447         on many platforms.
28448         * doc/glibc-headers/getopt.texi: Update module name and list of
28449         relevant platforms.
28450         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
28451         'getopt-gnu' and more portability problems.
28452         * NEWS: Mention the changes.
28453
28454 2009-08-12  Bruno Haible  <bruno@clisp.org>
28455
28456         Ensure that optarg etc. get declared by <unistd.h>.
28457         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
28458         AC_USE_SYSTEM_EXTENSIONS.
28459         * modules/getopt (Depends-on): Add 'extensions'.
28460
28461 2009-08-12  Bruno Haible  <bruno@clisp.org>
28462
28463         Avoid test link errors.
28464         * modules/pipe-filter-ii-tests (Makefile.am): Define
28465         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
28466         * modules/pipe-filter-gi-tests (Makefile.am): Define
28467         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
28468         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28469
28470 2009-08-12  Bruno Haible  <bruno@clisp.org>
28471
28472         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
28473         gl_GETOPT_SUBSTITUTE before.
28474         (gl_GETOPT): Use it.
28475         * m4/argp.m4 (gl_ARGP): Update.
28476         Reported by Sergey Poznyakoff.
28477
28478         * m4/getopt.m4: Reorder macros.
28479         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
28480         (gl_GETOPT_SUBSTITUTE): Remove macro.
28481
28482 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28483
28484         Minor improvement in gitlog-to-changelog
28485
28486         * build-aux/gitlog-to-changelog: New option `--format' makes
28487         output format string configurable.
28488
28489 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28490
28491         Optimize exclude: use hash tables for non-wildcard patterns.
28492
28493         * lib/exclude.c: Include hash.h and mbuiter.h
28494         (struct exclude_pattern, exclude_segment): New data types.
28495         (struct exclude): Rewrite.
28496         (fnmatch_pattern_has_wildcards): New function.
28497         (new_exclude_segment, free_exclude_segment): New functions.
28498         (excluded_file_pattern_p, excluded_file_name_p): New functions.
28499         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
28500         * lib/exclude.h (is_fnmatch_pattern): New prototype.
28501         * modules/exclude: Depend on hash and mbuiter.
28502
28503         * modules/exclude-tests: New file.
28504         * tests/test-exclude.c: New file.
28505         * tests/test-exclude1.sh: New file.
28506         * tests/test-exclude2.sh: New file.
28507         * tests/test-exclude3.sh: New file.
28508         * tests/test-exclude4.sh: New file.
28509         * tests/test-exclude5.sh: New file.
28510         * tests/test-exclude6.sh: New file.
28511         * tests/test-exclude7.sh: New file.
28512
28513 2009-08-12  Bruno Haible  <bruno@clisp.org>
28514
28515         Ensure that getopt() gets declared by <unistd.h>.
28516         * lib/unistd.in.h: Conditionally include getopt.h.
28517         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
28518         Set GNULIB_UNISTD_H_GETOPT.
28519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28520         GNULIB_UNISTD_H_GETOPT.
28521         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
28522
28523 2009-08-12  Bruno Haible  <bruno@clisp.org>
28524
28525         Clarify logic.
28526         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
28527         gl_replace_getopt instead of GETOPT_H.
28528
28529 2009-08-12  Bruno Haible  <bruno@clisp.org>
28530
28531         * m4/getopt.m4: Add comments.
28532
28533 2009-08-12  Bruno Haible  <bruno@clisp.org>
28534
28535         Disable multithread support by default on Cygwin 1.5.x.
28536         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
28537         set gl_use_threads=no if not specified otherwise.
28538
28539 2009-08-11  Bruno Haible  <bruno@clisp.org>
28540
28541         Avoid compilation error on NetBSD 5.0.
28542         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
28543         * tests/test-stdio.c: Likewise.
28544         * tests/test-stdlib.c: Likewise.
28545         * tests/test-string.c: Likewise.
28546         * tests/test-unistd.c: Likewise.
28547         Reported by Greg Troxel <gdt@ir.bbn.com>
28548         at <https://savannah.gnu.org/support/?106973>.
28549
28550 2009-08-11  Bruno Haible  <bruno@clisp.org>
28551
28552         * modules/dup2-tests (Depends-on): Remove close.
28553
28554         Undo 2009-07-19 commit.
28555         * modules/acl-tests (Depends-on): Remove close.
28556         * modules/binary-io-tests (Depends-on): Likewise.
28557         * modules/closein-tests (Depends-on): Likewise.
28558         * modules/flock-tests (Depends-on): Likewise.
28559         * modules/fsync-tests (Depends-on): Likewise.
28560         * modules/lseek-tests (Depends-on): Likewise.
28561         * modules/pipe-tests (Depends-on): Likewise.
28562         * modules/posix_spawn-tests (Depends-on): Likewise.
28563         * modules/posix_spawnp-tests (Depends-on): Likewise.
28564         * modules/stat-time-tests (Depends-on): Likewise.
28565         * modules/yesno-tests (Depends-on): Likewise.
28566
28567 2009-08-10  Bruno Haible  <bruno@clisp.org>
28568
28569         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
28570
28571 2009-08-10  Bruno Haible  <bruno@clisp.org>
28572
28573         Fix a gcc warning.
28574         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
28575
28576 2009-08-10  Bruno Haible  <bruno@clisp.org>
28577
28578         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
28579         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
28580         not only the first time.
28581         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
28582         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
28583         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
28584         is 1, not only the the first time.
28585
28586 2009-08-10  Bruno Haible  <bruno@clisp.org>
28587
28588         Make it possible to use module 'gethostname' without module 'close'.
28589         * lib/unistd.in.h (close): Evoke a link error only if
28590         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28592         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28593         * modules/unistd (Makefile.am): Substitute
28594         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28595         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
28596         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28597         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28598         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28599         * modules/sys_ioctl (Makefile.am): Substitute
28600         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28601         * modules/socket (configure.ac): On native Windows, set
28602         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
28603         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28604         Reported by Sam Steingold <sds@gnu.org>.
28605
28606 2009-08-10  Bruno Haible  <bruno@clisp.org>
28607
28608         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
28609         * modules/ioctl (configure.ac): Likewise.
28610
28611 2009-08-10  Bruno Haible  <bruno@clisp.org>
28612
28613         Avoid collision between gnulib wrapper and libintl wrapper.
28614         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
28615         already defined in intl/printf.c.
28616         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
28617         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
28618
28619 2009-08-09  Bruno Haible  <bruno@clisp.org>
28620
28621         Make <sys/select.h> really self-contained, also on Solaris 10.
28622         * lib/sys_select.in.h: Include <string.h>.
28623         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
28624         Solaris 10 problem.
28625         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
28626         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
28627         Reported by Jim Meyering.
28628
28629 2009-08-09  Bruno Haible  <bruno@clisp.org>
28630
28631         Avoid warnings from 'aclocal' that are due to a use of macro name
28632         AM_XGETTEXT_OPTION that is not defined in automake.
28633         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
28634         automake.
28635         * modules/error (configure.ac): Likewise.
28636         * modules/propername (configure.ac): Likewise.
28637         * modules/vasprintf (configure.ac): Likewise.
28638         * modules/verror (configure.ac): Likewise.
28639         * modules/xprintf (configure.ac): Likewise.
28640         * modules/xvasprintf (configure.ac): Likewise.
28641
28642 2009-08-08  Bruno Haible  <bruno@clisp.org>
28643
28644         Avoid compilation error in C++ mode.
28645         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28646         Reported by Sam Steingold <sds@gnu.org>.
28647
28648 2009-08-08  Bruno Haible  <bruno@clisp.org>
28649
28650         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28651         for the various Unix platforms.
28652         * doc/posix-headers/limits.texi: Update platforms list regarding
28653         HOST_NAME_MAX.
28654         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28655
28656 2009-08-07  Jim Meyering  <meyering@redhat.com>
28657
28658         selinux-at: fix typo in a comment
28659         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28660         Spotted by Paolo Bonzini.
28661
28662         selinux-at: remove redundant m4 code, add documentation
28663         * modules/selinux-at (configure.ac): Remove redundant code.
28664         LIB_SELINUX is already set via the dependent module, selinux-h.
28665         (Include): Add quotes around selinux-at.h.
28666         * lib/selinux-at.h: Add documentation.
28667         Reported by Bruno Haible in
28668         http://marc.info/?l=gnulib-bug&m=124958988300749
28669
28670 2009-08-07  Bruno Haible  <bruno@clisp.org>
28671
28672         Avoid link error on MacOS X 10.3 and 10.4.
28673         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28674         on non-ELF systems.
28675         * lib/argp-pv.c (argp_program_version): Likewise.
28676         Reported by Simon Josefsson.
28677
28678 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28679
28680         * tests/test-version-etc.sh: Use $EXEEXT.
28681
28682 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28683
28684         update-copyright: update documentation to point to maint.mk
28685         * build-aux/update-copyright: Here.
28686
28687 2009-08-06  Jim Meyering  <meyering@redhat.com>
28688
28689         maint.mk: support update-copyright-local
28690         * top/maint.mk (update-copyright-local): Define place-holder.
28691         (update-copyright): Depend on $(update-copyright-local).
28692
28693 2009-08-06  Jim Meyering  <meyering@redhat.com>
28694
28695         selinux-at: new module
28696         Initially written for coreutils, this module will soon be
28697         used by findutils, too.
28698         * MODULES.html.sh [Misc]: Add selinux-at.
28699         * lib/selinux-at.h: New file, from coreutils.
28700         * lib/selinux-at.c: Likewise.
28701         * modules/selinux-at: Likewise.
28702         (License): Change from LGPL to GPL, since it depends
28703         on the GPL'd openat module.
28704
28705         doc: update README
28706         * README: Remove references to cogito.
28707         Remove cvs-repo-updating instructions from 2007.
28708         Don't imply that CVS is better if you have limited disk space.
28709
28710 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28711
28712         update-copyright: support C-style comments
28713         * build-aux/update-copyright: Implement and document.
28714         * tests/test-update-copyright.sh: Test.
28715
28716 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28717
28718         update-copyright: support omitted "(C)"
28719         * build-aux/update-copyright: Implement and document.  Also,
28720         allow variable whitespace before "(C)".
28721         * tests/test-update-copyright.sh: Test.
28722
28723 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28724
28725         update-copyright: don't trip on non-FSF copyright statements
28726         * build-aux/update-copyright: Fix so that the first correctly
28727         formatted FSF copyright statement is recognized no matter what
28728         appears before it.  Update documentation.
28729         * tests/test-update-copyright.sh: Test that.
28730
28731 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28732
28733         update-copyright: clean up code a little
28734         * build-aux/update-copyright: Append "_re" to the name of any
28735         variable holding a regular expression.
28736         Replace "old" and "new" with "stmt" in variable names.
28737         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28738         handled correctly.
28739         Format code more consistently.
28740
28741 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28742
28743         update-copyright-tests: improve portability
28744         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28745         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28746
28747 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28748
28749         update-copyright: support @copyright{} and &copy;
28750         * build-aux/update-copyright: Implement and document.
28751         * tests/test-update-copyright.sh: Test.
28752
28753 2009-08-04  Jim Meyering  <meyering@redhat.com>
28754
28755         update-copyright-tests: correctly test EOL=\r\n handling
28756         * tests/test-update-copyright.sh: Put \r at the end of some lines
28757         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28758
28759         maint.mk: make update-copyright exclusion list more configurable
28760         * top/maint.mk (update-copyright): Default to excluding COPYING,
28761         but allow an override, in case someone does want to update that file.
28762
28763         maint.mk: don't update copyright date in COPYING
28764         * top/maint.mk (update-copyright): Exclude COPYING.
28765
28766         maint.mk: add a copyright-updating rule
28767         * top/maint.mk (update-copyright): New rule.
28768         Derived from coreutils/Makefile.am.
28769
28770         update-copyright: rename some variables
28771         * build-aux/update-copyright: Rename a few variables for clarity.
28772         Tweak syntax.  List Joel E. Denny as coauthor.
28773
28774 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28775
28776         update-copyright: fix bug for 2-digit last year and add tests
28777         * build-aux/update-copyright: Fix bug.
28778         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28779         specified.
28780         * modules/update-copyright-tests: New
28781         * tests/test-update-copyright.sh: New.
28782
28783 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28784
28785         update-copyright: handle leading tabs in line prefix
28786         * build-aux/update-copyright: Count leading tabs as 8 spaces
28787         when computing margin.  This helps with the formatting of
28788         ChangeLogs, for example.
28789         Fix documentation a little.
28790
28791 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28792
28793         update-copyright: support EOL=\r\n
28794         * build-aux/update-copyright: Implement that.
28795
28796 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28797
28798         update-copyright: automatically format copyright statements
28799         * build-aux/update-copyright: Implement that.
28800         Also, be a little more predictable and safer by always failing
28801         when the full copyright format is not perfectly recognized as an
28802         unbroken whole.  Discussed at
28803         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28804         Rewrite documentation.
28805
28806 2009-08-03  Bruno Haible  <bruno@clisp.org>
28807
28808         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28809
28810 2009-08-02  Bruno Haible  <bruno@clisp.org>
28811
28812         Tests for module 'uname'.
28813         * modules/uname-tests: New file.
28814         * tests/test-uname.c: New file.
28815
28816         New module 'uname'.
28817         * lib/uname.c: New file.
28818         * m4/uname.m4: New file.
28819         * modules/uname: New file.
28820         * doc/posix-functions/uname.texi: Mention the new module.
28821
28822 2009-08-02  Bruno Haible  <bruno@clisp.org>
28823
28824         Tests for module 'sys_utsname'.
28825         * modules/sys_utsname-tests: New file.
28826         * tests/test-sys_utsname.c: New file.
28827
28828         New module 'sys_utsname'.
28829         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28830         * m4/sys_utsname_h.m4: New file.
28831         * modules/sys_utsname: New file.
28832         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28833
28834 2009-08-02  Bruno Haible  <bruno@clisp.org>
28835
28836         Implicitly initialize the sockets library.
28837         * lib/gethostname.c: Include sockets.h.
28838         (rpl_gethostname): Invoke gl_sockets_startup.
28839         * lib/socket.c: Include sockets.h.
28840         (rpl_socket): Invoke gl_sockets_startup.
28841         * modules/gethostname (Depends-on): Add sockets.
28842         * modules/socket (Depends-on): Likewise.
28843         * tests/test-poll.c: Don't include sockets.h.
28844         (main): Don't invoke gl_sockets_startup.
28845         * tests/test-select.c: Don't include sockets.h.
28846         (main): Don't invoke gl_sockets_startup.
28847
28848 2009-08-02  Bruno Haible  <bruno@clisp.org>
28849
28850         Allow multiple calls to gl_sockets_startup.
28851         * lib/sockets.c (initialized_sockets_version): New variable.
28852         (gl_sockets_startup): Do nothing if already called for this or a higher
28853         version.
28854         (gl_sockets_cleanup): Reset initialized_sockets_version.
28855
28856 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28857
28858         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28859         different project/version.
28860
28861 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28862             Bruno Haible  <bruno@clisp.org>
28863
28864         Tests for module 'pipe-filter-gi'.
28865         * modules/pipe-filter-gi-tests: New file.
28866         * tests/test-pipe-filter-gi1.sh: New file.
28867         * tests/test-pipe-filter-gi1.c: New file.
28868         * tests/test-pipe-filter-gi2.sh: New file.
28869         * tests/test-pipe-filter-gi2-main.c: New file.
28870         * tests/test-pipe-filter-gi2-child.c: New file.
28871
28872         New module 'pipe-filter-gi'.
28873         * lib/pipe-filter-gi.c: New file.
28874         * modules/pipe-filter-gi: New file.
28875
28876 2009-08-02  Bruno Haible  <bruno@clisp.org>
28877             Paolo Bonzini  <bonzini@gnu.org>
28878
28879         Tests for module 'pipe-filter-ii'.
28880         * modules/pipe-filter-ii-tests: New file.
28881         * tests/test-pipe-filter-ii1.sh: New file.
28882         * tests/test-pipe-filter-ii1.c: New file.
28883         * tests/test-pipe-filter-ii2.sh: New file.
28884         * tests/test-pipe-filter-ii2-main.c: New file.
28885         * tests/test-pipe-filter-ii2-child.c: New file.
28886
28887         New module 'pipe-filter-ii'.
28888         * lib/pipe-filter.h: New file.
28889         * lib/pipe-filter-ii.c: New file.
28890         * lib/pipe-filter-aux.h: New file.
28891         * modules/pipe-filter-ii: New file.
28892
28893 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28894
28895         * lib/gc-libgcrypt.c: Change copyright to FSF.
28896         * lib/gc-gnulib.c: Likewise.
28897
28898 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28899
28900         * lib/gethostname.c: Include limits.h.
28901
28902 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28903             Bruno Haible  <bruno@clisp.org>
28904
28905         Ensure HOST_NAME_MAX as part of the gethostname module.
28906         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28907         define also HOST_NAME_MAX.
28908         * tests/test-gethostname.c: Include <limits.h>.
28909         (main): Check also HOST_NAME_MAX.
28910         * doc/posix-headers/limits.texi: Document the mingw problem.
28911
28912 2009-08-02  Bruno Haible  <bruno@clisp.org>
28913
28914         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28915         Add comments.
28916
28917 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28918
28919         * lib/gethostname.c: Add Windows wrapper.
28920         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28921         * modules/gethostname: Depend on sys_socket & errno, for also
28922         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28923         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28924
28925 2009-07-31  Jim Meyering  <meyering@redhat.com>
28926
28927         getloadavg: fix symbol name in comment
28928         * lib/getloadavg.c: Correct a typo I introduced when adding
28929         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28930         Matt Kraai spotted the problem.
28931
28932 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28933
28934         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28935         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28936         code also if ! defined N_NAME_POINTER.
28937         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28938         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28939         but the n_name member is a 12-byte array.
28940
28941 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28942
28943         update-copyright: generalize comment handling
28944         * build-aux/update-copyright: Handle copyright statements
28945         within more comment styles.
28946         Document usage.
28947         Report any file with an external copyright holder or parse failure.
28948
28949 2009-07-29  Jim Meyering  <meyering@redhat.com>
28950
28951         mktime: correct setting of REPLACE_MKTIME
28952         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28953
28954         update-copyright: new module
28955         * modules/update-copyright: New file.
28956         * build-aux/update-copyright: New file.
28957         * MODULES.html.sh (maint+release support): Add update-copyright.
28958
28959 2009-07-27  Bruno Haible  <bruno@clisp.org>
28960
28961         Fix compilation error when <ctime> is used and mktime is replaced.
28962         * lib/time.in.h (mktime): New declaration.
28963         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28964         REPLACE_MKTIME instead of defining mktime in config.h.
28965         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28966         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28967         Reported by Ross McFarland <rwmcfa1@neces.com>.
28968
28969 2009-07-27  Bruno Haible  <bruno@clisp.org>
28970
28971         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28972         Reported by Matt Kraai <mkraai@beckman.com>.
28973
28974 2009-07-25  Jim Meyering  <meyering@redhat.com>
28975
28976         maint.mk: avoid warnings about missing files
28977         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28978         diagnostic when .prev-version does not exist.
28979         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28980         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28981         nonexistent cfg.mk.
28982         Suggestions from Simon Josefsson.
28983
28984 2009-07-25  Bruno Haible  <bruno@clisp.org>
28985
28986         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28987         defined as macros. Needed on QNX 6.4.1.
28988         Reported by Matt Kraai <mkraai@beckman.com>.
28989
28990 2009-07-23  Jim Meyering  <meyering@redhat.com>
28991
28992         maint.mk: invoke "make dist" with a working value of XZ_OPT
28993         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28994
28995 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28996
28997         Make fseeko.c compile on QNX.
28998         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28999
29000 2009-07-22  Peter Simons  <simons@cryp.to>
29001
29002         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
29003         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
29004         * lib/md4.h: Likewise.
29005         * lib/md5.h: Likewise.
29006         * lib/sha1.h: Likewise.
29007         * lib/sha256.h: Likewise.
29008         * lib/sha512.h: Likewise.
29009
29010         tests-sha1: don't assign literal string to 'char *' variable
29011         * tests/test-sha1.c (main): Declare locals with "const" to match
29012         attributes of the right hand side.
29013
29014 2009-07-21  Eric Blake  <ebb9@byu.net>
29015
29016         dup2: fix more mingw problems
29017         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
29018         fd to itself.
29019         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29020         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
29021         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
29022         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
29023         care of mingw bugs.
29024
29025 2009-07-21  Jim Meyering  <meyering@redhat.com>
29026
29027         vc-list-files: avoid failure when /bin/sh is dash
29028         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
29029         On some Debian based systems, /bin/sh is a symlink to dash, and running
29030         this command would omit the "/" following each 'tests' prefix:
29031           dash -x build-aux/vc-list-files -C . tests
29032         That is because bash and dash work differently:
29033           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
29034           bash ok
29035           dash odd
29036
29037 2009-07-21  Eric Blake  <ebb9@byu.net>
29038
29039         dup2-tests: test previous patch
29040         * modules/dup2-tests: New file.
29041         * tests/test-dup2.c: Likewise.
29042         * tests/test-open.c (main): Avoid unspecified behavior.
29043         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
29044         test.
29045
29046         dup2: work around mingw and cygwin 1.5 bug
29047         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
29048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29049         * modules/unistd (Makefile.am): Substitute it.
29050         * lib/unistd.in.h (dup2): Declare the replacement.
29051         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
29052         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
29053         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
29054         * modules/execute (Depends-on): Add dup2.
29055         * modules/fseterr (Depends-on): Likewise.
29056         * modules/pipe (Depends-on): Likewise.
29057         * modules/posix_spawn-internal (Depends-on): Likewise.
29058
29059 2009-07-21  Bruno Haible  <bruno@clisp.org>
29060
29061         * modules/.gitattributes: New file.
29062
29063 2009-07-20  Bruno Haible  <bruno@clisp.org>
29064
29065         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
29066         (main): Use it.
29067
29068 2009-07-20  Eric Blake  <ebb9@byu.net>
29069
29070         test-pipe: make a bit more robust.
29071         * tests/test-pipe.c (myerr): Allow error messages regardless of
29072         what we do to stderr.
29073         (test_pipe): Rearrange to avoid deadlock.
29074         (child_main): Try a larger read, to ensure we avoided deadlock.
29075         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
29076         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
29077         if misused.
29078
29079 2009-07-19  Jim Meyering  <meyering@redhat.com>
29080
29081         fts: avoid false-positive cycle-detection
29082         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
29083         for each new command line argument.
29084
29085 2009-07-19  Bruno Haible  <bruno@clisp.org>
29086
29087         Fix build error on mingw with the modules sys_select and unistd.
29088         * modules/acl-tests (Depends-on): Add close.
29089         * modules/binary-io-tests (Depends-on): Likewise.
29090         * modules/closein-tests (Depends-on): Likewise.
29091         * modules/flock-tests (Depends-on): Likewise.
29092         * modules/fsync-tests (Depends-on): Likewise.
29093         * modules/lseek-tests (Depends-on): Likewise.
29094         * modules/pipe-tests (Depends-on): Likewise.
29095         * modules/posix_spawn-tests (Depends-on): Likewise.
29096         * modules/posix_spawnp-tests (Depends-on): Likewise.
29097         * modules/stat-time-tests (Depends-on): Likewise.
29098         * modules/yesno-tests (Depends-on): Likewise.
29099
29100 2009-07-19  Bruno Haible  <bruno@clisp.org>
29101
29102         Unify conditionals.
29103         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
29104         macros, not at the compiler macros.
29105         * lib/pipe.c: Likewise.
29106         * lib/execute.c: Likewise.
29107         * lib/spawni.c: Likewise.
29108
29109 2009-07-19  Bruno Haible  <bruno@clisp.org>
29110
29111         Fix handling of closed stdin/stdout/stderr on mingw.
29112         * lib/w32spawn.h: Include unistd.h.
29113         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
29114         file descriptor with O_NOINHERIT flag.
29115         (fd_safer_noinherit): New function, based on fd-safer.c.
29116         (dup_safer_noinherit): New function, based on dup-safer.c.
29117         (undup_safer_noinherit): New function.
29118         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
29119         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
29120         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
29121         instead of fd_safer.
29122         * tests/test-pipe.c: Include <windows.h>.
29123         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
29124         result.
29125
29126         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
29127         from main.
29128         (test_pipe): Pass an extra argument for disambiguation.
29129         (main): Invoke parent_main or child_main.
29130
29131         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
29132         consistently.
29133
29134 2009-07-18  Eric Blake  <ebb9@byu.net>
29135
29136         test-pipe: fix mingw build
29137         * tests/test-pipe.c (main): Avoid fcntl on mingw.
29138
29139 2009-07-18  Bruno Haible  <bruno@clisp.org>
29140
29141         * modules/pipe-tests (Makefile.am): Fix typo.
29142
29143 2009-07-18  Eric Blake  <ebb9@byu.net>
29144
29145         error: fix mingw build
29146         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
29147         Reported by Bruno Haible.
29148
29149         error: avoid undefined use of stdout
29150         * lib/error.c (error, error_at_line): Check that fd 1 is open
29151         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
29152         is handling faults and the close_stdout module wants to report the
29153         detection of closed stdout as an error.
29154
29155 2009-07-17  Eric Blake  <ebb9@byu.net>
29156
29157         pipe: be robust in face of closed fds
29158         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
29159         should cause child to misbehave.
29160         * modules/pipe-tests: New module.
29161         * tests/test-pipe.c: New file.
29162         * tests/test-pipe.sh: New file.
29163         Reported by Akim Demaille.
29164
29165 2009-07-14  Bruno Haible  <bruno@clisp.org>
29166
29167         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
29168         Reported by anonymous kc.
29169
29170 2009-07-07  Jim Meyering  <meyering@redhat.com>
29171
29172         maint.mk: don't look for translatable strings in *.m4 or *.mk
29173         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
29174         when searching for translatable strings.
29175
29176 2009-07-05  Jim Meyering  <meyering@redhat.com>
29177
29178         remove superfluous parentheses in STREQ definition
29179         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
29180         * lib/getugroups.c (STREQ): Likewise.
29181         * lib/fnmatch.c (STREQ): Likewise.
29182         Spotted by Bruno Haible.
29183
29184 2009-07-04  Jim Meyering  <meyering@redhat.com>
29185
29186         argv-iter: new module
29187         * MODULES.html.sh: Add argv-iter.
29188         * lib/argv-iter.c, lib/argv-iter.h: New files.
29189         * modules/argv-iter: New file.
29190         * modules/argv-iter-tests: New file.
29191         * tests/test-argv-iter.c: Test it.
29192
29193 2009-07-04  Bruno Haible  <bruno@clisp.org>
29194
29195         Fix assertion.
29196         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
29197         contains more exact copies of a given entry than file2, leave the extra
29198         copies unpaired rather than aborting.
29199         Reported by Eric Blake.
29200
29201 2009-07-02  Bruno Haible  <bruno@clisp.org>
29202
29203         Speedup git-merge-changelog for git cherry-pick.
29204         * lib/git-merge-changelog.c (struct entries_mapping): New type.
29205         (entries_mapping_get): New function, extracted from compute_mapping.
29206         (entries_mapping_reverse_get): New function.
29207         (compute_mapping): Add a 'full' argument. Return the result in a
29208         'struct entries_mapping'.
29209         (main): Update. Access the mappings through entries_mapping_get.
29210         Reported by Eric Blake.
29211
29212 2009-07-02  Bruno Haible  <bruno@clisp.org>
29213
29214         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
29215         best_i.
29216
29217 2009-07-02  Bruno Haible  <bruno@clisp.org>
29218
29219         Speed up approximate search for matching ChangeLog entries.
29220         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
29221         argument. Call fstrcmp_bounded instead of fstrcmp.
29222         (compute_mapping, try_split_merged_entry, main): Update callers.
29223
29224 2009-07-02  Bruno Haible  <bruno@clisp.org>
29225
29226         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
29227
29228 2009-06-30  Bruno Haible  <bruno@clisp.org>
29229
29230         Reduce the number of uc_is_cased calls.
29231         * lib/unicase.h (casing_suffix_context_t): Add
29232         'first_char_except_ignorable' field.
29233         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
29234         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
29235         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
29236         Update initializer.
29237         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
29238         case-ignorable characters.
29239         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
29240         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
29241         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
29242         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
29243         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
29244
29245 2009-06-30  Bruno Haible  <bruno@clisp.org>
29246
29247         Tests for module 'unicase/ignorable'.
29248         * modules/unicase/ignorable-tests: New file.
29249         * tests/unicase/test-ignorable.c: New file, generated by
29250         gen-uni-tables.
29251
29252         Tests for module 'unicase/cased'.
29253         * modules/unicase/cased-tests: New file.
29254         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
29255         * tests/unicase/test-predicate-part1.h: New file, derived from
29256         tests/unictype/test-predicate-part1.h.
29257         * tests/unicase/test-predicate-part2.h: New file, same as
29258         tests/unictype/test-predicate-part2.h.
29259
29260         Fix evaluation of "Before C" condition of FINAL_SIGMA.
29261         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
29262         (output_casing_properties): New function.
29263         (main): Call it.
29264         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
29265         * lib/unicase/cased.c: Include unictype/bitmap.h.
29266         (uc_is_cased): Define through a bitmap lookup.
29267         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
29268         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
29269         (uc_is_case_ignorable): Define through a bitmap lookup.
29270         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
29271         lib/unictype/bitmap.h.
29272         (Depends-on): Add inline. Clean up.
29273         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
29274         lib/unictype/bitmap.h.
29275         (Depends-on): Add inline. Clean up.
29276         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
29277         recognition.
29278         * tests/unicase/test-u16-tolower.c (main): Likewise.
29279         * tests/unicase/test-u32-tolower.c (main): Likewise.
29280
29281 2009-06-30  Bruno Haible  <bruno@clisp.org>
29282
29283         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
29284         * lib/unicase/u16-casemap.c: Likewise.
29285         * lib/unicase/u32-casemap.c: Likewise.
29286
29287 2009-06-29  Bruno Haible  <bruno@clisp.org>
29288
29289         Define u32_casefold as a wrapper around u32_ct_casefold.
29290         * lib/unicase/u32-casefold.c: Update.
29291         * modules/unicase/u32-casefold (Depends-on): Add
29292         unicase/u32-ct-casefold, unicase/empty-prefix-context,
29293         unicase/empty-suffix-context. Clean up.
29294
29295         Define u16_casefold as a wrapper around u16_ct_casefold.
29296         * lib/unicase/u16-casefold.c: Update.
29297         * modules/unicase/u16-casefold (Depends-on): Add
29298         unicase/u16-ct-casefold, unicase/empty-prefix-context,
29299         unicase/empty-suffix-context. Clean up.
29300
29301         Define u8_casefold as a wrapper around u8_ct_casefold.
29302         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
29303         * lib/unicase/u8-casefold.c: Update.
29304         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
29305         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29306
29307         Define u32_totitle as a wrapper around u32_ct_totitle.
29308         * lib/unicase/u32-totitle.c: Update.
29309         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
29310         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29311
29312         Define u16_totitle as a wrapper around u16_ct_totitle.
29313         * lib/unicase/u16-totitle.c: Update.
29314         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
29315         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29316
29317         Define u8_totitle as a wrapper around u8_ct_totitle.
29318         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
29319         functions.
29320         (FUNC): Delegate to U_CT_TOTITLE.
29321         * lib/unicase/u8-totitle.c: Update.
29322         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
29323         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29324
29325         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
29326         invocation.
29327         * modules/unicase/u32-tolower (Depends-on): Add
29328         unicase/empty-prefix-context, unicase/empty-suffix-context.
29329
29330         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
29331         invocation.
29332         * modules/unicase/u16-tolower (Depends-on): Add
29333         unicase/empty-prefix-context, unicase/empty-suffix-context.
29334
29335         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
29336         * modules/unicase/u8-tolower (Depends-on): Add
29337         unicase/empty-prefix-context, unicase/empty-suffix-context.
29338
29339         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
29340         invocation.
29341         * modules/unicase/u32-toupper (Depends-on): Add
29342         unicase/empty-prefix-context, unicase/empty-suffix-context.
29343
29344         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
29345         invocation.
29346         * modules/unicase/u16-toupper (Depends-on): Add
29347         unicase/empty-prefix-context, unicase/empty-suffix-context.
29348
29349         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
29350         * modules/unicase/u8-toupper (Depends-on): Add
29351         unicase/empty-prefix-context, unicase/empty-suffix-context.
29352
29353         New module 'unicase/u32-ct-casefold'.
29354         * lib/unicase/u32-ct-casefold.c: New file.
29355         * modules/unicase/u32-ct-casefold: New file.
29356
29357         New module 'unicase/u16-ct-casefold'.
29358         * lib/unicase/u16-ct-casefold.c: New file.
29359         * modules/unicase/u16-ct-casefold: New file.
29360
29361         New module 'unicase/u8-ct-casefold'.
29362         * lib/unicase/u8-ct-casefold.c: New file.
29363         * lib/unicase/u-ct-casefold.h: New file, derived from
29364         lib/unicase/u-casefold.h.
29365         * modules/unicase/u8-ct-casefold: New file.
29366
29367         New module 'unicase/u32-ct-totitle'.
29368         * lib/unicase/u32-ct-totitle.c: New file.
29369         * modules/unicase/u32-ct-totitle: New file.
29370
29371         New module 'unicase/u16-ct-totitle'.
29372         * lib/unicase/u16-ct-totitle.c: New file.
29373         * modules/unicase/u16-ct-totitle: New file.
29374
29375         New module 'unicase/u8-ct-totitle'.
29376         * lib/unicase/u8-ct-totitle.c: New file.
29377         * lib/unicase/u-ct-totitle.h: New file, derived from
29378         lib/unicase/u-totitle.h.
29379         * modules/unicase/u8-ct-totitle: New file.
29380
29381         New module 'unicase/u32-ct-tolower'.
29382         * lib/unicase/u32-ct-tolower.c: New file.
29383         * modules/unicase/u32-ct-tolower: New file.
29384
29385         New module 'unicase/u16-ct-tolower'.
29386         * lib/unicase/u16-ct-tolower.c: New file.
29387         * modules/unicase/u16-ct-tolower: New file.
29388
29389         New module 'unicase/u8-ct-tolower'.
29390         * lib/unicase/u8-ct-tolower.c: New file.
29391         * modules/unicase/u8-ct-tolower: New file.
29392
29393         New module 'unicase/u32-ct-toupper'.
29394         * lib/unicase/u32-ct-toupper.c: New file.
29395         * modules/unicase/u32-ct-toupper: New file.
29396
29397         New module 'unicase/u16-ct-toupper'.
29398         * lib/unicase/u16-ct-toupper.c: New file.
29399         * modules/unicase/u16-ct-toupper: New file.
29400
29401         New module 'unicase/u8-ct-toupper'.
29402         * lib/unicase/u8-ct-toupper.c: New file.
29403         * modules/unicase/u8-ct-toupper: New file.
29404
29405         Add context arguments to u*_casemap functions.
29406         * lib/unicase/unicasemap.h: Include unicase.h.
29407         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
29408         suffix_context arguments.
29409         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
29410         functions.
29411         (FUNC): Add prefix_context and suffix_context arguments. Use
29412         uc_is_cased and uc_is_case_ignorable.
29413         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
29414         * lib/unicase/u16-casemap.c: Likewise.
29415         * lib/unicase/u32-casemap.c: Likewise.
29416         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
29417         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29418         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
29419         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29420         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
29421         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29422
29423         New module 'unicase/u32-suffix-context'.
29424         * lib/unicase/u32-suffix-context.c: New file.
29425         * modules/unicase/u32-suffix-context: New file.
29426
29427         New module 'unicase/u16-suffix-context'.
29428         * lib/unicase/u16-suffix-context.c: New file.
29429         * modules/unicase/u16-suffix-context: New file.
29430
29431         New module 'unicase/u8-suffix-context'.
29432         * lib/unicase/u8-suffix-context.c: New file.
29433         * lib/unicase/u-suffix-context.h: New file.
29434         * modules/unicase/u8-suffix-context: New file.
29435
29436         New module 'unicase/empty-suffix-context'.
29437         * lib/unicase/empty-suffix-context.c: New file.
29438         * modules/unicase/empty-suffix-context: New file.
29439
29440         New module 'unicase/u32-prefix-context'.
29441         * lib/unicase/u32-prefix-context.c: New file.
29442         * modules/unicase/u32-prefix-context: New file.
29443
29444         New module 'unicase/u16-prefix-context'.
29445         * lib/unicase/u16-prefix-context.c: New file.
29446         * modules/unicase/u16-prefix-context: New file.
29447
29448         New module 'unicase/u8-prefix-context'.
29449         * lib/unicase/u8-prefix-context.c: New file.
29450         * lib/unicase/u-prefix-context.h: New file.
29451         * lib/unicase/context.h: New file.
29452         * modules/unicase/u8-prefix-context: New file.
29453
29454         New module 'unicase/empty-prefix-context'.
29455         * lib/unicase/empty-prefix-context.c: New file.
29456         * modules/unicase/empty-prefix-context: New file.
29457
29458         New module 'unicase/ignorable'.
29459         * lib/unicase/ignorable.c: New file.
29460         * modules/unicase/ignorable: New file.
29461
29462         New module 'unicase/cased'.
29463         * lib/unicase/caseprop.h: New file.
29464         * lib/unicase/cased.c: New file.
29465         * modules/unicase/cased: New file.
29466
29467         New functions for case mapping of substrings.
29468         * lib/unicase.h (casing_prefix_context_t): New type.
29469         (unicase_empty_prefix_context): New variable.
29470         (u8_casing_prefix_context, u16_casing_prefix_context,
29471         u32_casing_prefix_context, u8_casing_prefixes_context,
29472         u16_casing_prefixes_context, u32_casing_prefixes_context): New
29473         declarations.
29474         (casing_suffix_context_t): New type.
29475         (unicase_empty_suffix_context): New variable.
29476         (u8_casing_suffix_context, u16_casing_suffix_context,
29477         u32_casing_suffix_context, u8_casing_suffixes_context,
29478         u16_casing_suffixes_context, u32_casing_suffixes_context,
29479         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
29480         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
29481         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
29482         declarations.
29483
29484 2009-06-28  Jim Meyering  <meyering@redhat.com>
29485
29486         boostrap: indent only with spaces
29487         * build-aux/bootstrap: Indent only with spaces, never TABs.
29488
29489         bootstrap: split long lines
29490         * build-aux/bootstrap: Keep line length < 80.
29491
29492         bootstrap: sync from coreutils
29493         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
29494         just as autoreconf does.  Verify a list of prerequisite
29495         package-name,version-number pairs if defined in bootstrap.conf.
29496         Refer to README-prereq, if prerequisites are not satisfied.
29497
29498 2009-06-27  Eric Blake  <ebb9@byu.net>
29499
29500         tests: add test for bogus NULL definition
29501         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
29502         * tests/test-stdlib.c: Likewise.
29503         * tests/test-string.c: Likewise.
29504         * tests/test-locale.c: Likewise.
29505         * tests/test-unistd.c: Likewise.
29506         * modules/stdio-tests (Depends-on): Add verify.
29507         * modules/stdlib-tests (Depends-on): Likewise.
29508         * modules/string-tests (Depends-on): Likewise.
29509         * modules/locale-tests (Depends-on): Likewise.
29510         * modules/unistd-tests (Depends-on): Likewise.
29511
29512 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
29513
29514         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
29515         self-explaining comment.
29516         * m4/selinux-selinux-h: Update serial.
29517         (gl_LIBSELINUX): New macro, adding a warning for missing development
29518         packages to code extracted from...
29519         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
29520         Add warning for missing development packages here, too.
29521
29522 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
29523
29524         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
29525
29526 2009-06-25  Eric Blake  <ebb9@byu.net>
29527
29528         version-etc: fix regression
29529         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
29530         gcc.
29531         (version_etc): Use it, to catch bugs with trailing NULL.
29532         * lib/version-etc.c (version_etc_arn): Delete unused argument.
29533         (version_etc_va): Fix logic bug.
29534         * modules/version-etc-tests: Add test.
29535         * tests/test-version-etc.c: New file.
29536         * tests/test-version-etc.sh: Likewise.
29537
29538 2009-06-25  Sam Steingold  <sds@gnu.org>
29539
29540         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
29541         mbtowc declaration.
29542
29543 2009-06-25  Eric Blake  <ebb9@byu.net>
29544
29545         fpurge: migrate into <stdio.h>
29546         * lib/fpurge.h: Delete...
29547         * lib/stdio.in.h (fpurge): ...and declare here, instead.
29548         * lib/fpurge.c (fpurge): Change declaring header.
29549         * modules/fpurge (Files): Drop deleted file.
29550         (Depends-on): Add stdio.
29551         (configure.ac): Set witness.
29552         * modules/stdio (Makefile.am): Support fpurge macros.
29553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29554         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
29555         * lib/fflush.c: Update client.
29556         * tests/test-fpurge.c: Likewise.
29557         * NEWS: Mention the change.
29558
29559 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29560
29561         * lib/argp-version-etc.c (program_authors): Add const
29562         qualifier.
29563         * lib/version-etc.c: Fix typos in the comments.
29564         * modules/argp-version-etc: Depends on version-etc.
29565
29566 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29567
29568         argp-version-etc: new module.
29569
29570         * lib/argp-version-etc.c: New file.
29571         * lib/argp-version-etc.h: New file.
29572         * modules/argp-version-etc: New file.
29573         * modules/argp-version-etc-tests: New file.
29574         * tests/test-argp-version-etc.c: New test.
29575         * tests/test-argp-version-etc-1.sh: New test.
29576
29577 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29578
29579         Provide additional interfaces and documentation for version-etc
29580         module.
29581
29582         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
29583         interfaces.
29584         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
29585         prototypes.
29586
29587 2009-06-24  Bruno Haible  <bruno@clisp.org>
29588
29589         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
29590         HAVE_LIB${NAME} macro.
29591         Reported by Sam Steingold <sds@gnu.org>.
29592
29593 2009-06-23  Simon Josefsson  <simon@josefsson.org>
29594
29595         * modules/hash-tests (test_hash_LDADD): Link to libintl when
29596         needed.
29597
29598 2009-06-21  Bruno Haible  <bruno@clisp.org>
29599
29600         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
29601         work.
29602         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
29603         together with LIB${NAME}, LTLIB${NAME}.
29604         Reported by Sam Steingold <sds@gnu.org>.
29605
29606 2009-06-20  Jim Meyering  <meyering@redhat.com>
29607
29608         tests: make sc_require_test_exit_idiom more generic
29609         * top/maint.mk (Exit_witness_file): New overridable variable.
29610         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
29611         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
29612
29613 2009-06-19  Jim Meyering  <meyering@redhat.com>
29614
29615         hash: reverse order of src/dst parameters in an internal interface
29616         * lib/hash.c (transfer_entries): Reverse order of parameters to
29617         put DST before SRC.  Adjust callers.
29618
29619         tests: test-hash: avoid wholesale duplication
29620         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
29621         Instead, use a loop and add a single conditional.
29622
29623         tests: test-hash: allow seed selection via a command line argument
29624         * tests/test-hash.c (get_seed): New function.
29625         (main): Use it.
29626
29627 2009-06-19  Eric Blake  <ebb9@byu.net>
29628
29629         hash: avoid memory leak on allocation failure
29630         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
29631         failure.  Factor repeated algorithm...
29632         (transfer_entries): ...into new helper routine.
29633         (hash_delete): React to hash_rehash return value.
29634
29635         hash: reduce memory pressure in hash_rehash no-op case
29636         * lib/hash.c (next_prime): Avoid overflow.
29637         (hash_initialize): Factor bucket size computation...
29638         (compute_bucket_size): ...into new helper function.
29639         (hash_rehash): Use new function and open coding to reduce memory
29640         pressure, and avoid a memory leak in USE_OBSTACK code.
29641         Reported by Jim Meyering.
29642
29643 2009-06-18  Eric Blake  <ebb9@byu.net>
29644
29645         hash: make rotation more obvious
29646         * modules/hash (Depends-on): Add bitrotate and stdint.
29647         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29648         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29649         (SIZE_MAX): Rely on headers for definition.
29650         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29651         (raw_hasher): Use rotr_sz.
29652         Suggested by Jim Meyering.
29653
29654         hash: fix memory leak in last patch
29655         * lib/hash.c (hash_rehash): Avoid memory leak.
29656
29657         hash: avoid no-op rehashing
29658         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29659
29660         hash: provide default callback functions
29661         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29662         (hash_initialize): Use them as defaults.
29663         * tests/test-hash.c (main): Test this.
29664
29665         hash: minor optimization
29666         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29667         when possible.
29668         (hash_initialize): Document this promise.
29669         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29670         * tests/test-hash.c (hash_compare_strings): Test this.
29671
29672 2009-06-18  Bruno Haible  <bruno@clisp.org>
29673
29674         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29675         going to be replaced anyway.
29676
29677 2009-06-18  Bruno Haible  <bruno@clisp.org>
29678
29679         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29680         in one place.
29681         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29682         be replaced anyway.
29683
29684 2009-06-18  Eric Blake  <ebb9@byu.net>
29685
29686         hash: check for resize before insertion
29687         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29688         threshold before insertion, so that a pathological hash_rehash
29689         that fills every bucket can still trigger another rehash.
29690
29691 2009-06-18  Jim Meyering  <meyering@redhat.com>
29692
29693         hash-tests: add a loop around the small tests
29694         * tests/test-hash.c (main): Repeat small tests with selected
29695         small initial table sizes.
29696
29697 2009-06-17  Eric Blake  <ebb9@byu.net>
29698
29699         hash: minor cleanups
29700         * lib/hash.h (hash_entry): Make opaque, by moving...
29701         * lib/hash.c (hash_entry): ...here.
29702         (hash_insert): Clarify restrictions on what can be inserted.
29703         (hash_get_next): Clarify when it is safe to remove an element
29704         during traversal.
29705         (check_tuning): Skip verification when tuning is known safe.
29706         (hash_initialize): Clarify restrictions on tuning.
29707
29708 2009-06-17  Jim Meyering  <jim@meyering.net>
29709         and Eric Blake  <ebb9@byu.net>
29710
29711         hash-tests: new module
29712         * modules/hash-tests: New file.
29713         * tests/test-hash.c: New file.
29714
29715 2009-06-17  Eric Blake  <ebb9@byu.net>
29716
29717         strstr-simple: document new module
29718         * MODULES.html.sh: Document new module.
29719
29720         strstr, strcasestr: replace on platforms with broken memchr
29721         * modules/strstr: Split into...
29722         * modules/strstr-simple: ...new module that does not care about
29723         performance, but does care about glibc bug.
29724         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29725         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29726         if platform memchr is broken, per Debian bug 521737.
29727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29728         memchr.
29729         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29730         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29731         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29732         * modules/mountlist (Depends-on): Add strstr-simple.
29733         * modules/gen-uni-tables (Depends-on): Likewise.
29734         * modules/argz (Depends-on): Add strstr.
29735
29736 2009-06-17  Bruno Haible  <bruno@clisp.org>
29737
29738         * modules/posix_spawn-internal (Depends-on): Add errno.
29739
29740 2009-06-17  Bruno Haible  <bruno@clisp.org>
29741
29742         Define missing ESTALE on Interix 3.5.
29743         * lib/errno.in.h (ESTALE): Assign a value if missing.
29744         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29745         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29746         missing.
29747         * doc/posix-headers/errno.texi: Mention the Interix bug.
29748         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29749
29750 2009-06-15  Eric Blake  <ebb9@byu.net>
29751
29752         memchr, memchr2: add valgrind exception
29753         * lib/memchr.valgrind: New file.
29754         * lib/memchr2.valgrind: New file.
29755         * modules/memchr (Files): Distribute valgrind file.
29756         * modules/memchr2 (Files): Likewise.
29757
29758         docs: memchr is no longer obsolete
29759         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29760         * lib/string.in.h (memchr): Simplify logic.
29761
29762 2009-06-14  Jim Meyering  <meyering@redhat.com>
29763
29764         link-follow: fix the "checking..." message to not mention trailing slash
29765         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29766         never considered trailing slashes.
29767
29768 2009-06-14  Bruno Haible  <bruno@clisp.org>
29769
29770         * m4/memchr.m4: Mention also the bug on IA-64.
29771         * doc/posix-functions/memchr.texi: Likewise.
29772
29773 2009-06-12  Eric Blake  <ebb9@byu.net>
29774
29775         memchr: detect broken x86_64 and alpha implementations
29776         * modules/memchr-tests (Depends-on): Move mmap detection...
29777         * modules/memchr (Depends-on): ...here.
29778         (configure.ac): Set indicator.
29779         * lib/string.in.h (memchr): Declare replacement.
29780         * modules/string (Makefile.am): Trigger replacement.
29781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29782         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29783         bugs.
29784         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29785         * modules/getpagesize (License): Relax license.
29786
29787 2009-06-11  Bruno Haible  <bruno@clisp.org>
29788
29789         * lib/idpriv.h: Add more references.
29790
29791 2009-06-08  Bruno Haible  <bruno@clisp.org>
29792
29793         Tests for module 'idpriv-droptemp'.
29794         * modules/idpriv-droptemp-tests: New file.
29795         * tests/test-idpriv-droptemp.sh: New file.
29796         * tests/test-idpriv-droptemp.su.sh: New file.
29797         * tests/test-idpriv-droptemp.c: New file.
29798
29799         New module 'idpriv-droptemp'.
29800         * lib/idpriv-droptemp.c: New file.
29801         * modules/idpriv-droptemp: New file.
29802
29803 2009-06-08  Bruno Haible  <bruno@clisp.org>
29804
29805         Tests for module 'idpriv-drop'.
29806         * modules/idpriv-drop-tests: New file.
29807         * tests/test-idpriv-drop.sh: New file.
29808         * tests/test-idpriv-drop.su.sh: New file.
29809         * tests/test-idpriv-drop.c: New file.
29810
29811         New module 'idpriv-drop'.
29812         * lib/idpriv.h: New file.
29813         * lib-idpriv-drop.c: New file.
29814         * m4/idpriv.m4: New file.
29815         * modules/idpriv-drop: New file.
29816
29817 2009-06-08  Bruno Haible  <bruno@clisp.org>
29818
29819         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29820         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29821         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29822         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29823         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29824         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29825         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29826
29827 2009-06-08  Eric Blake  <ebb9@byu.net>
29828
29829         test-strstr: use memory fence, when possible
29830         * tests/test-strstr.c (main): Use memory fence, in order to be
29831         more likely to trigger Debian bug 521737.
29832         * modules/strstr-tests (Files): Pull in additional files.
29833
29834         memchr: no longer obsolete, for wider field testing
29835         * modules/memchr (Status, Notice): Delete, this module is no
29836         longer obsolete.
29837         * modules/vasnprintf (Depends-on): Add memchr.
29838
29839 2009-06-07  Jim Meyering  <meyering@redhat.com>
29840
29841         hash: declare some functions with the warn_unused_result attribute
29842         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29843
29844 2009-06-07  Bruno Haible  <bruno@clisp.org>
29845
29846         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29847         Reported by Eric Blake.
29848
29849 2009-06-06  Eric Blake  <ebb9@byu.net>
29850
29851         test-alignof: fix typo with long double
29852         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29853         compiler error.
29854
29855 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29856
29857         Escape non-texinfo { and }s.
29858         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29859         markup error.
29860
29861 2009-06-04  Jim Meyering  <meyering@redhat.com>
29862
29863         gitlog-to-changelog: don't infloop on an empty commit log
29864         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29865         Reported by Boris Petersen <transacid@centerim.org>.
29866
29867 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29868
29869         version-etc: extend for packagers
29870         Add three new configure options, intended for packagers:
29871           --with-packager="packager name"
29872           --with-packager-version="packager-specific version"
29873           --with-packager-bug-reports="packager bug reporting"
29874         An example with coreutils:
29875           $ ./configure \
29876             --with-packager=Gentoo \
29877             --with-packager-bug-report=http://bugs.gentoo.org/ \
29878             --with-packager-version="patchset 1.6"
29879           $ ./src/ls --version | head -n2
29880           ls (GNU coreutils) 7.1-dirty
29881           Packaged by Gentoo (patchset 1.6)
29882         Note that the bug reporting info via --help doesn't show up because
29883         coreutils uses its own custom emit_bug_reporting_address() implementation
29884         in src/system.h.  If it didn't, it'd look like:
29885           $ ./src/ls --help | tail -n4
29886           Report bugs to <bug-coreutils@gnu.org>.
29887           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29888           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29889           General help using GNU software: <http://www.gnu.org/gethelp/>.
29890         * lib/version-etc.c: Print new information, if provided.
29891         * m4/version-etc.m4: New file.
29892         * modules/version-etc (Files): Add m4/version-etc.m4.
29893         (configure.ac): Add gl_VERSION_ETC.
29894
29895 2009-05-31  Bruno Haible  <bruno@clisp.org>
29896
29897         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29898         and 'int64_t'.
29899         * modules/alignof-tests (Dependencies): Add stdint.
29900         Reported by Eric Blake.
29901
29902 2009-05-31  Bruno Haible  <bruno@clisp.org>
29903
29904         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29905         restriction due to compiler bugs.
29906         Reported by Eric Blake.
29907
29908 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29909             Bruno Haible  <bruno@clisp.org>
29910
29911         Fix test-alignof failure.
29912         * lib/alignof.h (alignof_slot): New macro.
29913         (alignof_type): New macro, with the same semantics as the previous
29914         'alignof'.
29915         (alignof): Alias to alignof_slot.
29916         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29917         check that the results are usable as constant expressions.
29918
29919 2009-05-31  Bruno Haible  <bruno@clisp.org>
29920
29921         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29922         * tests/test-memchr.c (main): Check that memchr does not read past the
29923         first occurrence of the byte.
29924         * tests/test-strstr.c (main): Update comment.
29925         Suggested by Eric Blake.
29926
29927 2009-05-30  Bruno Haible  <bruno@clisp.org>
29928
29929         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29930         detail how to use dumpbin.
29931         Reported by David Byron <dbyron@dbyron.com>.
29932
29933 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29934
29935         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29936
29937 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29938
29939         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29940
29941 2009-05-28  Bruno Haible  <bruno@clisp.org>
29942
29943         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29944         build-aux/ files.
29945
29946 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29947
29948         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29949
29950 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29951
29952         * gnulib-tool (sed_transform_main_lib_file)
29953         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29954         regexps.
29955
29956 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29957
29958         * tests/test-strstr.c: Add another self-test.
29959         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29960         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29961
29962 2009-05-23  Bruno Haible  <bruno@clisp.org>
29963
29964         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29965         change.
29966
29967 2009-05-21  Bruno Haible  <bruno@clisp.org>
29968
29969         Simplify use of mode_t varargs.
29970         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29971         uses 'mode_t' or 'int'.
29972         * lib/openat.c (openat): Likewise.
29973         * lib/open-safer.c (open_safer): Likewise.
29974         * m4/mode_t.m4: New file.
29975         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29976         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29977         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29978         * modules/open (Files): Add m4/mode_t.m4.
29979         * modules/openat (Files): Likewise.
29980         * modules/fcntl-safer (Files): Likewise.
29981         Suggested by Eric Blake.
29982
29983 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29984
29985         * doc/glibc-functions/fallocate.texi: New file.
29986         * doc/gnulib.texi: Include it.
29987
29988 2009-05-21  Eric Blake  <ebb9@byu.net>
29989             Bruno Haible  <bruno@clisp.org>
29990
29991         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29992         invocations.
29993         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29994
29995 2009-05-21  Eric Blake  <ebb9@byu.net>
29996             Bruno Haible  <bruno@clisp.org>
29997
29998         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29999         include_next. Fix of 2008-11-20 commit.
30000         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
30001         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
30002         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
30003         NEXT_MATH_H.
30004         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
30005         instead of NEXT_MATH_H.
30006
30007 2009-05-21  Bruno Haible  <bruno@clisp.org>
30008
30009         Avoid redefinition warnings for SIZE_MAX.
30010         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
30011         Reported by Simon Josefsson.
30012
30013 2009-05-21  Bruno Haible  <bruno@clisp.org>
30014
30015         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
30016         AC_CACHE_VAL.
30017
30018 2009-05-20  Bruno Haible  <bruno@clisp.org>
30019
30020         Make zeroptr.h work on mingw.
30021         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
30022         mprotect.
30023         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
30024         * modules/memchr2-tests (configure.ac): Likewise.
30025         * modules/memcmp-tests (configure.ac): Likewise.
30026         * modules/memmem-tests (configure.ac): Likewise.
30027         * modules/memrchr-tests (configure.ac): Likewise.
30028         Reported by Simon Josefsson.
30029
30030 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30031
30032         * tests/test-glob.c: Include string.h for strcmp prototype.
30033
30034 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30035
30036         * modules/getdelim (Depends-on): Add explicit stdint, although it
30037         was implicitly already pulled in via realloc-posix.
30038         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
30039
30040 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30041
30042         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
30043         G. Christensen" <tgc@jupiterrise.com>.
30044         * m4/sys_socket_h.m4: Check for sa_family_t.
30045         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
30046         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
30047         * tests/test-sys_socket.c: Check that sa_family_t works.
30048
30049 2009-05-18  Eric Blake  <ebb9@byu.net>
30050
30051         maint.mk: allow gnulib_dir in VPATH build
30052         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
30053
30054 2009-05-15  Jim Meyering  <meyering@redhat.com>
30055
30056         maint.mk: Give gnulib_dir a default definition.
30057         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
30058         Thus, most packages no longer need to specify this variable in cfg.mk
30059
30060 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
30061
30062         rename.m4: fix typos that would make non-mingw cross-configure fail
30063         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
30064
30065 2009-05-13  Eric Blake  <ebb9@byu.net>
30066
30067         mmap-anon: avoid out-of-order autoconf expansion
30068         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
30069         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
30070         * modules/memchr-tests (Depends-on): Add extensions.
30071         * modules/memchr2-tests (Depends-on): Add extensions.
30072         * modules/memcmp-tests (Depends-on): Add extensions.
30073         * modules/memmem-tests (Depends-on): Add extensions.
30074         * modules/memrchr-tests (Depends-on): Add extensions.
30075
30076 2009-05-13  Bruno Haible  <bruno@clisp.org>
30077
30078         Make some tests ISO C 99 compliant.
30079         * tests/zerosize-ptr.h: New file.
30080         * tests/test-memchr.c: Include zerosize-ptr.h.
30081         (main): Use a zero-size object pointer instead of NULL.
30082         * tests/test-memchr2.c: Include zerosize-ptr.h.
30083         (main): Use a zero-size object pointer instead of NULL.
30084         * tests/test-memcmp.c: Include zerosize-ptr.h.
30085         (main): Use a zero-size object pointer instead of NULL.
30086         * tests/test-memmem.c: Include zerosize-ptr.h.
30087         (main): Use a zero-size object pointer instead of NULL.
30088         * tests/test-memrchr.c: Include zerosize-ptr.h.
30089         (main): Use a zero-size object pointer instead of NULL.
30090         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
30091         m4/mmap-anon.m4.
30092         (Depends-on): Add getpagesize.
30093         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30094         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
30095         m4/mmap-anon.m4.
30096         (Depends-on): Add getpagesize.
30097         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30098         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
30099         m4/mmap-anon.m4.
30100         (Depends-on): Add getpagesize.
30101         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30102         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
30103         m4/mmap-anon.m4.
30104         (Depends-on): Add getpagesize.
30105         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30106         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
30107         m4/mmap-anon.m4.
30108         (Depends-on): Add getpagesize.
30109         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30110
30111 2009-05-12  Bruno Haible  <bruno@clisp.org>
30112
30113         Tests for module 'alignof'.
30114         * modules/alignof-tests: New file.
30115         * tests/test-alignof.c: New file.
30116
30117 2009-05-12  Bruno Haible  <bruno@clisp.org>
30118
30119         Fix alignof macro.
30120         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
30121         vendor compilers that are always correct.
30122
30123 2009-05-12  Bruno Haible  <bruno@clisp.org>
30124
30125         Make the MAP_ANONYMOUS detection work on HP-UX 11.
30126         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
30127         not whether its fully works.
30128
30129 2009-05-12  Bruno Haible  <bruno@clisp.org>
30130
30131         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
30132
30133 2009-05-12  Jim Meyering  <meyering@redhat.com>
30134
30135         * top/maint.mk: Adjust backslash alignment.
30136
30137 2009-05-11  Simon Josefsson  <simon@josefsson.org>
30138
30139         * top/maint.mk: Make $(srcdir)/build-aux configurable.
30140
30141 2009-05-11  Eric Blake  <ebb9@byu.net>
30142
30143         argp: avoid undefined behavior
30144         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
30145         macros.
30146
30147 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30148
30149         * tests/test-vc-list-files-git.sh: Do git config of user.email and
30150         user.name to prevent git commit from complaining.
30151
30152 2009-05-10  Bruno Haible  <bruno@clisp.org>
30153
30154         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
30155         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
30156         it rewrites every file name only once.
30157         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
30158
30159 2009-05-08  Bruno Haible  <bruno@clisp.org>
30160
30161         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
30162         instead of 'max'.
30163
30164 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30165
30166         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
30167         sockaddr_storage test.
30168
30169 2009-05-07  Simon Josefsson  <simon@josefsson.org>
30170
30171         * modules/sys_socket (Makefile.am): Substitute
30172         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
30173         * m4/sys_socket_h.m4: Check for sockaddr_storage.
30174         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
30175         * tests/test-sys_socket.c: Check sockaddr_storage.
30176
30177 2009-05-08  Bruno Haible  <bruno@clisp.org>
30178
30179         New module 'alignof'.
30180         * lib/alignof.h: New file.
30181         * modules/alignof: New file.
30182
30183 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30184             Bruno Haible  <bruno@clisp.org>
30185
30186         Fix test-file-has-acl on FreeBSD.
30187         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
30188         mask is implicitly added.
30189         * tests/test-file-has-acl.c: Include <signal.h>.
30190         (main): Terminate the test after 5 seconds.
30191         * modules/acl-tests (configure.ac): Check for alarm function.
30192
30193 2009-05-04  Bruno Haible  <bruno@clisp.org>
30194
30195         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
30196         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
30197         * modules/errno (configure.ac): Drop AC_REQUIRE.
30198         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
30199         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
30200
30201 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30202
30203         * modules/glob-tests: New module.
30204         * tests/test-glob.c: Add.
30205
30206 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30207
30208         * modules/fnmatch-tests: New module.
30209         * tests/test-fnmatch.c: Add.
30210
30211 2009-05-04  Eric Blake  <ebb9@byu.net>
30212
30213         maint: make the new no-submodule-changes rule VPATH-safe
30214         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
30215
30216 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30217             Bruno Haible  <bruno@clisp.org>
30218
30219         acl: Fix infinite loop on FreeBSD.
30220         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
30221         of return value from acl_get_entry.
30222         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
30223         Likewise.
30224
30225 2009-05-03  Bruno Haible  <bruno@clisp.org>
30226
30227         * lib/acl-internal.h (acl_entries): Clarify return value.
30228         * lib/acl_entries.c (acl_entries): Likewise.
30229
30230 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30231
30232         Bug fix in acl module.
30233         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
30234
30235 2009-05-03  Bruno Haible  <bruno@clisp.org>
30236
30237         Create gperf-generated file in the source dir, not in the build dir.
30238         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
30239         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
30240         * modules/unicase/locale-language (unicase/locale-languages.h):
30241         Likewise.
30242         * modules/unicase/special-casing (unicase/special-casing-table.h):
30243         Likewise.
30244         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
30245         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
30246         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
30247         Reported by Ralf Wildenhues.
30248
30249 2009-05-03  Bruno Haible  <bruno@clisp.org>
30250
30251         * modules/fnmatch (Description, configure.ac): Taken from
30252         fnmatch-posix.
30253         * modules/fnmatch-posix: Turn into a symbolic reference to the
30254         'fnmatch' module, and deprecate.
30255         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
30256
30257 2009-05-03  Bruno Haible  <bruno@clisp.org>
30258
30259         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
30260         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
30261         Reported by Ralf Wildenhues.
30262
30263 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30264
30265         * m4/fnmatch.m4: Fix fnmatch re-define.
30266
30267 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30268
30269         priv-set: new module and tests; adapt write-any-file
30270         * lib/priv-set.c: New file.
30271         * lib/priv-set.h: New file.
30272         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
30273         * lib/write-any-file.c: Simplify by using priv-set module.
30274         * m4/priv-set.m4: New file.
30275         * modules/priv-set: New file.
30276         * modules/unlinkdir: Add dependency on priv-set module.
30277         * modules/write-any-file: Likewise.
30278
30279         Tests for module 'priv-set'.
30280         * modules/priv-set-tests: New file.
30281         * tests/test-priv-set.c: New file.
30282
30283 2009-05-03  Jim Meyering  <meyering@redhat.com>
30284             Bruno Haible  <bruno@clisp.org>
30285
30286         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
30287         use the converted UTF-8 variant of the name instead.
30288
30289 2009-05-03  Jim Meyering  <meyering@redhat.com>
30290
30291         tests: tighten some getdate tests
30292         * tests/test-getdate.c (main): Tighten tests: require equality,
30293         not just greater than.  Set TZ envvar to UTC0.
30294
30295 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30296
30297         getdate: correctly interpret "next monday" when run on a Monday
30298         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
30299         that e.g., "next tues" (when run on a tuesday) results in a date
30300         that is one week in the future, and not today's date.
30301         I.e., add a week when the wday is the same as the current one.
30302         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
30303         and earlier by Martin Bernreuther and Jan Minář.
30304         * tests/test-getdate.c (main): Check that "next DAY" is always in
30305         the future and that "last DAY" is always in the past.
30306
30307 2009-05-02  Jim Meyering  <meyering@redhat.com>
30308
30309         build: ensure that a release build fails when a submodule is unclean
30310         * top/maint.mk (no-submodule-changes): New rule.
30311         (alpha beta major): Depend on it.
30312
30313 2009-05-02  Bruno Haible  <bruno@clisp.org>
30314
30315         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
30316         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
30317         shell variable gl_fnmatch_required to detect which variant is
30318         requested.
30319         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
30320         gl_FUNC_FNMATCH_POSIX.
30321         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
30322         exclude fnmatch-posix.
30323
30324 2009-05-02  Bruno Haible  <bruno@clisp.org>
30325
30326         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
30327         * modules/mbsrtowcs (License): Change to LGPLv2+.
30328         * modules/strnlen1 (License): Likewise.
30329         Reported by Simon Josefsson.
30330
30331 2009-05-02  Bruno Haible  <bruno@clisp.org>
30332
30333         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
30334         "cross".
30335         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
30336         gnulib-tool was called with option --source-base=lib.
30337
30338 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30339
30340         Use automake *-local hooks without commands, for extensibility.
30341         * modules/localcharset (Makefile.am): Rename install-exec-local
30342         rule to install-exec-localcharset, and make it a prerequisite of
30343         install-exec-local.  Likewise, rename the uninstall-local rule to
30344         uninstall-localcharset, and make it a prerequisite of the former.
30345
30346 2009-05-01  Bruno Haible  <bruno@clisp.org>
30347
30348         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
30349         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30350         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
30351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
30352         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
30353         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30354         m4/locale-zh.m4, m4/codeset.m4.
30355
30356         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30357         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
30358         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30359         m4/locale-zh.m4.
30360
30361         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
30362         REPLACE_WCRTOMB if mbstate_t must be replaced.
30363         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
30364         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
30365
30366 2009-05-01  Bruno Haible  <bruno@clisp.org>
30367
30368         Avoid compiler warnings when redefining macros defined by <libintl.h>.
30369         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
30370         dngettext, dcngettext, textdomain, bindtextdomain,
30371         bind_textdomain_codeset): Undefine before redefining.
30372
30373 2009-04-30  Bruno Haible  <bruno@clisp.org>
30374
30375         Fix bug introduced on 2009-04-25.
30376         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
30377         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
30378         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
30379         is defined.
30380         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
30381         is defined.
30382         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
30383         is defined.
30384         Reported by Elbert_Pol <elbert.pol@gmail.com>.
30385
30386 2009-04-28  Bruno Haible  <bruno@clisp.org>
30387
30388         Comment tweaks.
30389         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
30390         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
30391         * lib/unicase.h (u*_casexfrm): Likewise.
30392         Reported by Paolo Bonzini.
30393
30394 2009-04-28  Bruno Haible  <bruno@clisp.org>
30395
30396         Fix a compilation error.
30397         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
30398         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30399         Reported by Jim Meyering.
30400
30401 2009-04-27  Bruno Haible  <bruno@clisp.org>
30402
30403         New module 'libunistring'.
30404         * modules/libunistring: New file.
30405         * m4/libunistring.m4: New file.
30406         * MODULES.html.sh (Unicode string functions): Add it.
30407
30408 2009-04-27  Eric Blake  <ebb9@byu.net>
30409
30410         maint.mk: allow package-specific header to provide <config.h>
30411         * top/maint.mk (sc_require_config_h): New variable.
30412         (sc_require_config_h, sc_require_config_h_first): Use it.
30413
30414 2009-04-27  Simon Josefsson  <simon@josefsson.org>
30415
30416         * top/maint.mk (sc_avoid_if_before_free): Except
30417         useless-if-before-free script.
30418
30419 2009-04-27  Eric Blake  <ebb9@byu.net>
30420
30421         maintainer-makefile: depend on all required helper scripts
30422         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
30423         useless-if-before-free.
30424         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
30425         version, rather than assuming gnulib checkout is available.
30426         Reported by Simen Josefsson.
30427
30428 2009-04-26  Bruno Haible  <bruno@clisp.org>
30429
30430         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
30431         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
30432         "../" or "..".
30433
30434 2009-04-26  Bruno Haible  <bruno@clisp.org>
30435
30436         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
30437         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
30438         AC_LIB_HAVE_LINKFLAGS.
30439
30440 2009-04-26  Bruno Haible  <bruno@clisp.org>
30441
30442         Simplify calling convention of u*_conv_from_encoding.
30443         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
30444         u32_conv_from_encoding): Expect a resultbuf argument and return the
30445         result directly as a pointer.
30446         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
30447         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
30448         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
30449         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
30450         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
30451         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30452         Update.
30453         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
30454         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
30455         * lib/vasnprintf.c (VASNPRINTF): Update.
30456         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
30457         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
30458         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
30459         * NEWS: Mention the change.
30460
30461 2009-04-26  Bruno Haible  <bruno@clisp.org>
30462
30463         Simplify calling convention of u*_conv_to_encoding.
30464         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30465         u32_conv_to_encoding): Expect a resultbuf argument and return the
30466         result directly as a pointer.
30467         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30468         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
30469         freeing scaled_offsets if mem_iconveha failed.
30470         * lib/unicase/u-casexfrm.h (FUNC): Update.
30471         * lib/uninorm/u-normxfrm.h (FUNC): Update.
30472         * lib/vasnprintf.c (VASNPRINTF): Update.
30473         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
30474         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
30475         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
30476         * NEWS: Mention the change.
30477
30478 2009-04-26  Bruno Haible  <bruno@clisp.org>
30479
30480         Avoid test failures on AIX and OSF/1.
30481         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
30482         malloc(0).
30483         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30484         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30485         Likewise.
30486         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
30487         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
30488         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
30489         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
30490         * doc/posix-functions/malloc.texi: Document the portability problem
30491         related to malloc(0).
30492
30493 2009-04-26  Bruno Haible  <bruno@clisp.org>
30494
30495         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
30496         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
30497         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
30498
30499 2009-04-25  Bruno Haible  <bruno@clisp.org>
30500
30501         Avoid link error when creating a namespace clean library.
30502         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
30503         as macro with arguments if already defined as an alias.
30504         * lib/signbitf.c (gl_signbitf): Don't undefine.
30505         * lib/signbitd.c (gl_signbitd): Don't undefine.
30506         * lib/signbitl.c (gl_signbitl): Don't undefine.
30507
30508 2009-04-25  Jim Meyering  <meyering@redhat.com>
30509
30510         vc-list-files: fix another quoting bug
30511         * build-aux/vc-list-files: Avoid sed backslash expansion
30512         of pathological directory names.
30513
30514 2009-04-25  Eric Blake  <ebb9@byu.net>
30515
30516         vc-list-files: fix shell quoting error
30517         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
30518         timestamp.
30519
30520 2009-04-25  Jim Meyering  <meyering@redhat.com>
30521
30522         vc-list-files: restore lost functionality with subdir argument
30523         * build-aux/vc-list-files: When given a non-"." sub-directory
30524         argument, substitute the $dir/ prefix back onto each resulting name.
30525         Otherwise, coreutils' root_tests check would fail.
30526
30527 2009-04-24  Eric Blake  <ebb9@byu.net>
30528
30529         vc-list-files: ignore git symlinks
30530         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
30531         than ls-files, to ignore git symlinks.
30532
30533         maint.mk: import improvements from m4
30534         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
30535         (move_if_change): Delete unused macro.
30536         (news-date-check, vc-diff-check): Support VPATH builds.
30537         (announcement): Likewise.  Split --bootstrap-tools list...
30538         (boostrap-tools): ...into separate list, which can be overridden
30539         in cfg.mk.
30540         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
30541         requiring dependency on useless-if-before-free module.
30542         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
30543         Support VPATH builds.
30544
30545 2009-04-24  Jim Meyering  <meyering@redhat.com>
30546
30547         maint.mk: remove coreutils-specific rules and variables
30548         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
30549         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
30550         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
30551
30552         maint.mk: remove obsolete rule
30553         * top/maint.mk (rel-check): Remove rule.
30554         (WGET, WGETFLAGS): Remove now-unused variables.
30555
30556 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30557
30558         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
30559         consistency.
30560
30561         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
30562         '$(PATH_SEPARATOR)' instead of ':'.
30563
30564 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30565
30566         * lib/getopt1.c (main): Use 'const' for static array.
30567
30568 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30569
30570         * top/maint.mk: Sync with coreutils.
30571         * NEWS: Explain incompatibilities.
30572
30573 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30574             Bruno Haible  <bruno@clisp.org>
30575
30576         Fix cross-compilation results.
30577         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
30578         statement, as third argument of AC_TRY_RUN.
30579         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30580         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30581         Likewise.
30582         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30583         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
30584         Likewise.
30585         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30586         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
30587         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
30588
30589 2009-04-20  Bruno Haible  <bruno@clisp.org>
30590
30591         Avoid test failure on mingw.
30592         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
30593
30594 2009-04-20  Bruno Haible  <bruno@clisp.org>
30595
30596         Avoid compilation error on mingw.
30597         * modules/localename-tests (Depends-on): Add locale.
30598
30599 2009-04-19  Bruno Haible  <bruno@clisp.org>
30600
30601         Support for building a shared library on Windows platforms.
30602         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
30603         (main): Test the presence of UNINORM_NFC here.
30604         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
30605         (main): Test the presence of UNINORM_NFD here.
30606         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
30607         (main): Test the presence of UNINORM_NFKC here.
30608         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
30609         (main): Test the presence of UNINORM_NFKD here.
30610
30611 2009-04-19  Bruno Haible  <bruno@clisp.org>
30612
30613         Avoid a compiler warning.
30614         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
30615         Change type of variable 'sequence'.
30616
30617 2009-04-19  Bruno Haible  <bruno@clisp.org>
30618
30619         * modules/configmake (Makefile.am): When the contents of configmake.h
30620         does not change, arrange to preserve its modification time.
30621
30622 2009-04-17  Simon Josefsson  <simon@josefsson.org>
30623
30624         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
30625         gettext domain.
30626
30627 2009-04-16  Jim Meyering  <meyering@redhat.com>
30628
30629         useless-if-before-free: improve conversion code
30630         * build-aux/useless-if-before-free: Adjust code-in-comment to match
30631         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
30632
30633 2009-04-14  Bruno Haible  <bruno@clisp.org>
30634
30635         * modules/fcntl (Depends-on): Add extensions.
30636         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
30637
30638 2009-04-12  Ben Pfaff  <blp@gnu.org>
30639
30640         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
30641         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
30642
30643 2009-03-20  Ben Pfaff  <blp@gnu.org>
30644
30645         Make rename replace existing destinations on Windows.
30646         * m4/rename.m4: Add test for Mingw.
30647         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30648         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30649         * doc/posix-functions/rename.texi: Document.
30650
30651 2009-04-10  Bruno Haible  <bruno@clisp.org>
30652
30653         New include file "iconveh.h".
30654         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30655         * lib/striconveh.h: Include it.
30656         (enum iconv_ilseq_handler): Remove definition.
30657         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30658         striconveh.h.
30659         * lib/striconveha.c: Include striconveh.h.
30660         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30661         * modules/striconveh (Files): Add lib/iconveh.h.
30662         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30663         lib/striconveh.h.
30664
30665 2009-04-10  Bruno Haible  <bruno@clisp.org>
30666
30667         * lib/uniconv.h: Update comment.
30668
30669 2009-04-10  Bruno Haible  <bruno@clisp.org>
30670
30671         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30672         always.
30673         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30674         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30675         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30676         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30677         "unistring-notinline.h", so that the function gets defined always.
30678         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30679         * lib/unistr/u8-uctomb.c: Likewise.
30680         * lib/unistr/u16-mbtouc.c: Likewise.
30681         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30682         * lib/unistr/u16-uctomb.c: Likewise.
30683         * lib/unistr/u32-mbtouc.c: Likewise.
30684         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30685         * lib/unistr/u32-uctomb.c: Likewise.
30686
30687 2009-04-10  Bruno Haible  <bruno@clisp.org>
30688
30689         Mark 'utime' obsolete.
30690         * modules/utime (Status, Notice): New sections.
30691         Suggested by Jim Meyering.
30692
30693         Fix cross-compile guess for utime test.
30694         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30695         autoconf.
30696         * doc/posix-functions/utime.texi: Give more precisions.
30697         Reported by Jan <ipif@ymail.com>.
30698
30699 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30700
30701         filevercmp: correct today's change
30702         * lib/filevercmp.c: Also handle coreutils' test inputs.
30703         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30704
30705         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30706         for reporting it.
30707         * lib/filevercmp.c: Special handle for "", "." and "..".
30708         * tests/test-filevercmp.c: Enlarge the set suite.
30709
30710 2009-04-07  Jim Meyering  <meyering@redhat.com>
30711
30712         useless-if-before-free: show how to remove braced useless free, too
30713         * build-aux/useless-if-before-free: still only in a comment, though.
30714
30715 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30716
30717         maint.mk: import changes to syntax-check macros from coreutils
30718         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30719         Use them in the relevant macros.
30720
30721 2009-04-06  Bruno Haible  <bruno@clisp.org>
30722
30723         Fix unportable use of bit-fields.
30724         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30725         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30726         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30727
30728 2009-04-06  Bruno Haible  <bruno@clisp.org>
30729
30730         Avoid test failures on AIX and OSF/1.
30731         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30732         that malloc(0) = NULL.
30733         * tests/unicase/test-u8-tolower.c (check): Likewise.
30734         * tests/unicase/test-u8-totitle.c (check): Likewise.
30735         * tests/unicase/test-u8-toupper.c (check): Likewise.
30736         * tests/unicase/test-u16-casefold.c (check): Likewise.
30737         * tests/unicase/test-u16-tolower.c (check): Likewise.
30738         * tests/unicase/test-u16-totitle.c (check): Likewise.
30739         * tests/unicase/test-u16-toupper.c (check): Likewise.
30740         * tests/unicase/test-u32-casefold.c (check): Likewise.
30741         * tests/unicase/test-u32-tolower.c (check): Likewise.
30742         * tests/unicase/test-u32-totitle.c (check): Likewise.
30743         * tests/unicase/test-u32-toupper.c (check): Likewise.
30744         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30745         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30746         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30747         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30748         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30749         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30750         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30751         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30752         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30753         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30754         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30755         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30756
30757 2009-04-05  Bruno Haible  <bruno@clisp.org>
30758
30759         Work around an autoconf limitation.
30760         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30761         comment line if it would be longer than 3 KB.
30762
30763 2009-04-05  Bruno Haible  <bruno@clisp.org>
30764
30765         Avoid test failure with libiconv-1.13.
30766         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30767         of the expected test results.
30768
30769 2009-04-05  Bruno Haible  <bruno@clisp.org>
30770
30771         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30772         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30773         that it should be installed.
30774
30775 2009-04-05  Bruno Haible  <bruno@clisp.org>
30776
30777         * gnulib-tool: New option --copy-file.
30778         (func_usage): Document it.
30779         (func_dest_tmpfilename): Moved out of func_import.
30780         (func_add_file, func_update_file): New functions, extracted from
30781         func_import.
30782         (func_import): Update.
30783
30784 2009-04-05  Karl Berry  <karl@gnu.org>
30785
30786         * README: prominently mention gnulib-tool.
30787         Rearrange sections so getting the code is near the top.
30788
30789 2009-04-05  Bruno Haible  <bruno@clisp.org>
30790
30791         * lib/unicase.h: Mention u*_cmp2.
30792         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30793         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30794         * lib/unicase/ulc-casecmp.c: Likewise.
30795         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30796         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30797         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30798         unistr/u8-cmp.
30799         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30800         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30801         unistr/u16-cmp.
30802         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30803         unistr/u32-cmp.
30804
30805         * lib/uninorm.h: Mention u*_cmp2.
30806         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30807         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30808         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30809         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30810         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30811         unistr/u8-cmp.
30812         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30813         unistr/u16-cmp.
30814         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30815         unistr/u32-cmp.
30816
30817         New module 'unistr/u32-cmp2'.
30818         * lib/unistr/u32-cmp2.c: New file.
30819         * modules/unistr/u32-cmp2: New file.
30820
30821         New module 'unistr/u16-cmp2'.
30822         * lib/unistr/u16-cmp2.c: New file.
30823         * modules/unistr/u16-cmp2: New file.
30824
30825         New module 'unistr/u8-cmp2'.
30826         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30827         * lib/unistr/u8-cmp2.c: New file.
30828         * lib/unistr/u-cmp2.h: New file.
30829         * modules/unistr/u8-cmp2: New file.
30830
30831 2009-04-05  Bruno Haible  <bruno@clisp.org>
30832
30833         * lib/unictype.h (uc_property_is_valid): New macro.
30834         * tests/unictype/test-pr_byname.c (main): Use it.
30835
30836         * lib/unistr.h: Doc fixes.
30837         * lib/uniconv.h: Doc fixes.
30838         * lib/unictype.h: Doc fixes.
30839
30840 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30841
30842         Port coreutils 7.2 to Solaris 8.
30843
30844         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30845         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30846         for Solaris 8.  This is a bit of a hack, as it means it's the
30847         caller's responsibility to add -lnsl if needed, but most likely it
30848         won't be needed since only getaddrinfo uses this and getaddrinfo
30849         isn't needed on Solaris 8.
30850
30851         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30852         problem to Solaris 8 encountered with coreutils 7.2, which
30853         resulted in a message "fnmatch.c:292: warning: passing argument 4
30854         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30855         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30856
30857 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30858
30859         * m4/ld-version-script.m4: Add FIXME comment.
30860
30861 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30862
30863         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30864         SOVERSION variable.
30865
30866 2009-04-02  Bruno Haible  <bruno@clisp.org>
30867
30868         * Makefile (info, html, dvi, pdf): Combine the rules.
30869         Suggested by Jim Meyering.
30870
30871 2009-04-01  Bruno Haible  <bruno@clisp.org>
30872
30873         * Makefile (info, html, dvi, pdf): New targets.
30874         Reported by Reuben Thomas <rrt@sc3d.org>.
30875
30876 2009-04-01  Bruno Haible  <bruno@clisp.org>
30877
30878         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30879         can be put into PATH.
30880         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30881
30882 2009-04-01  Bruno Haible  <bruno@clisp.org>
30883
30884         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30885
30886 2009-04-01  Bruno Haible  <bruno@clisp.org>
30887
30888         Rename module 'visibility'.
30889         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30890         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30891         * doc/gnulib.texi: Update.
30892         * MODULES.html.sh (Misc): Update.
30893         * NEWS: Mention the change.
30894
30895 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30896
30897         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30898         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30899         Eric Blake <ebb9@byu.net> for review.
30900         * MODULES.html.sh: Add lib-msvc-compat.
30901         * doc/gnulib.texi: Link to new section.
30902         * m4/ld-output-def.m4: New file.
30903         * doc/ld-output-def.texi: New file.
30904
30905 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30906
30907         Rename ld-version-script to lib-symbol-versions.  Suggested by
30908         Bruno Haible <bruno@clisp.org>.
30909         * modules/ld-version-script: Renamed to lib-symbol-versions.
30910         * doc/ld-version-script.texi: Fix module name.
30911         * MODULES.html.sh: Add lib-symbol-versions.
30912
30913 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30914
30915         * modules/u64-tests: New file.
30916         * tests/test-u64.c: New file.
30917
30918 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30919
30920         * MODULES.html.sh: Mention u64.
30921         * modules/u64: New module.
30922         * modules/crypto/sha512: Depend on u64 module instead of providing
30923         u64.h.
30924
30925 2009-03-27  Eric Blake  <ebb9@byu.net>
30926
30927         test-strerror: make debugging EAI_SYSTEM easier
30928         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30929         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30930         failure was EAI_SYSTEM.
30931
30932 2009-03-25  Bruno Haible  <bruno@clisp.org>
30933
30934         Fix a problem with --enable-relocatable on Solaris 7.
30935         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30936         since 2008-02-24.
30937
30938 2009-03-25  Eric Blake  <ebb9@byu.net>
30939
30940         test-sockets: avoid gcc warning
30941         * tests/test-sockets.c (main): Silence compiler warning.
30942
30943 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30944
30945         New modules nproc, pthread, contributed by Glen Lenker.
30946
30947         * MODULES.html.sh: Add pthread, nproc.
30948         * lib/nproc.c: New file.
30949         * lib/nproc.h: New file.
30950         * lib/pthread.in.h: New file.
30951         * m4/pthread.m4: New file.
30952         * modules/nproc: New file.
30953         * modules/pthread: New file.
30954
30955 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30956
30957         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30958         New variable.
30959
30960 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30961
30962         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30963         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30964         * tests/test-filevercmp.c: Add tests for backup suffixes.
30965
30966 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30967
30968         * modules/stdlib (Depends-on): Add stdint, needed when defining
30969         struct random_data on, for example, HP-UX 10.20.  Reported by
30970         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30971
30972 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30973
30974         * lib/readline.c (readline): Call fflush on stdout after printing
30975         prompt.
30976
30977 2009-03-20  Bruno Haible  <bruno@clisp.org>
30978
30979         Remove dependency from 'close' module to -lws2_32 on native Windows.
30980         * lib/close-hook.h: New file.
30981         * lib/close-hook.c: New file.
30982         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30983         w32sock.h.
30984         (_gl_close_fd_maybe_socket): Remove function.
30985         (rpl_close): Invoke execute_all_close_hooks instead of
30986         _gl_close_fd_maybe_socket.
30987         * lib/sockets.c: Include close-hook.h, w32sock.h.
30988         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30989         (close_sockets_hook): New variable.
30990         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30991         (gl_sockets_cleanup): Unregister it.
30992         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30993         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30994         * modules/close-hook: New file.
30995         * modules/close (Files): Remove lib/w32sock.h.
30996         (Depends-on): Add close-hook.
30997         (Link): Remove section.
30998         * modules/sockets (Files): Add lib/w32sock.h.
30999         (Depends-on): Add close-hook.
31000         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
31001         invocation.
31002         * NEWS: Mention that LIB_CLOSE is gone.
31003
31004 2009-03-23  Eric Blake  <ebb9@byu.net>
31005
31006         signal-tests: test previous patch
31007         * tests/test-signal.c: New file.
31008         * modules/signal-tests: Likewise.
31009
31010         signal.h: always support 'volatile sig_atomic_t'
31011         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
31012         (gl_SIGNAL_H_DEFAULTS): Add a default.
31013         * modules/signal (Makefile.am): Substitute if needed.
31014         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
31015         users can blindly add volatile.
31016         * doc/posix-headers/signal.texi (signal.h): Document it.
31017         Reported by Matthew Woehlke.
31018
31019 2009-03-23  Jim Meyering  <meyering@redhat.com>
31020
31021         pathmax: PATH_MAX: use pathconf only when available
31022         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
31023         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
31024         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
31025         This avoids a link failure in a PSP cross-compilation environment
31026         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
31027
31028         * lib/vasnprintf.c (divide): Fix typo in comment.
31029
31030 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31031
31032         * gnulib-tool (func_filter_filelist): Fix comment.
31033
31034 2009-03-20  Bruno Haible  <bruno@clisp.org>
31035
31036         Make sockets.h self-contained.
31037         * lib/sockets.c: Include sockets.h first.
31038         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
31039
31040 2009-03-19  Eric Blake  <ebb9@byu.net>
31041
31042         doc: mention more functions added in cygwin 1.7.0
31043         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
31044         addition.
31045         * doc/posix-functions/log2f.texi: Likewise.
31046
31047 2009-03-19  Jim Meyering  <meyering@redhat.com>
31048
31049         fsusage: avoid syntax error due to statement-before-declaration
31050         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
31051         after all declarations.  Reported by Matthew Woehlke in
31052         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
31053
31054 2009-03-18  Eric Blake  <ebb9@byu.net>
31055
31056         build-aux/compile: sync from automake
31057         * build-aux/compile: New file, from automake.
31058         * config/srclist.txt: Mention build-aux/compile.
31059
31060 2009-03-17  Bruno Haible  <bruno@clisp.org>
31061
31062         * lib/git-merge-changelog.c: Fix typo in comment.
31063         Reported by Reuben Thomas <rrt@sc3d.org>.
31064
31065 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
31066
31067         * m4/regex.m4: update and improve help for
31068         --without-included-regex.
31069
31070 2009-03-17  Simon Josefsson  <simon@josefsson.org>
31071
31072         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
31073         failure on missing include files.
31074
31075 2009-03-17  Eric Blake  <ebb9@byu.net>
31076
31077         doc: mention more functions added in cygwin 1.7.0
31078         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
31079         addition.
31080         * doc/posix-functions/fwscanf.texi: Likewise.
31081         * doc/posix-functions/swprintf.texi: Likewise.
31082         * doc/posix-functions/swscanf.texi: Likewise.
31083         * doc/posix-functions/vfwprintf.texi: Likewise.
31084         * doc/posix-functions/vfwscanf.texi: Likewise.
31085         * doc/posix-functions/vswprintf.texi: Likewise.
31086         * doc/posix-functions/vswscanf.texi: Likewise.
31087         * doc/posix-functions/vwprintf.texi: Likewise.
31088         * doc/posix-functions/vwscanf.texi: Likewise.
31089         * doc/posix-functions/wcscasecmp.texi: Likewise.
31090         * doc/posix-functions/wcsdup.texi: Likewise.
31091         * doc/posix-functions/wcsftime.texi: Likewise.
31092         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31093         * doc/posix-functions/wprintf.texi: Likewise.
31094         * doc/posix-functions/wscanf.texi: Likewise.
31095         * doc/glibc-functions/gethostbyname2.texi: Likewise.
31096
31097 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31098
31099         maint.mk: really add $(AM_MAKEFLAGS)
31100         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
31101         was inadvertently omitted in the last commit.
31102         Spotted by Bruno Haible.
31103
31104         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
31105         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
31106         $(AM_MAKEFLAGS)' rather than plain `make'.
31107
31108         gnulib-tool: execute $MAKE not make
31109         * gnulib-tool: Default $MAKE to 'make'.
31110         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
31111         than make.  Initialize $MAKE in the do-autobuild script.
31112
31113         gnulib-tool: use $MAKE not make in generated files
31114         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
31115         make, in generated files.  Initialize $MAKE in the do-autobuild
31116         script.
31117
31118         * top/GNUmakefile (_have-git-version-gen): Fix typo.
31119
31120         GNUmakefile: disable parallelism only for multiple, recursive targets
31121         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
31122         additions in the Makefile.
31123         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
31124         by Automake.
31125         (.NOTPARALLEL): Only disable parallel builds if multiple targets
31126         are listed on the command line and at least one of them is
31127         listed in $(ALL_RECURSIVE_TARGETS).
31128
31129 2009-03-14  Bruno Haible  <bruno@clisp.org>
31130
31131         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
31132         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
31133         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
31134         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
31135         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
31136         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
31137         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
31138         unistr/u8-uctomb.
31139         * modules/unistr/u8-strchr (Depends-on): Likewise.
31140         * modules/unistr/u8-strrchr (Depends-on): Likewise.
31141         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
31142         unistr/u16-uctomb.
31143         * modules/unistr/u16-strchr (Depends-on): Likewise.
31144         * modules/unistr/u16-strrchr (Depends-on): Likewise.
31145
31146 2009-03-12  Bruno Haible  <bruno@clisp.org>
31147
31148         Work around select() bug on Interix 3.5.
31149         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
31150         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
31151         * m4/select.m4: New file.
31152         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
31153         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
31154         * modules/select (Files): Add m4/select.m4.
31155         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
31156         * modules/nanosleep (Depends-on): Add select.
31157         * modules/poll (Depends-on): Likewise.
31158         * doc/posix-functions/select.texi: Mention the Interix bug.
31159         Reported by Markus Duft <mduft@gentoo.org>.
31160
31161         * lib/select.c: Renamed from lib/winsock-select.c.
31162         * modules/select (Files): Add lib/select.c, remove
31163         lib/winsock-select.c.
31164         (configure.ac): Update.
31165
31166 2009-03-12  Jim Meyering  <meyering@redhat.com>
31167
31168         avoid gcc warnings about unused macro definitions
31169         * lib/readtokens.c (STREQ): Remove unused definition.
31170         * lib/xmalloc.c (SIZE_MAX): Likewise.
31171         * lib/openat-die.c (N_): Likewise.
31172         * lib/mountlist.c (SIZE_MAX): Remove definition.
31173         Instead, include <stdint.h>.
31174         * lib/readutmp.c: Likewise.
31175         * modules/readutmp (Depends-on): Add stdint.
31176         * modules/mountlist (Depends-on): Add stdint.
31177         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
31178
31179 2009-03-10  Bruno Haible  <bruno@clisp.org>
31180
31181         Tests for module 'mbmemcasecoll'.
31182         * modules/mbmemcasecoll-tests: New file.
31183         * tests/test-mbmemcasecoll1.sh: New file.
31184         * tests/test-mbmemcasecoll2.sh: New file.
31185         * tests/test-mbmemcasecoll3.sh: New file.
31186         * tests/test-mbmemcasecoll.c: New file.
31187
31188         New module 'mbmemcasecoll'.
31189         * lib/mbmemcasecoll.h: New file.
31190         * lib/mbmemcasecoll.c: New file.
31191         * modules/mbmemcasecoll: New file.
31192
31193         * tests/test-mbmemcasecmp.h: New file, extracted from
31194         tests/test-mbmemcasecmp.c.
31195         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31196         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
31197         (main): Update.
31198         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
31199
31200 2009-03-09  Bruno Haible  <bruno@clisp.org>
31201
31202         Tests for module 'mbmemcasecmp'.
31203         * modules/mbmemcasecmp-tests: New file.
31204         * tests/test-mbmemcasecmp1.sh: New file.
31205         * tests/test-mbmemcasecmp2.sh: New file.
31206         * tests/test-mbmemcasecmp3.sh: New file.
31207         * tests/test-mbmemcasecmp.c: New file.
31208
31209         New module 'mbmemcasecmp'.
31210         * lib/mbmemcasecmp.h: New file.
31211         * lib/mbmemcasecmp.c: New file.
31212         * modules/mbmemcasecmp: New file.
31213
31214 2009-03-09  Bruno Haible  <bruno@clisp.org>
31215
31216         Tests for module 'unicase/ulc-casecoll'.
31217         * modules/unicase/ulc-casecoll-tests: New file.
31218         * tests/unicase/test-ulc-casecoll1.sh: New file.
31219         * tests/unicase/test-ulc-casecoll2.sh: New file.
31220         * tests/unicase/test-ulc-casecoll.c: New file.
31221
31222         New module 'unicase/ulc-casecoll'.
31223         * lib/unicase.h (ulc_casecoll): New declaration.
31224         * lib/unicase/ulc-casecoll.c: New file.
31225         * modules/unicase/ulc-casecoll: New file.
31226
31227         New module 'unicase/ulc-casexfrm'.
31228         * lib/unicase.h (ulc_casexfrm): New declaration.
31229         * lib/unicase/ulc-casexfrm.c: New file.
31230         * modules/unicase/ulc-casexfrm: New file.
31231
31232 2009-03-09  Bruno Haible  <bruno@clisp.org>
31233
31234         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
31235         invocations.
31236
31237         * m4/mbscasecmp.m4: Remove file.
31238         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
31239         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
31240
31241         * m4/mbscasestr.m4: Remove file.
31242         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
31243         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
31244
31245         * m4/mbschr.m4: Remove file.
31246         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
31247         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
31248
31249         * m4/mbscspn.m4: Remove file.
31250         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
31251         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
31252
31253         * m4/mbslen.m4: Remove file.
31254         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
31255         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
31256
31257         * m4/mbsncasecmp.m4: Remove file.
31258         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
31259         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
31260
31261         * m4/mbsnlen.m4: Remove file.
31262         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
31263         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
31264
31265         * m4/mbspbrk.m4: Remove file.
31266         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
31267         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
31268
31269         * m4/mbspcasecmp.m4: Remove file.
31270         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
31271         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
31272
31273         * m4/mbsrchr.m4: Remove file.
31274         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
31275         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
31276
31277         * m4/mbssep.m4: Remove file.
31278         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
31279         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
31280
31281         * m4/mbsspn.m4: Remove file.
31282         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
31283         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
31284
31285         * m4/mbsstr.m4: Remove file.
31286         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
31287         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
31288
31289         * m4/mbstok_r.m4: Remove file.
31290         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
31291         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
31292
31293         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
31294
31295         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
31296         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
31297
31298         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
31299
31300 2009-03-08  Bruno Haible  <bruno@clisp.org>
31301
31302         Tests for module 'unicase/ulc-casecmp'.
31303         * modules/unicase/ulc-casecmp-tests: New file.
31304         * tests/unicase/test-ulc-casecmp1.sh: New file.
31305         * tests/unicase/test-ulc-casecmp2.sh: New file.
31306         * tests/unicase/test-ulc-casecmp.c: New file.
31307
31308         New module 'unicase/ulc-casecmp'.
31309         * lib/unicase.h (ulc_casecmp): New declaration.
31310         * lib/unicase/ulc-casecmp.c: New file.
31311         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
31312         'const SRC_UNIT *'.
31313         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
31314         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
31315         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
31316         * modules/unicase/ulc-casecmp: New file.
31317
31318         Tests for module 'unicase/u32-is-cased'.
31319         * modules/unicase/u32-is-cased-tests: New file.
31320         * tests/unicase/test-u32-is-cased.c: New file.
31321
31322         Tests for module 'unicase/u16-is-cased'.
31323         * modules/unicase/u16-is-cased-tests: New file.
31324         * tests/unicase/test-u16-is-cased.c: New file.
31325
31326         Tests for module 'unicase/u8-is-cased'.
31327         * modules/unicase/u8-is-cased-tests: New file.
31328         * tests/unicase/test-u8-is-cased.c: New file.
31329         * tests/unicase/test-is-cased.h: New file.
31330
31331         New module 'unicase/u32-is-cased'.
31332         * lib/unicase/u32-is-cased.c: New file.
31333         * modules/unicase/u32-is-cased: New file.
31334
31335         New module 'unicase/u16-is-cased'.
31336         * lib/unicase/u16-is-cased.c: New file.
31337         * modules/unicase/u16-is-cased: New file.
31338
31339         New module 'unicase/u8-is-cased'.
31340         * lib/unicase/u8-is-cased.c: New file.
31341         * lib/unicase/u-is-cased.h: New file.
31342         * modules/unicase/u8-is-cased: New file.
31343
31344         Tests for module 'unicase/u32-is-casefolded'.
31345         * modules/unicase/u32-is-casefolded-tests: New file.
31346         * tests/unicase/test-u32-is-casefolded.c: New file.
31347
31348         Tests for module 'unicase/u16-is-casefolded'.
31349         * modules/unicase/u16-is-casefolded-tests: New file.
31350         * tests/unicase/test-u16-is-casefolded.c: New file.
31351
31352         Tests for module 'unicase/u8-is-casefolded'.
31353         * modules/unicase/u8-is-casefolded-tests: New file.
31354         * tests/unicase/test-u8-is-casefolded.c: New file.
31355         * tests/unicase/test-is-casefolded.h: New file.
31356
31357         New module 'unicase/u32-is-casefolded'.
31358         * lib/unicase/u32-is-casefolded.c: New file.
31359         * modules/unicase/u32-is-casefolded: New file.
31360
31361         New module 'unicase/u16-is-casefolded'.
31362         * lib/unicase/u16-is-casefolded.c: New file.
31363         * modules/unicase/u16-is-casefolded: New file.
31364
31365         New module 'unicase/u8-is-casefolded'.
31366         * lib/unicase/u8-is-casefolded.c: New file.
31367         * modules/unicase/u8-is-casefolded: New file.
31368
31369         Tests for module 'unicase/u32-is-titlecase'.
31370         * modules/unicase/u32-is-titlecase-tests: New file.
31371         * tests/unicase/test-u32-is-titlecase.c: New file.
31372
31373         Tests for module 'unicase/u16-is-titlecase'.
31374         * modules/unicase/u16-is-titlecase-tests: New file.
31375         * tests/unicase/test-u16-is-titlecase.c: New file.
31376
31377         Tests for module 'unicase/u8-is-titlecase'.
31378         * modules/unicase/u8-is-titlecase-tests: New file.
31379         * tests/unicase/test-u8-is-titlecase.c: New file.
31380         * tests/unicase/test-is-titlecase.h: New file.
31381
31382         New module 'unicase/u32-is-titlecase'.
31383         * lib/unicase/u32-is-titlecase.c: New file.
31384         * modules/unicase/u32-is-titlecase: New file.
31385
31386         New module 'unicase/u16-is-titlecase'.
31387         * lib/unicase/u16-is-titlecase.c: New file.
31388         * modules/unicase/u16-is-titlecase: New file.
31389
31390         New module 'unicase/u8-is-titlecase'.
31391         * lib/unicase/u8-is-titlecase.c: New file.
31392         * modules/unicase/u8-is-titlecase: New file.
31393
31394         Tests for module 'unicase/u32-is-lowercase'.
31395         * modules/unicase/u32-is-lowercase-tests: New file.
31396         * tests/unicase/test-u32-is-lowercase.c: New file.
31397
31398         Tests for module 'unicase/u16-is-lowercase'.
31399         * modules/unicase/u16-is-lowercase-tests: New file.
31400         * tests/unicase/test-u16-is-lowercase.c: New file.
31401
31402         Tests for module 'unicase/u8-is-lowercase'.
31403         * modules/unicase/u8-is-lowercase-tests: New file.
31404         * tests/unicase/test-u8-is-lowercase.c: New file.
31405         * tests/unicase/test-is-lowercase.h: New file.
31406
31407         New module 'unicase/u32-is-lowercase'.
31408         * lib/unicase/u32-is-lowercase.c: New file.
31409         * modules/unicase/u32-is-lowercase: New file.
31410
31411         New module 'unicase/u16-is-lowercase'.
31412         * lib/unicase/u16-is-lowercase.c: New file.
31413         * modules/unicase/u16-is-lowercase: New file.
31414
31415         New module 'unicase/u8-is-lowercase'.
31416         * lib/unicase/u8-is-lowercase.c: New file.
31417         * modules/unicase/u8-is-lowercase: New file.
31418
31419         Tests for module 'unicase/u32-is-uppercase'.
31420         * modules/unicase/u32-is-uppercase-tests: New file.
31421         * tests/unicase/test-u32-is-uppercase.c: New file.
31422
31423         Tests for module 'unicase/u16-is-uppercase'.
31424         * modules/unicase/u16-is-uppercase-tests: New file.
31425         * tests/unicase/test-u16-is-uppercase.c: New file.
31426
31427         Tests for module 'unicase/u8-is-uppercase'.
31428         * modules/unicase/u8-is-uppercase-tests: New file.
31429         * tests/unicase/test-u8-is-uppercase.c: New file.
31430         * tests/unicase/test-is-uppercase.h: New file.
31431
31432         New module 'unicase/u32-is-uppercase'.
31433         * lib/unicase/u32-is-uppercase.c: New file.
31434         * modules/unicase/u32-is-uppercase: New file.
31435
31436         New module 'unicase/u16-is-uppercase'.
31437         * lib/unicase/u16-is-uppercase.c: New file.
31438         * modules/unicase/u16-is-uppercase: New file.
31439
31440         New module 'unicase/u8-is-uppercase'.
31441         * lib/unicase/u8-is-uppercase.c: New file.
31442         * modules/unicase/u8-is-uppercase: New file.
31443
31444         New module 'unicase/u32-is-invariant'.
31445         * lib/unicase/u32-is-invariant.c: New file.
31446         * modules/unicase/u32-is-invariant: New file.
31447
31448         New module 'unicase/u16-is-invariant'.
31449         * lib/unicase/u16-is-invariant.c: New file.
31450         * modules/unicase/u16-is-invariant: New file.
31451
31452         New module 'unicase/u8-is-invariant'.
31453         * lib/unicase/u8-is-invariant.c: New file.
31454         * lib/unicase/invariant.h: New file.
31455         * lib/unicase/u-is-invariant.h: New file.
31456         * modules/unicase/u8-is-invariant: New file.
31457
31458         Tests for module 'unicase/u32-casecoll'.
31459         * modules/unicase/u32-casecoll-tests: New file.
31460         * tests/unicase/test-u32-casecoll.c: New file.
31461
31462         Tests for module 'unicase/u16-casecoll'.
31463         * modules/unicase/u16-casecoll-tests: New file.
31464         * tests/unicase/test-u16-casecoll.c: New file.
31465
31466         Tests for module 'unicase/u8-casecoll'.
31467         * modules/unicase/u8-casecoll-tests: New file.
31468         * tests/unicase/test-u8-casecoll.c: New file.
31469
31470         New module 'unicase/u32-casecoll'.
31471         * lib/unicase/u32-casecoll.c: New file.
31472         * modules/unicase/u32-casecoll: New file.
31473
31474         New module 'unicase/u16-casecoll'.
31475         * lib/unicase/u16-casecoll.c: New file.
31476         * modules/unicase/u16-casecoll: New file.
31477
31478         New module 'unicase/u8-casecoll'.
31479         * lib/unicase/u8-casecoll.c: New file.
31480         * lib/unicase/u-casecoll.h: New file.
31481         * modules/unicase/u8-casecoll: New file.
31482
31483         New module 'unicase/u32-casexfrm'.
31484         * lib/unicase/u32-casexfrm.c: New file.
31485         * modules/unicase/u32-casexfrm: New file.
31486
31487         New module 'unicase/u16-casexfrm'.
31488         * lib/unicase/u16-casexfrm.c: New file.
31489         * modules/unicase/u16-casexfrm: New file.
31490
31491         New module 'unicase/u8-casexfrm'.
31492         * lib/unicase/u8-casexfrm.c: New file.
31493         * lib/unicase/u-casexfrm.h: New file.
31494         * modules/unicase/u8-casexfrm: New file.
31495
31496         Tests for module 'unicase/u32-casecmp'.
31497         * modules/unicase/u32-casecmp-tests: New file.
31498         * tests/unicase/test-u32-casecmp.c: New file.
31499
31500         Tests for module 'unicase/u16-casecmp'.
31501         * modules/unicase/u16-casecmp-tests: New file.
31502         * tests/unicase/test-u16-casecmp.c: New file.
31503
31504         Tests for module 'unicase/u8-casecmp'.
31505         * modules/unicase/u8-casecmp-tests: New file.
31506         * tests/unicase/test-u8-casecmp.c: New file.
31507         * tests/unicase/test-casecmp.h: New file.
31508
31509         New module 'unicase/u32-casecmp'.
31510         * lib/unicase/u32-casecmp.c: New file.
31511         * modules/unicase/u32-casecmp: New file.
31512
31513         New module 'unicase/u16-casecmp'.
31514         * lib/unicase/u16-casecmp.c: New file.
31515         * modules/unicase/u16-casecmp: New file.
31516
31517         New module 'unicase/u8-casecmp'.
31518         * lib/unicase/u8-casecmp.c: New file.
31519         * lib/unicase/u-casecmp.h: New file.
31520         * modules/unicase/u8-casecmp: New file.
31521
31522         Tests for module 'unicase/u32-casefold'.
31523         * modules/unicase/u32-casefold-tests: New file.
31524         * tests/unicase/test-u32-casefold.c: New file.
31525
31526         Tests for module 'unicase/u16-casefold'.
31527         * modules/unicase/u16-casefold-tests: New file.
31528         * tests/unicase/test-u16-casefold.c: New file.
31529
31530         Tests for module 'unicase/u8-casefold'.
31531         * modules/unicase/u8-casefold-tests: New file.
31532         * tests/unicase/test-u8-casefold.c: New file.
31533
31534         New module 'unicase/u32-casefold'.
31535         * lib/unicase/u32-casefold.c: New file.
31536         * modules/unicase/u32-casefold: New file.
31537
31538         New module 'unicase/u16-casefold'.
31539         * lib/unicase/u16-casefold.c: New file.
31540         * modules/unicase/u16-casefold: New file.
31541
31542         New module 'unicase/u8-casefold'.
31543         * lib/unicase/u8-casefold.c: New file.
31544         * lib/unicase/u-casefold.h: New file.
31545         * modules/unicase/u8-casefold: New file.
31546
31547         New module 'unicase/tocasefold'.
31548         * lib/unicase/casefold.h: New file.
31549         * lib/unicase/tocasefold.c: New file.
31550         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
31551         * modules/unicase/tocasefold: New file.
31552
31553         Tests for module 'unicase/u32-totitle'.
31554         * modules/unicase/u32-totitle-tests: New file.
31555         * tests/unicase/test-u32-totitle.c: New file.
31556
31557         Tests for module 'unicase/u16-totitle'.
31558         * modules/unicase/u16-totitle-tests: New file.
31559         * tests/unicase/test-u16-totitle.c: New file.
31560
31561         Tests for module 'unicase/u8-totitle'.
31562         * modules/unicase/u8-totitle-tests: New file.
31563         * tests/unicase/test-u8-totitle.c: New file.
31564
31565         New module 'unicase/u32-totitle'.
31566         * lib/unicase/u32-totitle.c: New file.
31567         * modules/unicase/u32-totitle: New file.
31568
31569         New module 'unicase/u16-totitle'.
31570         * lib/unicase/u16-totitle.c: New file.
31571         * modules/unicase/u16-totitle: New file.
31572
31573         New module 'unicase/u8-totitle'.
31574         * lib/unicase/u8-totitle.c: New file.
31575         * lib/unicase/u-totitle.h: New file.
31576         * modules/unicase/u8-totitle: New file.
31577
31578         Tests for module 'unicase/u32-tolower'.
31579         * modules/unicase/u32-tolower-tests: New file.
31580         * tests/unicase/test-u32-tolower.c: New file.
31581
31582         Tests for module 'unicase/u16-tolower'.
31583         * modules/unicase/u16-tolower-tests: New file.
31584         * tests/unicase/test-u16-tolower.c: New file.
31585
31586         Tests for module 'unicase/u8-tolower'.
31587         * modules/unicase/u8-tolower-tests: New file.
31588         * tests/unicase/test-u8-tolower.c: New file.
31589
31590         New module 'unicase/u32-tolower'.
31591         * lib/unicase/u32-tolower.c: New file.
31592         * modules/unicase/u32-tolower: New file.
31593
31594         New module 'unicase/u16-tolower'.
31595         * lib/unicase/u16-tolower.c: New file.
31596         * modules/unicase/u16-tolower: New file.
31597
31598         New module 'unicase/u8-tolower'.
31599         * lib/unicase/u8-tolower.c: New file.
31600         * modules/unicase/u8-tolower: New file.
31601
31602         Tests for module 'unicase/u32-toupper'.
31603         * modules/unicase/u32-toupper-tests: New file.
31604         * tests/unicase/test-u32-toupper.c: New file.
31605
31606         Tests for module 'unicase/u16-toupper'.
31607         * modules/unicase/u16-toupper-tests: New file.
31608         * tests/unicase/test-u16-toupper.c: New file.
31609
31610         Tests for module 'unicase/u8-toupper'.
31611         * modules/unicase/u8-toupper-tests: New file.
31612         * tests/unicase/test-u8-toupper.c: New file.
31613
31614         New module 'unicase/u32-toupper'.
31615         * lib/unicase/u32-toupper.c: New file.
31616         * modules/unicase/u32-toupper: New file.
31617
31618         New module 'unicase/u16-toupper'.
31619         * lib/unicase/u16-toupper.c: New file.
31620         * modules/unicase/u16-toupper: New file.
31621
31622         New module 'unicase/u8-toupper'.
31623         * lib/unicase/u8-toupper.c: New file.
31624         * modules/unicase/u8-toupper: New file.
31625
31626         New module 'unicase/u32-casemap'.
31627         * lib/unicase/u32-casemap.c: New file.
31628         * modules/unicase/u32-casemap: New file.
31629
31630         New module 'unicase/u16-casemap'.
31631         * lib/unicase/u16-casemap.c: New file.
31632         * modules/unicase/u16-casemap: New file.
31633
31634         New module 'unicase/u8-casemap'.
31635         * lib/unicase/unicasemap.h: New file.
31636         * lib/unicase/u8-casemap.c: New file.
31637         * lib/unicase/u-casemap.h: New file.
31638         * modules/unicase/u8-casemap: New file.
31639
31640         New module 'unicase/special-casing'.
31641         * lib/unicase/special-casing.h: New file.
31642         * lib/unicase/special-casing.c: New file.
31643         * lib/unicase/special-casing-table.gperf: New file, generated by
31644         gen-uni-tables.c.
31645         * modules/unicase/special-casing: New file.
31646
31647         Tests for module 'unicase/locale-language'.
31648         * modules/unicase/locale-language-tests: New file.
31649         * tests/unicase/test-locale-language.sh: New file.
31650         * tests/unicase/test-locale-language.c: New file.
31651
31652         New module 'unicase/locale-language'.
31653         * lib/unicase/locale-language.c: New file.
31654         * lib/unicase/locale-languages.gperf: New file.
31655         * modules/unicase/locale-language: New file.
31656
31657         Generate more tables for case conversion and case folding.
31658         * lib/gen-uni-tables.c (SCC_*): New enum items.
31659         (struct special_casing_rule): New type.
31660         (casing_rules, num_casing_rules, allocated_casing_rules): New
31661         variables.
31662         (add_casing_rule, fill_casing_rules): New functions.
31663         (struct casefold_rule): New type.
31664         (casefolding_rules, num_casefolding_rules,
31665         allocated_casefolding_rules): New variables.
31666         (fill_casefolding_rules): New function.
31667         (unicode_casefold): New variable.
31668         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31669         sort_casing_rules, output_casing_rules): New functions.
31670         (main): Accept to more arguments: SpecialCasing.txt and
31671         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31672         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31673         Output mapping for casefolding.
31674
31675         * lib/unicase.h: Include stdbool.h, uninorm.h.
31676         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31677         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31678         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31679         arguments.
31680         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31681         resultp arguments.
31682         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31683         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31684         resultp arguments.
31685         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31686         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31687         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31688         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31689         declarations.
31690         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31691
31692 2009-03-08  Bruno Haible  <bruno@clisp.org>
31693
31694         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31695         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31696         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31697         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31698
31699 2009-03-07  Bruno Haible  <bruno@clisp.org>
31700
31701         Adjust u*_normcmp, u*_normcoll API.
31702         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31703         u16_normcoll, u32_normcoll): Change failure conventions.
31704         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31705         errno and return -1.
31706         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31707
31708 2009-03-07  Bruno Haible  <bruno@clisp.org>
31709
31710         Tests for module 'uninorm/u32-normcoll'.
31711         * modules/uninorm/u32-normcoll-tests: New file.
31712         * tests/uninorm/test-u32-normcoll.c: New file.
31713
31714         Tests for module 'uninorm/u16-normcoll'.
31715         * modules/uninorm/u16-normcoll-tests: New file.
31716         * tests/uninorm/test-u16-normcoll.c: New file.
31717
31718         Tests for module 'uninorm/u8-normcoll'.
31719         * modules/uninorm/u8-normcoll-tests: New file.
31720         * tests/uninorm/test-u8-normcoll.c: New file.
31721
31722 2009-03-07  Bruno Haible  <bruno@clisp.org>
31723
31724         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31725         tests/uninorm/test-u32-normcmp.c.
31726         * tests/uninorm/test-u32-normcmp.c: Include it.
31727         (test_nonascii): New function, extracted from main. Add some more
31728         tests.
31729         (main): Invoke test_ascii and test_nonascii.
31730         * modules/uninorm/u32-normcmp-tests (Files): Add
31731         tests/uninorm/test-u32-normcmp.h.
31732         (Depends-on): Remove uninorm/u32-normcmp.
31733
31734         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31735         tests/uninorm/test-u16-normcmp.c.
31736         * tests/uninorm/test-u16-normcmp.c: Include it.
31737         (test_nonascii): New function, extracted from main. Add some more
31738         tests.
31739         (main): Invoke test_ascii and test_nonascii.
31740         * modules/uninorm/u16-normcmp-tests (Files): Add
31741         tests/uninorm/test-u16-normcmp.h.
31742         (Depends-on): Remove uninorm/u16-normcmp.
31743
31744         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31745         tests/uninorm/test-u8-normcmp.c.
31746         * tests/uninorm/test-u8-normcmp.c: Include it.
31747         (test_nonascii): New function, extracted from main. Add some more
31748         tests.
31749         (main): Invoke test_ascii and test_nonascii.
31750         * modules/uninorm/u8-normcmp-tests (Files): Add
31751         tests/uninorm/test-u8-normcmp.h.
31752         (Depends-on): Remove uninorm/u8-normcmp.
31753
31754 2009-03-07  Bruno Haible  <bruno@clisp.org>
31755
31756         New module 'uninorm/u32-normcoll'.
31757         * lib/uninorm/u32-normcoll.c: New file.
31758         * modules/uninorm/u32-normcoll: New file.
31759
31760         New module 'uninorm/u16-normcoll'.
31761         * lib/uninorm/u16-normcoll.c: New file.
31762         * modules/uninorm/u16-normcoll: New file.
31763
31764         New module 'uninorm/u8-normcoll'.
31765         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31766         declarations.
31767         * lib/uninorm/u8-normcoll.c: New file.
31768         * lib/uninorm/u-normcoll.h: New file.
31769         * modules/uninorm/u8-normcoll: New file.
31770
31771         New module 'uninorm/u32-normxfrm'.
31772         * lib/uninorm/u32-normxfrm.c: New file.
31773         * modules/uninorm/u32-normxfrm: New file.
31774
31775         New module 'uninorm/u16-normxfrm'.
31776         * lib/uninorm/u16-normxfrm.c: New file.
31777         * modules/uninorm/u16-normxfrm: New file.
31778
31779         New module 'uninorm/u8-normxfrm'.
31780         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31781         declarations.
31782         * lib/uninorm/u8-normxfrm.c: New file.
31783         * lib/uninorm/u-normxfrm.h: New file.
31784         * modules/uninorm/u8-normxfrm: New file.
31785
31786 2009-03-07  Bruno Haible  <bruno@clisp.org>
31787
31788         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31789         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31790         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31791
31792 2009-03-07  Bruno Haible  <bruno@clisp.org>
31793
31794         New module 'memxfrm'.
31795         * lib/memxfrm.h: New file.
31796         * lib/memxfrm.c: New file.
31797         * modules/memxfrm: New file.
31798
31799 2009-03-07  Bruno Haible  <bruno@clisp.org>
31800
31801         New module 'memcmp2'.
31802         * lib/memcmp2.h: New file.
31803         * lib/memcmp2.c: New file.
31804         * modules/memcmp2: New file.
31805
31806 2009-03-07  Bruno Haible  <bruno@clisp.org>
31807
31808         Tests for module 'uninorm/decomposing-form'.
31809         * modules/uninorm/decomposing-form-tests: New file.
31810         * tests/uninorm/test-decomposing-form.c: New file.
31811
31812         New module 'uninorm/decomposing-form'.
31813         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31814         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31815         Add 'decomposing_variant' field.
31816         * lib/uninorm/decomposing-form.c: New file.
31817         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31818         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31819         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31820         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31821         * modules/uninorm/decomposing-form: New file.
31822         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31823         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31824
31825 2009-03-07  Bruno Haible  <bruno@clisp.org>
31826
31827         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31828         strings.
31829
31830 2009-03-06  Bruno Haible  <bruno@clisp.org>
31831
31832         Tests for module 'uninorm/u32-normcmp'.
31833         * tests/uninorm/test-u32-normcmp.c: New file.
31834         * modules/uninorm/u32-normcmp-tests: New file.
31835
31836         Tests for module 'uninorm/u16-normcmp'.
31837         * tests/uninorm/test-u16-normcmp.c: New file.
31838         * modules/uninorm/u16-normcmp-tests: New file.
31839
31840         Tests for module 'uninorm/u8-normcmp'.
31841         * tests/uninorm/test-u8-normcmp.c: New file.
31842         * modules/uninorm/u8-normcmp-tests: New file.
31843
31844         New module 'uninorm/u32-normcmp'.
31845         * lib/uninorm/u32-normcmp.c: New file.
31846         * modules/uninorm/u32-normcmp: New file.
31847
31848         New module 'uninorm/u16-normcmp'.
31849         * lib/uninorm/u16-normcmp.c: New file.
31850         * modules/uninorm/u16-normcmp: New file.
31851
31852         New module 'uninorm/u8-normcmp'.
31853         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31854         declarations.
31855         * lib/uninorm/u8-normcmp.c: New file.
31856         * lib/uninorm/u-normcmp.h: New file.
31857         * modules/uninorm/u8-normcmp: New file.
31858
31859 2009-03-06  Bruno Haible  <bruno@clisp.org>
31860
31861         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31862         Reported by Eric Blake.
31863
31864 2009-03-06  Eric Blake  <ebb9@byu.net>
31865             Bruno Haible  <bruno@clisp.org>
31866
31867         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31868         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31869         condition.
31870         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31871         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31872         condition.
31873         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31874
31875 2009-03-06  Eric Blake  <ebb9@byu.net>
31876
31877         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31878         to avoid compiler warnings.
31879         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31880
31881 2009-03-05  Bruno Haible  <bruno@clisp.org>
31882
31883         * tests/test-ftell.c (main): Disable test beyond end of file on
31884         FreeMiNT.
31885         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31886
31887 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31888
31889         * lib/filevercmp.c: Move hidden files up in ordering.
31890         * tests/test-filevercmp.c: Add tests for hidden files.
31891
31892 2009-03-04  Bruno Haible  <bruno@clisp.org>
31893
31894         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31895         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31896         AM_CFLAGS.
31897         Reported by Simon Josefsson.
31898
31899 2009-03-03  Bruno Haible  <bruno@clisp.org>
31900
31901         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31902         Reported by Simon Josefsson.
31903
31904         * doc/ld-version-script.texi: Update node reference.
31905
31906 2009-03-03  Bruno Haible  <bruno@clisp.org>
31907
31908         * modules/visibility (License): Change to 'unlimited'.
31909         Suggested by Simon Josefsson.
31910
31911 2009-03-03  Jim Meyering  <meyering@redhat.com>
31912
31913         unlinkdir: cannot_unlink_dir may modify process state
31914         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31915         it's neither thread-safe nor appropriate for use in a library.
31916
31917 2009-03-03  Eric Blake  <ebb9@byu.net>
31918
31919         test-closein: silence test under Darwin
31920         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31921         care if it dies from EPIPE or EBADF.
31922
31923 2009-03-03  Bruno Haible  <bruno@clisp.org>
31924
31925         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31926         earlier.
31927         * doc/visibility.texi: Fix @node and @section.
31928
31929 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31930
31931         * doc/gnulib.texi: Link to sections for ld version script and
31932         visibility.
31933         * doc/visibility.texi: Add @node and @section.
31934         * modules/ld-version-script: New module.
31935         * m4/ld-version-script.m4: New file.
31936         * doc/ld-version-script.texi: New file.
31937
31938 2009-03-02  David Lutterkort  <lutter@redhat.com>
31939
31940         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31941         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31942
31943 2009-03-02  Bruno Haible  <bruno@clisp.org>
31944
31945         * doc/visibility.texi: Mention libtool's -export-symbols option.
31946
31947 2009-03-02  Jim Meyering  <meyering@redhat.com>
31948
31949         announce-gen: new option: --no-print-checksums
31950         * build-aux/announce-gen (usage): Describe it.
31951         (print_checksums): Print a newline here, not in the [*] footnote.
31952         (main): Honor it.
31953
31954 2009-03-01  Bruno Haible  <bruno@clisp.org>
31955
31956         Use socklen_t in the native Windows replacements prototypes.
31957         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31958         instead of 'int'.
31959         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31960         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31961         * modules/getsockopt (Depends-on): Add socklen.
31962         * modules/setsockopt (Depends-on): Add socklen.
31963
31964 2009-03-01  Bruno Haible  <bruno@clisp.org>
31965
31966         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31967         least 4.2.
31968
31969 2009-03-01  Eric Blake  <ebb9@byu.net>
31970             Bruno Haible  <bruno@clisp.org>
31971
31972         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31973         error messages.
31974         * lib/wait-process.c (wait_subprocess): Omit error message about
31975         deadly signal sent to the child of termsigp != NULL.
31976
31977 2009-03-01  Eric Blake  <ebb9@byu.net>
31978
31979         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31980
31981 2009-03-01  Bruno Haible  <bruno@clisp.org>
31982
31983         Avoid a gcc warning.
31984         * tests/test-sched.c (b): Make global.
31985         Reported by Eric Blake.
31986
31987 2009-01-19  Martin Lambers  <marlam@marlam.de>
31988
31989         Provide POSIX semantics for socket timeout options on W32.
31990         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31991         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31992         * modules/setsockopt: Depend on sys_time module for struct timeval.
31993         * modules/getsockopt: Depend on sys_time module for struct timeval.
31994
31995 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31996
31997         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31998         __USE_GNU, for consistency with netdb.in.h.
31999         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32000
32001 2009-03-01  Bruno Haible  <bruno@clisp.org>
32002
32003         More support for FreeMiNT.
32004         * lib/fseeko.c (rpl_fseeko): Complete last commit.
32005         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32006
32007 2009-03-01  Bruno Haible  <bruno@clisp.org>
32008
32009         More support for FreeMiNT.
32010         * lib/fpurge.c (fpurge): Correct last commit.
32011         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32012
32013 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32014
32015         Fix unportable awk script in vc-list-files.
32016         * build-aux/vc-list-files: In the replacement awk script, use
32017         substr with a second argument of 1, not zero.
32018         Report by Simon Josefsson.
32019
32020 2009-02-28  Bruno Haible  <bruno@clisp.org>
32021
32022         More support for FreeMiNT.
32023         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
32024         to FreeMiNT today.
32025         * lib/fwriting.c (fwriting): Likewise.
32026         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
32027
32028 2009-02-28  Bruno Haible  <bruno@clisp.org>
32029
32030         * tests/test-freadseek.c (main): Disable test beyond end of file on
32031         FreeMiNT.
32032         * tests/test-ftello.c (main): Likewise.
32033         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32034
32035 2009-02-28  Bruno Haible  <bruno@clisp.org>
32036
32037         Add tentative support for FreeMiNT.
32038         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
32039         * lib/fpurge.c (fpurge): Likewise.
32040         * lib/freadable.c (freadable): Likewise.
32041         * lib/freading.c (freading): Likewise.
32042         * lib/freadptr.c (freadptr): Likewise.
32043         * lib/freadseek.c (freadptrinc): Likewise.
32044         * lib/fseeko.c (rpl_fseeko): Likewise.
32045         * lib/fseterr.c (fseterr): Likewise.
32046         * lib/fwritable.c (fwritable): Likewise.
32047         * lib/fwriting.c (fwriting): Likewise.
32048         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
32049         Hourihane.
32050         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32051
32052 2009-02-28  Bruno Haible  <bruno@clisp.org>
32053
32054         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
32055         SIGCHLD.
32056         Reported by Jim Meyering.
32057
32058 2009-02-28  Bruno Haible  <bruno@clisp.org>
32059
32060         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
32061         Mention the results of these tests on various platforms.
32062         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
32063         order.
32064         * doc/posix-functions/printf.texi: Likewise.
32065         * doc/posix-functions/snprintf.texi: Likewise.
32066         * doc/posix-functions/sprintf.texi: Likewise.
32067         * doc/posix-functions/vfprintf.texi: Likewise.
32068         * doc/posix-functions/vprintf.texi: Likewise.
32069         * doc/posix-functions/vsnprintf.texi: Likewise.
32070         * doc/posix-functions/vsprintf.texi: Likewise.
32071         * doc/glibc-functions/obstack_printf.texi: Likewise.
32072         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
32073
32074 2009-02-28  Bruno Haible  <bruno@clisp.org>
32075
32076         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
32077         Reported by Loïc Minier <lool@dooz.org>.
32078
32079 2009-02-27  Bruno Haible  <bruno@clisp.org>
32080
32081         * gnulib-tool (func_import): Make the sed expression used to create the
32082         sed script for updating the .gitignore file POSIX compliant.
32083         Reported by Eric Blake.
32084
32085 2009-02-27  Bruno Haible  <bruno@clisp.org>
32086
32087         * gnulib-tool (sed): Don't alias as "sed --posix".
32088         Reported by Eric Blake.
32089
32090 2009-02-27  Bruno Haible  <bruno@clisp.org>
32091
32092         Avoid test link errors.
32093         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
32094         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
32095         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
32096         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
32097         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32098
32099 2009-02-27  Bruno Haible  <bruno@clisp.org>
32100
32101         Avoid spurious "(cached)" in configure output.
32102         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
32103         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
32104         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32105         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32106         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32107         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32108         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32109         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32110         Reported by Eric Blake.
32111
32112 2009-02-27  Eric Blake  <ebb9@byu.net>
32113
32114         printf: fix regression in previous patch
32115         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
32116
32117 2009-02-27  Bruno Haible  <bruno@clisp.org>
32118
32119         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
32120         value.
32121         * lib/stdint.in.h: Likewise.
32122         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
32123
32124 2009-02-27  Eric Blake  <ebb9@byu.net>
32125
32126         doc: mention more functions added in cygwin 1.7.0
32127         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
32128         addition.
32129         * doc/posix-functions/open_wmemstream.texi: Likewise.
32130         * doc/posix-functions/wcsnlen.texi: Likewise.
32131         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32132         * doc/posix-functions/wcstod.texi: Likewise.
32133         * doc/posix-functions/wcstof.texi: Likewise.
32134         * doc/posix-functions/wcstoimax.texi: Likewise.
32135         * doc/posix-functions/wcstok.texi: Likewise.
32136         * doc/posix-functions/wcstoumax.texi: Likewise.
32137
32138         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
32139         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
32140         * doc/posix-functions/fprintf.texi: Update.
32141         * doc/posix-functions/printf.texi: Update.
32142         * doc/posix-functions/snprintf.texi: Update.
32143         * doc/posix-functions/sprintf.texi: Update.
32144         * doc/posix-functions/vfprintf.texi: Update.
32145         * doc/posix-functions/vprintf.texi: Update.
32146         * doc/posix-functions/vsnprintf.texi: Update.
32147         * doc/posix-functions/vsprintf.texi: Update.
32148         * doc/glibc-functions/obstack_printf.texi: Update.
32149         * doc/glibc-functions/obstack_vprintf.texi: Update.
32150
32151 2009-02-26  Eric Blake  <ebb9@byu.net>
32152
32153         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
32154         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
32155         compilation bug by using runtime conversion.
32156         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32157         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
32158         * modules/ceill-tests (Files): Use nan.h.
32159         * modules/floorl-tests (Files): Likewise.
32160         * modules/frexpl-tests (Files): Likewise.
32161         * modules/isnanl-tests (Files): Likewise.
32162         * modules/ldexpl-tests (Files): Likewise.
32163         * modules/roundl-tests (Files): Likewise.
32164         * modules/truncl-tests (Files): Likewise.
32165         * tests/test-ceill.c (main): Use a working NaN.
32166         * tests/test-floorl.c (main): Likewise.
32167         * tests/test-frexpl.c (main): Likewise.
32168         * tests/test-isnan.c (test_long_double): Likewise.
32169         * tests/test-isnanl.h (main): Likewise.
32170         * tests/test-ldexpl.h (main): Likewise.
32171         * tests/test-roundl.h (main): Likewise.
32172         * tests/test-truncl.h (main): Likewise.
32173         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
32174
32175 2009-02-26  Eric Blake  <ebb9@byu.net>
32176             Bruno Haible  <bruno@clisp.org>
32177
32178         Work around a *printf bug with %ls on Solaris.
32179         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
32180         precision is specified, sprintf stops converting the wide string
32181         argument when the number of bytes that have been produced by this
32182         conversion equals or exceeds the precision.
32183         * doc/posix-functions/fprintf.texi: Update.
32184         * doc/posix-functions/printf.texi: Update.
32185         * doc/posix-functions/snprintf.texi: Update.
32186         * doc/posix-functions/sprintf.texi: Update.
32187         * doc/posix-functions/vfprintf.texi: Update.
32188         * doc/posix-functions/vprintf.texi: Update.
32189         * doc/posix-functions/vsnprintf.texi: Update.
32190         * doc/posix-functions/vsprintf.texi: Update.
32191         * doc/glibc-functions/obstack_printf.texi: Update.
32192         * doc/glibc-functions/obstack_vprintf.texi: Update.
32193
32194 2009-02-26  Eric Blake  <ebb9@byu.net>
32195
32196         stdlib: favor compiler check of random.h
32197         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
32198         to avoid an ObjC random.h installed by Swarm.
32199
32200 2009-02-26  Bruno Haible  <bruno@clisp.org>
32201
32202         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
32203         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
32204         Reported by Gary V. Vaughan <gary@gnu.org>.
32205
32206 2009-02-26  Bruno Haible  <bruno@clisp.org>
32207
32208         Fix *printf behaviour regarding the %ls directive.
32209         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
32210         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
32211         NEED_PRINTF_DIRECTIVE_LS.
32212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
32213         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32214         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32215         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
32216         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
32217         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
32218         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32219         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32220         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32221         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32222         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32223         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
32224         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32225         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32226         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32227         * doc/posix-functions/fprintf.texi: Update.
32228         * doc/posix-functions/printf.texi: Update.
32229         * doc/posix-functions/snprintf.texi: Update.
32230         * doc/posix-functions/sprintf.texi: Update.
32231         * doc/posix-functions/vfprintf.texi: Update.
32232         * doc/posix-functions/vprintf.texi: Update.
32233         * doc/posix-functions/vsnprintf.texi: Update.
32234         * doc/posix-functions/vsprintf.texi: Update.
32235         * doc/glibc-functions/obstack_printf.texi: Update.
32236         * doc/glibc-functions/obstack_vprintf.texi: Update.
32237         Reported by Eric Blake.
32238
32239 2009-02-25  Bruno Haible  <bruno@clisp.org>
32240
32241         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
32242         with known value.
32243         Reported by Gary V. Vaughan <gary@gnu.org>.
32244
32245 2009-02-25  Bruno Haible  <bruno@clisp.org>
32246
32247         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
32248         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
32249         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
32250         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
32251         Reported by Gary V. Vaughan <gary@gnu.org>.
32252
32253 2009-02-25  Bruno Haible  <bruno@clisp.org>
32254
32255         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
32256         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
32257         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
32258         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
32259         Reported by Gary V. Vaughan <gary@gnu.org>.
32260
32261 2009-02-25  Eric Blake  <ebb9@byu.net>
32262
32263         tests: skip fseek/ftell tests if ungetc is broken
32264         * m4/ungetc.m4: New file.
32265         * modules/fseek-tests: Split test, so ungetc dependency is
32266         separate from rest of test.
32267         * modules/fseeko-tests: Likewise.
32268         * modules/ftell-tests: Likewise.
32269         * modules/ftello-tests: Likewise.
32270         * tests/test-fseek.c (main): Isolate ungetc dependency.
32271         * tests/test-fseeko.c (main): Likewise.
32272         * tests/test-ftell.c (main): Likewise.
32273         * tests/test-ftello.c (main): Likewise.
32274         * tests/test-fseek2.sh: New file.
32275         * tests/test-fseeko2.sh: Likewise.
32276         * tests/test-ftell2.sh: Likewise.
32277         * tests/test-ftello2.sh: Likewise.
32278
32279 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
32280
32281         test-getaddrinfo: fix usage of skip return code 77
32282         * tests/test-gettaddrinfo.c: Return skip code 77 only
32283         for first occurance of skip (4x77 is not 77)
32284
32285 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
32286
32287         strtod: avoid C99 decl-after-statement
32288         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
32289
32290 2009-02-24  Eric Blake  <ebb9@byu.net>
32291
32292         strtod: detect HP-UX 11.31 bug
32293         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
32294         Reported by Gary V. Vaughan.
32295
32296 2009-02-23  Bruno Haible  <bruno@clisp.org>
32297
32298         Fix invalid read past end of memory block.
32299         * lib/vasnprintf.c (DCHAR_SET): Define.
32300         (local_wcslen): Define only when needed.
32301         (local_strnlen, local_wcsnlen): New functions.
32302         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
32303         directives that involve a conversion ourselves.
32304         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
32305         wcsnlen, mbrtowc, wcrtomb.
32306         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
32307         * tests/test-vasprintf-posix.c (test_function): Likewise.
32308         * tests/test-snprintf-posix.h (test_function): Likewise.
32309         * tests/test-sprintf-posix.h (test_function): Likewise.
32310         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32311
32312 2009-02-22  Bruno Haible  <bruno@clisp.org>
32313
32314         Implement new clarified decomposition of Hangul syllables.
32315         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
32316         of type LTV, return only a pairwise decomposition.
32317         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
32318         Likewise.
32319         * tests/uninorm/test-decomposition.c (main): Updated expected result.
32320         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
32321         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
32322
32323 2009-02-22  Bruno Haible  <bruno@clisp.org>
32324
32325         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
32326         zero-length results and shrink excess allocated memory.
32327         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
32328         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
32329         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
32330         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
32331         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
32332         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
32333         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
32334         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
32335         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
32336         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
32337         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
32338         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
32339
32340 2009-02-21  Bruno Haible  <bruno@clisp.org>
32341
32342         * doc/gnulib.texi: Include safe-alloc.texi earlier.
32343         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
32344         spaces after a period. Put a space between a macro name and its
32345         argument list. Trivial rewordings.
32346         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
32347         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
32348         (main): Return 0 explicitly.
32349
32350 2009-02-21  Bruno Haible  <bruno@clisp.org>
32351
32352         Tests for module 'uninorm/filter'.
32353         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
32354         * modules/uninorm/filter-tests: New file.
32355
32356         New module 'uninorm/filter'.
32357         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
32358         uninorm_filter_flush, uninorm_filter_free): New declarations.
32359         * lib/uninorm/uninorm-filter.c: New file.
32360         * modules/uninorm/filter: New file.
32361
32362 2009-02-21  Bruno Haible  <bruno@clisp.org>
32363
32364         Tests for module 'uninorm/nfkc'.
32365         * tests/uninorm/test-nfkc.c: New file.
32366         * tests/uninorm/test-u8-nfkc.c: New file.
32367         * tests/uninorm/test-u16-nfkc.c: New file.
32368         * tests/uninorm/test-u32-nfkc.c: New file.
32369         * tests/uninorm/test-u32-nfkc-big.sh: New file.
32370         * tests/uninorm/test-u32-nfkc-big.c: New file.
32371         * modules/uninorm/nfkc-tests: New file.
32372
32373         New module 'uninorm/nfkc'.
32374         * lib/uninorm/nfkc.c: New file.
32375         * modules/uninorm/nfkc: New file.
32376
32377         Tests for module 'uninorm/nfkd'.
32378         * tests/uninorm/test-nfkd.c: New file.
32379         * tests/uninorm/test-u8-nfkd.c: New file.
32380         * tests/uninorm/test-u16-nfkd.c: New file.
32381         * tests/uninorm/test-u32-nfkd.c: New file.
32382         * tests/uninorm/test-u32-nfkd-big.sh: New file.
32383         * tests/uninorm/test-u32-nfkd-big.c: New file.
32384         * modules/uninorm/nfkd-tests: New file.
32385
32386         New module 'uninorm/nfkd'.
32387         * lib/uninorm/nfkd.c: New file.
32388         * modules/uninorm/nfkd: New file.
32389
32390         Tests for module 'uninorm/nfc'.
32391         * tests/uninorm/test-nfc.c: New file.
32392         * tests/uninorm/test-u8-nfc.c: New file.
32393         * tests/uninorm/test-u16-nfc.c: New file.
32394         * tests/uninorm/test-u32-nfc.c: New file.
32395         * tests/uninorm/test-u32-nfc-big.sh: New file.
32396         * tests/uninorm/test-u32-nfc-big.c: New file.
32397         * modules/uninorm/nfc-tests: New file.
32398
32399         New module 'uninorm/nfc'.
32400         * lib/uninorm/nfc.c: New file.
32401         * modules/uninorm/nfc: New file.
32402
32403         Tests for module 'uninorm/nfd'.
32404         * tests/uninorm/test-nfd.c: New file.
32405         * tests/uninorm/test-u8-nfd.c: New file.
32406         * tests/uninorm/test-u16-nfd.c: New file.
32407         * tests/uninorm/test-u32-nfd.c: New file.
32408         * tests/uninorm/test-u32-nfd-big.sh: New file.
32409         * tests/uninorm/test-u32-nfd-big.c: New file.
32410         * tests/uninorm/test-u32-normalize-big.h: New file.
32411         * tests/uninorm/test-u32-normalize-big.c: New file.
32412         * tests/uninorm/NormalizationTest.txt: New file, created from
32413         Unicode 5.1.0 NormalizationTest.txt.
32414         * modules/uninorm/nfd-tests: New file.
32415
32416         New module 'uninorm/nfd'.
32417         * lib/uninorm/nfd.c: New file.
32418         * modules/uninorm/nfd: New file.
32419
32420         New module 'uninorm/u32-normalize'.
32421         * lib/uninorm/u32-normalize.c: New file.
32422         * modules/uninorm/u32-normalize: New file.
32423
32424         New module 'uninorm/u16-normalize'.
32425         * lib/uninorm/u16-normalize.c: New file.
32426         * modules/uninorm/u16-normalize: New file.
32427
32428         New module 'uninorm/u8-normalize'.
32429         * lib/uninorm/u8-normalize.c: New file.
32430         * lib/uninorm/normalize-internal.h: New file.
32431         * lib/uninorm/u-normalize-internal.h: New file.
32432         * modules/uninorm/u8-normalize: New file.
32433
32434         New module 'uninorm/decompose-internal'.
32435         * lib/uninorm/decompose-internal.c: New file.
32436         * modules/uninorm/decompose-internal: New file.
32437
32438         Tests for module 'uninorm/composition'.
32439         * tests/uninorm/test-composition.c: New file.
32440         * modules/uninorm/composition-tests: New file.
32441
32442         New module 'uninorm/composition'.
32443         * lib/uninorm/composition.c: New file.
32444         * lib/uninorm/composition-table.gperf: New file, generated by
32445         gen-uni-tables.
32446         * modules/uninorm/composition: New file.
32447
32448         Tests for module 'uninorm/compat-decomposition'.
32449         * tests/uninorm/test-compat-decomposition.c: New file.
32450         * modules/uninorm/compat-decomposition-tests: New file.
32451
32452         New module 'uninorm/compat-decomposition'.
32453         * lib/uninorm/decompose-internal.h: New file.
32454         * lib/uninorm/compat-decomposition.c: New file.
32455         * modules/uninorm/compat-decomposition: New file.
32456
32457         Tests for module 'uninorm/canonical-decomposition'.
32458         * tests/uninorm/test-canonical-decomposition.c: New file.
32459         * modules/uninorm/canonical-decomposition-tests: New file.
32460
32461         New module 'uninorm/canonical-decomposition'.
32462         * lib/uninorm/canonical-decomposition.c: New file.
32463         * modules/uninorm/canonical-decomposition: New file.
32464
32465         Tests for module 'uninorm/decomposition'.
32466         * tests/uninorm/test-decomposition.c: New file.
32467         * modules/uninorm/decomposition-tests: New file.
32468
32469         New module 'uninorm/decomposition'.
32470         * lib/uninorm/decomposition.c: New file.
32471         * modules/uninorm/decomposition: New file.
32472
32473         New module 'uninorm/decomposition-table'.
32474         * lib/uninorm/decomposition-table.h: New file.
32475         * lib/uninorm/decomposition-table.c: New file.
32476         * lib/uninorm/decomposition-table1.h: New file, generated by
32477         gen-uni-tables.
32478         * lib/uninorm/decomposition-table2.h: New file, generated by
32479         gen-uni-tables.
32480         * modules/uninorm/decomposition-table: New file.
32481
32482         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
32483         (UC_DECOMP_*): New enumeration items.
32484         (get_decomposition): New function.
32485         (struct decomp_table): New type.
32486         (output_decomposition, output_decomposition_tables): New functions.
32487         (unicode_composition_exclusions): New variable.
32488         (fill_composition_exclusions, debug_output_composition_tables): New
32489         functions.
32490         (main): Accept one more argument. Invoke fill_composition_exclusions.
32491         Output decomposition and composition tables.
32492
32493         New module 'uninorm/base'.
32494         * lib/uninorm.h: New file.
32495         * lib/unictype.h: Update comment.
32496         * modules/uninorm/base: New file.
32497
32498 2009-02-21  David Lutterkort  <lutter@redhat.com>
32499
32500         Tests for module 'safe-alloc'.
32501         * tests/test-safe-alloc.c: New file.
32502         * modules/safe-alloc-tests: New file.
32503
32504         New module 'safe-alloc'.
32505         * lib/safe-alloc.h: New file.
32506         * lib/safe-alloc.c: New file.
32507         * m4/safe-alloc.m4: New file.
32508         * modules/safe-alloc: New file.
32509         * doc/safe-alloc.texi: New file.
32510         * doc/gnulib.texi: Include it.
32511         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
32512         safe-alloc.
32513
32514 2009-02-18  Bruno Haible  <bruno@clisp.org>
32515
32516         Fix link error on non-glibc systems.
32517         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
32518         variable.
32519         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32520
32521 2009-02-18  Jim Meyering  <meyering@redhat.com>
32522
32523         fts: avoid used-uninitialized error due to recent change
32524         * lib/fts.c (fts_read): Guard uses of the new member,
32525         parent->fts_n_dirs_remaining, since it's not relevant for
32526         the parent of a directory specified on the command-line.
32527
32528 2009-02-17  James Youngman  <jay@gnu.org>
32529             Bruno Haible  <bruno@clisp.org>
32530
32531         * m4/include_next.m4: Reformulate comment.
32532
32533 2009-02-16  Jim Meyering  <meyering@redhat.com>
32534
32535         fts: add #if guards so that the fts_lgpl module still builds
32536         * lib/fts.c: Guard just-added hash-table-using parts with
32537         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
32538         Reported by Simon Josefsson.
32539
32540 2009-02-15  Bruno Haible  <bruno@clisp.org>
32541
32542         * modules/array-mergesort-tests: New file.
32543         * tests/test-array-mergesort.c: New file.
32544
32545         New module 'array-mergesort'.
32546         * modules/array-mergesort: New file.
32547         * lib/array-mergesort.h: New file.
32548
32549 2009-02-15  Bruno Haible  <bruno@clisp.org>
32550
32551         Fix 2009-02-07 commit.
32552         * lib/gen-uni-tables.c (output_predicate, output_category,
32553         output_combclass, output_bidi_category, output_decimal_digit,
32554         output_digit, output_numeric, output_mirror, output_scripts,
32555         output_ident_category, output_simple_mapping): Fix format directives.
32556         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
32557
32558 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
32559
32560         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
32561         fixes are available from IBM.
32562
32563 2009-02-13  Jim Meyering  <meyering@redhat.com>
32564
32565         fts: arrange not to stat non-directories in more cases
32566         This makes GNU find (when it doesn't need to stat each file)
32567         *much* more efficient at traversing reiserfs file systems.
32568         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
32569         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
32570         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
32571         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
32572         (leaf_optimization_applies): New function.
32573         (LCO_hash, LCO_compare): New helper functions.
32574         (link_count_optimize_ok): New function.
32575         (fts_stat): Initialize new member (if dir).
32576         (fts_read): Decrement parent's fts_n_dirs_remaining count if
32577         we've just stat'ed a directory.  Skip the stat call when possible.
32578         ---
32579         Note this AFS-related exchange:
32580         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
32581         and note find's pioctl call in find/fstype.c.
32582         But that is necessary only if you want to enable the
32583         optimization for AFS, and for now, I don't.
32584
32585         fts: move a function definition "up" (no semantic change)
32586         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
32587         "up" to precede upcoming use of a related function.
32588
32589 2009-02-11  Jim Meyering  <meyering@redhat.com>
32590
32591         fts: correct internal computation of nlinks (optimization-related)
32592         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
32593         whether the current entry is a directory, so don't test it.
32594
32595 2009-02-10  Bruno Haible  <bruno@clisp.org>
32596
32597         Tests for module 'uniwbrk/ulc-wordbreaks'.
32598         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
32599         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
32600         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
32601
32602         Tests for module 'uniwbrk/u32-wordbreaks'.
32603         * modules/uniwbrk/u32-wordbreaks-tests: New file.
32604         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
32605
32606         Tests for module 'uniwbrk/u16-wordbreaks'.
32607         * modules/uniwbrk/u16-wordbreaks-tests: New file.
32608         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
32609
32610         Tests for module 'uniwbrk/u8-wordbreaks'.
32611         * modules/uniwbrk/u8-wordbreaks-tests: New file.
32612         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
32613
32614 2009-02-10  Bruno Haible  <bruno@clisp.org>
32615
32616         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
32617         property.
32618         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
32619         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
32620         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
32621
32622 2009-02-10  Simon Josefsson  <simon@josefsson.org>
32623
32624         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
32625         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
32626
32627 2009-02-10  Bruno Haible  <bruno@clisp.org>
32628
32629         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
32630         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
32631         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
32632         * lib/unilbrk/u8-possible-linebreaks.c: Update.
32633         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
32634         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
32635
32636 2009-02-09  Simon Josefsson  <simon@josefsson.org>
32637
32638         * lib/sockets.h (gl_fd_to_handle): New function.
32639
32640         * tests/test-sockets.c: Call gl_fd_to_handle.
32641
32642 2009-02-09  Bruno Haible  <bruno@clisp.org>
32643
32644         * doc/havelib.texi: Document the conventions on bi-arch systems.
32645
32646 2009-02-08  Bruno Haible  <bruno@clisp.org>
32647
32648         Document the AC_LIB_LINKFLAGS macro.
32649         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32650         * doc/gnulib.texi: Include it.
32651
32652 2009-02-08  Bruno Haible  <bruno@clisp.org>
32653
32654         Fix wrong order of sections, compared to TOC.
32655         * doc/gnulib.texi: Include relocatable-maint.texi after the
32656         "Regular expressions" node, not before.
32657
32658 2009-02-08  Bruno Haible  <bruno@clisp.org>
32659
32660         Tests for module 'unicase/totitle'.
32661         * modules/unicase/totitle-tests: New file.
32662
32663         Tests for module 'unicase/tolower'.
32664         * modules/unicase/tolower-tests: New file.
32665
32666         Tests for module 'unicase/toupper'.
32667         * modules/unicase/toupper-tests: New file.
32668         * tests/unicase/test-mapping-part1.h: New file.
32669         * tests/unicase/test-mapping-part2.h: New file.
32670
32671         New module 'unicase/totitle'.
32672         * modules/unicase/totitle: New file.
32673         * lib/unicase/totitle.c: New file.
32674
32675         New module 'unicase/tolower'.
32676         * modules/unicase/tolower: New file.
32677         * lib/unicase/tolower.c: New file.
32678
32679         New module 'unicase/toupper'.
32680         * modules/unicase/toupper: New file.
32681         * lib/unicase/toupper.c: New file.
32682         * lib/unicase/simple-mapping.h: New file.
32683
32684         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32685         (mapping_table): New structure.
32686         (output_simple_mapping): New function.
32687         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32688         * modules/gen-uni-tables (Description): Update.
32689         * lib/unicase/toupper.h: New file, automatically generated by
32690         gen-uni-tables.
32691         * lib/unicase/tolower.h: New file, automatically generated by
32692         gen-uni-tables.
32693         * lib/unicase/totitle.h: New file, automatically generated by
32694         gen-uni-tables.
32695         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32696         gen-uni-tables.
32697         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32698         gen-uni-tables.
32699         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32700         gen-uni-tables.
32701
32702         New module 'unicase/base'.
32703         * modules/unicase/base: New file.
32704         * lib/unicase.h: New file.
32705
32706 2009-02-08  Bruno Haible  <bruno@clisp.org>
32707
32708         New module 'uniwbrk/ulc-wordbreaks'.
32709         * modules/uniwbrk/ulc-wordbreaks: New file.
32710         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32711
32712         New module 'uniwbrk/u32-wordbreaks'.
32713         * modules/uniwbrk/u32-wordbreaks: New file.
32714         * lib/uniwbrk/u32-wordbreaks.c: New file.
32715
32716         New module 'uniwbrk/u16-wordbreaks'.
32717         * modules/uniwbrk/u16-wordbreaks: New file.
32718         * lib/uniwbrk/u16-wordbreaks.c: New file.
32719
32720         New module 'uniwbrk/u8-wordbreaks'.
32721         * modules/uniwbrk/u8-wordbreaks: New file.
32722         * lib/uniwbrk/u8-wordbreaks.c: New file.
32723         * lib/uniwbrk/u-wordbreaks.h: New file.
32724
32725         New module 'uniwbrk/table'.
32726         * modules/uniwbrk/table: New file.
32727         * lib/uniwbrk/wbrktable.h: New file.
32728         * lib/uniwbrk/wbrktable.c: New file.
32729
32730         New module 'uniwbrk/wordbreak-property'.
32731         * modules/uniwbrk/wordbreak-property: New file.
32732         * lib/uniwbrk/wordbreak-property.c: New file.
32733
32734         * lib/gen-uni-tables.c (WBP_*): New enum items.
32735         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32736         (unicode_org_wbp): New variable.
32737         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32738         New functions.
32739         (wbp_table): New structure.
32740         (output_wbp, output_wbrk_tables): New functions.
32741         (main): Accept additional argument. Invoke fill_org_wbp,
32742         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32743         output_wbrk_tables.
32744         * modules/gen-uni-tables (Description): Update.
32745         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32746         gen-uni-tables.
32747
32748         New module 'uniwbrk/base'.
32749         * modules/uniwbrk/base: New file.
32750         * lib/uniwbrk.h: New file.
32751
32752 2009-02-08  Bruno Haible  <bruno@clisp.org>
32753
32754         Update to Unicode 5.1.0.
32755         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32756         U+2185..U+2188.
32757         (is_property_default_ignorable_code_point): Don't include characters
32758         of category Cc or Cs and not-a-characters.
32759         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32760         U+0D79, U+109E, U+109F, U+A60C.
32761         * lib/unictype/bidi_of.h: Regenerated.
32762         * lib/unictype/blocks.h: Regenerated.
32763         * lib/unictype/categ_C.h: Regenerated.
32764         * lib/unictype/categ_Cf.h: Regenerated.
32765         * lib/unictype/categ_Cn.h: Regenerated.
32766         * lib/unictype/categ_L.h: Regenerated.
32767         * lib/unictype/categ_Ll.h: Regenerated.
32768         * lib/unictype/categ_Lm.h: Regenerated.
32769         * lib/unictype/categ_Lo.h: Regenerated.
32770         * lib/unictype/categ_Lu.h: Regenerated.
32771         * lib/unictype/categ_M.h: Regenerated.
32772         * lib/unictype/categ_Mc.h: Regenerated.
32773         * lib/unictype/categ_Me.h: Regenerated.
32774         * lib/unictype/categ_Mn.h: Regenerated.
32775         * lib/unictype/categ_N.h: Regenerated.
32776         * lib/unictype/categ_Nd.h: Regenerated.
32777         * lib/unictype/categ_Nl.h: Regenerated.
32778         * lib/unictype/categ_No.h: Regenerated.
32779         * lib/unictype/categ_P.h: Regenerated.
32780         * lib/unictype/categ_Pd.h: Regenerated.
32781         * lib/unictype/categ_Pe.h: Regenerated.
32782         * lib/unictype/categ_Pf.h: Regenerated.
32783         * lib/unictype/categ_Pi.h: Regenerated.
32784         * lib/unictype/categ_Po.h: Regenerated.
32785         * lib/unictype/categ_Ps.h: Regenerated.
32786         * lib/unictype/categ_S.h: Regenerated.
32787         * lib/unictype/categ_Sk.h: Regenerated.
32788         * lib/unictype/categ_Sm.h: Regenerated.
32789         * lib/unictype/categ_So.h: Regenerated.
32790         * lib/unictype/categ_of.h: Regenerated.
32791         * lib/unictype/combining.h: Regenerated.
32792         * lib/unictype/ctype_alnum.h: Regenerated.
32793         * lib/unictype/ctype_alpha.h: Regenerated.
32794         * lib/unictype/ctype_graph.h: Regenerated.
32795         * lib/unictype/ctype_lower.h: Regenerated.
32796         * lib/unictype/ctype_print.h: Regenerated.
32797         * lib/unictype/ctype_punct.h: Regenerated.
32798         * lib/unictype/ctype_upper.h: Regenerated.
32799         * lib/unictype/decdigit.h: Regenerated.
32800         * lib/unictype/digit.h: Regenerated.
32801         * lib/unictype/mirror.h: Regenerated.
32802         * lib/unictype/numeric.h: Regenerated.
32803         * lib/unictype/pr_alphabetic.h: Regenerated.
32804         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32805         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32806         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32807         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32808         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32809         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32810         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32811         * lib/unictype/pr_combining.h: Regenerated.
32812         * lib/unictype/pr_dash.h: Regenerated.
32813         * lib/unictype/pr_decimal_digit.h: Regenerated.
32814         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32815         * lib/unictype/pr_deprecated.h: Regenerated.
32816         * lib/unictype/pr_diacritic.h: Regenerated.
32817         * lib/unictype/pr_extender.h: Regenerated.
32818         * lib/unictype/pr_format_control.h: Regenerated.
32819         * lib/unictype/pr_grapheme_base.h: Regenerated.
32820         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32821         * lib/unictype/pr_grapheme_link.h: Regenerated.
32822         * lib/unictype/pr_id_continue.h: Regenerated.
32823         * lib/unictype/pr_id_start.h: Regenerated.
32824         * lib/unictype/pr_ideographic.h: Regenerated.
32825         * lib/unictype/pr_ignorable_control.h: Regenerated.
32826         * lib/unictype/pr_lowercase.h: Regenerated.
32827         * lib/unictype/pr_math.h: Regenerated.
32828         * lib/unictype/pr_numeric.h: Regenerated.
32829         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32830         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32831         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32832         * lib/unictype/pr_other_id_continue.h: Regenerated.
32833         * lib/unictype/pr_other_lowercase.h: Regenerated.
32834         * lib/unictype/pr_other_math.h: Regenerated.
32835         * lib/unictype/pr_punctuation.h: Regenerated.
32836         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32837         * lib/unictype/pr_soft_dotted.h: Regenerated.
32838         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32839         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32840         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32841         * lib/unictype/pr_uppercase.h: Regenerated.
32842         * lib/unictype/pr_xid_continue.h: Regenerated.
32843         * lib/unictype/pr_xid_start.h: Regenerated.
32844         * lib/unictype/pr_zero_width.h: Regenerated.
32845         * lib/unictype/scripts.h: Regenerated.
32846         * lib/unictype/scripts_byname.gperf: Regenerated.
32847         * lib/unictype/sy_java_ident.h: Regenerated.
32848         * lib/unilbrk/lbrkprop1.h: Regenerated.
32849         * lib/unilbrk/lbrkprop2.h: Regenerated.
32850         * tests/unictype/test-categ_C.c: Regenerated.
32851         * tests/unictype/test-categ_Cf.c: Regenerated.
32852         * tests/unictype/test-categ_Cn.c: Regenerated.
32853         * tests/unictype/test-categ_L.c: Regenerated.
32854         * tests/unictype/test-categ_Ll.c: Regenerated.
32855         * tests/unictype/test-categ_Lm.c: Regenerated.
32856         * tests/unictype/test-categ_Lo.c: Regenerated.
32857         * tests/unictype/test-categ_Lu.c: Regenerated.
32858         * tests/unictype/test-categ_M.c: Regenerated.
32859         * tests/unictype/test-categ_Mc.c: Regenerated.
32860         * tests/unictype/test-categ_Me.c: Regenerated.
32861         * tests/unictype/test-categ_Mn.c: Regenerated.
32862         * tests/unictype/test-categ_N.c: Regenerated.
32863         * tests/unictype/test-categ_Nd.c: Regenerated.
32864         * tests/unictype/test-categ_Nl.c: Regenerated.
32865         * tests/unictype/test-categ_No.c: Regenerated.
32866         * tests/unictype/test-categ_P.c: Regenerated.
32867         * tests/unictype/test-categ_Pd.c: Regenerated.
32868         * tests/unictype/test-categ_Pe.c: Regenerated.
32869         * tests/unictype/test-categ_Pf.c: Regenerated.
32870         * tests/unictype/test-categ_Pi.c: Regenerated.
32871         * tests/unictype/test-categ_Po.c: Regenerated.
32872         * tests/unictype/test-categ_Ps.c: Regenerated.
32873         * tests/unictype/test-categ_S.c: Regenerated.
32874         * tests/unictype/test-categ_Sk.c: Regenerated.
32875         * tests/unictype/test-categ_Sm.c: Regenerated.
32876         * tests/unictype/test-categ_So.c: Regenerated.
32877         * tests/unictype/test-ctype_alnum.c: Regenerated.
32878         * tests/unictype/test-ctype_alpha.c: Regenerated.
32879         * tests/unictype/test-ctype_graph.c: Regenerated.
32880         * tests/unictype/test-ctype_lower.c: Regenerated.
32881         * tests/unictype/test-ctype_print.c: Regenerated.
32882         * tests/unictype/test-ctype_punct.c: Regenerated.
32883         * tests/unictype/test-ctype_upper.c: Regenerated.
32884         * tests/unictype/test-decdigit.h: Regenerated.
32885         * tests/unictype/test-digit.h: Regenerated.
32886         * tests/unictype/test-numeric.h: Regenerated.
32887         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32888         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32889         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32890         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32891         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32892         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32893         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32894         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32895         * tests/unictype/test-pr_combining.c: Regenerated.
32896         * tests/unictype/test-pr_dash.c: Regenerated.
32897         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32898         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32899         * tests/unictype/test-pr_deprecated.c: Regenerated.
32900         * tests/unictype/test-pr_diacritic.c: Regenerated.
32901         * tests/unictype/test-pr_extender.c: Regenerated.
32902         * tests/unictype/test-pr_format_control.c: Regenerated.
32903         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32904         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32905         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32906         * tests/unictype/test-pr_id_continue.c: Regenerated.
32907         * tests/unictype/test-pr_id_start.c: Regenerated.
32908         * tests/unictype/test-pr_ideographic.c: Regenerated.
32909         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32910         * tests/unictype/test-pr_lowercase.c: Regenerated.
32911         * tests/unictype/test-pr_math.c: Regenerated.
32912         * tests/unictype/test-pr_numeric.c: Regenerated.
32913         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32914         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32915         Regenerated.
32916         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32917         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32918         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32919         * tests/unictype/test-pr_other_math.c: Regenerated.
32920         * tests/unictype/test-pr_punctuation.c: Regenerated.
32921         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32922         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32923         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32924         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32925         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32926         * tests/unictype/test-pr_uppercase.c: Regenerated.
32927         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32928         * tests/unictype/test-pr_xid_start.c: Regenerated.
32929         * tests/unictype/test-pr_zero_width.c: Regenerated.
32930
32931         Update to Unicode 5.1.0.
32932         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32933         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32934         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32935         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32936         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32937         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32938         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32939         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32940         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32941         (nonspacing_table_ind): Update.
32942         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32943
32944         Update to Unicode 5.1.0.
32945         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32946         code transform.
32947         * lib/uniname/uniname.c (unicode_character_name,
32948         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32949         * lib/uniname/uninames.h: Regenerated.
32950         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32951
32952 2009-02-07  Bruno Haible  <bruno@clisp.org>
32953
32954         Merge gen-ctype and gen-lbrk into a single program.
32955         * lib/gen-uni-tables.c: New file, incorporating
32956         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32957         Add directory prefixes to the names of the generated files.
32958         * lib/unictype/gen-ctype.c: Remove file.
32959         * lib/unilbrk/gen-lbrk.c: Remove file.
32960         * modules/gen-uni-tables: New file.
32961         * modules/unictype/gen-ctype: Remove file.
32962         * modules/unilbrk/gen-lbrk: Remove file.
32963
32964 2009-02-07  Bruno Haible  <bruno@clisp.org>
32965
32966         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32967
32968         New module 'unistr/u32-strcoll'.
32969         * modules/unistr/u32-strcoll: New file.
32970         * lib/unistr/u32-strcoll.c: New file.
32971
32972         New module 'unistr/u16-strcoll'.
32973         * modules/unistr/u16-strcoll: New file.
32974         * lib/unistr/u16-strcoll.c: New file.
32975
32976         New module 'unistr/u8-strcoll'.
32977         * modules/unistr/u8-strcoll: New file.
32978         * lib/unistr/u8-strcoll.c: New file.
32979         * lib/unistr/u-strcoll.h: New file.
32980
32981 2009-02-07  Bruno Haible  <bruno@clisp.org>
32982
32983         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32984         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32985         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32986         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32987         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32988         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32989
32990 2009-02-07  Bruno Haible  <bruno@clisp.org>
32991
32992         Make 64-bit clean.
32993         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32994         output_combclass, output_bidi_category, output_decimal_digit,
32995         output_digit, output_numeric, output_mirror, output_scripts,
32996         output_ident_category): Use proper width specifier in format strings.
32997
32998 2009-02-07  Bruno Haible  <bruno@clisp.org>
32999
33000         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
33001         failure behaviour.
33002
33003 2009-02-07  Jim Meyering  <meyering@redhat.com>
33004
33005         regex: avoid compilation failure with upcoming gcc-4.4
33006         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
33007         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
33008         "... error: integer overflow in preprocessor expression".
33009
33010 2009-02-05  Ben Pfaff  <blp@gnu.org>
33011
33012         Fix link errors on Windows when close module is used.
33013         * modules/close: Add $(LIB_CLOSE) to Link section.
33014         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
33015         $(LIB_CLOSE) on Windows.
33016
33017 2009-02-05  Jim Meyering  <meyering@redhat.com>
33018
33019         still avoid unused-parameter warnings, but do it cleanly
33020         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
33021         (get_fs_usage): Cast to void instead.
33022         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
33023         (dev_from_mount_options, read_file_system_list): Cast to void.
33024         Prompted by Bruno Haible.
33025
33026 2009-02-04  Jim Meyering  <meyering@redhat.com>
33027
33028         fsusage.c: correct copyright year
33029         * lib/fsusage.c: Reflect year in which the change is pushed into
33030
33031         avoid misc. warnings
33032         * lib/fsusage.c (UNUSED_PARAM): Define.
33033         (get_fs_usage): Mark parameter "disk" as unused.
33034         * lib/getugroups.c (getgrent): Use "void" in prototype.
33035         * lib/mountlist.c: Mark unused parameters.
33036         (read_file_system_list): Declare a local with "const".
33037         * lib/nanosleep.c (getnow): Declare static.
33038         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
33039
33040         dirfd: set errno upon failure
33041         * lib/dirfd.c: Include <errno.h>.
33042         Set errno to ENOTSUP when returning -1.
33043         * modules/dirfd (Depends-on): Add errno.
33044         Suggested by John Kodis <kodis@comcast.net>.
33045
33046 2009-02-01  Bruno Haible  <bruno@clisp.org>
33047
33048         Don't assume sizeof (long) >= sizeof (void *).
33049         * lib/memcmp.c: Include stdint.h.
33050         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
33051         srcp2 to 'const byte *'.
33052         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
33053         types to uintptr_t.
33054         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
33055         * modules/memcmp (Depends-on): Add stdint.
33056         Reported by Ozkan Sezer <sezeroz@gmail.com>.
33057
33058 2009-01-30  Eric Blake  <ebb9@byu.net>
33059
33060         fix more require-before-expand issues
33061         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
33062         expand, AC_PROG_AWK.
33063         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
33064
33065 2009-01-28  Eric Blake  <ebb9@byu.net>
33066
33067         version-etc: use consistent URL formatting
33068         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
33069         Improve formatting.  Use fputs for string without %.
33070
33071 2009-01-28  Jim Meyering  <meyering@redhat.com>
33072
33073         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
33074         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
33075         "underquoted definition of NAME" from autoconf-2.59.
33076
33077 2009-01-28  Bruno Haible  <bruno@clisp.org>
33078
33079         * doc/gnulib.texi: Add "Obsolete modules" to index.
33080
33081 2009-01-28  Jim Meyering  <meyering@redhat.com>
33082
33083         useless-if-before-free: recognize more variants
33084         * build-aux/useless-if-before-free: Also recognize e.g.,
33085         if (NULL != p) free (p);
33086
33087 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
33088
33089         test-getaddrinfo: skip (don't fail) this test when there's no network
33090         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
33091         on the presumption that it means you lack network access.
33092
33093 2009-01-26  Jim Meyering  <meyering@redhat.com>
33094
33095         fflush: avoid warnings on modern systems
33096         * lib/fflush.c (rpl_fflush): Move declarations of locals,
33097         pos and result, into scopes where they're used.
33098
33099 2009-01-26  Eric Blake  <ebb9@byu.net>
33100
33101         Silence warning reintroduced by recent extensions patch.
33102         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
33103         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
33104         autoconf.
33105
33106         Backport improved autoconf semantics of AC_DEFUN_ONCE.
33107         * m4/00gnulib.m4: New file.
33108         * gnulib-tool (func_get_filelist): Always use it.
33109         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
33110         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
33111
33112 2009-01-25  Bruno Haible  <bruno@clisp.org>
33113
33114         Make test-quotearg work on MacOS X and AIX.
33115         * tests/test-quotearg.sh: New file.
33116         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
33117         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
33118         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
33119         include <libintl.h>.
33120         (fake_locale): Remove variable.
33121         (gettext, dgettext, dcgettext): Remove functions.
33122         (main): Instead of setting a fake locale, set a real locale. Call
33123         textdomain and bindtextdomain.
33124         * modules/quotearg-tests (Files): Add the new files.
33125         (Depends-on): Add gettext, setenv, unsetenv.
33126         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33127         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
33128         Augment TESTS_ENVIRONMENT.
33129
33130 2009-01-25  Bruno Haible  <bruno@clisp.org>
33131
33132         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
33133         fr_FR.ISO8859-1 locale on MacOS X.
33134         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
33135         ja_JP.eucJP locale on MacOS X.
33136         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
33137         zh_CN.GB18030 locale on MacOS X.
33138
33139 2009-01-25  Bruno Haible  <bruno@clisp.org>
33140
33141         Avoid link errors on MacOS X 10.3.
33142         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
33143         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33144
33145 2009-01-25  Bruno Haible  <bruno@clisp.org>
33146
33147         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33148         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
33149         * modules/pipe (Files): Remove m4/posix_spawn.m4.
33150         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33151         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
33152         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33153         posix_spawnattr_init, posix_spawnattr_setsigmask,
33154         posix_spawnattr_setflags, posix_spawnattr_destroy.
33155
33156         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33157         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
33158         * modules/execute (Files): Remove m4/posix_spawn.m4.
33159         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33160         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33161         posix_spawnattr_init, posix_spawnattr_setsigmask,
33162         posix_spawnattr_setflags, posix_spawnattr_destroy.
33163
33164 2009-01-25  Bruno Haible  <bruno@clisp.org>
33165
33166         * lib/glthread/threadlib.c: Include <stdlib.h>.
33167
33168 2009-01-25  Bruno Haible  <bruno@clisp.org>
33169
33170         * lib/glthread/threadlib.c (dummy): New declaration.
33171
33172 2009-01-25  Bruno Haible  <bruno@clisp.org>
33173
33174         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
33175         multibyte characters also for the GB18030 encoding. Don't crash when
33176         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
33177
33178 2009-01-25  Bruno Haible  <bruno@clisp.org>
33179
33180         Avoid redefining 'struct random_data' on OSF/1 5.1.
33181         * lib/stdlib.in.h: Include <random.h> if it exists.
33182         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
33183         HAVE_RANDOM_H. Include <random.h> when testing whether
33184         'struct random_data' exists.
33185         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
33186
33187 2009-01-25  Bruno Haible  <bruno@clisp.org>
33188
33189         Don't install charset.alias on MacOS X >= 10.3.
33190         * lib/localcharset.c (DARWIN7): New macro.
33191         (get_charset_aliases): Hardcode the result for Darwin7.
33192         * modules/localcharset (install-exec-local): Don't install
33193         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
33194
33195 2009-01-25  Bruno Haible  <bruno@clisp.org>
33196
33197         Don't install charset.alias on mingw and Cygwin.
33198         * modules/localcharset (install-exec-local): Don't install
33199         charset.alias on mingw and Cygwin, if the file does not yet exist.
33200         The result for these platforms is hardcoded in localcharset.c.
33201
33202 2009-01-25  Bruno Haible  <bruno@clisp.org>
33203
33204         Make it possible again to use AC_GNU_SOURCE together with gnulib.
33205         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
33206         before requiring AC_USE_SYSTEM_EXTENSIONS.
33207
33208 2009-01-25  Jim Meyering  <meyering@redhat.com>
33209
33210         c-strtod: avoid warnings
33211         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
33212         "assignment discards qualifiers from pointer target type" warnings.
33213
33214 2009-01-24  Bruno Haible  <bruno@clisp.org>
33215
33216         Add support for non-UTF-8 locales on MacOS X.
33217         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
33218         canonical encodings. For Darwin 7 and newer, don't map traditional
33219         encodings to UTF-8.
33220         Reported by Vincent Lefevre <vincent@vinc17.org>
33221         at <http://savannah.gnu.org/bugs/?25235>.
33222
33223 2009-01-24  Bruno Haible  <bruno@clisp.org>
33224
33225         * doc/gnulib.texi (Obsolete modules): New section.
33226         Reported by Mike Frysinger <vapier@gentoo.org>.
33227
33228 2009-01-24  Bruno Haible  <bruno@clisp.org>
33229
33230         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
33231         (%.dvi): New rule.
33232
33233 2009-01-24  Bruno Haible  <bruno@clisp.org>
33234
33235         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
33236         Reported by Eric Blake.
33237
33238 2009-01-24  Bruno Haible  <bruno@clisp.org>
33239
33240         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
33241         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
33242         Reported by Gary V. Vaughan <gary@gnu.org>.
33243
33244 2009-01-24  Bruno Haible  <bruno@clisp.org>
33245
33246         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
33247
33248 2009-01-23  Bruno Haible  <bruno@clisp.org>
33249
33250         Make c-strtod, c-strtold usable in libraries.
33251         * lib/c-strtod.c: Include string.h instead of xalloc.h.
33252         (C_STRTOD): Call strdup instead of xstrdup.
33253         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
33254         * modules/c-strtold (Depends-on): Likewise.
33255         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
33256         * NEWS: Mention the change.
33257         Reported by Michael Gold <mgold@ncf.ca>.
33258
33259 2009-01-23  Jim Meyering  <meyering@redhat.com>
33260
33261         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
33262         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
33263         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
33264
33265 2009-01-23  Simon Josefsson  <simon@josefsson.org>
33266
33267         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
33268         GNU CoreUtils.
33269         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
33270         * modules/version-etc (Description): Update.
33271
33272 2009-01-22  Bruno Haible  <bruno@clisp.org>
33273
33274         Cache the C locale object.
33275         * lib/c-strtod.c (c_locale_cache): New variable.
33276         (c_locale): New function.
33277         (C_STRTOD): Use it, and don't call freelocale.
33278         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
33279         Suggested by Paolo Bonzini.
33280
33281 2009-01-21  Bruno Haible  <bruno@clisp.org>
33282
33283         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
33284         conditions other than overflow.
33285
33286 2009-01-21  Bruno Haible  <bruno@clisp.org>
33287
33288         * lib/c-strtod.c: Include errno.h.
33289         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
33290         value from STRTOD_L and STRTOD.
33291
33292 2009-01-21  Bruno Haible  <bruno@clisp.org>
33293         and Jim Meyering  <meyering@redhat.com>
33294
33295         nanosleep: skip configure test (fail it) for apple universal builds
33296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
33297         universal builds, assume that nanosleep does not work.
33298         * modules/nanosleep (Depends-on): Add multiarch.
33299
33300         mktime: skip configure test (fail it) for apple universal builds
33301         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
33302         universal builds, assume that mktime does not work.
33303         * modules/mktime (Depends-on): Add multiarch.
33304
33305 2009-01-21  Eric Blake  <ebb9@byu.net>
33306
33307         multiarch: avoid expand-before-require warning
33308         * modules/multiarch (configure.ac): Require, rather than expand,
33309         gl_MULTIARCH.
33310         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
33311         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
33312         enforce that all clients require it.  Partial reversion of
33313         2008-12-29 patch.
33314
33315         error: avoid expand-before-require warning
33316         * modules/errno (configure.ac): Require, rather than expand,
33317         gl_HEADER_ERRNO_H.
33318         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
33319         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
33320         enforce that all clients require it.
33321
33322         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
33323         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
33324         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
33325         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
33326
33327 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
33328
33329         Revert:
33330         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33331
33332         regex: do not depend on obsolete modules.
33333         * modules/regex: Remove memcmp and memmove.
33334
33335 2009-01-20  Bruno Haible  <bruno@clisp.org>
33336
33337         Make the 'link' module link on Windows NT 4.
33338         * lib/link.c (_WIN32_WINNT): Don't define.
33339         (CreateHardLinkFuncType): New type.
33340         (CreateHardLinkFunc, initialized): New variables.
33341         (initialize): New function.
33342         (link): Invoke CreateHardLink indirectly through the function pointer.
33343
33344 2009-01-20  Bruno Haible  <bruno@clisp.org>
33345
33346         Fix compilation failure on mingw.
33347         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
33348
33349 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
33350
33351         * doc/c-strtod.texi: Mention a couple of restrictions.
33352
33353 2009-01-20  Jim Meyering  <meyering@redhat.com>
33354
33355         gettimeofday: move more declarations out of functions
33356         * lib/gettimeofday.c: Move extern declarations of tzset and
33357         gmtime out of containing functions.  Prompted by Bruno Haible.
33358
33359 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33360
33361         regex: do not depend on obsolete modules.
33362         * modules/regex: Remove memcmp and memmove.
33363
33364 2009-01-19  Bruno Haible  <bruno@clisp.org>
33365
33366         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33367         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
33368         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33369         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
33370         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
33371
33372 2009-01-19  Bruno Haible  <bruno@clisp.org>
33373
33374         * tests/test-link.c: Include <errno.h>.
33375         (main): Exit with code 77 when a hard link cannot be created due to
33376         the file system.
33377         * tests/test-link.sh: Skip test when a hard link cannot be created due
33378         to the file system.
33379         Suggested by Eric Blake.
33380
33381 2009-01-19  Martin Lambers  <marlam@marlam.de>
33382
33383         * modules/link-tests: New file.
33384         * tests/test-link.sh: New file.
33385         * tests/test-link.c: New file.
33386
33387 2009-01-19  Eric Blake  <ebb9@byu.net>
33388
33389         doc: mention another function added in cygwin 1.7.0
33390         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
33391         Another new function in cygwin 1.7.
33392
33393 2009-01-19  Bruno Haible  <bruno@clisp.org>
33394
33395         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33396         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
33397         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
33398         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33399         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33400         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
33401         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
33402         * m4/md4.m4 (gl_MD4): Likewise.
33403         * m4/md5.m4 (gl_MD5): Likewise.
33404         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
33405         * m4/sha1.m4 (gl_SHA1): Likewise.
33406         * m4/sha256.m4 (gl_SHA256): Likewise.
33407         * m4/sha512.m4 (gl_SHA512): Likewise.
33408
33409 2009-01-19  Bruno Haible  <bruno@clisp.org>
33410
33411         * modules/uniname/uniname-tests (Depends-on): Add progname.
33412         * tests/uniname/test-uninames.c: Include progname.h.
33413         (main): Call set_program_name.
33414
33415         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
33416         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
33417         (main): Call set_program_name.
33418
33419         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
33420         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
33421         (main): Call set_program_name.
33422
33423         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
33424         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
33425         (main): Call set_program_name.
33426
33427         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
33428         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
33429         (main): Call set_program_name.
33430
33431         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
33432         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
33433         (main): Call set_program_name.
33434
33435         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
33436         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
33437         (main): Call set_program_name.
33438
33439         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
33440         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
33441         (main): Call set_program_name.
33442
33443         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
33444         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
33445         (main): Call set_program_name.
33446
33447 2009-01-19  Eric Blake  <ebb9@byu.net>
33448
33449         test-unistd: test previous patch
33450         * tests/test-unistd.c: Test *_FILENO macros.
33451
33452         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
33453         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33454         Guarantee a definition.
33455         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
33456         * modules/unistd-safer (Depends-on): Add dependency on unistd.
33457         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
33458         * lib/dup-safer.c (STDERR_FILENO): Likewise.
33459         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33460         Likewise.
33461         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
33462         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
33463         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33464         Likewise.
33465         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
33466         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
33467         (STDERR_FILENO): Likewise.
33468         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
33469         (STDERR_FILENO): Likewise.
33470         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
33471         (STDERR_FILENO): Likewise.
33472         Reported by Elbert Pol.
33473
33474 2009-01-19  Eric Blake  <ebb9@byu.net>
33475
33476         doc: mention more functions added in cygwin 1.7.0
33477         * doc/posix-functions/abort.texi (abort): Update wording related
33478         to cygwin.
33479         * doc/posix-functions/daylight.texi (daylight): Likewise.
33480         * doc/posix-functions/optarg.texi (optarg): Likewise.
33481         * doc/posix-functions/optarg.texi (opterr): Likewise.
33482         * doc/posix-functions/optarg.texi (optind): Likewise.
33483         * doc/posix-functions/optarg.texi (optopt): Likewise.
33484         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
33485         worked in 1.5.x, and was withdrawn in 1.7.
33486         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
33487         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
33488         cygwin versions.
33489         * doc/posix-functions/perror.texi (perror): Likewise.
33490         * doc/posix-functions/printf.texi (printf): Likewise.
33491         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
33492         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
33493         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33494         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33495         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
33496         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
33497         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33498         Likewise.
33499         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33500         Likewise.
33501         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
33502         this function.
33503         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
33504         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
33505         Likewise.
33506         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
33507         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
33508         * doc/posix-functions/confstr.texi (confstr): Likewise.
33509         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
33510         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
33511         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
33512         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
33513         * doc/posix-functions/fputws.texi (fputws): Likewise.
33514         * doc/posix-functions/fwide.texi (fwide): Likewise.
33515         * doc/posix-functions/getwc.texi (getwc): Likewise.
33516         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
33517         * doc/posix-functions/putwc.texi (putwc): Likewise.
33518         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
33519         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
33520         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
33521         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
33522         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
33523         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
33524         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
33525         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
33526         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
33527         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
33528         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
33529
33530 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33531
33532         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
33533         * lib/ioctl.c: Include <sys/ioctl.h>.
33534
33535 2009-01-19  Simon Josefsson  <simon@josefsson.org>
33536
33537         * modules/getdate-tests (Depends-on): Add progname.
33538         * tests/test-getdate.c: Use progname module, to avoid link errors
33539         on non-glibc systems.
33540
33541 2009-01-18  Simon Josefsson  <simon@josefsson.org>
33542
33543         * modules/filenamecat-tests (Depends-on): Add progname.
33544         * modules/fstrcmp-tests (Depends-on): Likewise.
33545
33546         * tests/test-filenamecat.c: Use progname module, to avoid link
33547         errors on non-glibc systems.
33548         * tests/test-fstrcmp.c: Likewise.
33549
33550 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33551
33552         gettimeofday: avoid warning: nested extern declaration of 'localtime'
33553         * lib/gettimeofday.c: Move extern declaration out of function.
33554
33555 2009-01-18  Bruno Haible  <bruno@clisp.org>
33556
33557         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
33558         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
33559         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
33560
33561 2009-01-18  Bruno Haible  <bruno@clisp.org>
33562
33563         * lib/strftime.c (MEMPCPY): Remove unused macro.
33564         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
33565
33566 2009-01-18  Martin Lambers  <marlam@marlam.de>
33567
33568         New module 'link'.
33569         * lib/unistd.in.h (link): New declaration.
33570         * lib/link.c: New file.
33571         * m4/link.m4: New file.
33572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
33573         HAVE_LINK.
33574         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
33575         * modules/link: New file.
33576         * doc/posix-functions/link.texi: Mention the new module.
33577
33578 2009-01-18  Bruno Haible  <bruno@clisp.org>
33579
33580         * tests/test-avltree_list.c (main): Call set_program_name.
33581         * tests/test-avltree_oset.c (main): Likewise.
33582         * tests/test-obstack-printf.c: Include progname.h.
33583         (main): Call set_program_name.
33584         * tests/test-quotearg.c: Include progname.h.
33585         (main): Call set_program_name.
33586         * tests/test-xmemdup0.c: Include progname.h.
33587         (main): Call set_program_name.
33588
33589 2009-01-18  Bruno Haible  <bruno@clisp.org>
33590
33591         New module 'alphasort'.
33592         * lib/dirent.in.h (alphasort): New declaration.
33593         * lib/alphasort.c: New file, from glibc with modifications.
33594         * m4/alphasort.m4: New file.
33595         * modules/alphasort: New file.
33596         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
33597         HAVE_ALPHASORT.
33598         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
33599         HAVE_ALPHASORT.
33600         * doc/posix-functions/alphasort.texi: Mention the new module and the
33601         portability problems.
33602
33603 2009-01-18  Bruno Haible  <bruno@clisp.org>
33604
33605         New module 'scandir'.
33606         * lib/dirent.in.h (scandir): New declaration.
33607         * lib/scandir.c: New file, from glibc with modifications.
33608         * m4/scandir.m4: New file.
33609         * modules/scandir: New file.
33610         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
33611         HAVE_SCANDIR.
33612         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
33613         HAVE_SCANDIR.
33614         * doc/posix-functions/scandir.texi: Mention the new module and the
33615         portability problems.
33616
33617 2009-01-17  Bruno Haible  <bruno@clisp.org>
33618
33619         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
33620         Update documentation.
33621         (func_remove_suffix): Escape all dots in the suffix. Update
33622         documentation.
33623         (func_filter_filelist): Update documentation.
33624         Reported by Ralf Wildenhues.
33625
33626 2009-01-17  Bruno Haible  <bruno@clisp.org>
33627
33628         * modules/dprintf-posix-tests: New file.
33629         * tests/test-dprintf-posix.sh: New file.
33630         * tests/test-dprintf-posix.c: New file.
33631
33632         New modules 'dprintf', 'dprintf-posix'.
33633         * lib/stdio.in.h (dprintf): New declaration.
33634         * lib/dprintf.c: New file.
33635         * m4/dprintf.m4: New file.
33636         * m4/dprintf-posix.m4: New file.
33637         * modules/dprintf: New file.
33638         * modules/dprintf-posix: New file.
33639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
33640         HAVE_DPRINTF, REPLACE_DPRINTF.
33641         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
33642         HAVE_DPRINTF, REPLACE_DPRINTF.
33643         * doc/posix-functions/dprintf.texi: Mention the new modules.
33644
33645 2009-01-17  Bruno Haible  <bruno@clisp.org>
33646
33647         * modules/vdprintf-posix-tests: New file.
33648         * tests/test-vdprintf-posix.sh: New file.
33649         * tests/test-vdprintf-posix.c: New file.
33650
33651         New modules 'vdprintf', 'vdprintf-posix'.
33652         * lib/stdio.in.h (vdprintf): New declaration.
33653         * lib/vdprintf.c: New file.
33654         * m4/vdprintf.m4: New file.
33655         * m4/vdprintf-posix.m4: New file.
33656         * modules/vdprintf: New file.
33657         * modules/vdprintf-posix: New file.
33658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33659         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33660         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33661         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33662         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33663
33664 2009-01-17  Bruno Haible  <bruno@clisp.org>
33665
33666         Fix replacement of fopen on mingw.
33667         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33668         mingw.
33669
33670 2009-01-17  Bruno Haible  <bruno@clisp.org>
33671
33672         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33673         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33674
33675 2009-01-17  Bruno Haible  <bruno@clisp.org>
33676
33677         Avoid test-fflush2.sh failure on mingw.
33678         * tests/test-fflush2.c: Include binary-io.h.
33679         (main): Put standard input into binary mode.
33680         * modules/fflush-tests (Depends-on): Add binary-io.
33681
33682 2009-01-17  Bruno Haible  <bruno@clisp.org>
33683
33684         * lib/wchar.in.h: In another particular situation, include only the
33685         system's <wchar.h> file.
33686         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33687         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33688         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33689
33690 2009-01-17  Bruno Haible  <bruno@clisp.org>
33691
33692         Support for stripping executables in --enable-relocatable.
33693         * build-aux/install-reloc: Expect one more argument, or an environment
33694         variable RELOC_STRIP_PROG. If set, strip the destination program and
33695         its wrapper.
33696         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33697         RELOC_STRIP_PROG.
33698         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33699         to set RELOCATABLE_STRIP.
33700         * NEWS: Mention the new Makefile requirement.
33701
33702 2009-01-17  Bruno Haible  <bruno@clisp.org>
33703
33704         * build-aux/install-reloc: Remove debugging information left over by
33705         C compiler on MacOS X.
33706
33707 2009-01-17  Bruno Haible  <bruno@clisp.org>
33708
33709         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33710         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33711         _NSGetExecutablePath.
33712
33713 2009-01-16  Jim Meyering  <meyering@redhat.com>
33714
33715         strerror: avoid warnings about discarding "const"
33716         * lib/strerror.c (rpl_strerror): Instead of returning a const
33717         string from each and every "case", use a variable, and add a single
33718         cast after the switch.
33719
33720 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33721
33722         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33723
33724 2009-01-16  Bruno Haible  <bruno@clisp.org>
33725
33726         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33727         array initializer syntax that also works in C++ mode.
33728         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33729
33730 2009-01-16  Jim Meyering  <meyering@redhat.com>
33731
33732         poll: suppress a warning
33733         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33734         to ignore "...unsigned expression < 0 is always false" warnings.
33735
33736 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33737
33738         poll: remove declarations of unused variables
33739         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33740         sockbuf and optlen.
33741
33742 2009-01-15  Bruno Haible  <bruno@clisp.org>
33743
33744         Make fflush-after-ungetc POSIX compliant on BSD systems.
33745         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33746         (clear_ungetc_buffer): Implement also for other systems.
33747         (rpl_fflush): On glibc systems, invoke
33748         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33749         clear_ungetc_buffer after fetching the stream's position, not before.
33750
33751 2009-01-15  Bruno Haible  <bruno@clisp.org>
33752
33753         Make fflush-after-ungetc POSIX compliant on glibc systems.
33754         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33755         after ungetc.
33756         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33757         (rpl_fflush): On glibc systems, simply call the system's fflush
33758         function after clearing the ungetc buffer.
33759         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33760         Instead, lseek only to the end of file, then use the system's fseeko
33761         for the rest. On glibc systems, reset the EOF indicator bit.
33762
33763 2009-01-15  Jim Meyering  <meyering@redhat.com>
33764
33765         openmp.m4: revert quote-adding change, for portability to older autoconf
33766         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33767         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33768         Simon Josefsson noticed the problem when using autoconf-2.61.
33769
33770 2009-01-15  Bruno Haible  <bruno@clisp.org>
33771
33772         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33773         * tests/test-fflush2.c (ASSERT): Always fail.
33774         (main): Add two tests for fflush() after ungetc(), taking into account
33775         the Austin Group's clarification.
33776         Suggested by Eric Blake.
33777
33778 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33779
33780         mktime.m4: remove K&R-style function prototypes
33781         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33782         for the Sun C++ compiler.
33783
33784 2009-01-14  Bruno Haible  <bruno@clisp.org>
33785
33786         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33787         while including <wchar.h>.
33788         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33789         the system's <wchar.h> file.
33790         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33791
33792 2009-01-14  Bruno Haible  <bruno@clisp.org>
33793
33794         * m4/csharp.m4: Don't mention gettext on the serial number line.
33795         * m4/csharpexec.m4: Likewise.
33796         * m4/eaccess.m4: Likewise.
33797         * m4/javaexec.m4: Likewise.
33798         * m4/sig_atomic_t.m4: Likewise.
33799         * m4/tmpdir.m4: Likewise.
33800         * m4/intldir.m4: Bump gettext version.
33801         * m4/lib-ld.m4: Likewise.
33802
33803 2009-01-14  Bruno Haible  <bruno@clisp.org>
33804
33805         * lib/progname.c (set_program_name): Add more comments.
33806         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33807
33808 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33809
33810         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33811         were sys/stat.h does not define it.
33812
33813 2009-01-14  Jim Meyering  <meyering@redhat.com>
33814
33815         many *.m4 files: improve m4 quoting
33816         99% of this change was performed by running the following commands:
33817         git ls-files | grep '\.m4$' | xargs perl -pi \
33818           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33819           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33820           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33821           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33822         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33823         The remainder were to add Copyright dates, increment serial numbers,
33824         undo some changes in comments, exclude m4/intl.m4, and add quotes
33825         around the "1" in ",1" where the unusual spacing prohibited the
33826         above regexps from doing the job.  For more details, see
33827         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33828         * m4/acl.m4: Modified.
33829         * m4/afs.m4: Likewise.
33830         * m4/alloca.m4: Likewise.
33831         * m4/argp.m4: Likewise.
33832         * m4/argz.m4: Likewise.
33833         * m4/atexit.m4: Likewise.
33834         * m4/bison-i18n.m4: Likewise.
33835         * m4/bison.m4: Likewise.
33836         * m4/byteswap.m4: Likewise.
33837         * m4/c-stack.m4: Likewise.
33838         * m4/c-strtod.m4: Likewise.
33839         * m4/calloc.m4: Likewise.
33840         * m4/canonicalize-lgpl.m4: Likewise.
33841         * m4/chown.m4: Likewise.
33842         * m4/clock_time.m4: Likewise.
33843         * m4/codeset.m4: Likewise.
33844         * m4/copy-file.m4: Likewise.
33845         * m4/csharp.m4: Likewise.
33846         * m4/csharpcomp.m4: Likewise.
33847         * m4/csharpexec.m4: Likewise.
33848         * m4/d-ino.m4: Likewise.
33849         * m4/d-type.m4: Likewise.
33850         * m4/dirfd.m4: Likewise.
33851         * m4/double-slash-root.m4: Likewise.
33852         * m4/eaccess.m4: Likewise.
33853         * m4/eealloc.m4: Likewise.
33854         * m4/environ.m4: Likewise.
33855         * m4/errno_h.m4: Likewise.
33856         * m4/euidaccess.m4: Likewise.
33857         * m4/execute.m4: Likewise.
33858         * m4/fatal-signal.m4: Likewise.
33859         * m4/fchdir.m4: Likewise.
33860         * m4/fcntl_h.m4: Likewise.
33861         * m4/fileblocks.m4: Likewise.
33862         * m4/filenamecat.m4: Likewise.
33863         * m4/findprog.m4: Likewise.
33864         * m4/flexmember.m4: Likewise.
33865         * m4/fnmatch.m4: Likewise.
33866         * m4/fopen.m4: Likewise.
33867         * m4/fpending.m4: Likewise.
33868         * m4/fprintf-posix.m4: Likewise.
33869         * m4/free.m4: Likewise.
33870         * m4/frexp.m4: Likewise.
33871         * m4/frexpl.m4: Likewise.
33872         * m4/fsusage.m4: Likewise.
33873         * m4/ftruncate.m4: Likewise.
33874         * m4/gc-camellia.m4: Likewise.
33875         * m4/gc-random.m4: Likewise.
33876         * m4/gc.m4: Likewise.
33877         * m4/getaddrinfo.m4: Likewise.
33878         * m4/getcwd-abort-bug.m4: Likewise.
33879         * m4/getcwd-path-max.m4: Likewise.
33880         * m4/getdate.m4: Likewise.
33881         * m4/getdomainname.m4: Likewise.
33882         * m4/getgroups.m4: Likewise.
33883         * m4/gethostname.m4: Likewise.
33884         * m4/gethrxtime.m4: Likewise.
33885         * m4/getline.m4: Likewise.
33886         * m4/getloadavg.m4: Likewise.
33887         * m4/getndelim2.m4: Likewise.
33888         * m4/getpass.m4: Likewise.
33889         * m4/gettext.m4: Likewise.
33890         * m4/gettime.m4: Likewise.
33891         * m4/gettimeofday.m4: Likewise.
33892         * m4/gnulib-common.m4: Likewise.
33893         * m4/group-member.m4: Likewise.
33894         * m4/host-os.m4: Likewise.
33895         * m4/iconv.m4: Likewise.
33896         * m4/iconv_open.m4: Likewise.
33897         * m4/inet_ntop.m4: Likewise.
33898         * m4/inet_pton.m4: Likewise.
33899         * m4/inline.m4: Likewise.
33900         * m4/intldir.m4: Likewise.
33901         * m4/intlmacosx.m4: Likewise.
33902         * m4/intmax.m4: Likewise.
33903         * m4/intmax_t.m4: Likewise.
33904         * m4/inttypes.m4: Likewise.
33905         * m4/inttypes_h.m4: Likewise.
33906         * m4/inttypes-pri.m4: Likewise.
33907         * m4/isapipe.m4: Likewise.
33908         * m4/isnand.m4: Likewise.
33909         * m4/isnanf.m4: Likewise.
33910         * m4/isnanl.m4: Likewise.
33911         * m4/javacomp.m4: Likewise.
33912         * m4/javaexec.m4: Likewise.
33913         * m4/jm-winsz1.m4: Likewise.
33914         * m4/jm-winsz2.m4: Likewise.
33915         * m4/lchown.m4: Likewise.
33916         * m4/lcmessage.m4: Likewise.
33917         * m4/ldexpl.m4: Likewise.
33918         * m4/lib-ld.m4: Likewise.
33919         * m4/lib-link.m4: Likewise.
33920         * m4/libsigsegv.m4: Likewise.
33921         * m4/link-follow.m4: Likewise.
33922         * m4/localcharset.m4: Likewise.
33923         * m4/locale-fr.m4: Likewise.
33924         * m4/locale-ja.m4: Likewise.
33925         * m4/locale-tr.m4: Likewise.
33926         * m4/locale-zh.m4: Likewise.
33927         * m4/lock.m4: Likewise.
33928         * m4/longlong.m4: Likewise.
33929         * m4/ls-mntd-fs.m4: Likewise.
33930         * m4/lstat.m4: Likewise.
33931         * m4/malloc.m4: Likewise.
33932         * m4/mathl.m4: Likewise.
33933         * m4/mbrtowc.m4: Likewise.
33934         * m4/mbstate_t.m4: Likewise.
33935         * m4/mbswidth.m4: Likewise.
33936         * m4/memchr.m4: Likewise.
33937         * m4/memcmp.m4: Likewise.
33938         * m4/memcpy.m4: Likewise.
33939         * m4/memmem.m4: Likewise.
33940         * m4/memmove.m4: Likewise.
33941         * m4/mempcpy.m4: Likewise.
33942         * m4/memrchr.m4: Likewise.
33943         * m4/memset.m4: Likewise.
33944         * m4/minmax.m4: Likewise.
33945         * m4/mkdir-slash.m4: Likewise.
33946         * m4/mkdtemp.m4: Likewise.
33947         * m4/mktime.m4: Likewise.
33948         * m4/mmap-anon.m4: Likewise.
33949         * m4/mountlist.m4: Likewise.
33950         * m4/nanosleep.m4: Likewise.
33951         * m4/nls.m4: Likewise.
33952         * m4/nocrash.m4: Likewise.
33953         * m4/open.m4: Likewise.
33954         * m4/openat.m4: Likewise.
33955         * m4/openmp.m4: Likewise.
33956         * m4/pathmax.m4: Likewise.
33957         * m4/perl.m4: Likewise.
33958         * m4/physmem.m4: Likewise.
33959         * m4/pipe.m4: Likewise.
33960         * m4/po.m4: Likewise.
33961         * m4/poll.m4: Likewise.
33962         * m4/posixtm.m4: Likewise.
33963         * m4/posixver.m4: Likewise.
33964         * m4/printf-frexp.m4: Likewise.
33965         * m4/printf-frexpl.m4: Likewise.
33966         * m4/printf-posix.m4: Likewise.
33967         * m4/printf-posix-rpl.m4: Likewise.
33968         * m4/printf.m4: Likewise.
33969         * m4/progtest.m4: Likewise.
33970         * m4/putenv.m4: Likewise.
33971         * m4/readline.m4: Likewise.
33972         * m4/readlink.m4: Likewise.
33973         * m4/readutmp.m4: Likewise.
33974         * m4/realloc.m4: Likewise.
33975         * m4/regex.m4: Likewise.
33976         * m4/relocatable.m4: Likewise.
33977         * m4/relocatable-lib.m4: Likewise.
33978         * m4/rename-dest-slash.m4: Likewise.
33979         * m4/rename.m4: Likewise.
33980         * m4/rmdir-errno.m4: Likewise.
33981         * m4/rmdir.m4: Likewise.
33982         * m4/roundf.m4: Likewise.
33983         * m4/roundl.m4: Likewise.
33984         * m4/rpmatch.m4: Likewise.
33985         * m4/save-cwd.m4: Likewise.
33986         * m4/selinux-selinux-h.m4: Likewise.
33987         * m4/setenv.m4: Likewise.
33988         * m4/settime.m4: Likewise.
33989         * m4/sig2str.m4: Likewise.
33990         * m4/sig_atomic_t.m4: Likewise.
33991         * m4/signalblocking.m4: Likewise.
33992         * m4/signbit.m4: Likewise.
33993         * m4/sigpipe.m4: Likewise.
33994         * m4/sockets.m4: Likewise.
33995         * m4/sockpfaf.m4: Likewise.
33996         * m4/st_dm_mode.m4: Likewise.
33997         * m4/stat-time.m4: Likewise.
33998         * m4/stdbool.m4: Likewise.
33999         * m4/stdint.m4: Likewise.
34000         * m4/stdint_h.m4: Likewise.
34001         * m4/stpcpy.m4: Likewise.
34002         * m4/stpncpy.m4: Likewise.
34003         * m4/strcase.m4: Likewise.
34004         * m4/strchrnul.m4: Likewise.
34005         * m4/strcspn.m4: Likewise.
34006         * m4/strdup.m4: Likewise.
34007         * m4/strftime.m4: Likewise.
34008         * m4/strndup.m4: Likewise.
34009         * m4/strnlen.m4: Likewise.
34010         * m4/strpbrk.m4: Likewise.
34011         * m4/strptime.m4: Likewise.
34012         * m4/strsep.m4: Likewise.
34013         * m4/strtod.m4: Likewise.
34014         * m4/strtoimax.m4: Likewise.
34015         * m4/strtok_r.m4: Likewise.
34016         * m4/strtol.m4: Likewise.
34017         * m4/strtoll.m4: Likewise.
34018         * m4/strtoul.m4: Likewise.
34019         * m4/strtoull.m4: Likewise.
34020         * m4/strtoumax.m4: Likewise.
34021         * m4/strverscmp.m4: Likewise.
34022         * m4/threadlib.m4: Likewise.
34023         * m4/timegm.m4: Likewise.
34024         * m4/tm_gmtoff.m4: Likewise.
34025         * m4/tmpdir.m4: Likewise.
34026         * m4/tmpfile.m4: Likewise.
34027         * m4/tzset.m4: Likewise.
34028         * m4/uintmax_t.m4: Likewise.
34029         * m4/unlinkdir.m4: Likewise.
34030         * m4/unlocked-io.m4: Likewise.
34031         * m4/uptime.m4: Likewise.
34032         * m4/userspec.m4: Likewise.
34033         * m4/utimbuf.m4: Likewise.
34034         * m4/utime.m4: Likewise.
34035         * m4/utimes-null.m4: Likewise.
34036         * m4/utimes.m4: Likewise.
34037         * m4/vararrays.m4: Likewise.
34038         * m4/vasnprintf.m4: Likewise.
34039         * m4/vfprintf-posix.m4: Likewise.
34040         * m4/vprintf-posix.m4: Likewise.
34041         * m4/wait-process.m4: Likewise.
34042         * m4/wchar_t.m4: Likewise.
34043         * m4/wint_t.m4: Likewise.
34044         * m4/write-any-file.m4: Likewise.
34045         * m4/yield.m4: Likewise.
34046
34047 2009-01-13  Bruno Haible  <bruno@clisp.org>
34048
34049         Avoid test-copy-file.sh failures when ACL support insufficient.
34050         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
34051         TESTS_ENVIRONMENT.
34052         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
34053         Reported by Jim Meyering.
34054
34055 2009-01-13  Bruno Haible  <bruno@clisp.org>
34056
34057         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
34058         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
34059         * modules/unistdio/u8-printf-parse (Files): Likewise.
34060         * modules/unistdio/u32-printf-parse (Files): Likewise.
34061         * modules/unistdio/ulc-printf-parse (Files): Likewise.
34062
34063 2009-01-13  Simon Josefsson  <simon@josefsson.org>
34064
34065         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
34066         and m4/inttypes_h.m4 too.
34067
34068 2009-01-12  Eric Blake  <ebb9@byu.net>
34069
34070         tests: IRIX 6.2 cc can't compile -0.0 into .data
34071         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
34072         rather than at compile-time.
34073         * tests/test-floorl.c (minus_zero): Likewise.
34074         * tests/test-frexpl.c (minus_zero): Likewise.
34075         * tests/test-isnan.c (minus_zerol): Likewise.
34076         * tests/test-isnanl.h (minus_zero): Likewise.
34077         * tests/test-ldexpl.c (minus_zero): Likewise.
34078         * tests/test-roundl.c (minus_zero): Likewise.
34079         * tests/test-signbit.c (minus_zerol): Likewise.
34080         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34081         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34082         * tests/test-truncl.c (minus_zero): Likewise.
34083         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34084         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34085         Reported by Tom G. Christensen and Nelson H. F. Beebe.
34086
34087 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34088
34089         regex: fix glibc bug 9697
34090         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
34091         handling.
34092
34093 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34094
34095         regex: fix glibc bug 697
34096         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
34097         being NULL also if there are no backreferences.
34098
34099 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34100
34101         regex: merge glibc changes
34102         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
34103         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
34104         re_string_skip_chars, re_string_reconstruct): Likewise.
34105         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
34106
34107 2009-01-07  Jim Meyering  <meyering@redhat.com>
34108
34109         poll: filter through cppi
34110         * lib/poll.c: Indent cpp directives to reflect nesting.
34111
34112 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
34113
34114         poll: don't return uninitialized
34115         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
34116
34117 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
34118
34119         avoid compile failure on AIX 6.1
34120         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
34121         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
34122
34123 2009-01-04  Jim Meyering  <meyering@redhat.com>
34124
34125         remove duplicate inclusion of <stdio.h>
34126         * tests/test-fprintf-posix.c: Likewise.
34127         * tests/test-printf-posix.c: Likewise.
34128         * tests/test-snprintf-posix.c: Likewise.
34129         * tests/test-sprintf-posix.c: Likewise.
34130         * tests/test-vasprintf-posix.c: Likewise.
34131         * tests/test-vfprintf-posix.c: Likewise.
34132         * tests/test-vprintf-posix.c: Likewise.
34133         * tests/test-vsnprintf-posix.c: Likewise.
34134         * tests/test-vsprintf-posix.c: Likewise.
34135
34136 2009-01-03  Jim Meyering  <meyering@redhat.com>
34137
34138         gnulib-tool: fix sed-based filtering
34139         * gnulib-tool (func_filter_filelist): Remove extra backslash
34140         in sed_fff_filter definition.
34141
34142 2009-01-02  Jim Meyering  <meyering@redhat.com>
34143
34144         strftime: avoid compilation failure on Solaris 2.6
34145         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
34146         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
34147         Don't #define mbrlen or mbsinit, since now they're guaranteed to
34148         be available.  Reported by Tom G. Christensen.  Details in
34149         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
34150
34151 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34152             Bruno Haible  <bruno@clisp.org>
34153
34154         Speed up gnulib-tool by doing more string processing through shell
34155         built-ins.
34156         * gnulib-tool (fast_func_append): New variable.
34157         (func_remove_prefix, func_remove_suffix): New functions.
34158         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
34159         (func_filter_filelist): New function.
34160         (func_get_dependencies): Use func_remove_suffix instead of sed.
34161         (func_get_automake_snippet): Use func_filter_filelist instead of a
34162         subshell and sed invocation.
34163
34164 2009-01-01  Bruno Haible  <bruno@clisp.org>
34165
34166         Fix a security bug.
34167         * gnulib-tool (func_import, import, update): Don't allow the characters
34168         '"', '$', '`', '\' in macro arguments that become part of commands that
34169         are evaluated.
34170
34171 2009-01-01  Bruno Haible  <bruno@clisp.org>
34172
34173         * gnulib-tool (func_reset_sigpipe): Add more comments.
34174
34175 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34176
34177         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
34178         func_emit_tests_Makefile_am, func_import): Abort loops early if we
34179         already know the answer.
34180
34181 2009-01-01  Jim Meyering  <meyering@redhat.com>
34182
34183         * lib/version-etc.c (version_etc_va): Update copyright year.
34184
34185 2008-12-30  Bruno Haible  <bruno@clisp.org>
34186
34187         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
34188         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
34189         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
34190
34191 2008-12-29  Eric Blake  <ebb9@byu.net>
34192
34193         multiarch: avoid autoconf AC_REQUIRE bug
34194         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
34195         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
34196         2.63 and older.
34197         Reported by Bruno Haible, and analyzed in
34198         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
34199
34200 2008-12-29  Bruno Haible  <bruno@clisp.org>
34201
34202         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
34203         files in subdirectories correctly.
34204         Reported by Ralf Wildenhues.
34205
34206 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34207
34208         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
34209         rather than 'join FILE -', for Solaris join.
34210
34211 2008-12-29  Bruno Haible  <bruno@clisp.org>
34212
34213         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
34214         quoting.
34215         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34216         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
34217         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
34218         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
34219         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
34220         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
34221         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
34222         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
34223         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34224         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
34225         * m4/nls.m4 (AM_NLS): Likewise.
34226         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
34227         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
34228         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34229         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
34230         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
34231         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
34232         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
34233         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
34234         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
34235         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34236         * m4/xsize.m4 (gl_XSIZE): Likewise.
34237         Suggested by Jim Meyering.
34238
34239 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34240
34241         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
34242         * lib/parse-duration.c: use a switch instead of cascading if's.
34243
34244 2008-12-29  Eric Blake  <ebb9@byu.net>
34245
34246         wchar.h: supply WEOF on Irix 5.3
34247         * lib/wchar.in.h (wint_t): Also supply WEOF.
34248         * lib/wctype.in.h (wint_t): Likewise.
34249         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
34250         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
34251         Reported by Tom G. Christensen.
34252
34253 2008-12-26  Bruno Haible  <bruno@clisp.org>
34254
34255         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
34256         i486, i586, i686.
34257
34258 2008-12-26  Bruno Haible  <bruno@clisp.org>
34259
34260         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
34261
34262 2008-12-26  Bruno Haible  <bruno@clisp.org>
34263
34264         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
34265         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
34266         not __STDC_CONSTANT_MACROS.
34267         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34268
34269 2008-12-25  Bruno Haible  <bruno@clisp.org>
34270
34271         Add support for universal builds to vasnprintf.
34272         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
34273         universal builds, guess no.
34274         * modules/vasnprintf-posix (Depends-on): Add multiarch.
34275         * modules/vasprintf-posix (Depends-on): Likewise.
34276         * modules/fprintf-posix (Depends-on): Likewise.
34277         * modules/vfprintf-posix (Depends-on): Likewise.
34278         * modules/snprintf-posix (Depends-on): Likewise.
34279         * modules/vsnprintf-posix (Depends-on): Likewise.
34280         * modules/sprintf-posix (Depends-on): Likewise.
34281         * modules/vsprintf-posix (Depends-on): Likewise.
34282         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34283         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34284         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34285         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34286         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34287         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34288         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34289
34290         Add support for universal builds to <inttypes.h>.
34291         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
34292         _SCNu64_PREFIX): In Apple
34293         universal builds, define directly, using _LP64.
34294         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
34295         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
34296         * modules/inttypes (Depends-on): Add multiarch.
34297         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34298
34299         Add support for universal builds to <stdint.h>.
34300         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
34301         universal builds, define directly, using _LP64.
34302         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
34303         Apple universal builds, don't test for the size and suffix of ptrdiff_t
34304         and size_t.
34305         * modules/stdint (Depends-on): Add multiarch.
34306         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34307
34308         New module 'multiarch'.
34309         * modules/multiarch: New file.
34310         * m4/multiarch.m4: New file.
34311
34312 2008-12-25  Bruno Haible  <bruno@clisp.org>
34313
34314         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
34315
34316 2008-12-25  Bruno Haible  <bruno@clisp.org>
34317
34318         * modules/btowc (License): Relicense under LGPLv2+.
34319         * modules/mbsinit (License): Likewise.
34320         * modules/mbrtowc (License): Likewise.
34321         * modules/wcrtomb (License): Likewise.
34322         * modules/streq (License): Likewise.
34323         Reported by David Lutterkort <lutter@redhat.com>.
34324
34325 2008-12-23  Bruno Haible  <bruno@clisp.org>
34326
34327         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
34328
34329 2008-12-23  Bruno Haible  <bruno@clisp.org>
34330
34331         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
34332         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
34333         GETADDRINFO_LIB, not in LIBS.
34334         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
34335         * modules/canon-host (Link): Likewise.
34336         * NEWS: Mention the change.
34337         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
34338         GETADDRINFO_LIB.
34339
34340 2008-12-22  Bruno Haible  <bruno@clisp.org>
34341
34342         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
34343         * doc/posix-functions/iswalpha_l.texi: Likewise.
34344         * doc/posix-functions/iswblank_l.texi: Likewise.
34345         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34346         * doc/posix-functions/iswctype_l.texi: Likewise.
34347         * doc/posix-functions/iswdigit_l.texi: Likewise.
34348         * doc/posix-functions/iswgraph_l.texi: Likewise.
34349         * doc/posix-functions/iswlower_l.texi: Likewise.
34350         * doc/posix-functions/iswprint_l.texi: Likewise.
34351         * doc/posix-functions/iswpunct_l.texi: Likewise.
34352         * doc/posix-functions/iswspace_l.texi: Likewise.
34353         * doc/posix-functions/iswupper_l.texi: Likewise.
34354         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34355         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
34356         * doc/posix-functions/open_wmemstream.texi: Likewise.
34357         * doc/posix-functions/swscanf.texi: Likewise.
34358         * doc/posix-functions/towctrans_l.texi: Likewise.
34359         * doc/posix-functions/towlower.texi: Likewise.
34360         * doc/posix-functions/towlower_l.texi: Likewise.
34361         * doc/posix-functions/towupper.texi: Likewise.
34362         * doc/posix-functions/towupper_l.texi: Likewise.
34363         * doc/posix-functions/vfwprintf.texi: Likewise.
34364         * doc/posix-functions/vfwscanf.texi: Likewise.
34365         * doc/posix-functions/vswscanf.texi: Likewise.
34366         * doc/posix-functions/vwprintf.texi: Likewise.
34367         * doc/posix-functions/vwscanf.texi: Likewise.
34368         * doc/posix-functions/wcpcpy.texi: Likewise.
34369         * doc/posix-functions/wcpncpy.texi: Likewise.
34370         * doc/posix-functions/wcscasecmp.texi: Likewise.
34371         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
34372         * doc/posix-functions/wcscoll_l.texi: Likewise.
34373         * doc/posix-functions/wcsdup.texi: Likewise.
34374         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34375         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
34376         * doc/posix-functions/wcsnlen.texi: Likewise.
34377         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34378         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34379         * doc/posix-functions/wctrans_l.texi: Likewise.
34380         * doc/posix-functions/wctype_l.texi: Likewise.
34381         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
34382         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
34383         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
34384         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
34385         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
34386         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
34387         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
34388         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
34389         * doc/glibc-functions/wcschrnul.texi: Likewise.
34390         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34391         * doc/glibc-functions/wcstod_l.texi: Likewise.
34392         * doc/glibc-functions/wcstof_l.texi: Likewise.
34393         * doc/glibc-functions/wcstol_l.texi: Likewise.
34394         * doc/glibc-functions/wcstold_l.texi: Likewise.
34395         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34396         * doc/glibc-functions/wcstoq.texi: Likewise.
34397         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34398         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34399         * doc/glibc-functions/wcstouq.texi: Likewise.
34400         * doc/glibc-functions/wmempcpy.texi: Likewise.
34401
34402 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
34403             Eric Blake  <ebb9@byu.net>
34404             Paolo Bonzini  <bonzini@gnu.org>
34405             Bruno Haible  <bruno@clisp.org>
34406
34407         Make c-stack work on Haiku.
34408         * lib/c-stack.c (SA_ONSTACK): Define fallback.
34409         (c_stack_action): Use SA_ONSTACK flag.
34410
34411 2008-12-22  Bruno Haible  <bruno@clisp.org>
34412
34413         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
34414
34415 2008-12-22  Bruno Haible  <bruno@clisp.org>
34416
34417         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
34418         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
34419         being overridden.
34420         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
34421         New macros.
34422         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
34423         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
34424         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
34425         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
34426
34427 2008-12-22  Bruno Haible  <bruno@clisp.org>
34428
34429         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
34430         from test code.
34431
34432 2008-12-22  Eric Blake  <ebb9@byu.net>
34433
34434         Avoid gcc warnings on cygwin.
34435         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
34436         Avoid unused variable.
34437         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
34438         Likewise.
34439
34440 2008-12-22  Bruno Haible  <bruno@clisp.org>
34441
34442         Remove HAVE_MBRTOWC conditionals.
34443         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
34444         (mbscasecmp): Assume mbrtowc function.
34445         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
34446         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
34447         * lib/mbschr.c: Include mbuiter.h unconditionally.
34448         (mbschr): Assume mbrtowc function.
34449         * lib/mbscspn.c: Include mbuiter.h unconditionally.
34450         (mbscspn): Assume mbrtowc function.
34451         * lib/mbslen.c: Include mbuiter.h unconditionally.
34452         (mbslen): Assume mbrtowc function.
34453         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
34454         (mbsncasecmp): Assume mbrtowc function.
34455         * lib/mbsnlen.c: Include mbiter.h unconditionally.
34456         (mbsnlen): Assume mbrtowc function.
34457         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
34458         (mbspbrk): Assume mbrtowc function.
34459         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
34460         (mbspcasecmp): Assume mbrtowc function.
34461         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
34462         (mbsrchr): Assume mbrtowc function.
34463         * lib/mbssep.c: Include mbuiter.h unconditionally.
34464         (mbssep): Assume mbrtowc function.
34465         * lib/mbsspn.c: Include mbuiter.h unconditionally.
34466         (mbsspn): Assume mbrtowc function.
34467         * lib/mbsstr.c: Include mbuiter.h unconditionally.
34468         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
34469         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
34470         (mbstok_r): Assume mbrtowc function.
34471         * lib/propername.c: Include mbuiter.h unconditionally.
34472         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
34473         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
34474         (trim2): Assume mbrtowc function.
34475         * lib/mbswidth.c (mbsinit): Remove fallback definition.
34476         (mbsnwidth): Assume mbrtowc function.
34477         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
34478         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
34479         fallback definitions.
34480         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
34481
34482 2008-12-22  Bruno Haible  <bruno@clisp.org>
34483
34484         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
34485
34486 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
34487
34488         * modules/regex: Request emulations for the mb*/wc* functions we need.
34489         * m4/regex.m4: Don't look for those functions here.
34490         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
34491
34492 2008-12-22  Bruno Haible  <bruno@clisp.org>
34493
34494         * modules/fnmatch (Depends-on): Remove duplicated dependency.
34495
34496 2008-12-21  Bruno Haible  <bruno@clisp.org>
34497
34498         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
34499         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
34500         (Include): Remove conditionalization.
34501         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
34502         (Include): Remove conditionalization.
34503         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
34504         (Include): Remove conditionalization.
34505         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
34506         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34507         * NEWS: Mention the change.
34508         Reported by Alan Hourihane <alanh@fairlite.co.uk>
34509         via Sergey Poznyakoff <gray@gnu.org.ua>.
34510
34511 2008-12-21  Bruno Haible  <bruno@clisp.org>
34512
34513         * MODULES.html.sh (Extended multibyte and wide character utilities
34514         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
34515         wcrtomb, wcsrtombs.
34516         (Support for systems lacking POSIX:2008): Add accept, bind, close,
34517         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
34518         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
34519         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
34520
34521 2008-12-21  Bruno Haible  <bruno@clisp.org>
34522
34523         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
34524
34525 2008-12-21  Bruno Haible  <bruno@clisp.org>
34526
34527         * modules/wcsnrtombs-tests: New file.
34528         * tests/test-wcsnrtombs1.sh: New file.
34529         * tests/test-wcsnrtombs2.sh: New file.
34530         * tests/test-wcsnrtombs3.sh: New file.
34531         * tests/test-wcsnrtombs4.sh: New file.
34532         * tests/test-wcsnrtombs.c: New file.
34533
34534         New module 'wcsnrtombs'.
34535         * lib/wchar.in.h (wcsnrtombs): New declaration.
34536         * lib/wcsnrtombs.c: New file.
34537         * lib/wcsrtombs-state.c: New file.
34538         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
34539         (internal_state): Remove variable.
34540         * m4/wcsnrtombs.m4: New file.
34541         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
34542         compilation units.
34543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
34544         HAVE_WCSNRTOMBS.
34545         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
34546         HAVE_WCSNRTOMBS.
34547         * modules/wcsnrtombs: New file.
34548         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
34549         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
34550
34551 2008-12-21  Bruno Haible  <bruno@clisp.org>
34552
34553         * modules/wcsrtombs-tests: New file.
34554         * tests/test-wcsrtombs1.sh: New file.
34555         * tests/test-wcsrtombs2.sh: New file.
34556         * tests/test-wcsrtombs3.sh: New file.
34557         * tests/test-wcsrtombs4.sh: New file.
34558         * tests/test-wcsrtombs.c: New file.
34559
34560         New module 'wcsrtombs'.
34561         * lib/wchar.in.h (wcsrtombs): New declaration.
34562         * lib/wcsrtombs.c: New file.
34563         * m4/wcsrtombs.m4: New file.
34564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
34565         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34566         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
34567         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34568         * modules/wcsrtombs: New file.
34569         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
34570         bugs.
34571
34572 2008-12-21  Bruno Haible  <bruno@clisp.org>
34573
34574         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
34575         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
34576         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
34577         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
34578         if not correct.
34579         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
34580         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
34581         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34582         m4/locale-zh.m4, m4/codeset.m4.
34583         * doc/posix-functions/wcrtomb.texi: Document the bug.
34584
34585 2008-12-21  Bruno Haible  <bruno@clisp.org>
34586
34587         Work around a btowc() bug on IRIX 6.5.
34588         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
34589         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
34590         REPLACE_WTOBC if not.
34591         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
34592         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
34593         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
34594
34595 2008-12-21  Bruno Haible  <bruno@clisp.org>
34596
34597         * modules/wcrtomb-tests: New file.
34598         * tests/test-wcrtomb.sh: New file.
34599         * tests/test-wcrtomb.c: New file.
34600
34601         New module 'wcrtomb'.
34602         * lib/wchar.in.h (wcrtomb): New declaration.
34603         * lib/wcrtomb.c: New file.
34604         * m4/wcrtomb.m4: New file.
34605         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
34606         HAVE_WCRTOMB.
34607         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
34608         HAVE_WCRTOMB.
34609         * modules/wcrtomb: New file.
34610         * doc/posix-functions/wcrtomb.texi: Mention the new module.
34611
34612 2008-12-21  Bruno Haible  <bruno@clisp.org>
34613
34614         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
34615         * modules/mbsrtowcs (Files): Likewise.
34616         * modules/wctob (Files): Likewise.
34617         * modules/c-strcase-tests (Files): Likewise.
34618         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34619         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34620         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34621         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34622         * modules/vasnprintf-posix-tests (Files): Likewise.
34623
34624 2008-12-21  William Pursell  <bill.pursell@gmail.com>
34625
34626         gitlog-to-changelog: pass all command-line arguments to git-log
34627         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
34628         it is sometimes convenient to filter the commits in various ways.
34629         gitlog-to-changelog only allows --since to specify a start date,
34630         but git-log itself supports many other filtering mechanisms.
34631         At the moment, I want to filter by branch name.  Rather than
34632         adding a --branch option to gitlog-to-changelog, it seems more
34633         flexible to simply pass all options directly to git-log and let
34634         git do the work.  Notice that this effectively makes --since a
34635         redundant option for gitlog-to-changelog, but removing it would
34636         require current usage to change since calls would then require
34637         an additional '--'.
34638
34639 2008-12-21  Bruno Haible  <bruno@clisp.org>
34640
34641         * modules/mbsnrtowcs-tests: New file.
34642         * tests/test-mbsnrtowcs1.sh: New file.
34643         * tests/test-mbsnrtowcs2.sh: New file.
34644         * tests/test-mbsnrtowcs3.sh: New file.
34645         * tests/test-mbsnrtowcs4.sh: New file.
34646         * tests/test-mbsnrtowcs.c: New file.
34647
34648         New module 'mbsnrtowcs'.
34649         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34650         * lib/mbsnrtowcs.c: New file.
34651         * lib/mbsrtowcs-state.c: New file.
34652         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34653         (internal_state): Remove variable.
34654         * m4/mbsnrtowcs.m4: New file.
34655         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34656         compilation units.
34657         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34658         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34659         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34660         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34661         * modules/mbsnrtowcs: New file.
34662         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34663         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34664         portability problem.
34665
34666 2008-12-21  Bruno Haible  <bruno@clisp.org>
34667
34668         Work around mbsrtowcs bug.
34669         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34670         (gl_FUNC_MBSRTOWCS): Invoke it.
34671         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34672         m4/locale-zh.m4.
34673         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34674
34675 2008-12-21  Bruno Haible  <bruno@clisp.org>
34676
34677         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34678
34679 2008-12-21  Bruno Haible  <bruno@clisp.org>
34680
34681         Update doc for AIX.
34682         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34683         16-bit wchar_t type.
34684         * doc/posix-functions/btowc.texi: Likewise.
34685         * doc/posix-functions/fgetwc.texi: Likewise.
34686         * doc/posix-functions/fgetws.texi: Likewise.
34687         * doc/posix-functions/fputwc.texi: Likewise.
34688         * doc/posix-functions/fputws.texi: Likewise.
34689         * doc/posix-functions/fwide.texi: Likewise.
34690         * doc/posix-functions/fwprintf.texi: Likewise.
34691         * doc/posix-functions/fwscanf.texi: Likewise.
34692         * doc/posix-functions/getwchar.texi: Likewise.
34693         * doc/posix-functions/getwc.texi: Likewise.
34694         * doc/posix-functions/iswalnum.texi: Likewise.
34695         * doc/posix-functions/iswalpha.texi: Likewise.
34696         * doc/posix-functions/iswblank.texi: Likewise.
34697         * doc/posix-functions/iswcntrl.texi: Likewise.
34698         * doc/posix-functions/iswctype.texi: Likewise.
34699         * doc/posix-functions/iswdigit.texi: Likewise.
34700         * doc/posix-functions/iswgraph.texi: Likewise.
34701         * doc/posix-functions/iswlower.texi: Likewise.
34702         * doc/posix-functions/iswprint.texi: Likewise.
34703         * doc/posix-functions/iswpunct.texi: Likewise.
34704         * doc/posix-functions/iswspace.texi: Likewise.
34705         * doc/posix-functions/iswupper.texi: Likewise.
34706         * doc/posix-functions/iswxdigit.texi: Likewise.
34707         * doc/posix-functions/mbrtowc.texi: Likewise.
34708         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34709         * doc/posix-functions/mbstowcs.texi: Likewise.
34710         * doc/posix-functions/mbtowc.texi: Likewise.
34711         * doc/posix-functions/putwchar.texi: Likewise.
34712         * doc/posix-functions/putwc.texi: Likewise.
34713         * doc/posix-functions/swprintf.texi: Likewise.
34714         * doc/posix-functions/tolower.texi: Likewise.
34715         * doc/posix-functions/toupper.texi: Likewise.
34716         * doc/posix-functions/towctrans.texi: Likewise.
34717         * doc/posix-functions/ungetwc.texi: Likewise.
34718         * doc/posix-functions/vswprintf.texi: Likewise.
34719         * doc/posix-functions/wcrtomb.texi: Likewise.
34720         * doc/posix-functions/wcscat.texi: Likewise.
34721         * doc/posix-functions/wcschr.texi: Likewise.
34722         * doc/posix-functions/wcscmp.texi: Likewise.
34723         * doc/posix-functions/wcscoll.texi: Likewise.
34724         * doc/posix-functions/wcscpy.texi: Likewise.
34725         * doc/posix-functions/wcscspn.texi: Likewise.
34726         * doc/posix-functions/wcsftime.texi: Likewise.
34727         * doc/posix-functions/wcslen.texi: Likewise.
34728         * doc/posix-functions/wcsncat.texi: Likewise.
34729         * doc/posix-functions/wcsncmp.texi: Likewise.
34730         * doc/posix-functions/wcsncpy.texi: Likewise.
34731         * doc/posix-functions/wcspbrk.texi: Likewise.
34732         * doc/posix-functions/wcsrchr.texi: Likewise.
34733         * doc/posix-functions/wcsrtombs.texi: Likewise.
34734         * doc/posix-functions/wcsspn.texi: Likewise.
34735         * doc/posix-functions/wcsstr.texi: Likewise.
34736         * doc/posix-functions/wcstod.texi: Likewise.
34737         * doc/posix-functions/wcstof.texi: Likewise.
34738         * doc/posix-functions/wcstoimax.texi: Likewise.
34739         * doc/posix-functions/wcstok.texi: Likewise.
34740         * doc/posix-functions/wcstold.texi: Likewise.
34741         * doc/posix-functions/wcstoll.texi: Likewise.
34742         * doc/posix-functions/wcstol.texi: Likewise.
34743         * doc/posix-functions/wcstombs.texi: Likewise.
34744         * doc/posix-functions/wcstoull.texi: Likewise.
34745         * doc/posix-functions/wcstoul.texi: Likewise.
34746         * doc/posix-functions/wcstoumax.texi: Likewise.
34747         * doc/posix-functions/wcswidth.texi: Likewise.
34748         * doc/posix-functions/wcsxfrm.texi: Likewise.
34749         * doc/posix-functions/wctob.texi: Likewise.
34750         * doc/posix-functions/wctomb.texi: Likewise.
34751         * doc/posix-functions/wctrans.texi: Likewise.
34752         * doc/posix-functions/wctype.texi: Likewise.
34753         * doc/posix-functions/wcwidth.texi: Likewise.
34754         * doc/posix-functions/wmemchr.texi: Likewise.
34755         * doc/posix-functions/wmemcmp.texi: Likewise.
34756         * doc/posix-functions/wmemcpy.texi: Likewise.
34757         * doc/posix-functions/wmemmove.texi: Likewise.
34758         * doc/posix-functions/wmemset.texi: Likewise.
34759         * doc/posix-functions/wprintf.texi: Likewise.
34760         * doc/posix-functions/wscanf.texi: Likewise.
34761
34762 2008-12-21  Bruno Haible  <bruno@clisp.org>
34763
34764         Update doc for HP-UX 11.11.
34765         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34766         in HP-UX version 11.00, not in all versions of HP-UX 11.
34767         * doc/posix-functions/fwide.texi: Likewise.
34768         * doc/posix-functions/fwprintf.texi: Likewise.
34769         * doc/posix-functions/fwscanf.texi: Likewise.
34770         * doc/posix-functions/inet_ntop.texi: Likewise.
34771         * doc/posix-functions/inet_pton.texi: Likewise.
34772         * doc/posix-functions/mbrlen.texi: Likewise.
34773         * doc/posix-functions/mbrtowc.texi: Likewise.
34774         * doc/posix-functions/mbsinit.texi: Likewise.
34775         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34776         * doc/posix-functions/swprintf.texi: Likewise.
34777         * doc/posix-functions/swscanf.texi: Likewise.
34778         * doc/posix-functions/towctrans.texi: Likewise.
34779         * doc/posix-functions/vfwprintf.texi: Likewise.
34780         * doc/posix-functions/vswprintf.texi: Likewise.
34781         * doc/posix-functions/vwprintf.texi: Likewise.
34782         * doc/posix-functions/wcrtomb.texi: Likewise.
34783         * doc/posix-functions/wcsrtombs.texi: Likewise.
34784         * doc/posix-functions/wcsstr.texi: Likewise.
34785         * doc/posix-functions/wctob.texi: Likewise.
34786         * doc/posix-functions/wctrans.texi: Likewise.
34787         * doc/posix-functions/wmemchr.texi: Likewise.
34788         * doc/posix-functions/wmemcmp.texi: Likewise.
34789         * doc/posix-functions/wmemcpy.texi: Likewise.
34790         * doc/posix-functions/wmemmove.texi: Likewise.
34791         * doc/posix-functions/wmemset.texi: Likewise.
34792         * doc/posix-functions/wprintf.texi: Likewise.
34793         * doc/posix-functions/wscanf.texi: Likewise.
34794
34795 2008-12-21  Bruno Haible  <bruno@clisp.org>
34796
34797         Work around a portability problem.
34798         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34799         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34800
34801 2008-12-20  Bruno Haible  <bruno@clisp.org>
34802
34803         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34804         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34805         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34806         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34807         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34808
34809         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34810         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34811         set.
34812         (GNULIB_defined_mbstate_t): New macro.
34813         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34814         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34815         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34816         reuses the system's mbrtowc function but works around the bugs.
34817         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34818         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34819         macros.
34820         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34821         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34822         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34823         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34824         REPLACE_MBSINIT if mbsinit needs to be overridden.
34825         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34826         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34827         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34828         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34829         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34830         m4/locale-zh.m4.
34831         (Depends): Add mbsinit.
34832         * modules/mbsinit (Depends): Add mbrtowc.
34833         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34834
34835 2008-12-20  Bruno Haible  <bruno@clisp.org>
34836
34837         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34838         so that there are no conversion errors on AIX.
34839         * tests/test-mbsrtowcs.c (main): LIkewise.
34840
34841 2008-12-20  Bruno Haible  <bruno@clisp.org>
34842
34843         Work around wctob bug on Solaris <= 9.
34844         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34845         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34846         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34847         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34848         * modules/wctob (Files): Add m4/locale-fr.m4.
34849         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34850
34851 2008-12-20  Bruno Haible  <bruno@clisp.org>
34852
34853         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34854         /dev/null.
34855         * tests/test-select-in.sh: Likewise.
34856         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34857
34858 2008-12-20  Bruno Haible  <bruno@clisp.org>
34859
34860         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34861         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34862         Cygwin 1.5.x.
34863
34864 2008-12-20  Bruno Haible  <bruno@clisp.org>
34865
34866         Ensure mbstate_t is defined on HP-UX 11.11.
34867         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34868         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34869         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34870         AC_USE_SYSTEM_EXTENSIONS.
34871         * modules/fnmatch (Depends-on): Add extensions.
34872         * modules/mbrlen (Depends-on): Likewise.
34873         * modules/mbrtowc (Depends-on): Likewise.
34874         * modules/mbsinit (Depends-on): Likewise.
34875         * modules/mbsrtowcs (Depends-on): Likewise.
34876         * modules/mbswidth (Depends-on): Likewise.
34877         * modules/quotearg (Depends-on): Likewise.
34878         * modules/strftime (Depends-on): Likewise.
34879
34880 2008-12-20  Bruno Haible  <bruno@clisp.org>
34881
34882         Ensure wctob is declared on IRIX 6.5.
34883         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34884         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34885         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34886         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34887         of HAVE_WCTOB.
34888         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34889         HAVE_WCTOB.
34890         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34891
34892 2008-12-19  Bruno Haible  <bruno@clisp.org>
34893
34894         * modules/mbsrtowcs-tests: New file.
34895         * tests/test-mbsrtowcs1.sh: New file.
34896         * tests/test-mbsrtowcs2.sh: New file.
34897         * tests/test-mbsrtowcs3.sh: New file.
34898         * tests/test-mbsrtowcs4.sh: New file.
34899         * tests/test-mbsrtowcs.c: New file.
34900
34901         New module 'mbsrtowcs'.
34902         * lib/wchar.in.h (mbsrtowcs): New declaration.
34903         * lib/mbsrtowcs.c: New file.
34904         * m4/mbsrtowcs.m4: New file.
34905         * modules/mbsrtowcs: New file.
34906         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34907         HAVE_MBSRTOWCS.
34908         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34909         HAVE_MBSRTOWCS.
34910         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34911
34912 2008-12-19  Bruno Haible  <bruno@clisp.org>
34913
34914         New module 'mbrlen'.
34915         * lib/wchar.in.h (mbrlen): New declaration.
34916         * lib/mbrlen.c: New file.
34917         * m4/mbrlen.m4: New file.
34918         * modules/mbrlen: New file.
34919         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34920         HAVE_MBRLEN.
34921         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34922         HAVE_MBRLEN.
34923         * doc/posix-functions/mbrlen.texi: Document the new module.
34924
34925 2008-12-19  Bruno Haible  <bruno@clisp.org>
34926
34927         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34928         * modules/mbrtowc (Depends-on): Add verify.
34929         Suggested by Paul Eggert.
34930
34931 2008-12-18  Bruno Haible  <bruno@clisp.org>
34932
34933         * modules/mbsinit-tests: New file.
34934         * tests/test-mbsinit.sh: New file.
34935         * tests/test-mbsinit.c: New file.
34936
34937 2008-12-18  Bruno Haible  <bruno@clisp.org>
34938
34939         * modules/mbrtowc-tests: New file.
34940         * tests/test-mbrtowc1.sh: New file.
34941         * tests/test-mbrtowc2.sh: New file.
34942         * tests/test-mbrtowc3.sh: New file.
34943         * tests/test-mbrtowc4.sh: New file.
34944         * tests/test-mbrtowc.c: New file.
34945
34946         New module 'mbrtowc'.
34947         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34948         mbsinit and mbrtowc.
34949         (mbrtowc): New declaration.
34950         * lib/mbrtowc.c: New file.
34951         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34952         * modules/mbrtowc: New file.
34953         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34954         HAVE_MBRTOWC.
34955         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34956         HAVE_MBRTOWC.
34957         * doc/posix-functions/mbrtowc.texi: Document the new module.
34958
34959 2008-12-18  Bruno Haible  <bruno@clisp.org>
34960
34961         New module 'wctob'.
34962         * lib/wchar.in.h (wctob): New declaration.
34963         * lib/wctob.c: New file.
34964         * m4/wctob.m4: New file.
34965         * modules/wctob: New file.
34966         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34967         HAVE_WCTOB.
34968         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34969         * doc/posix-functions/wctob.texi: Document the new module.
34970
34971 2008-12-18  Bruno Haible  <bruno@clisp.org>
34972
34973         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34974         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34975
34976 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34977
34978         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34979         G. Christensen" <tgc@jupiterrise.com>.
34980
34981         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34982         G. Christensen" <tgc@jupiterrise.com>.
34983
34984         * lib/flock.c: Need to include string.h.  Reported by "Tom
34985         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34986         <ebb9@byu.net>.
34987
34988 2008-12-18  Bruno Haible  <bruno@clisp.org>
34989
34990         * m4/locale-ja.m4: New file, from GNU gettext.
34991
34992 2008-12-17  Bruno Haible  <bruno@clisp.org>
34993
34994         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34995         Suggested by Eric Blake.
34996
34997 2008-12-17  Bruno Haible  <bruno@clisp.org>
34998
34999         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
35000
35001 2008-12-17  Bruno Haible  <bruno@clisp.org>
35002
35003         * lib/mbsinit.c: Include verify.h. Verify an assumption.
35004         * modules/mbsinit (Depends-on): Add verify.
35005         Suggested by Paul Eggert.
35006
35007 2008-12-17  Bruno Haible  <bruno@clisp.org>
35008
35009         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
35010         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
35011         gl_FUNC_MBRTOWC.
35012         * m4/mbiter.m4 (gl_MBITER): LIkewise.
35013         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
35014         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
35015         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
35016         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
35017         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
35018         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
35019         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
35020         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
35021         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
35022         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
35023         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
35024         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
35025         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
35026         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
35027         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
35028         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
35029         * modules/trim (configure.ac): Likewise.
35030
35031 2008-12-17  Bruno Haible  <bruno@clisp.org>
35032
35033         * modules/btowc-tests: New file.
35034         * tests/test-btowc1.sh: New file.
35035         * tests/test-btowc2.sh: New file.
35036         * tests/test-btowc.c: New file.
35037
35038         New module 'btowc'.
35039         * lib/wchar.in.h (btowc): New declaration.
35040         * lib/btowc.c: New file.
35041         * m4/btowc.m4: New file.
35042         * modules/btowc: New file.
35043         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
35044         HAVE_BTOWC.
35045         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
35046         * doc/posix-functions/btowc.texi: Document the new module.
35047
35048 2008-12-17  Bruno Haible  <bruno@clisp.org>
35049
35050         New module 'mbsinit'.
35051         * lib/wchar.in.h (mbsinit): New declaration.
35052         * lib/mbsinit.c: New file.
35053         * m4/mbsinit.m4: New file.
35054         * modules/mbsinit: New file.
35055         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
35056         HAVE_MBSINIT.
35057         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
35058         HAVE_MBSINIT.
35059         * doc/posix-functions/mbsinit.texi: Document the new module.
35060
35061 2008-12-16  Bruno Haible  <bruno@clisp.org>
35062
35063         * lib/unistd.in.h: Add comment.
35064         * tests/test-environ.c: Don't include <stdlib.h>.
35065
35066 2008-12-16  Bruno Haible  <bruno@clisp.org>
35067
35068         * lib/parse-duration.h (parse_duration): Document return value
35069         convention.
35070         * lib/parse-duration.c: Include specification header first. Add
35071         comments.
35072         (_): Remove macro.
35073         (parse_year_month_day, parse_hour_minute_second): Move side effects
35074         outside of strchr call.
35075         (parse_non_iso8601): Move side effects outside of isspace call.
35076         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
35077         call.
35078
35079 2008-12-16  Bruno Haible  <bruno@clisp.org>
35080
35081         * tests/test-parse-duration.sh: Produce no output when the test
35082         succeeds.
35083
35084 2008-12-16  Bruno Haible  <bruno@clisp.org>
35085
35086         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
35087         expressions.
35088
35089 2008-12-15  Bruno Haible  <bruno@clisp.org>
35090
35091         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
35092         * doc/glibc-functions/flistxattr.texi: Likewise.
35093         * doc/glibc-functions/fopencookie.texi: Likewise.
35094         * doc/glibc-functions/fremovexattr.texi: Likewise.
35095         * doc/glibc-functions/fsetxattr.texi: Likewise.
35096         * doc/glibc-functions/getxattr.texi: Likewise.
35097         * doc/glibc-functions/lgetxattr.texi: Likewise.
35098         * doc/glibc-functions/listxattr.texi: Likewise.
35099         * doc/glibc-functions/llistxattr.texi: Likewise.
35100         * doc/glibc-functions/lremovexattr.texi: Likewise.
35101         * doc/glibc-functions/lsetxattr.texi: Likewise.
35102         * doc/glibc-functions/removexattr.texi: Likewise.
35103         * doc/glibc-functions/setxattr.texi: Likewise.
35104         * doc/posix-functions/open_memstream.texi: Likewise.
35105
35106 2008-12-15  Eric Blake  <ebb9@byu.net>
35107
35108         Update doc for cygwin 1.7.
35109         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
35110         functions.
35111         * doc/posix-functions/fchmodat.texi: Likewise.
35112         * doc/posix-functions/fchownat.texi: Likewise.
35113         * doc/posix-functions/fdopendir.texi: Likewise.
35114         * doc/posix-functions/fmemopen.texi: Likewise.
35115         * doc/posix-functions/freeaddrinfo.texi: Likewise.
35116         * doc/posix-functions/fstatat.texi: Likewise.
35117         * doc/posix-functions/futimens.texi: Likewise.
35118         * doc/posix-functions/gai_strerror.texi: Likewise.
35119         * doc/posix-functions/getaddrinfo.texi: Likewise.
35120         * doc/posix-functions/getnameinfo.texi: Likewise.
35121         * doc/posix-functions/if_freenameindex.texi: Likewise.
35122         * doc/posix-functions/if_indextoname.texi: Likewise.
35123         * doc/posix-functions/if_nameindex.texi: Likewise.
35124         * doc/posix-functions/if_nametoindex.texi: Likewise.
35125         * doc/posix-functions/insque.texi: Likewise.
35126         * doc/posix-functions/linkat.texi: Likewise.
35127         * doc/posix-functions/llrint.texi: Likewise.
35128         * doc/posix-functions/llrintf.texi: Likewise.
35129         * doc/posix-functions/llrintl.texi: Likewise.
35130         * doc/posix-functions/lockf.texi: Likewise.
35131         * doc/posix-functions/lrintl.texi: Likewise.
35132         * doc/posix-functions/mkdirat.texi: Likewise.
35133         * doc/posix-functions/mkfifoat.texi: Likewise.
35134         * doc/posix-functions/mknodat.texi: Likewise.
35135         * doc/posix-functions/mq_close.texi: Likewise.
35136         * doc/posix-functions/mq_getattr.texi: Likewise.
35137         * doc/posix-functions/mq_notify.texi: Likewise.
35138         * doc/posix-functions/mq_open.texi: Likewise.
35139         * doc/posix-functions/mq_receive.texi: Likewise.
35140         * doc/posix-functions/mq_send.texi: Likewise.
35141         * doc/posix-functions/mq_setattr.texi: Likewise.
35142         * doc/posix-functions/mq_timedreceive.texi: Likewise.
35143         * doc/posix-functions/mq_timedsend.texi: Likewise.
35144         * doc/posix-functions/mq_unlink.texi: Likewise.
35145         * doc/posix-functions/open_memstream.texi: Likewise.
35146         * doc/posix-functions/openat.texi: Likewise.
35147         * doc/posix-functions/posix_fadvise.texi: Likewise.
35148         * doc/posix-functions/posix_fallocate.texi: Likewise.
35149         * doc/posix-functions/posix_madvise.texi: Likewise.
35150         * doc/posix-functions/posix_memalign.texi: Likewise.
35151         * doc/posix-functions/posix_openpt.texi: Likewise.
35152         * doc/posix-functions/readlinkat.texi: Likewise.
35153         * doc/posix-functions/remque.texi: Likewise.
35154         * doc/posix-functions/renameat.texi: Likewise.
35155         * doc/posix-functions/rintl.texi: Likewise.
35156         * doc/posix-functions/sem_unlink.texi: Likewise.
35157         * doc/posix-functions/shm_open.texi: Likewise.
35158         * doc/posix-functions/shm_unlink.texi: Likewise.
35159         * doc/posix-functions/signgam.texi: Likewise.
35160         * doc/posix-functions/sigset.texi: Likewise.
35161         * doc/posix-functions/stpcpy.texi: Likewise.
35162         * doc/posix-functions/stpncpy.texi: Likewise.
35163         * doc/posix-functions/strerror.texi: Likewise.
35164         * doc/posix-functions/strtod.texi: Likewise.
35165         * doc/posix-functions/symlinkat.texi: Likewise.
35166         * doc/posix-functions/unlinkat.texi: Likewise.
35167         * doc/posix-functions/utimensat.texi: Likewise.
35168         * doc/glibc-functions/bindresvport.texi: Likewise.
35169         * doc/glibc-functions/dn_expand.texi: Likewise.
35170         * doc/glibc-functions/exp10.texi: Likewise.
35171         * doc/glibc-functions/exp10f.texi: Likewise.
35172         * doc/glibc-functions/fgetxattr.texi: Likewise.
35173         * doc/glibc-functions/flistxattr.texi: Likewise.
35174         * doc/glibc-functions/fopencookie.texi: Likewise.
35175         * doc/glibc-functions/freeifaddrs.texi: Likewise.
35176         * doc/glibc-functions/fremovexattr.texi: Likewise.
35177         * doc/glibc-functions/fsetxattr.texi: Likewise.
35178         * doc/glibc-functions/getifaddrs.texi: Likewise.
35179         * doc/glibc-functions/getxattr.texi: Likewise.
35180         * doc/glibc-functions/lgetxattr.texi: Likewise.
35181         * doc/glibc-functions/listxattr.texi: Likewise.
35182         * doc/glibc-functions/llistxattr.texi: Likewise.
35183         * doc/glibc-functions/lremovexattr.texi: Likewise.
35184         * doc/glibc-functions/lsetxattr.texi: Likewise.
35185         * doc/glibc-functions/pow10.texi: Likewise.
35186         * doc/glibc-functions/pow10f.texi: Likewise.
35187         * doc/glibc-functions/rcmd_af.texi: Likewise.
35188         * doc/glibc-functions/removexattr.texi: Likewise.
35189         * doc/glibc-functions/res_init.texi: Likewise.
35190         * doc/glibc-functions/res_mkquery.texi: Likewise.
35191         * doc/glibc-functions/res_query.texi: Likewise.
35192         * doc/glibc-functions/res_querydomain.texi: Likewise.
35193         * doc/glibc-functions/res_send.texi: Likewise.
35194         * doc/glibc-functions/rresvport_af.texi: Likewise.
35195         * doc/glibc-functions/setxattr.texi: Likewise.
35196         * doc/glibc-functions/strcasestr.texi: Likewise.
35197
35198 2008-12-15  Bruno Haible  <bruno@clisp.org>
35199
35200         Fix compilation error on OSF/1 4.0.
35201         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
35202         <sys/time.h>, simply delegate to the system header.
35203         Reported by Daniel Richard G. <oss@teragram.com>.
35204
35205 2008-12-15  Bruno Haible  <bruno@clisp.org>
35206
35207         * doc/posix-functions/openat.texi: Mention the 'openat' module.
35208         * doc/posix-functions/fchmodat.texi: Likewise.
35209         * doc/posix-functions/fchownat.texi: Likewise.
35210         * doc/posix-functions/fdopendir.texi: Likewise.
35211         * doc/posix-functions/fstatat.texi: Likewise.
35212         * doc/posix-functions/mkdirat.texi: Likewise.
35213         * doc/posix-functions/unlinkat.texi: Likewise.
35214
35215 2008-12-14  Bruno Haible  <bruno@clisp.org>
35216
35217         Update doc for POSIX:2008.
35218         * doc/posix-functions/faccessat.texi: New file.
35219         * doc/posix-functions/fchmodat.texi: New file.
35220         * doc/posix-functions/fchownat.texi: New file.
35221         * doc/posix-functions/fdopendir.texi: New file.
35222         * doc/posix-functions/fstatat.texi: New file.
35223         * doc/posix-functions/futimens.texi: New file.
35224         * doc/posix-functions/linkat.texi: New file.
35225         * doc/posix-functions/mkdirat.texi: New file.
35226         * doc/posix-functions/mkfifoat.texi: New file.
35227         * doc/posix-functions/mknodat.texi: New file.
35228         * doc/posix-functions/open_wmemstream.texi: New file.
35229         * doc/posix-functions/openat.texi: New file.
35230         * doc/posix-functions/psiginfo.texi: New file.
35231         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
35232         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
35233         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
35234         * doc/posix-functions/readlinkat.texi: New file.
35235         * doc/posix-functions/renameat.texi: New file.
35236         * doc/posix-functions/strerror_l.texi: New file.
35237         * doc/posix-functions/symlinkat.texi: New file.
35238         * doc/posix-functions/unlinkat.texi: New file.
35239         * doc/posix-functions/utimensat.texi: New file.
35240         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35241
35242 2008-12-14  Bruno Haible  <bruno@clisp.org>
35243
35244         Update doc for POSIX:2008.
35245         * doc/posix-functions/alphasort.texi: Renamed from
35246         doc/glibc-functions/alphasort.texi.
35247         * doc/posix-functions/dirfd.texi: Renamed from
35248         doc/glibc-functions/dirfd.texi.
35249         * doc/posix-functions/dprintf.texi: Renamed from
35250         doc/glibc-functions/dprintf.texi.
35251         * doc/posix-functions/duplocale.texi: Renamed from
35252         doc/glibc-functions/duplocale.texi.
35253         * doc/posix-functions/fexecve.texi: Renamed from
35254         doc/glibc-functions/fexecve.texi.
35255         * doc/posix-functions/fmemopen.texi: Renamed from
35256         doc/glibc-functions/fmemopen.texi.
35257         * doc/posix-functions/freelocale.texi: Renamed from
35258         doc/glibc-functions/freelocale.texi.
35259         * doc/posix-functions/getdate_err.texi: Renamed from
35260         doc/glibc-functions/getdate_err.texi.
35261         * doc/posix-functions/isalnum_l.texi: Renamed from
35262         doc/glibc-functions/isalnum_l.texi.
35263         * doc/posix-functions/isalpha_l.texi: Renamed from
35264         doc/glibc-functions/isalpha_l.texi.
35265         * doc/posix-functions/isblank_l.texi: Renamed from
35266         doc/glibc-functions/isblank_l.texi.
35267         * doc/posix-functions/iscntrl_l.texi: Renamed from
35268         doc/glibc-functions/iscntrl_l.texi.
35269         * doc/posix-functions/isdigit_l.texi: Renamed from
35270         doc/glibc-functions/isdigit_l.texi.
35271         * doc/posix-functions/isgraph_l.texi: Renamed from
35272         doc/glibc-functions/isgraph_l.texi.
35273         * doc/posix-functions/islower_l.texi: Renamed from
35274         doc/glibc-functions/islower_l.texi.
35275         * doc/posix-functions/isprint_l.texi: Renamed from
35276         doc/glibc-functions/isprint_l.texi.
35277         * doc/posix-functions/ispunct_l.texi: Renamed from
35278         doc/glibc-functions/ispunct_l.texi.
35279         * doc/posix-functions/isspace_l.texi: Renamed from
35280         doc/glibc-functions/isspace_l.texi.
35281         * doc/posix-functions/isupper_l.texi: Renamed from
35282         doc/glibc-functions/isupper_l.texi.
35283         * doc/posix-functions/iswalnum_l.texi: Renamed from
35284         doc/glibc-functions/iswalnum_l.texi.
35285         * doc/posix-functions/iswalpha_l.texi: Renamed from
35286         doc/glibc-functions/iswalpha_l.texi.
35287         * doc/posix-functions/iswblank_l.texi: Renamed from
35288         doc/glibc-functions/iswblank_l.texi.
35289         * doc/posix-functions/iswcntrl_l.texi: Renamed from
35290         doc/glibc-functions/iswcntrl_l.texi.
35291         * doc/posix-functions/iswctype_l.texi: Renamed from
35292         doc/glibc-functions/iswctype_l.texi.
35293         * doc/posix-functions/iswdigit_l.texi: Renamed from
35294         doc/glibc-functions/iswdigit_l.texi.
35295         * doc/posix-functions/iswgraph_l.texi: Renamed from
35296         doc/glibc-functions/iswgraph_l.texi.
35297         * doc/posix-functions/iswlower_l.texi: Renamed from
35298         doc/glibc-functions/iswlower_l.texi.
35299         * doc/posix-functions/iswprint_l.texi: Renamed from
35300         doc/glibc-functions/iswprint_l.texi.
35301         * doc/posix-functions/iswpunct_l.texi: Renamed from
35302         doc/glibc-functions/iswpunct_l.texi.
35303         * doc/posix-functions/iswspace_l.texi: Renamed from
35304         doc/glibc-functions/iswspace_l.texi.
35305         * doc/posix-functions/iswupper_l.texi: Renamed from
35306         doc/glibc-functions/iswupper_l.texi.
35307         * doc/posix-functions/iswxdigit_l.texi: Renamed from
35308         doc/glibc-functions/iswxdigit_l.texi.
35309         * doc/posix-functions/isxdigit_l.texi: Renamed from
35310         doc/glibc-functions/isxdigit_l.texi.
35311         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
35312         doc/glibc-functions/mbsnrtowcs.texi.
35313         * doc/posix-functions/mkdtemp.texi: Renamed from
35314         doc/glibc-functions/mkdtemp.texi.
35315         * doc/posix-functions/newlocale.texi: Renamed from
35316         doc/glibc-functions/newlocale.texi.
35317         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
35318         doc/glibc-functions/nl_langinfo_l.texi.
35319         * doc/posix-functions/open_memstream.texi: Renamed from
35320         doc/glibc-functions/open_memstream.texi.
35321         * doc/posix-functions/opterr.texi: Renamed from
35322         doc/glibc-functions/opterr.texi.
35323         * doc/posix-functions/optind.texi: Renamed from
35324         doc/glibc-functions/optind.texi.
35325         * doc/posix-functions/optopt.texi: Renamed from
35326         doc/glibc-functions/optopt.texi.
35327         * doc/posix-functions/psignal.texi: Renamed from
35328         doc/glibc-functions/psignal.texi.
35329         * doc/posix-functions/scandir.texi: Renamed from
35330         doc/glibc-functions/scandir.texi.
35331         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
35332         doc/glibc-functions/sched_get_priority_min.texi.
35333         * doc/posix-functions/signgam.texi: Renamed from
35334         doc/glibc-functions/signgam.texi.
35335         * doc/posix-functions/stpcpy.texi: Renamed from
35336         doc/glibc-functions/stpcpy.texi.
35337         * doc/posix-functions/stpncpy.texi: Renamed from
35338         doc/glibc-functions/stpncpy.texi.
35339         * doc/posix-functions/strcasecmp_l.texi: Renamed from
35340         doc/glibc-functions/strcasecmp_l.texi.
35341         * doc/posix-functions/strcoll_l.texi: Renamed from
35342         doc/glibc-functions/strcoll_l.texi.
35343         * doc/posix-functions/strfmon_l.texi: Renamed from
35344         doc/glibc-functions/strfmon_l.texi.
35345         * doc/posix-functions/strftime_l.texi: Renamed from
35346         doc/glibc-functions/strftime_l.texi.
35347         * doc/posix-functions/strncasecmp_l.texi: Renamed from
35348         doc/glibc-functions/strncasecmp_l.texi.
35349         * doc/posix-functions/strndup.texi: Renamed from
35350         doc/glibc-functions/strndup.texi.
35351         * doc/posix-functions/strnlen.texi: Renamed from
35352         doc/glibc-functions/strnlen.texi.
35353         * doc/posix-functions/strsignal.texi: Renamed from
35354         doc/glibc-functions/strsignal.texi.
35355         * doc/posix-functions/strxfrm_l.texi: Renamed from
35356         doc/glibc-functions/strxfrm_l.texi.
35357         * doc/posix-functions/timer_gettime.texi: Renamed from
35358         doc/glibc-functions/timer_gettime.texi.
35359         * doc/posix-functions/tolower_l.texi: Renamed from
35360         doc/glibc-functions/tolower_l.texi.
35361         * doc/posix-functions/toupper_l.texi: Renamed from
35362         doc/glibc-functions/toupper_l.texi.
35363         * doc/posix-functions/towctrans_l.texi: Renamed from
35364         doc/glibc-functions/towctrans_l.texi.
35365         * doc/posix-functions/towlower_l.texi: Renamed from
35366         doc/glibc-functions/towlower_l.texi.
35367         * doc/posix-functions/towupper_l.texi: Renamed from
35368         doc/glibc-functions/towupper_l.texi.
35369         * doc/posix-functions/uselocale.texi: Renamed from
35370         doc/glibc-functions/uselocale.texi.
35371         * doc/posix-functions/vdprintf.texi: Renamed from
35372         doc/glibc-functions/vdprintf.texi.
35373         * doc/posix-functions/wcpcpy.texi:
35374         Renamed from doc/glibc-functions/wcpcpy.texi.
35375         * doc/posix-functions/wcpncpy.texi: Renamed from
35376         doc/glibc-functions/wcpncpy.texi.
35377         * doc/posix-functions/wcscasecmp.texi: Renamed from
35378         doc/glibc-functions/wcscasecmp.texi.
35379         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
35380         doc/glibc-functions/wcscasecmp_l.texi.
35381         * doc/posix-functions/wcscoll_l.texi: Renamed from
35382         doc/glibc-functions/wcscoll_l.texi.
35383         * doc/posix-functions/wcsdup.texi: Renamed from
35384         doc/glibc-functions/wcsdup.texi.
35385         * doc/posix-functions/wcsncasecmp.texi: Renamed from
35386         doc/glibc-functions/wcsncasecmp.texi.
35387         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
35388         doc/glibc-functions/wcsncasecmp_l.texi.
35389         * doc/posix-functions/wcsnlen.texi: Renamed from
35390         doc/glibc-functions/wcsnlen.texi.
35391         * doc/posix-functions/wcsnrtombs.texi: Renamed from
35392         doc/glibc-functions/wcsnrtombs.texi.
35393         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
35394         doc/glibc-functions/wcsxfrm_l.texi.
35395         * doc/posix-functions/wctrans_l.texi: Renamed from
35396         doc/glibc-functions/wctrans_l.texi.
35397         * doc/posix-functions/wctype_l.texi: Renamed from
35398         doc/glibc-functions/wctype_l.texi.
35399         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35400         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
35401         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
35402         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
35403         these subsections.
35404         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
35405         Remove sections.
35406
35407 2008-12-14  Bruno Haible  <bruno@clisp.org>
35408
35409         Update doc for POSIX:2008.
35410         * doc/posix-functions/*.texi: Update URL of POSIX specification.
35411
35412 2008-12-14  Bruno Haible  <bruno@clisp.org>
35413
35414         Update doc for POSIX:2008.
35415         * doc/pastposix-functions/bcmp.texi: Renamed from
35416         doc/posix-functions/bcmp.texi.
35417         * doc/pastposix-functions/bcopy.texi: Renamed from
35418         doc/posix-functions/bcopy.texi.
35419         * doc/pastposix-functions/bsd_signal.texi: Renamed from
35420         doc/posix-functions/bsd_signal.texi.
35421         * doc/pastposix-functions/bzero.texi: Renamed from
35422         doc/posix-functions/bzero.texi.
35423         * doc/pastposix-functions/ecvt.texi: Renamed from
35424         doc/posix-functions/ecvt.texi.
35425         * doc/pastposix-functions/fcvt.texi: Renamed from
35426         doc/posix-functions/fcvt.texi.
35427         * doc/pastposix-functions/ftime.texi: Renamed from
35428         doc/posix-functions/ftime.texi.
35429         * doc/pastposix-functions/gcvt.texi: Renamed from
35430         doc/posix-functions/gcvt.texi.
35431         * doc/pastposix-functions/getcontext.texi: Renamed from
35432         doc/posix-functions/getcontext.texi.
35433         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
35434         doc/posix-functions/gethostbyaddr.texi.
35435         * doc/pastposix-functions/gethostbyname.texi: Renamed from
35436         doc/posix-functions/gethostbyname.texi.
35437         * doc/pastposix-functions/getwd.texi: Renamed from
35438         doc/posix-functions/getwd.texi.
35439         * doc/pastposix-functions/h_errno.texi: Renamed from
35440         doc/posix-functions/h_errno.texi.
35441         * doc/pastposix-functions/index.texi: Renamed from
35442         doc/posix-functions/index.texi.
35443         * doc/pastposix-functions/makecontext.texi: Renamed from
35444         doc/posix-functions/makecontext.texi.
35445         * doc/pastposix-functions/mktemp.texi: Renamed from
35446         doc/posix-functions/mktemp.texi.
35447         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
35448         doc/posix-functions/pthread_attr_getstackaddr.texi.
35449         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
35450         doc/posix-functions/pthread_attr_setstackaddr.texi.
35451         * doc/pastposix-functions/rindex.texi: Renamed from
35452         doc/posix-functions/rindex.texi.
35453         * doc/pastposix-functions/scalb.texi: Renamed from
35454         doc/posix-functions/scalb.texi.
35455         * doc/pastposix-functions/setcontext.texi: Renamed from
35456         doc/posix-functions/setcontext.texi.
35457         * doc/pastposix-functions/swapcontext.texi: Renamed from
35458         doc/posix-functions/swapcontext.texi.
35459         * doc/pastposix-functions/ualarm.texi: Renamed from
35460         doc/posix-functions/ualarm.texi.
35461         * doc/pastposix-functions/usleep.texi: Renamed from
35462         doc/posix-functions/usleep.texi.
35463         * doc/pastposix-functions/vfork.texi: Renamed from
35464         doc/posix-functions/vfork.texi.
35465         * doc/pastposix-functions/wcswcs.texi: Renamed from
35466         doc/posix-functions/wcswcs.texi.
35467         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
35468         (Function Substitutes): Update.
35469
35470 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35471
35472         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
35473         m4/strerror.m4.
35474
35475 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35476             Bruno Haible  <bruno@clisp.org>
35477
35478         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
35479
35480 2008-12-13  Bruno Haible  <bruno@clisp.org>
35481
35482         * modules/strtoull (Depends-on): Remove unistd.
35483
35484 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35485
35486         * modules/strtoull (Depends-on): Add stdlib.
35487
35488 2008-12-11  Simon Josefsson  <simon@josefsson.org>
35489
35490         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
35491
35492 2008-12-10  Jim Meyering  <meyering@redhat.com>
35493
35494         gl_ASSERT: don't say assertions are disabled when they're not
35495         * m4/assert.m4 (gl_ASSERT): Do not make configure report
35496         "checking whether to enable assertions... no", when they are in
35497         fact enabled.  This is solely a bug in the output of configure.
35498         In spite of saying "no", NDEBUG was not defined in that case.
35499         Also, as noted by Eric Blake, leave assertions enabled upon
35500         --enable-assert=INVALID.
35501
35502 2008-12-10  Bruno Haible  <bruno@clisp.org>
35503
35504         Change MODULES.html to refer to POSIX:2008 where possible.
35505         * MODULES.html.sh (POSIX2008_URL): New variable.
35506         (posix_headers): Remove sys/timeb, ucontext.
35507         (posix2001_headers): New variable.
35508         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
35509         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
35510         index, makecontext, mktemp, pthread_attr_getstackaddr,
35511         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
35512         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
35513         (posix2001_functions): New variable.
35514         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
35515         otherwise.
35516
35517 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35518
35519         add missing include to parse-duration.c
35520         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
35521         * modules/parse-duration (Depends-on): Add xalloc.
35522
35523         fix sed script reading maint.mk
35524         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
35525         (syntax-check-rules): Use it.
35526
35527 2008-12-09  Bruno Haible  <bruno@clisp.org>
35528
35529         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
35530         MacOS X 10.4/PowerPC.
35531         Reported by Simon Josefsson.
35532
35533 2008-12-08  Jim Meyering  <meyering@redhat.com>
35534
35535         work around mingw's lack of some S_IF definitions
35536         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
35537         Reported by Simon Josefsson.
35538
35539 2008-12-08  Bruno Haible  <bruno@clisp.org>
35540
35541         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
35542         applied to variables. Needed on MacOS X 10.4/PowerPC.
35543         Reported by Simon Josefsson.
35544
35545 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
35546         and Eric Blake  <ebb9@byu.net>
35547
35548         assert: honor --enable-assert
35549         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
35550         order to honor --enable-assert, rather than treating it as a
35551         synonym for --disable-assert.
35552
35553 2008-12-08  Jim Meyering  <meyering@redhat.com>
35554
35555         * lib/posixtm.c: Remove now-useless declaration of mktime.
35556
35557         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
35558
35559 2008-12-07  Bruno Haible  <bruno@clisp.org>
35560
35561         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
35562         test_once): Mark functions as static.
35563         * tests/test-tls.c (test_tls): Likewise.
35564
35565 2008-12-07  Bruno Haible  <bruno@clisp.org>
35566
35567         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
35568         iconv_register_autodetect.
35569
35570 2008-12-07  Jim Meyering  <meyering@redhat.com>
35571
35572         posixtm.c: avoid a warning
35573         * lib/posixtm.c (posixtime): Don't initialize tm0.
35574         It's no longer needed to placate gcc4's -Wuninitialized,
35575         and the attempt to placate would elicit a new warning.
35576
35577         unicodeio.c: mark unused parameters
35578         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35579         (fallback_failure_callback): Likewise.
35580
35581 2008-12-07  Bruno Haible  <bruno@clisp.org>
35582
35583         * gnulib-tool (func_create_testdir): When building the tests
35584         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
35585         Reported by Simon Josefsson.
35586
35587 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35588
35589         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
35590
35591 2008-12-06  Bruno Haible  <bruno@clisp.org>
35592
35593         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
35594         Suggested by Eric Blake.
35595
35596 2008-12-06  Bruno Haible  <bruno@clisp.org>
35597
35598         Fix a c-stack test failure on MacOS X.
35599         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
35600         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
35601         handler for SIGBUS as well.
35602         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
35603         install a signal handler for SIGBUS as well.
35604         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
35605
35606 2008-12-06  Bruno Haible  <bruno@clisp.org>
35607
35608         Advocacy documentation.
35609         * doc/gnulib-intro.texi (Benefits): New section.
35610         * doc/gnulib.texi: Update.
35611
35612 2008-12-06  Bruno Haible  <bruno@clisp.org>
35613
35614         Document the 'manywarnings' module.
35615         * doc/manywarnings.texi: New file.
35616         * doc/gnulib.texi: Include it.
35617
35618 2008-12-05  Eric Blake  <ebb9@byu.net>
35619
35620         tests: silence some gcc warnings
35621         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
35622         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
35623         type mismatches.
35624
35625 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35626             Bruno Haible  <bruno@clisp.org>
35627
35628         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
35629
35630 2008-11-29  Jim Meyering  <meyering@redhat.com>
35631
35632         unicodeio.c: mark unused parameters
35633         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35634         (fallback_failure_callback): Likewise.
35635
35636         fts: fix a thinko
35637         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
35638         (set_stat_type): Return S_IF*-valued "type" directly.
35639         Prompted by James Youngman's spotting a related bug.
35640         Confirmed by further testing through find.
35641
35642         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
35643         * lib/fts.c (D_TYPE): Define.
35644         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35645         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35646         (s_ifmt_shift_bits): New function.
35647         (set_stat_type): New function.
35648         (fts_build): When not calling fts_stat, call set_stat_type
35649         to propagate dirent.d_type info to fts_read caller.
35650         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35651         fts_statp->st_mode type information may be valid.
35652
35653 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35654
35655         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35656         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35657         <sds@gnu.org>.
35658
35659 2008-11-20  Bruno Haible  <bruno@clisp.org>
35660
35661         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35662         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35663         INCLUDE_NEXT.
35664         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35665         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35666         * modules/math (Makefile.am): Substitute
35667         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35668         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35669
35670 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35671             Bruno Haible  <bruno@clisp.org>
35672
35673         * lib/stdint.in.h: Define all type macros so that their expansion is
35674         a single typedef'ed token. Fixes a compilation failure in Boost which
35675         does "using ::int8_t;".
35676
35677 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35678
35679         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35680         gl_MANYWARN_ALL_GCC.
35681         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35682         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35683         * modules/manywarnings: New file.
35684         * MODULES.html.sh: Mention manywarnings module.
35685
35686 2008-11-18  Bruno Haible  <bruno@clisp.org>
35687
35688         * doc/gnulib-tool.texi (Unit tests): New section.
35689
35690 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35691
35692         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35693         paths like 'lib/po/foo.po'.
35694
35695 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35696
35697         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35698         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35699
35700 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35701
35702         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35703         parameter works.
35704
35705 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35706
35707         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35708
35709 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35710
35711         * modules/parse-duration-tests: New file.
35712         * tests/test-parse-duration.sh: New file.
35713         * tests/test-parse-duration.c: New file.
35714
35715         New module 'parse-duration'.
35716         * lib/parse-duration.h: New file.
35717         * lib/parse-duration.c: New file.
35718         * modules/parse-duration: New file.
35719
35720 2008-11-17  Bruno Haible  <bruno@clisp.org>
35721
35722         * tests/test-select-out.sh: Comment out the first pipe test.
35723         Reported by Simon Josefsson.
35724
35725 2008-11-17  Bruno Haible  <bruno@clisp.org>
35726
35727         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35728         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35729         gl_HOSTENT.
35730
35731 2008-11-17  Bruno Haible  <bruno@clisp.org>
35732
35733         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35734         -lnetwork and -lnet. Needed for Haiku and BeOS.
35735
35736 2008-11-16  Bruno Haible  <bruno@clisp.org>
35737
35738         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35739
35740 2008-11-16  Bruno Haible  <bruno@clisp.org>
35741
35742         Avoid test failure on Haiku.
35743         * tests/test-fsync.c: Include <errno.h>.
35744         (main): Don't require that fsync (0) fails.
35745
35746 2008-11-15  Bruno Haible  <bruno@clisp.org>
35747
35748         New module 'hostent'.
35749         * modules/hostent: New file.
35750         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35751
35752 2008-11-15  Bruno Haible  <bruno@clisp.org>
35753
35754         New module 'servent'.
35755         * modules/servent: New file.
35756         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35757
35758 2008-11-15  Bruno Haible  <bruno@clisp.org>
35759
35760         Avoid generating same test program with two different rules.
35761         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35762         test-frexp to test-frexp-nolibm.
35763         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35764         test-frexpl to test-frexpl-nolibm.
35765
35766 2008-11-15  Bruno Haible  <bruno@clisp.org>
35767
35768         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35769         $(FREXPL_LIBM).
35770
35771 2008-11-15  Bruno Haible  <bruno@clisp.org>
35772
35773         * lib/netdb.in.h: Activate the definitions also when the system's
35774         <netdb.h> has 'struct addrinfo'.
35775         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35776         EAI_OVERFLOW or AI_NUMERICSERV.
35777         * doc/posix-headers/netdb.texi: Document the problem.
35778
35779 2008-11-15  Bruno Haible  <bruno@clisp.org>
35780
35781         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35782
35783         Make the 'sched' module work on platforms where <sched.h> exists but
35784         is incomplete (such as Haiku).
35785         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35786         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35787         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35788         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35789         HAVE_STRUCT_SCHED_PARAM.
35790         * modules/sched (Depends-on): Add include_next.
35791         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35792         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35793         * doc/posix-headers/sched.texi: Document the issue.
35794
35795 2008-11-13  Jim Meyering  <meyering@redhat.com>
35796
35797         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35798         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35799         test would fail due to the difference in the Report bugs to ...
35800         line.  The expected address is empty, "<>", while the actual
35801         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35802
35803 2008-11-12  Bruno Haible  <bruno@clisp.org>
35804
35805         lstat: don't compile lstat.c on systems lacking lstat
35806         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35807         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35808         Reported by Daniel P. Berrange via Jim Meyering.
35809
35810 2008-11-12  Jim Meyering  <meyering@redhat.com>
35811
35812         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35813
35814 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35815
35816         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35817         instead.
35818
35819 2008-11-12  Bruno Haible  <bruno@clisp.org>
35820
35821         * lib/unicodeio.c: Include unistr.h.
35822         (utf8_wctomb): Remove function.
35823         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35824
35825 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35826
35827         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35828         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35829         <bruno@clisp.org>.
35830         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35831
35832 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35833
35834         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35835         * doc/gnulib.texi: Add section for warnings.
35836
35837 2008-11-11  Bruno Haible  <bruno@clisp.org>
35838
35839         * lib/sockets.h: Add a comment.
35840
35841 2008-11-11  Karl Berry  <karl@gnu.org>
35842
35843         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35844
35845 2008-11-11  Eric Blake  <ebb9@byu.net>
35846
35847         fdl.texi: avoid git symlinks
35848         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35849
35850 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35851
35852         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35853
35854 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35855
35856         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35857         (gl_WARN_ADD): Substitute $2 if literal.
35858
35859 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35860
35861         * m4/warning.m4: Remove.
35862
35863 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35864
35865         * m4/warnings.m4: Almost complete rewrite. :-)
35866
35867 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35868
35869         * modules/warnings: New module.
35870         * m4/warnings.m4: New file.
35871         * MODULES.html.sh: Mention warnings module.
35872         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35873         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35874
35875 2008-11-10  Eric Blake  <ebb9@byu.net>
35876
35877         fdl.texi: make a symlink to the latest version
35878         * doc/standards.texi: Revert today's earlier change.
35879         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35880         * doc/fdl.texi: ...and replace this with a symlink to the newer
35881         fdl-1.3.texi.
35882
35883 2008-11-10  Bruno Haible  <bruno@clisp.org>
35884
35885         * tests/test-select-fd.c (main): Accept the result file name as fourth
35886         argument.
35887         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35888         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35889
35890 2008-11-10  Bruno Haible  <bruno@clisp.org>
35891
35892         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35893         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35894         as autoconf-substituted macros.
35895         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35896         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35897         gl_NETDB_H_DEFAULTS. Set these variables.
35898         * modules/netdb (Makefile.am): Substitute these variables.
35899
35900 2008-11-10  Eric Blake  <ebb9@byu.net>
35901
35902         standards.texi: include correct file for FDL 1.3
35903         * doc/standards.texi (GNU Free Documentation License): Change
35904         include file to pull in FDL 1.3, not 1.2.
35905
35906         fdl.texi: revert accidental change to license
35907         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35908
35909 2008-11-10  Bruno Haible  <bruno@clisp.org>
35910
35911         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35912         cross-compiling guesses also when the native compile gives no result.
35913
35914 2008-11-10  Bruno Haible  <bruno@clisp.org>
35915
35916         * lib/spawni.c (__spawni): Force variable into the stack.
35917
35918 2008-11-10  Bruno Haible  <bruno@clisp.org>
35919
35920         Add support for Haiku.
35921         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35922         glibc and BeOS, but also on Haiku.
35923         * lib/fpurge.c (fpurge): Likewise.
35924         * lib/freadable.c (freadable): Likewise.
35925         * lib/freadahead.c (freadahead): Likewise.
35926         * lib/freading.c (freading): Likewise.
35927         * lib/freadptr.c (freadptr): Likewise.
35928         * lib/freadseek.c (freadptrinc): Likewise.
35929         * lib/fseeko.c (rpl_fseeko): Likewise.
35930         * lib/fseterr.c (fseterr): Likewise.
35931         * lib/fwritable.c (fwritable): Likewise.
35932         * lib/fwriting.c (fwriting): Likewise.
35933         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35934
35935 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35936
35937         * lib/config.charset: Treat Haiku like BeOS.
35938
35939 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35940
35941         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35942         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35943
35944 2008-11-08  Bruno Haible  <bruno@clisp.org>
35945
35946         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35947         AC_CACHE_CHECK.
35948
35949 2008-11-08  Bruno Haible  <bruno@clisp.org>
35950
35951         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35952
35953 2008-11-08  Bruno Haible  <bruno@clisp.org>
35954
35955         * tests/test-select-fd.c: New file.
35956         * tests/test-select-in.sh: New file.
35957         * tests/test-select-out.sh: New file.
35958         * tests/test-select-stdin.c: New file.
35959         * modules/select-tests (Files): Add the new files.
35960         (Depends-on): Add gettimeofday.
35961         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35962         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35963         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35964
35965 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35966             Bruno Haible  <bruno@clisp.org>
35967
35968         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35969
35970 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35971
35972         * build-aux/pmccabe2html: Added support for C++ source files.
35973
35974 2008-11-05  Ben Pfaff  <blp@gnu.org>
35975
35976         Fix lib/close.c build on Windows.
35977         * modules/close (Files): Add lib/w32sock.h.
35978
35979 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35980
35981         Accept Bison's NEWS format.
35982         * build-aux/announce-gen (print_news_deltas): Tweak
35983         $re_prefix.
35984
35985 2008-11-04  Bruno Haible  <bruno@clisp.org>
35986
35987         * modules/random_r (Maintainer): Add glibc.
35988
35989 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35990
35991         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35992         by karl@freefriends.org (Karl Berry).
35993         * doc/alloca.texi: Likewise.
35994         * doc/c-ctype.texi: Likewise.
35995         * doc/c-strcase.texi: Likewise.
35996         * doc/c-strcaseeq.texi: Likewise.
35997         * doc/c-strcasestr.texi: Likewise.
35998         * doc/c-strstr.texi: Likewise.
35999         * doc/c-strtod.texi: Likewise.
36000         * doc/c-strtold.texi: Likewise.
36001         * doc/ctime.texi: Likewise.
36002         * doc/error.texi: Likewise.
36003         * doc/fdl.texi: Likewise.
36004         * doc/gcd.texi: Likewise.
36005         * doc/getdate.texi: Likewise.
36006         * doc/gnulib-intro.texi: Likewise.
36007         * doc/gnulib-tool.texi: Likewise.
36008         * doc/gnulib.texi: Likewise.
36009         * doc/inet_ntoa.texi: Likewise.
36010         * doc/maintain.texi: Likewise.
36011         * doc/make-stds.texi: Likewise.
36012         * doc/quote.texi: Likewise.
36013         * doc/regexprops-generic.texi: Likewise.
36014         * doc/standards.texi: Likewise.
36015         * doc/verify.texi: Likewise.
36016         * doc/visibility.texi: Likewise.
36017         * doc/gnulib.texi (GNU Free Documentation License): Include
36018         fdl-1.3.texi instead of fdl.texi.
36019
36020 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36021
36022         * doc/fdl-1.3.texi: New file, from
36023         <http://www.gnu.org/licenses/fdl-1.3.texi>.
36024         * modules/fdl-1.3: Add.
36025         * MODULES.html.sh: Add fdl-1.3.
36026
36027 2008-11-03  Bruno Haible  <bruno@clisp.org>
36028
36029         Make determination of absolute name of header file work with AIX xlc.
36030         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
36031         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
36032         preprocessing.
36033         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36034         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36035
36036 2008-11-03  Simon Josefsson  <simon@josefsson.org>
36037
36038         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
36039         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
36040         <ludo@gnu.org>.
36041
36042 2008-11-02  Bruno Haible  <bruno@clisp.org>
36043
36044         Mark 'strpbrk' obsolete.
36045         * modules/strpbrk (Status, Notice): New sections.
36046         * modules/strtok_r (Depends-on): Add strpbrk.
36047
36048 2008-11-02  Bruno Haible  <bruno@clisp.org>
36049
36050         Mark 'strdup' obsolete.
36051         * modules/strdup (Status, Notice): New sections.
36052         * modules/findprog (Depends-on): Add strdup.
36053         * modules/getaddrinfo (Depends-on): Likewise.
36054         * modules/localename (Depends-on): Likewise.
36055         * modules/relocatable-lib (Depends-on): Likewise.
36056         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
36057         * modules/relocatable-prog (Depends-on): Likewise.
36058         * modules/trim (Depends-on): Likewise.
36059         * modules/unictype/gen-ctype (Depends-on): Likewise.
36060         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36061
36062 2008-11-02  Bruno Haible  <bruno@clisp.org>
36063
36064         Mark 'strcspn' obsolete.
36065         * modules/strcspn (Status, Notice): New sections.
36066
36067 2008-11-02  Bruno Haible  <bruno@clisp.org>
36068
36069         Mark 'rmdir' obsolete.
36070         * modules/rmdir (Status, Notice): New sections.
36071         * modules/clean-temp (Depends-on): Add rmdir.
36072         * modules/openat (Depends-on): Likewise.
36073
36074 2008-11-02  Bruno Haible  <bruno@clisp.org>
36075
36076         Mark 'raise' obsolete.
36077         * modules/raise (Status, Notice): New sections.
36078         (Include): Specify <signal.h>.
36079         * modules/stdio (Depends-on): Add raise.
36080         * modules/write (Depends-on): Likewise.
36081
36082 2008-11-02  Bruno Haible  <bruno@clisp.org>
36083
36084         Mark 'memset' obsolete.
36085         * modules/memset (Status, Notice): New sections.
36086
36087 2008-11-02  Bruno Haible  <bruno@clisp.org>
36088
36089         Mark 'memmove' obsolete.
36090         * modules/memmove (Status, Notice): New sections.
36091         * modules/argp (Depends-on): Add memmove.
36092         * modules/argz (Depends-on): Likewise.
36093         * modules/canonicalize (Depends-on): Likewise.
36094         * modules/canonicalize-lgpl (Depends-on): Likewise.
36095         * modules/fts (Depends-on): Likewise.
36096         * modules/getcwd (Depends-on): Likewise.
36097         * modules/human (Depends-on): Likewise.
36098         * modules/regex (Depends-on): Likewise.
36099         * modules/striconveh (Depends-on): Likewise.
36100         * modules/trim (Depends-on): Likewise.
36101         * modules/unistr/u8-move (Depends-on): Likewise.
36102         * modules/unistr/u16-move (Depends-on): Likewise.
36103         * modules/unistr/u32-move (Depends-on): Likewise.
36104
36105 2008-11-02  Bruno Haible  <bruno@clisp.org>
36106
36107         Mark 'memcpy' obsolete.
36108         * modules/memcpy (Status, Notice): New sections.
36109
36110 2008-11-02  Bruno Haible  <bruno@clisp.org>
36111
36112         Mark 'memcmp' obsolete.
36113         * modules/memcmp (Status, Notice): New sections.
36114         * modules/argmatch (Depends-on): Add memchr.
36115         * modules/backupfile (Depends-on): Likewise.
36116         * modules/c-strcasestr (Depends-on): Likewise.
36117         * modules/crypto/des (Depends-on): Likewise.
36118         * modules/csharpcomp (Depends-on): Likewise.
36119         * modules/fnmatch (Depends-on): Likewise.
36120         * modules/git-merge-changelog (Depends-on): Likewise.
36121         * modules/isnand (Depends-on): Likewise.
36122         * modules/isnand-nolibm (Depends-on): Likewise.
36123         * modules/isnanf (Depends-on): Likewise.
36124         * modules/isnanf-nolibm (Depends-on): Likewise.
36125         * modules/isnanl (Depends-on): Likewise.
36126         * modules/isnanl-nolibm (Depends-on): Likewise.
36127         * modules/mbchar (Depends-on): Likewise.
36128         * modules/memcoll (Depends-on): Likewise.
36129         * modules/quotearg (Depends-on): Likewise.
36130         * modules/regex (Depends-on): Likewise.
36131         * modules/relocatable-prog (Depends-on): Likewise.
36132         * modules/same (Depends-on): Likewise.
36133         * modules/signbit (Depends-on): Likewise.
36134         * modules/strcasestr-simple (Depends-on): Likewise.
36135         * modules/unictype/gen-ctype (Depends-on): Likewise.
36136         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36137         * modules/uniname/uniname (Depends-on): Likewise.
36138         * modules/unistr/u8-cmp (Depends-on): Likewise.
36139
36140 2008-11-02  Bruno Haible  <bruno@clisp.org>
36141
36142         Mark 'memchr' obsolete.
36143         * modules/memchr (Status, Notice): New sections.
36144         * modules/argp (Depends-on): Add memchr.
36145         * modules/base64 (Depends-on): Likewise.
36146         * modules/c-strcasestr (Depends-on): Likewise.
36147         * modules/chdir-long (Depends-on): Likewise.
36148         * modules/fnmatch (Depends-on): Likewise.
36149         * modules/getsubopt (Depends-on): Likewise.
36150         * modules/git-merge-changelog (Depends-on): Likewise.
36151         * modules/glob (Depends-on): Likewise.
36152         * modules/strcasestr-simple (Depends-on): Likewise.
36153         * modules/strnlen (Depends-on): Likewise.
36154
36155 2008-11-02  Bruno Haible  <bruno@clisp.org>
36156
36157         Mark 'atexit' obsolete.
36158         * modules/atexit (Status, Notice): New sections.
36159         * modules/chdir-long (Depends-on): Add atexit.
36160         * modules/wait-process (Depends-on): Likewise.
36161
36162 2008-11-02  Bruno Haible  <bruno@clisp.org>
36163
36164         * gnulib-tool: New option --with-obsolete.
36165         (func_usage): Document it.
36166         (func_modules_transitive_closure): Drop obsolete dependencies if
36167         incobsolete is not true.
36168         (func_import): Read and save the incobsolete variable to the cache.
36169
36170 2008-11-02  Bruno Haible  <bruno@clisp.org>
36171
36172         * modules/TEMPLATE-EXTENDED: New field 'Status'.
36173         * gnulib-tool: New option --extract-status.
36174         (func_usage): Document it.
36175         (sed_extract_prog): Recognize it.
36176         (func_get_status): New function.
36177
36178 2008-10-30  Simon Josefsson  <simon@josefsson.org>
36179
36180         * modules/sockets (License): Change from LGPL to LGPLv2+.
36181
36182 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36183
36184         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
36185
36186 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36187
36188         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36189         Mention times and sys_times.
36190         * modules/sys_times, modules/sys_times-tests: New modules.
36191         * modules/times, modules/times-tests: Likewise
36192         * m4/sys_times_h.m4: New file.
36193         * lib/sys_times.in.h: Likewise
36194         * lib/times.c: Likewise.
36195         * tests/test-sys_times.c: Likewise.
36196         * tests/test-times.c: Likewise.
36197         * doc/posix-headers/sys_times.texi: Update.
36198         * doc/posix-functions/times.texi: Update.
36199
36200 2008-10-28  Jim Meyering  <meyering@redhat.com>
36201
36202         * modules/tempname (Depends-on): Add lstat.
36203
36204         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
36205
36206 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36207
36208         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
36209         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
36210         using idiom used elsewhere in gnulib.
36211
36212 2008-10-27  Jim Meyering  <meyering@redhat.com>
36213
36214         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
36215
36216 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36217
36218         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
36219         TESTS_ENVIRONMENT, for shell scripts that needs to call built
36220         programs.
36221         * tests/test-argp-2.sh: Use $EXEEXT when needed.
36222
36223 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36224
36225         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
36226
36227 2008-10-27  Bruno Haible  <bruno@clisp.org>
36228
36229         * tests/test-lstat.c: Include <stdio.h>.
36230
36231 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36232
36233         * modules/lstat-tests: New module.
36234         * tests/test-lstat.c: New file.
36235
36236 2008-10-26  Jim Meyering  <meyering@redhat.com>
36237
36238         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
36239
36240 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36241             Bruno Haible  <bruno@clisp.org>
36242
36243         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
36244         * modules/configmake (Include): Add a note that the include must come
36245         after all system headers.
36246         * lib/javaversion.c: Include configmake.h after all other includes.
36247
36248 2008-10-26  Bruno Haible  <bruno@clisp.org>
36249
36250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
36251         HAVE_STRUCT_RANDOM_DATA to 1.
36252         (gl_STDLIB_H): Simplify.
36253
36254 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36255
36256         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
36257         substitute HAVE_STRUCT_RANDOM_DATA.
36258         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
36259         random_data.
36260         * modules/stdlib (Makefile.am): Substitute
36261         HAVE_STRUCT_RANDOM_DATA.
36262
36263 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36264
36265         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
36266         * doc/gnulib-intro.texi (Copyright): Likewise.
36267
36268 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36269
36270         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
36271         findings.
36272
36273 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
36274             Bruno Haible  <bruno@clisp.org>
36275
36276         * lib/unistd.in.h: Include <winsock2.h>.
36277         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
36278         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
36279         Provide dummy declarations.
36280         (gethostname): Override.
36281         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
36282         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
36283         gl_PREREQ_SYS_H_WINSOCK2.
36284         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
36285         * doc/posix-functions/gethostname.texi: More details.
36286
36287 2008-10-25  Bruno Haible  <bruno@clisp.org>
36288
36289         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36290         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
36291         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
36292
36293         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
36294         here ...
36295         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
36296         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
36297         gl_UNISTD_H_DEFAULTS.
36298
36299 2008-10-25  Eric Blake  <ebb9@byu.net>
36300
36301         signbit: avoid spurious compiler failure
36302         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
36303         declarations inside function.
36304
36305 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36306             Bruno Haible  <bruno@clisp.org>
36307
36308         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
36309         * modules/random_r (Depends-on): Add stdint.
36310
36311 2008-10-24  Bruno Haible  <bruno@clisp.org>
36312
36313         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
36314         Eggert.
36315         * modules/strerror (License): Likewise.
36316
36317 2008-10-24  Jim Meyering  <meyering@redhat.com>
36318
36319         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
36320         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
36321
36322 2008-10-24  Eric Blake  <ebb9@byu.net>
36323
36324         getgroups: fix compilation when getgroups is available
36325         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
36326         but with <config.h> override of getgroups disabled.
36327
36328 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36329
36330         * doc/gnulib.texi (Header files): Add note about C++ problems.
36331         Explained by Bruno Haible <bruno@clisp.org>.
36332
36333 2008-10-23  Bruno Haible  <bruno@clisp.org>
36334
36335         Define a dummy SA_NODEFER macro on Interix.
36336         * lib/signal.in.h (SA_NODEFER): Define fallback.
36337         Reported by Aleksey Cheusov <cheusov@tut.by> via
36338         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
36339
36340 2008-10-23  Bruno Haible  <bruno@clisp.org>
36341
36342         * modules/freadahead (License): Change to LGPLv2+.
36343         Suggested by Simon Josefsson.
36344
36345 2008-10-23  Jim Meyering  <meyering@redhat.com>
36346
36347         random_r: new module
36348         * modules/random_r: New file.
36349         * m4/random_r.m4: New file.
36350         * lib/random_r.c: New file, from glibc.
36351         * modules/random_r-tests: New file.
36352         * tests/test-random_r.c: New file.
36353         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
36354          Declare.
36355         (RAND_MAX): Define.
36356         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
36357         * modules/stdlib: Substitute them, too.
36358         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
36359         * doc/glibc-functions/initstate_r.texi: Mention the new module.
36360         * doc/glibc-functions/random_r.texi: Likewise.
36361         * doc/glibc-functions/setstate_r.texi: Likewise.
36362         * doc/glibc-functions/srandom_r.texi: Likewise.
36363         * config/srclist.txt: Mention it.
36364
36365 2008-10-23  David Lutterkort  <lutter@redhat.com>
36366
36367         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
36368         link requirement
36369
36370 2008-10-23  Jim Meyering  <meyering@redhat.com>
36371
36372         selinux-h: mark parameters of stub functions as intentionally unused
36373         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
36374         * lib/se-context.in.h: Likewise.
36375
36376 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36377
36378         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
36379
36380 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36381
36382         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
36383
36384 2008-10-22  Eric Blake  <ebb9@byu.net>
36385
36386         glthread/thread: avoid compiler warning
36387         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
36388         Add unreachable abort to silence compiler.
36389
36390 2008-10-22  Eric Blake  <ebb9@byu.net>
36391
36392         netdb: also supply struct addrinfo for cygwin 1.5.x
36393         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
36394         older cygwin.
36395         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
36396         cygwin.
36397         * doc/posix-headers/netdb.texi (netdb.h): Document this.
36398
36399 2008-10-22  Bruno Haible  <bruno@clisp.org>
36400
36401         * users.txt: Update entry about pspp.
36402
36403 2008-10-21  Bruno Haible  <bruno@clisp.org>
36404
36405         Simplification.
36406         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
36407         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
36408
36409         Simplification.
36410         * lib/ioctl.c (ioctl): Don't undefine.
36411         * lib/socket.c (socket): Don't undefine.
36412
36413         Remove unused module indicator macros.
36414         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
36415         GNULIB_$1 as a C macro.
36416
36417         * doc/posix-functions/close.texi: Undo last change.
36418         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
36419         Windows platforms.
36420
36421 2008-10-21  Bruno Haible  <bruno@clisp.org>
36422
36423         Add gethostname() declaration to <unistd.h>.
36424         * lib/unistd.in.h (gethostname): New declaration.
36425         * lib/gethostname.c: Include <unistd.h>.
36426         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
36427         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
36428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
36429         and HAVE_GETHOSTNAME.
36430         * modules/gethostname (Depends-on): Add unistd.
36431         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36432         (Include): Specify <unistd.h>.
36433         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
36434         HAVE_GETHOSTNAME.
36435         * tests/test-gethostname.c: Include <unistd.h> first.
36436
36437 2008-10-21  Bruno Haible  <bruno@clisp.org>
36438
36439         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
36440         * modules/select-tests (Depends-on): Likewise.
36441         Reported by Simon Josefsson.
36442
36443 2008-10-21  Simon Josefsson  <simon@josefsson.org>
36444
36445         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
36446         * lib/accept.c: New file, based on winsock.c.
36447         * lib/bind.c: New file, based on winsock.c.
36448         * lib/connect.c: New file, based on winsock.c.
36449         * lib/getpeername.c: New file, based on winsock.c.
36450         * lib/getsockname.c: New file, based on winsock.c.
36451         * lib/getsockopt.c: New file, based on winsock.c.
36452         * lib/ioctl.c: New file, based on winsock.c.
36453         * lib/listen.c: New file, based on winsock.c.
36454         * lib/recv.c: New file, based on winsock.c.
36455         * lib/recvfrom.c: New file, based on winsock.c.
36456         * lib/send.c: New file, based on winsock.c.
36457         * lib/sendto.c: New file, based on winsock.c.
36458         * lib/setsockopt.c: New file, based on winsock.c.
36459         * lib/shutdown.c: New file, based on winsock.c.
36460         * lib/socket.c: New file, based on winsock.c.
36461         * lib/w32sock.h: New file, based on winsock.c.
36462         * lib/winsock.c: Remove file.
36463         * modules/accept: Likewise.
36464         * modules/bind: Likewise.
36465         * modules/connect: Likewise.
36466         * modules/getpeername: Likewise.
36467         * modules/getsockname: Likewise.
36468         * modules/getsockopt: Likewise.
36469         * modules/ioctl: Likewise.
36470         * modules/listen: Likewise.
36471         * modules/recv: Likewise.
36472         * modules/recvfrom: Likewise.
36473         * modules/send: Likewise.
36474         * modules/sendto: Likewise.
36475         * modules/setsockopt: Likewise.
36476         * modules/shutdown: Likewise.
36477         * modules/socket: Use socket.c instead of winsock.c.
36478         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
36479         * doc/posix-functions/accept.texi: Doc fix.
36480         * doc/posix-functions/bind.texi: Doc fix.
36481         * doc/posix-functions/close.texi: Doc fix.
36482         * doc/posix-functions/connect.texi: Doc fix.
36483         * doc/posix-functions/getpeername.texi: Doc fix.
36484         * doc/posix-functions/getsockname.texi: Doc fix.
36485         * doc/posix-functions/getsockopt.texi: Doc fix.
36486         * doc/posix-functions/ioctl.texi: Doc fix.
36487         * doc/posix-functions/listen.texi: Doc fix.
36488         * doc/posix-functions/recv.texi: Doc fix.
36489         * doc/posix-functions/recvfrom.texi: Doc fix.
36490         * doc/posix-functions/send.texi: Doc fix.
36491         * doc/posix-functions/sendto.texi: Doc fix.
36492         * doc/posix-functions/setsockopt.texi: Doc fix.
36493         * doc/posix-functions/shutdown.texi: Doc fix.
36494         * doc/posix-functions/socket.texi: Doc fix.
36495
36496 2008-10-20  Bruno Haible  <bruno@clisp.org>
36497
36498         Take into account the role of SIGABRT_COMPAT on Windows 2008.
36499         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
36500         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
36501         as an alias for SIGABRT.
36502         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
36503         (sigaction): Map it to SIGABRT.
36504         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
36505
36506 2008-10-20  Bruno Haible  <bruno@clisp.org>
36507
36508         * lib/fts.c: Don't include lstat.h.
36509         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
36510
36511         Move the lstat() declaration to <sys/stat.h>.
36512         * lib/lstat.h: Remove file.
36513         * lib/sys_stat.in.h: Add special invocation convention.
36514         (lstat): New declaration.
36515         * lib/lstat.c (orig_lstat): New function.
36516         (rpl_lstat): Use orig_lstat instead of lstat.
36517         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
36518         AC_C_INLINE. Set REPLACE_LSTAT.
36519         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
36520         and REPLACE_LSTAT.
36521         * modules/lstat (Files): Remove lib/lstat.h.
36522         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36523         (Include): Specify <sys/stat.h> instead of lstat.h.
36524         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
36525         REPLACE_LSTAT.
36526         * NEWS: Mention the change.
36527
36528 2008-10-20  Bruno Haible  <bruno@clisp.org>
36529
36530         * modules/posix_spawn-tests: New file.
36531         * tests/test-posix_spawn3.c: New file.
36532
36533 2008-10-20  Bruno Haible  <bruno@clisp.org>
36534
36535         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
36536         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36537         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
36538         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36539         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
36540
36541 2008-10-20  Bruno Haible  <bruno@clisp.org>
36542
36543         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
36544         of posix_spawn on AIX 5.3.
36545
36546 2008-10-20  Bruno Haible  <bruno@clisp.org>
36547
36548         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
36549
36550 2008-10-20  Bruno Haible  <bruno@clisp.org>
36551
36552         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
36553         of AC_LANG_PROGRAM.
36554
36555 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36556
36557         * lib/netdb.in.h: Don't define GNU specific constants until they
36558         are supported or needed.  Reported by Bruno Haible
36559         <bruno@clisp.org>.
36560
36561 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36562
36563         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
36564
36565 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36566
36567         * lib/getaddrinfo.h: Remove file.
36568         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
36569         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
36570         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
36571         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
36572         * modules/netdb: Substitute GNULIB_GETADDRINFO.
36573         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
36574         * tests/test-getaddrinfo.c: Likewise.
36575         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
36576         * NEWS: Mention change.
36577
36578 2008-10-19  Bruno Haible  <bruno@clisp.org>
36579
36580         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
36581
36582 2008-10-19  Bruno Haible  <bruno@clisp.org>
36583
36584         * lib/wait-process.c: Include simply <sys/wait.h>.
36585         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
36586         WIFSTOPPED): Remove fallback definitions.
36587         * modules/wait-process (Depends-on): Add sys_wait.
36588
36589         New module 'sys_wait'.
36590         * modules/sys_wait: New file.
36591         * lib/sys_wait.in.h: New file, partially copied from
36592         lib/wait-process.c.
36593         * m4/sys_wait_h.m4: New file.
36594         * doc/posix-headers/sys_wait.texi: Mention the new module.
36595
36596 2008-10-19  Bruno Haible  <bruno@clisp.org>
36597
36598         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
36599
36600 2008-10-19  Bruno Haible  <bruno@clisp.org>
36601
36602         Assume that waitpid() fills an 'int' status, not a 'union wait'.
36603         * lib/wait-process.c (WAIT_T): Remove type.
36604         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
36605         (wait_subprocess): Update.
36606
36607 2008-10-19  Bruno Haible  <bruno@clisp.org>
36608
36609         New module 'atoll'.
36610         * modules/atoll: New file.
36611         * lib/stdlib.in.h (atoll): New declaration.
36612         * lib/atoll.c: New file, from glibc with modifications.
36613         * m4/atoll.m4: New file.
36614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
36615         HAVE_ATOLL.
36616         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
36617         * doc/posix-functions/atoll.texi: Mention the new module.
36618
36619 2008-10-19  Bruno Haible  <bruno@clisp.org>
36620
36621         Add strtoull() declaration to <stdlib.h>.
36622         * lib/stdlib.in.h (strtoull): New declaration.
36623         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36624         Set HAVE_STRTOULL.
36625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
36626         HAVE_STRTOULL.
36627         * modules/strtoull (Depends-on): Add stdlib.
36628         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36629         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
36630         HAVE_STRTOULL.
36631
36632 2008-10-19  Bruno Haible  <bruno@clisp.org>
36633
36634         Add strtoll() declaration to <stdlib.h>.
36635         * lib/stdlib.in.h (strtoll): New declaration.
36636         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36637         Set HAVE_STRTOLL.
36638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
36639         HAVE_STRTOLL.
36640         * modules/strtoll (Depends-on): Add stdlib.
36641         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36642         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
36643
36644 2008-10-19  Bruno Haible  <bruno@clisp.org>
36645
36646         * modules/bcopy (Depends-on): Add strings.
36647         (Include): Specify <strings.h>.
36648
36649 2008-10-19  Bruno Haible  <bruno@clisp.org>
36650
36651         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36652
36653 2008-10-19  Bruno Haible  <bruno@clisp.org>
36654
36655         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36656         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36657         mingw.
36658
36659 2008-10-19  Bruno Haible  <bruno@clisp.org>
36660
36661         * lib/atanl.c: Don't include isnanl.h.
36662         * lib/cosl.c: Likewise.
36663         * lib/ldexpl.c: Likewise.
36664         * lib/logl.c: Likewise.
36665         * lib/sinl.c: Likewise.
36666         * lib/sqrtl.c: Likewise.
36667         * lib/tanl.c: Likewise.
36668
36669         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36670         * lib/isnanf.h: Remove file.
36671         * lib/isnand.h: Remove file.
36672         * lib/isnanl.h: Remove file.
36673         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36674         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36675         macros.
36676         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36677         HAVE_ISNANF, don't define it as a C macro.
36678         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36679         HAVE_ISNAND, don't define it as a C macro.
36680         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36681         HAVE_ISNANL, don't define it as a C macro.
36682         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36683         HAVE_ISNAN[FDL].
36684         * modules/isnanf (Files): Remove lib/isnanf.h.
36685         (Depends-on): Add math.
36686         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36687         (Include): Specify <math.h> instead of isnanf.h.
36688         * modules/isnand (Files): Remove lib/isnand.h.
36689         (Depends-on): Add math.
36690         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36691         (Include): Specify <math.h> instead of isnand.h.
36692         * modules/isnanl (Files): Remove lib/isnanl.h.
36693         (Depends-on): Add math.
36694         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36695         (Include): Specify <math.h> instead of isnanl.h.
36696         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36697         HAVE_ISNAN[FDL].
36698         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36699         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36700         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36701         * NEWS: Mention the change.
36702
36703 2008-10-18  Bruno Haible  <bruno@clisp.org>
36704
36705         Add getusershell(), setusershell(), endusershell() declarations to
36706         <unistd.h>.
36707         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36708         declarations.
36709         * lib/getusershell.c: Include unistd.h.
36710         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36711         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36712         HAVE_GETUSERSHELL.
36713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36714         and HAVE_GETUSERSHELL.
36715         * modules/getusershell (Depends-on): Add unistd, extensions.
36716         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36717         (Include): Specify <unistd.h>.
36718         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36719         HAVE_GETUSERSHELL.
36720
36721 2008-10-18  Bruno Haible  <bruno@clisp.org>
36722
36723         Add a getloadavg() declaration to <stdlib.h>.
36724         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36725         getloadavg declaration.
36726         (getloadavg): New declaration.
36727         * lib/getloadavg.c: Include <stdlib.h> first.
36728         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36729         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36730         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36732         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36733         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36734         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36735         (Include): Specify <stdlib.h>.
36736         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36737         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36738
36739 2008-10-18  Bruno Haible  <bruno@clisp.org>
36740
36741         * lib/dirchownmod.c: Don't include lchmod.h.
36742
36743         Move the lchmod() declaration to <sys/stat.h>.
36744         * lib/lchmod.h: Remove file.
36745         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36746         (lchmod): New declaration, moved here from lib/lchown.h.
36747         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36748         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36749         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36750         and HAVE_LCHMOD.
36751         * modules/lchmod (Files): Remove lib/lchmod.h.
36752         (Depends-on): Add sys_stat, extensions.
36753         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36754         (Include): Specify <sys/stat.h> instead of lchmod.h.
36755         * modules/sys_stat (Depends-on): Add link-warning.
36756         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36757         definition of GL_LINK_WARNING.
36758         * NEWS: Mention the change.
36759
36760 2008-10-18  Bruno Haible  <bruno@clisp.org>
36761
36762         * lib/fchdir.c: Don't include dirfd.h.
36763         * lib/fts.c: Likewise.
36764         * lib/getcwd.c: Likewise.
36765         * lib/glob.c: Likewise.
36766
36767         Move the dirfd() declaration to <dirent.h>.
36768         * lib/dirfd.h: Remove file.
36769         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36770         (dirfd): New declaration.
36771         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36772         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36773         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36774         HAVE_DECL_DIRFD.
36775         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36776         HAVE_DECL_DIRFD.
36777         * modules/dirfd (Files): Remove lib/dirfd.h.
36778         (Depends-on): Add dirent, extensions.
36779         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36780         (Include): Specify <dirent.h> instead of dirfd.h.
36781         * modules/dirent (Depends-on): Add link-warning.
36782         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36783         definition of GL_LINK_WARNING.
36784         * NEWS: Mention the change.
36785
36786 2008-10-18  Bruno Haible  <bruno@clisp.org>
36787
36788         Move the euidaccess() declaration to <unistd.h>.
36789         * lib/euidaccess.h: Remove file.
36790         * lib/unistd.in.h (euidaccess): New declaration.
36791         * lib/euidaccess.c: Don't include euidaccess.h.
36792         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36793         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36795         and HAVE_EUIDACCESS.
36796         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36797         (Depends-on): Add unistd.
36798         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36799         (Include): Specify <unistd.h> instead of euidaccess.h.
36800         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36801         HAVE_EUIDACCESS.
36802         * NEWS: Mention the change.
36803
36804 2008-10-18  Bruno Haible  <bruno@clisp.org>
36805
36806         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36807
36808         Move the getdomainname() declaration to <unistd.h>.
36809         * lib/getdomainname.h: Remove file.
36810         * lib/unistd.in.h (getdomainname): New declaration.
36811         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36812         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36813         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36814         HAVE_GETDOMAINNAME.
36815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36816         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36817         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36818         (Depends-on): Add unistd, extensions.
36819         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36820         (Includes): Specify <unistd.h> instead of getdomainname.h.
36821         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36822         HAVE_GETDOMAINNAME.
36823         * NEWS: Mention the change.
36824
36825 2008-10-18  Bruno Haible  <bruno@clisp.org>
36826
36827         * modules/dirent: New file.
36828         * m4/dirent_h.m4: New file.
36829         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36830         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36831         * modules/fchdir (Files): Remove lib/dirent.in.h.
36832         (Depends-on): Add dirent.
36833         (Makefile.am): Move rules to modules/dirent.
36834         * doc/posix-headers/dirent.texi: Mention the new module.
36835
36836 2008-10-18  Bruno Haible  <bruno@clisp.org>
36837
36838         Avoid -Wunused-parameter warnings in public gnulib header files.
36839         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36840         macro.
36841         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36842
36843 2008-10-18  Bruno Haible  <bruno@clisp.org>
36844
36845         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36846         * doc/glibc-functions/error.texi: Mention the module 'error'.
36847         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36848         * doc/glibc-functions/getdomainname.texi: Mention the module
36849         'getdomainname'.
36850         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36851         * doc/glibc-functions/getpagesize.texi: Mention the module
36852         'getpagesize'.
36853         * doc/glibc-functions/getusershell.texi: Mention the module
36854         'getusershell'.
36855         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36856         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36857         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36858         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36859         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36860         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36861         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36862         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36863         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36864         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36865         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36866         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36867         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36868         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36869
36870 2008-10-17  Bruno Haible  <bruno@clisp.org>
36871
36872         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36873         HP-UX and IRIX, use -0.0L.
36874         * tests/test-ceill.c (minus_zero): Likewise.
36875         * tests/test-floorl.c (minus_zero): Likewise.
36876         * tests/test-frexpl.c (minus_zero): Likewise.
36877         * tests/test-isnan.c (minus_zerol): Likewise.
36878         * tests/test-isnanl.h (minus_zero): Likewise.
36879         * tests/test-ldexpl.c (minus_zero): Likewise.
36880         * tests/test-roundl.c (minus_zero): Likewise.
36881         * tests/test-signbit.c (minus_zerol): Likewise.
36882         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36883         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36884         * tests/test-truncl.c (minus_zero): Likewise.
36885         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36886         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36887         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36888         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36889
36890 2008-10-17  Bruno Haible  <bruno@clisp.org>
36891
36892         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36893         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36894         that it gets activated only for gcc >= 3.0.
36895         * lib/dirent.in.h: Likewise.
36896         * lib/errno.in.h: Likewise.
36897         * lib/fcntl.in.h: Likewise.
36898         * lib/float.in.h: Likewise.
36899         * lib/iconv.in.h: Likewise.
36900         * lib/inttypes.in.h: Likewise.
36901         * lib/locale.in.h: Likewise.
36902         * lib/math.in.h: Likewise.
36903         * lib/netdb.in.h: Likewise.
36904         * lib/netinet_in.in.h: Likewise.
36905         * lib/search.in.h: Likewise.
36906         * lib/signal.in.h: Likewise.
36907         * lib/spawn.in.h: Likewise.
36908         * lib/stdarg.in.h: Likewise.
36909         * lib/stdint.in.h: Likewise.
36910         * lib/stdio.in.h: Likewise.
36911         * lib/stdlib.in.h: Likewise.
36912         * lib/string.in.h: Likewise.
36913         * lib/strings.in.h: Likewise.
36914         * lib/sys_file.in.h: Likewise.
36915         * lib/sys_ioctl.in.h: Likewise.
36916         * lib/sys_select.in.h: Likewise.
36917         * lib/sys_socket.in.h: Likewise.
36918         * lib/sys_stat.in.h: Likewise.
36919         * lib/sys_time.in.h: Likewise.
36920         * lib/sysexits.in.h: Likewise.
36921         * lib/time.in.h: Likewise.
36922         * lib/unistd.in.h: Likewise.
36923         * lib/wchar.in.h: Likewise.
36924         * lib/wctype.in.h: Likewise.
36925         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36926
36927 2008-10-17  Jim Meyering  <meyering@redhat.com>
36928
36929         ignore-value: don't depend on inline module
36930         * modules/ignore-value (Depends-on): Remove 'inline'.
36931         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36932         Suggestion from Bruno Haible.
36933
36934 2008-10-17  Bruno Haible  <bruno@clisp.org>
36935
36936         New implementation of condition variables for Win32.
36937         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36938         (gl_linked_waitqueue_t): New type.
36939         (gl_cond_t): Use it.
36940         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36941         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36942         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36943         (glthread_cond_init_func, glthread_cond_wait_func,
36944         glthread_cond_timedwait_func, glthread_cond_signal_func,
36945         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36946         Reimplemented on the basis of gl_linked_waitqueue_t.
36947         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36948         gl_waitqueue_t.
36949         (gl_rwlock_t): Update.
36950         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36951
36952 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36953
36954         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36955         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36956
36957 2008-10-17  Jim Meyering  <meyering@redhat.com>
36958
36959         ignore-value: new module
36960         * modules/ignore-value: New file.
36961         * lib/ignore-value.h: New file.
36962         * MODULES.html.sh (Compiler warning management): New section,
36963         just for this module.  More to come.
36964
36965 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36966
36967         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36968         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36969         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36970
36971 2008-10-16  Jim Meyering  <meyering@redhat.com>
36972
36973         openat-die.c: avoid 'no previous prototype' warning
36974         * lib/openat-die.c: Include "openat.h".
36975         Reported by Reuben Thomas <rrt@sc3d.org>.
36976
36977 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36978
36979         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36980         * lib/netdb.in.h: Fix typo.
36981         Reported by Bruno Haible  <bruno@clisp.org>
36982
36983         * lib/netdb.in.h: Include sys/socket.h for platforms without
36984         netdb.h, to get structures like hostent on MinGW.
36985         * modules/netdb (Depends-on): Add sys_socket.
36986
36987 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36988
36989         * modules/netdb, modules/netdb-tests: New file.
36990         * m4/netdb_h.m4: New file.
36991         * lib/netdb.in.h: Add, currently just an empty file pending
36992         definitions.
36993         * tests/test-netdb.c: New file.
36994         * doc/posix-headers/netdb.texi: Mention that we replace it if
36995         needed.
36996         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36997         netdb.
36998
36999 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37000
37001         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
37002         with code.
37003
37004 2008-10-13  Bruno Haible  <bruno@clisp.org>
37005
37006         * lib/glthread/cond.c (glthread_cond_wait_func,
37007         glthread_cond_timedwait_func): Add a comment.
37008
37009 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37010
37011         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
37012         * tests/test-select.c: Likewise,
37013
37014 2008-10-13  Bruno Haible  <bruno@clisp.org>
37015
37016         * lib/glthread/cond.c (glthread_cond_wait_func,
37017         glthread_cond_timedwait_func): Fix variable name.
37018         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37019
37020 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
37021
37022         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
37023         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
37024         struct sockaddr.sa_len.
37025         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
37026
37027 2008-10-13  Simon Josefsson  <simon@josefsson.org>
37028
37029         * build-aux/pmccabe2html: Add css and css_url parameters.
37030
37031 2008-10-12  Bruno Haible  <bruno@clisp.org>
37032
37033         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
37034         calling aclx_get.
37035         Reported by Rainer Tammer <tammer@tammer.net>.
37036
37037 2008-10-12  Bruno Haible  <bruno@clisp.org>
37038
37039         Use msvcrt aware primitives for creation/termination of Win32 threads.
37040         * lib/glthread/thread.c: Include <process.h>.
37041         (glthread_create_func): Use _beginthreadex instead of CreateThread.
37042         (wrapper_func): Update signature.
37043         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
37044
37045 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37046             Bruno Haible  <bruno@clisp.org>
37047
37048         Provide a Win32 implementation of the 'cond' module.
37049         * lib/glthread/cond.h [USE_WIN32]: New implementation.
37050         * lib/glthread/cond.c (glthread_cond_init_func,
37051         glthread_cond_wait_func, glthread_cond_timedwait_func,
37052         glthread_cond_signal_func, glthread_cond_broadcast_func,
37053         glthread_cond_destroy_func) [USE_WIN32]: New functions.
37054         * modules/cond (Dependencies): Add gettimeofday.
37055
37056 2008-10-11  Bruno Haible  <bruno@clisp.org>
37057
37058         Make sleep work on older versions of mingw.
37059         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
37060         only whether it exists.
37061         * doc/posix-functions/sleep.texi: Mention the problem with older
37062         versions of mingw.
37063
37064 2008-10-11  Bruno Haible  <bruno@clisp.org>
37065
37066         New module 'shutdown'.
37067         * modules/shutdown: New file.
37068         * lib/sys_socket.in.h (shutdown): New declaration.
37069         * lib/winsock.c (shutdown): New function.
37070         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37071         GNULIB_SHUTDOWN.
37072         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
37073         * doc/posix-functions/shutdown.texi: Document the new module.
37074
37075 2008-10-11  Jim Meyering  <meyering@redhat.com>
37076
37077         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
37078
37079 2008-10-11  Bruno Haible  <bruno@clisp.org>
37080
37081         New module 'fclose'.
37082         * modules/fclose: New file.
37083         * lib/stdio.in.h (fclose): New declaration.
37084         * lib/fclose.c: New file.
37085         * m4/fclose.m4: New file.
37086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
37087         REPLACE_FCLOSE.
37088         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
37089         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
37090         REPLACE_FCLOSE.
37091         * modules/close (Depends-on): fclose.
37092         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
37093
37094 2008-10-11  Bruno Haible  <bruno@clisp.org>
37095
37096         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
37097         set errno and don't call _close.
37098
37099 2008-10-10  Bruno Haible  <bruno@clisp.org>
37100
37101         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
37102         ACL, not afterwards. Fixes test failure on Cygwin.
37103
37104 2008-10-09  Ben Pfaff  <blp@gnu.org>
37105
37106         * build-aux/announce-gen: Fix gnulib version related part of usage
37107         message.  Die with a useful error message if no tarballs are
37108         found.
37109
37110 2008-10-10  Jim Meyering  <meyering@redhat.com>
37111
37112         bootstrap: use git's --depth=N option only if it's supported
37113         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
37114         recognize the --depth option.  Reported by Pádraig Brady.
37115
37116 2008-10-09  Bruno Haible  <bruno@clisp.org>
37117
37118         New module 'ioctl'.
37119         * modules/ioctl: New file.
37120         * lib/sys_socket.in.h (ioctl): Remove declaration.
37121         * lib/winsock.c: Include <sys/ioctl.h>.
37122         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
37123         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37124         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
37125         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
37126         * doc/posix-functions/ioctl.texi: Mention the new module.
37127
37128 2008-10-09  Bruno Haible  <bruno@clisp.org>
37129
37130         New module 'sys_ioctl'.
37131         * lib/sys_ioctl.in.h: New file.
37132         * m4/sys_ioctl_h.m4: New file.
37133         * modules/sys_ioctl: New file.
37134         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
37135
37136 2008-10-09  Bruno Haible  <bruno@clisp.org>
37137
37138         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
37139         * lib/winsock.c: Include <stdarg.h>.
37140         (rpl_ioctl): Change to second argument 'int' and then varargs.
37141
37142 2008-10-09  Bruno Haible  <bruno@clisp.org>
37143
37144         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
37145         when the sys_socket module is present and the system has <winsock2.h>.
37146
37147 2008-10-09  Bruno Haible  <bruno@clisp.org>
37148
37149         * doc/posix-functions/close.texi: Mention module 'close' instead of
37150         module 'sys_socket'.
37151
37152 2008-10-09  Bruno Haible  <bruno@clisp.org>
37153
37154         * doc/glibc-headers/sys_ioctl.texi: New file.
37155         * doc/gnulib.texi: Include it.
37156
37157 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37158             Bruno Haible  <bruno@clisp.org>
37159
37160         Combine the two replacements of 'close'.
37161         * lib/sys_socket.in.h (close): Define to a reminder to include
37162         <unistd.h>.
37163         (_gl_close_fd_maybe_socket): New declaration.
37164         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
37165         * lib/winsock.c (close): Remove undefinition.
37166         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
37167         needed for the gnulib module 'close'.
37168         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
37169         define to an error symbol or to a warning, if suitable.
37170         * lib/close.c: Include <sys/socket.h>.
37171         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
37172         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
37173         UNISTD_H_HAVE_WINSOCK2_H.
37174         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
37175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37176         UNISTD_H_HAVE_WINSOCK2_H.
37177         * modules/sys_socket (Files): Add m4/unistd_h.m4.
37178         (configure.ac): Set a module indicator.
37179         (Makefile.am): Substitute GNULIB_CLOSE.
37180         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
37181         * modules/poll-tests (Depends-on): Add close.
37182         * modules/select-tests (Depends-on): Likewise.
37183
37184 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37185             Bruno Haible  <bruno@clisp.org>
37186
37187         New module 'close'.
37188         * modules/close: New file.
37189         * lib/unistd.in.h (close): Move declaration out of the
37190         FCHDIR_REPLACEMENT scope.
37191         (_gl_unregister_fd): New declaration.
37192         * lib/close.c: New file.
37193         * lib/fchdir.c (rpl_close): Remove function.
37194         * m4/close.m4: New file.
37195         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37196         close.
37197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
37198         REPLACE_CLOSE.
37199         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
37200         REPLACE_CLOSE.
37201         * modules/fchdir (Depends-on): Add close.
37202
37203 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37204             Bruno Haible  <bruno@clisp.org>
37205
37206         * lib/fcntl.in.h (open): Simplify conditionals.
37207         (_gl_register_fd): New declaration.
37208         * lib/fchdir.c (rpl_open): Remove function.
37209         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
37210         also.
37211         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
37212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37213         open.
37214
37215 2008-10-09  Jim Meyering  <meyering@redhat.com>
37216
37217         GNUmakefile: use the more name-space-friendly "_version"
37218         * top/GNUmakefile (_dummy): Update.
37219         (_version): Rename from "version".
37220
37221 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37222             Bruno Haible  <bruno@clisp.org>
37223
37224         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
37225         rpl_close.
37226         (_gl_register_fd): New function, extracted from rpl_open.
37227         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
37228         (rpl_open, rpl_opendir): Use _gl_register_fd.
37229
37230 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37231
37232         Fix organization of 'open' replacement.
37233         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
37234         (gl_FUNC_OPEN): Use it.
37235         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
37236
37237 2008-10-08  Bruno Haible  <bruno@clisp.org>
37238
37239         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
37240
37241 2008-10-08  Simon Josefsson  <simon@josefsson.org>
37242
37243         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
37244         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
37245         listen).
37246
37247 2008-10-08  Eric Blake  <ebb9@byu.net>
37248
37249         GNUmakefile: add 'make version' target
37250         * top/GNUmakefile (_curr-ver): Split version update rules...
37251         (version): ...into a target.
37252
37253 2008-10-07  Bruno Haible  <bruno@clisp.org>
37254
37255         Use a more portable replacement expression for -0.0L.
37256         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
37257         instead of -0.0L. Fix m4 quotation.
37258
37259         * tests/test-signbit.c: Include <float.h>.
37260         (minus_zero): New variable.
37261         (test_signbitl): Use minus_zero instead of -zero.
37262         * modules/signbit-tests (Depends-on): Add float.
37263
37264         * tests/test-ceill.c: Include <float.h>.
37265         (zero): Remove variable.
37266         (minus_zero): New variable.
37267         (main): Use minus_zero instead of -zero.
37268         * modules/ceill-tests (Depends-on): Add float.
37269
37270         * tests/test-floorl.c: Include <float.h>.
37271         (zero): Remove variable.
37272         (minus_zero): New variable.
37273         (main): Use minus_zero instead of -zero.
37274         * modules/floorl-tests (Depends-on): Add float.
37275
37276         * tests/test-roundl.c: Include <float.h>.
37277         (zero): Remove variable.
37278         (minus_zero): New variable.
37279         (main): Use minus_zero instead of -zero.
37280         * modules/roundl-tests (Depends-on): Add float.
37281
37282         * tests/test-truncl.c: Include <float.h>.
37283         (zero): Remove variable.
37284         (minus_zero): New variable.
37285         (main): Use minus_zero instead of -zero.
37286         * modules/truncl-tests (Depends-on): Add float.
37287
37288         * tests/test-frexpl.c (zero): Remove variable.
37289         (minus_zero): New variable.
37290         (main): Use minus_zero instead of -zero.
37291         * modules/frexpl-tests (Depends-on): Add float.
37292
37293         * tests/test-isnan.c (zerol): Remove variable.
37294         (minus_zerol): New variable.
37295         (test_long_double): Use minus_zerol instead of -zerol.
37296         * modules/isnan-tests (Depends-on): Add float.
37297
37298         * tests/test-isnanl.h (zero): Remove variable.
37299         (minus_zero): New variable.
37300         (main): Use minus_zero instead of -zero.
37301         * modules/isnanl-nolibm-tests (Depends-on): Add float.
37302         * modules/isnanl-tests (Depends-on): Add float.
37303
37304         * tests/test-ldexpl.c (zero): Remove variable.
37305         (minus_zero): New variable.
37306         (main): Use minus_zero instead of -zero.
37307         * modules/ldexpl-tests (Depends-on): Add float.
37308
37309         * tests/test-snprintf-posix.h (zerol): Remove variable.
37310         (minus_zerol): New variable.
37311         (test_function): Use minus_zerol instead of -zerol.
37312         * modules/snprintf-posix-tests (Depends-on): Add float.
37313         * modules/vsnprintf-posix-tests (Depends-on): Add float.
37314
37315         * tests/test-sprintf-posix.h (zerol): Remove variable.
37316         (minus_zerol): New variable.
37317         (test_function): Use minus_zerol instead of -zerol.
37318         * modules/sprintf-posix-tests (Depends-on): Add float.
37319         * modules/vsprintf-posix-tests (Depends-on): Add float.
37320
37321         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
37322         (minus_zerol): New variable.
37323         (test_function): Use minus_zerol instead of -zerol.
37324         * modules/vasnprintf-posix-tests (Depends-on): Add float.
37325
37326         * tests/test-vasprintf-posix.c (zerol): Remove variable.
37327         (minus_zerol): New variable.
37328         (test_function): Use minus_zerol instead of -zerol.
37329         * modules/vasprintf-posix-tests (Depends-on): Add float.
37330
37331 2008-10-07  Simon Josefsson  <simon@josefsson.org>
37332
37333         * MODULES.html.sh (Support for building documentation): Mention
37334         pmccabe2html.  Sort entries.
37335
37336         Add pmccabe2html module, from gnupdf.
37337         * build-aux/pmccabe.css: New file.
37338         * build-aux/pmccabe2html: New file.
37339         * m4/pmccabe2html.m4: New file.
37340         * modules/pmccabe2html: New file.
37341
37342 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
37343
37344         flock: new module
37345         * MODULES.html.sh: Add to list of modules.
37346         * lib/flock.c: flock implementation for Windows and Unix systems
37347         which have fcntl.
37348         * doc/glibc-functions/flock.texi: Update documentation.
37349         * lib/sys_file.in.h: <sys/file.h> header file.
37350         * m4/flock.m4: M4 macros.
37351         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
37352         * modules/flock: flock module.
37353         * modules/flock-tests: flock tests module.
37354         * modules/sys_file: sys/file.h module.
37355         * tests/test-flock.c: test suite for flock.
37356
37357 2008-10-06  Jim Meyering  <meyering@redhat.com>
37358
37359         bootstrap: check for LT_INIT more portably still ;-)
37360         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
37361         Spotted by Bruno Haible.
37362
37363 2008-10-06  Eric Blake  <ebb9@byu.net>
37364
37365         test-signbit: avoid tripping Irix cc bug on -0.0L
37366         * tests/test-signbit.c (minus_zerol): Delete, and replace with
37367         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
37368         entire testsuite consistent and avoids an Irix 6.2 bug.
37369
37370 2008-10-05  Bruno Haible  <bruno@clisp.org>
37371             Jim Meyering  <jim@meyering.net>
37372
37373         Add an option for ignoring EPIPE during close_stdout.
37374         * lib/closeout.h: Include <stdbool.h>.
37375         (close_stdout_set_ignore_EPIPE): New declaration.
37376         * lib/closeout.c: Include <stdbool.h>.
37377         (ignore_EPIPE): New variable.
37378         (close_stdout_set_ignore_EPIPE): New function.
37379         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
37380         * lib/close-stream.c (close_stream): Mention the possible EPIPE
37381         failure.
37382         * modules/closeout (Depends-on): Add stdbool.
37383
37384 2008-10-05  Bruno Haible  <bruno@clisp.org>
37385
37386         * modules/accept: New file.
37387         * modules/bind: New file.
37388         * modules/connect: New file.
37389         * modules/getpeername: New file.
37390         * modules/getsockname: New file.
37391         * modules/getsockopt: New file.
37392         * modules/listen: New file.
37393         * modules/recv: New file.
37394         * modules/recvfrom: New file.
37395         * modules/send: New file.
37396         * modules/sendto: New file.
37397         * modules/setsockopt: New file.
37398         * modules/socket: New file.
37399         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
37400         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37401         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
37402         the particular module is requested. Add a link warning when the
37403         particular module is not requested.
37404         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
37405         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
37406         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
37407         the particular module is requested.
37408         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
37409         gl_SYS_SOCKET_H_DEFAULTS): New macros.
37410         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
37411         * modules/sys_socket (Depends-on): Add link-warning.
37412         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
37413         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
37414         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
37415         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
37416         GL_LINK_WARNING.
37417         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
37418         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
37419         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
37420         * doc/posix-functions/getpeername.texi: Mention the new module
37421         'getpeername'.
37422         * doc/posix-functions/getsockname.texi: Mention the new module
37423         'getsockname'.
37424         * doc/posix-functions/getsockopt.texi: Mention the new module
37425         'getsockopt'.
37426         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
37427         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
37428         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
37429         * doc/posix-functions/send.texi: Mention the new module 'send'.
37430         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
37431         * doc/posix-functions/setsockopt.texi: Mention the new module
37432         'setsockopt'.
37433         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
37434         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
37435         listen, connect, accept.
37436         * modules/select-tests (Depends-on): Likewise.
37437
37438 2008-10-05  Bruno Haible  <bruno@clisp.org>
37439
37440         * lib/winsock.c (strerror): Remove unused #undef.
37441         (rpl_close): Remove unused local variable.
37442
37443         * modules/sys_socket (Depends-on); Add errno.
37444
37445 2008-10-05  Bruno Haible  <bruno@clisp.org>
37446
37447         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
37448         (select): Add a link warning when the 'select' module is not used.
37449         * modules/sys_select (Depends-on): Add link-warning.
37450         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
37451         Suggested by Paolo Bonzini.
37452
37453 2008-10-05  Jim Meyering  <meyering@redhat.com>
37454
37455         bootstrap: check for LT_INIT more portably
37456         * build-aux/bootstrap: Avoid using grep -E, since it's not
37457         portable enough.  Suggestion from Bruno Haible.
37458
37459 2008-10-05  Bruno Haible  <bruno@clisp.org>
37460
37461         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
37462         as being fixed by gnulib.
37463
37464 2008-10-05  Bruno Haible  <bruno@clisp.org>
37465
37466         * modules/select-tests: New file, mostly copied from
37467         modules/sys_select-tests.
37468         * tests/test-select.c: New file, mostly copied from
37469         tests/test-sys_select.c.
37470         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
37471         * modules/sys_select-tests (Depends-on): Remove all dependencies.
37472         (Makefile.am): Remove test_sys_select_LDADD.
37473
37474         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
37475         to an undefined symbol, for an error message.
37476         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
37477         (gl_SYS_SELECT_H_DEFAULTS): New macro.
37478         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
37479         winsock-select.c here.
37480         * modules/sys_select (Files): Remove lib/winsock-select.c.
37481         (Depends-on): Remove alloca.
37482         (Makefile.am): Substitute GNULIB_SELECT.
37483         * modules/select: New file.
37484         * doc/posix-functions/select.texi: Update.
37485
37486 2008-10-05  Bruno Haible  <bruno@clisp.org>
37487
37488         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
37489         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
37490         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
37491         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
37492         getdtablesize.
37493         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37494         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37495
37496 2008-10-05  Bruno Haible  <bruno@clisp.org>
37497
37498         * modules/getdtablesize-tests: New file.
37499         * tests/test-getdtablesize.c: New file.
37500
37501         New module 'getdtablesize'.
37502         * lib/unistd.in.h (getdtablesize): New declaration.
37503         * lib/getdtablesize.c: New file.
37504         * m4/getdtablesize.m4: New file.
37505         * modules/getdtablesize: New file.
37506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37507         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
37508         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
37509         HAVE_GETDTABLESIZE.
37510         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
37511
37512 2008-10-05  Bruno Haible  <bruno@clisp.org>
37513
37514         * modules/sched (Makefile.am): Fix typo.
37515         Reported by Simon Josefsson.
37516
37517 2008-10-05  Jim Meyering  <meyering@redhat.com>
37518
37519         bootstrap: check for LT_INIT, too
37520         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
37521         are deprecated.  Suggestion from Ralf Wildenhues.
37522
37523 2008-10-05  Bruno Haible  <bruno@clisp.org>
37524
37525         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
37526         overriding them by ours.
37527         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
37528
37529 2008-10-05  Jim Meyering  <meyering@redhat.com>
37530
37531         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
37532         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
37533         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
37534
37535 2008-10-04  Bruno Haible  <bruno@clisp.org>
37536
37537         * modules/dup2 (License): Change to LGPLv2+.
37538         * modules/sleep (License): Likewise.
37539         * modules/perror (License): Likewise.
37540         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
37541         Blake.
37542         * modules/signal (License): Likewise.
37543         * modules/sigprocmask (License): Likewise.
37544         * modules/raise (License): Change to LGPLv2+, with approval by Jim
37545         Meyering.
37546
37547 2008-10-04  Bruno Haible  <bruno@clisp.org>
37548
37549         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
37550         Reported by Rainer Tammer <tammer@tammer.net>.
37551
37552 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
37553             Bruno Haible  <bruno@clisp.org>
37554
37555         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
37556         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
37557         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
37558
37559 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
37560
37561         filevercmp: new module
37562         * lib/filevercmp.h: New function filevercmp comparing version strings.
37563         * lib/filevercmp.c: Implementation of filevercmp function.
37564         * modules/filevercmp: Module metadata.
37565         * tests/test-filevercmp.c: Unit test for new module.
37566         * modules/filevercmp-tests: Unit test metadata.
37567         * MODULES.html.sh: Add filevercmp module.
37568
37569 2008-10-03  Bruno Haible  <bruno@clisp.org>
37570
37571         * lib/c-ctype.h: Add comment.
37572         Reported by Jim Meyering.
37573
37574 2008-10-02  Bruno Haible  <bruno@clisp.org>
37575
37576         * modules/posix_spawn-internal (Depends-on): Add 'open'.
37577
37578 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37579
37580         * build-aux/bootstrap: Allow renaming bootstrap, and change the
37581         name of bootstrap.conf accordingly.
37582
37583 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37584
37585         * build-aux/bootstrap: Install git-merge-changelog configuration
37586         items into .gitconfig if needed.
37587
37588 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37589
37590         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
37591         git repository, and initialize/update it accordingly.
37592
37593 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
37594
37595         * modules/fsync-tests: New file.
37596         * tests/test-fsync.c: New file.
37597
37598         New module 'fsync'.
37599         * lib/fsync.c: New file.
37600         * m4/fsync.m4: New file.
37601         * modules/fsync: New file.
37602         * lib/unistd.in.h (fsync): New declaration.
37603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
37604         GNULIB_FSYNC and HAVE_FSYNC.
37605         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
37606         * MODULES.html.sh (posix_functions): Add fsync.
37607         * doc/posix-functions/fsync.texi: Mention the new module.
37608
37609 2008-10-02  Jim Meyering  <meyering@redhat.com>
37610
37611         fts.c: sync with similar code from coreutils' remove.c
37612         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
37613         Guard also with "#if defined __linux__", since for now at least,
37614         this code is Linux-kernel-specific.
37615
37616 2008-10-02  Jim Meyering  <meyering@redhat.com>
37617
37618         fts: bug fixes
37619         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
37620         Include <sys/vfs.h>, not <sys/statfs.h>.
37621
37622         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
37623         Include <sys/vfs.h>, not <sys/statfs.h>.
37624
37625 2008-10-01  Bruno Haible  <bruno@clisp.org>
37626
37627         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
37628         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
37629         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
37630         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
37631         * doc/posix-functions/posix_spawnp.texi: Likewise.
37632         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
37633         whether posix_spawn actually works.
37634         * m4/pipe.m4 (gl_PIPE): Likewise.
37635         * modules/execute (Files): Add m4/posix_spawn.m4.
37636         * modules/pipe (Files): Add m4/posix_spawn.m4.
37637         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
37638
37639 2008-10-01  Jim Meyering  <meyering@redhat.com>
37640
37641         remove trailing spaces
37642         * NEWS: Likewise.
37643         * lib/poll.c (poll): Likewise.
37644         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37645         * lib/winsock.c (rpl_close): Likewise.
37646         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37647         * modules/yield: Likewise.
37648         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37649         * tests/test-sys_select.c (connect_to_socket): Likewise.
37650
37651         fts.c: adjust a new interface to be more generally useful
37652         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37653         (fts_build): Adjust caller.
37654
37655 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37656
37657         * modules/cond-tests: New file.
37658         * tests/test-cond.c: New file.
37659
37660 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37661             Bruno Haible  <bruno@clisp.org>
37662
37663         * modules/cond (Dependencies): Add errno, time.
37664         * lib/glthread/cond.h: Include <time.h>.
37665         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37666         across platforms.
37667
37668 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37669             Bruno Haible  <bruno@clisp.org>
37670
37671         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37672
37673 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37674             Bruno Haible  <bruno@clisp.org>
37675
37676         * modules/tls-tests (Depends-on): Add thread, yield.
37677         (configure.ac): Remove all checks.
37678         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37679         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37680         gl_thread_self): Remove definitions. Include glthread/thread.h and
37681         glthread/yield.h instead.
37682         (test_tls): Pass an additional NULL argument to gl_thread_join.
37683
37684 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37685             Bruno Haible  <bruno@clisp.org>
37686
37687         * modules/lock-tests (Depends-on): Add thread, yield.
37688         (configure.ac): Remove all checks.
37689         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37690         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37691         gl_thread_self): Remove definitions. Include glthread/thread.h and
37692         glthread/yield.h instead.
37693         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37694         additional NULL argument to gl_thread_join.
37695
37696 2008-09-30  Bruno Haible  <bruno@clisp.org>
37697
37698         Fix the Win32 implementation of the 'thread' module.
37699         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37700         pointer type.
37701         (gl_thread_self): Invoke gl_thread_self_func.
37702         (gl_thread_self_func): New declaration.
37703         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37704         (do_init_self_key, init_self_key): New functions.
37705         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37706         Remove some fields.
37707         (running_threads, running_lock): Remove variables.
37708         (get_current_thread_handle): New function.
37709         (gl_thread_self_func, wrapper_func, glthread_create_func,
37710         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37711         simplified.
37712
37713 2008-09-30  Bruno Haible  <bruno@clisp.org>
37714
37715         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37716         files.
37717
37718 2008-09-30  Jim Meyering  <meyering@redhat.com>
37719
37720         fts.m4: correct the test for statfs.f_type
37721         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37722         when checking for statfs.f_type.
37723
37724 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37725
37726         tests: avoid some compiler warnings
37727         * tests/test-memchr.c (main): Pass NULL indirectly.
37728         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37729
37730 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37731
37732         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37733         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37734         exactly specified dayshifts.
37735         (dayshift): New rule.
37736         (rel): Add dayshift.
37737         (relative_time_table) [tomorrow, yesterday, today, now]:
37738         Use tDAY_SHIFT in place of tDAY_UNIT.
37739         * tests/test-getdate.c: Add tests for now-disallowed countable
37740         dayshifts, e.g., "4 yesterday ago".
37741
37742 2008-09-29  Bruno Haible  <bruno@clisp.org>
37743
37744         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37745         * tests/test-posix_spawn1.in.sh: Renamed from
37746         tests/test-posix_spawn.in.sh.
37747         * tests/test-posix_spawn2.c: New file.
37748         * tests/test-posix_spawn2.in.sh: New file.
37749         * modules/posix_spawnp-tests (Files): Update.
37750         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37751
37752 2008-09-29  Bruno Haible  <bruno@clisp.org>
37753
37754         Propagate effects of putenv/setenv/unsetenv to child processes.
37755         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37756         * lib/pipe.c (create_pipe): Likewise.
37757
37758 2008-09-29  Bruno Haible  <bruno@clisp.org>
37759
37760         Enable use of shell scripts as executables in mingw.
37761         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37762         run the program as a shell script.
37763         * lib/pipe.c (create_pipe): Likewise.
37764         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37765         resulting array.
37766
37767 2008-09-29  Eric Blake  <ebb9@byu.net>
37768
37769         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37770
37771 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37772
37773         * doc/posix-functions/accept.texi: Update mingw problems.
37774         * doc/posix-functions/bind.texi: Update mingw problems.
37775         * doc/posix-functions/close.texi: Update mingw problems.
37776         * doc/posix-functions/connect.texi: Update mingw problems.
37777         * doc/posix-functions/getpeername.texi: Update mingw problems.
37778         * doc/posix-functions/getsockname.texi: Update mingw problems.
37779         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37780         * doc/posix-functions/ioctl.texi: Update mingw problems.
37781         * doc/posix-functions/listen.texi: Update mingw problems.
37782         * doc/posix-functions/recv.texi: Update mingw problems.
37783         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37784         * doc/posix-functions/select.texi: Update mingw problems.
37785         * doc/posix-functions/send.texi: Update mingw problems.
37786         * doc/posix-functions/sendto.texi: Update mingw problems.
37787         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37788         * doc/posix-functions/socket.texi: Update mingw problems.
37789
37790 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37791             Bruno Haible  <bruno@clisp.org>
37792
37793         * lib/sys_select.in.h: Include sys/time.h.
37794         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37795         * modules/sys_select: Depend on sys_time.
37796         * tests/test-sys_select.c: Test that sys/select.h defines struct
37797         timeval fully.
37798
37799 2008-09-29  Bruno Haible  <bruno@clisp.org>
37800
37801         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37802         * lib/sys_select.in.h: Likewise.
37803
37804 2008-09-29  Bruno Haible  <bruno@clisp.org>
37805
37806         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37807
37808 2008-09-29  Bruno Haible  <bruno@clisp.org>
37809
37810         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37811         Set LIBSOCKET instead of augmenting LIBS.
37812         * modules/sockets (Link): New section.
37813         * modules/sockets-tests (test_sockets_LDADD): New variable.
37814         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37815         * modules/poll-tests (test_poll_LDADD): New variable.
37816         * NEWS: Document the change.
37817
37818 2008-09-29  Bruno Haible  <bruno@clisp.org>
37819
37820         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37821         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37822         ARPA_INET_H directly.
37823         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37824
37825 2008-09-28  Bruno Haible  <bruno@clisp.org>
37826
37827         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37828         from gl_HEADER_SYS_SOCKET.
37829         (gl_HEADER_SYS_SOCKET): Invoke it.
37830         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37831
37832 2008-09-28  Bruno Haible  <bruno@clisp.org>
37833
37834         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37835         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37836         Needed on OSF/1 4.0.
37837
37838 2008-09-28  Bruno Haible  <bruno@clisp.org>
37839
37840         Override open more carefully.
37841         * lib/open.c (orig_open): New function.
37842         (rpl_open): Use orig_open instead of open.
37843         * lib/fcntl.in.h: Add special invocation convention.
37844         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37845         (gl_FUNC_OPEN): Invoke it.
37846
37847         Override freopen more carefully.
37848         * lib/freopen.c (orig_freopen): New function.
37849         (rpl_freopen): Use orig_freopen instead of freopen.
37850         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37851         (gl_FUNC_FREOPEN): Invoke it.
37852
37853         Override fopen more carefully.
37854         * lib/fopen.c (orig_fopen): New function.
37855         (rpl_fopen): Use orig_fopen instead of fopen.
37856         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37857         (gl_FUNC_FOPEN): Invoke it.
37858         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37859
37860 2008-09-28  Bruno Haible  <bruno@clisp.org>
37861
37862         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37863         SIGPIPE.
37864
37865 2008-09-28  Bruno Haible  <bruno@clisp.org>
37866
37867         * tests/test-sigaction.c (handler, main): Disable the check whether
37868         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37869         glibc systems with LinuxThreads.
37870
37871 2008-09-28  Bruno Haible  <bruno@clisp.org>
37872
37873         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37874
37875         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37876         with AIX xlc.
37877         * lib/fcntl.in.h (open): Likewise.
37878         Reported by Rainer Tammer <tammer@tammer.net>.
37879
37880 2008-09-28  Bruno Haible  <bruno@clisp.org>
37881
37882         * modules/posix_spawnp-tests: New file.
37883         * tests/test-posix_spawn.c: New file.
37884         * tests/test-posix_spawn.in.sh: New file.
37885
37886         New module 'posix_spawnp'.
37887         * modules/posix_spawnp: New file.
37888         * lib/spawnp.c: New file, from GNU libc with modifications.
37889         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37890
37891         New module 'posix_spawn'.
37892         * modules/posix_spawn: New file.
37893         * lib/spawn.c: New file, from GNU libc with modifications.
37894         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37895
37896         New module 'posix_spawnattr_destroy'.
37897         * modules/posix_spawnattr_destroy: New file.
37898         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37899         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37900         module.
37901
37902         New module 'posix_spawnattr_setsigmask'.
37903         * modules/posix_spawnattr_setsigmask: New file.
37904         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37905         modifications.
37906         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37907         new module.
37908
37909         New module 'posix_spawnattr_getsigmask'.
37910         * modules/posix_spawnattr_getsigmask: New file.
37911         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37912         modifications.
37913         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37914         new module.
37915
37916         New module 'posix_spawnattr_setsigdefault'.
37917         * modules/posix_spawnattr_setsigdefault: New file.
37918         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37919         modifications.
37920         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37921         new module.
37922
37923         New module 'posix_spawnattr_getsigdefault'.
37924         * modules/posix_spawnattr_getsigdefault: New file.
37925         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37926         modifications.
37927         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37928         new module.
37929
37930         New module 'posix_spawnattr_setschedpolicy'.
37931         * modules/posix_spawnattr_setschedpolicy: New file.
37932         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37933         modifications.
37934         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37935         new module.
37936
37937         New module 'posix_spawnattr_getschedpolicy'.
37938         * modules/posix_spawnattr_getschedpolicy: New file.
37939         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37940         modifications.
37941         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37942         new module.
37943
37944         New module 'posix_spawnattr_setschedparam'.
37945         * modules/posix_spawnattr_setschedparam: New file.
37946         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37947         modifications.
37948         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37949         new module.
37950
37951         New module 'posix_spawnattr_getschedparam'.
37952         * modules/posix_spawnattr_getschedparam: New file.
37953         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37954         modifications.
37955         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37956         new module.
37957
37958         New module 'posix_spawnattr_setpgroup'.
37959         * modules/posix_spawnattr_setpgroup: New file.
37960         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37961         modifications.
37962         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37963         module.
37964
37965         New module 'posix_spawnattr_getpgroup'.
37966         * modules/posix_spawnattr_getpgroup: New file.
37967         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37968         modifications.
37969         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37970         module.
37971
37972         New module 'posix_spawnattr_setflags'.
37973         * modules/posix_spawnattr_setflags: New file.
37974         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37975         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37976         module.
37977
37978         New module 'posix_spawnattr_getflags'.
37979         * modules/posix_spawnattr_getflags: New file.
37980         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37981         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37982         module.
37983
37984         New module 'posix_spawnattr_init'.
37985         * modules/posix_spawnattr_init: New file.
37986         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37987         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37988         module.
37989
37990         New module 'posix_spawn_file_actions_destroy'.
37991         * modules/posix_spawn_file_actions_destroy: New file.
37992         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37993         modifications.
37994         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37995         the new module.
37996
37997         New module 'posix_spawn_file_actions_addopen'.
37998         * modules/posix_spawn_file_actions_addopen: New file.
37999         * lib/spawn_faction_addopen.c: New file, from GNU libc with
38000         modifications.
38001         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
38002         the new module.
38003
38004         New module 'posix_spawn_file_actions_adddup2'.
38005         * modules/posix_spawn_file_actions_adddup2: New file.
38006         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
38007         modifications.
38008         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
38009         the new module.
38010
38011         New module 'posix_spawn_file_actions_addclose'.
38012         * modules/posix_spawn_file_actions_addclose: New file.
38013         * lib/spawn_faction_addclose.c: New file, from GNU libc with
38014         modifications.
38015         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
38016         the new module.
38017
38018         New module 'posix_spawn_file_actions_init'.
38019         * modules/posix_spawn_file_actions_init: New file.
38020         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
38021         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
38022         new module.
38023
38024         New module 'posix_spawn-internal'.
38025         * modules/posix_spawn-internal: New file.
38026         * lib/spawn_int.h: New file, from GNU libc with modifications.
38027         * lib/spawni.c: New file, from GNU libc with modifications.
38028         * m4/posix_spawn.m4: New file.
38029
38030         New module 'spawn'.
38031         * modules/spawn: New file.
38032         * lib/spawn.in.h: New file, from GNU libc with modifications.
38033         * m4/spawn_h.m4: New file.
38034         * doc/posix-headers/spawn.texi: Mention the new module.
38035
38036 2008-09-28  Bruno Haible  <bruno@clisp.org>
38037
38038         * modules/sched-tests: New file.
38039         * tests/test-sched.c: New file.
38040
38041         New module 'sched'.
38042         * modules/sched: New file.
38043         * lib/sched.in.h: New file.
38044         * m4/sched_h.m4: New file.
38045         * doc/posix-headers/sched.texi: Mention the new module.
38046
38047 2008-09-27  Eric Blake  <ebb9@byu.net>
38048
38049         Fix previous patch, and tweak references to $0.
38050         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
38051         (func_version, func_gnulib_dir): Don't call this program
38052         gnulib-tool.
38053         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
38054         with using $0 in function.
38055         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
38056         (func_fatal_error): Reuse the name the user invoked us with.
38057
38058 2008-09-27  Bruno Haible  <bruno@clisp.org>
38059
38060         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
38061         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
38062         (gl_ICONV_H): Not here.
38063         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
38064         instead of assigning ICONV_H directly.
38065
38066         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
38067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
38068         WCHAR_H directly.
38069
38070 2008-09-27  Bruno Haible  <bruno@clisp.org>
38071
38072         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
38073         * modules/arpa_inet (Depends-on): Add link-warning.
38074         (Makefile.am): Insert the definition of GL_LINK-WARNING.
38075         * modules/unistd (Makefile.am): Likewise.
38076
38077 2008-09-26  Bruno Haible  <bruno@clisp.org>
38078
38079         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
38080         variables.
38081         (func_version): Essentially copied from gnulib-tool.
38082         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
38083         func_readlink): Copied from gnulib-tool.
38084
38085 2008-09-26  Bruno Haible  <bruno@clisp.org>
38086
38087         * gnulib-tool (func_version): Change directory to $gnulib_dir before
38088         invoking git-version-gen.
38089
38090 2008-09-26  Bruno Haible  <bruno@clisp.org>
38091
38092         * posix-modules: Update to directory names changed on 2008-01-19.
38093         Remove commas in output before splitting into words. No more need to
38094         avoid 'ftruncate' since 2007-02-19.
38095
38096 2008-09-26  Bruno Haible  <bruno@clisp.org>
38097
38098         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
38099
38100 2008-09-26  Bruno Haible  <bruno@clisp.org>
38101
38102         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
38103         * modules/fwriteerror (Depends-on): Add errno.
38104
38105 2008-09-26  Bruno Haible  <bruno@clisp.org>
38106
38107         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
38108         * tests/test-vc-list-files-cvs.sh: Likewise.
38109
38110 2008-09-26  Bruno Haible  <bruno@clisp.org>
38111
38112         * doc/posix-headers/sys_resource.texi: Reorder items.
38113
38114 2008-09-26  Jim Meyering  <meyering@redhat.com>
38115
38116         fts: tweak inode comparison function
38117         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
38118         inode numbers, as documented.
38119
38120         fts: sort dirent entries on inode number before traversing
38121         This avoids a quadratic, seek-related performance penalty when
38122         operating on a directory containing many entries (measurable at 10k;
38123         3.5 hours at 2 million entries with a cold cache) on certain types
38124         of file systems, including ext3 and ext4, but not tmpfs.
38125         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
38126         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
38127         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
38128         (fs_handles_readdir_ordered_dirents_efficiently): New function.
38129         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
38130         (fts_build): Set the stat.st_ino member from D_INO.
38131         If it is likely to be useful, sort dirent entries on inode number.
38132
38133         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
38134         and the struct statfs.f_type member.
38135         * modules/fts (Depends-on): Add d-ino.
38136
38137 2008-09-26  Bruno Haible  <bruno@clisp.org>
38138
38139         * modules/sigpipe-die (Depends-on): Add sigpipe.
38140
38141         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
38142         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
38143         and GNULIB_STDIO_H_SIGPIPE are set.
38144         * lib/stdio-write.c: New file.
38145         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
38146         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38147         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38148         REPLACE_STDIO_WRITE_FUNCS.
38149         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
38150         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38151         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38152         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38153         * modules/stdio (Files): Add lib/stdio-write.c.
38154         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
38155         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38156         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38157         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38158         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
38159         REPLACE_FPRINTF_POSIX.
38160         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
38161         REPLACE_PRINTF_POSIX.
38162         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
38163         REPLACE_VFPRINTF_POSIX.
38164         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
38165         REPLACE_VPRINTF_POSIX.
38166         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
38167         SIGPIPE issue.
38168         * doc/posix-functions/fputc.texi: Likewise.
38169         * doc/posix-functions/fputs.texi: Likewise.
38170         * doc/posix-functions/fwrite.texi: Likewise.
38171         * doc/posix-functions/printf.texi: Likewise.
38172         * doc/posix-functions/putc.texi: Likewise.
38173         * doc/posix-functions/putchar.texi: Likewise.
38174         * doc/posix-functions/puts.texi: Likewise.
38175         * doc/posix-functions/vfprintf.texi: Likewise.
38176         * doc/posix-functions/vprintf.texi: Likewise.
38177
38178         * modules/safe-write (Depends-on): Add write.
38179
38180         * modules/sigpipe-tests: New file.
38181         * tests/test-sigpipe.c: New file.
38182         * tests/test-sigpipe.sh: New file.
38183
38184         * modules/write: New file.
38185         * lib/unistd.in.h: Include <sys/types.h>.
38186         (write): New declaration.
38187         * lib/write.c: New file.
38188         * m4/write.m4: New file.
38189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38190         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
38191         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
38192         GNULIB_WRITE, REPLACE_WRITE.
38193         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
38194         and the SIGPIPE issue.
38195
38196         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
38197         (raise): New declaration.
38198         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
38199         (ext_signal): New function.
38200         (rpl_raise): New function.
38201         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
38202         GNULIB_SIGNAL_H_SIGPIPE.
38203         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
38204         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
38205
38206         * modules/sigpipe: New file.
38207         * m4/sigpipe.m4: New file.
38208
38209 2008-09-25  Derek Price  <derek@ximbiot.com>
38210             Bruno Haible  <bruno@clisp.org>
38211
38212         * gnulib-tool (func_import): Report all license incompatibilities, not
38213         just the first one.
38214
38215 2008-09-25  Bruno Haible  <bruno@clisp.org>
38216
38217         * gnulib-tool (func_import): When computing the edits, consider not
38218         only the Makefile.ams that exist but also those that will be generated.
38219
38220 2008-09-25  Simon Josefsson  <simon@josefsson.org>
38221
38222         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
38223         fixes gnulib-tool --test warning about duplicate dependency.
38224
38225 2008-09-25  Bruno Haible  <bruno@clisp.org>
38226
38227         * gnulib-tool: Don't ask the user to perform edits in the generated
38228         Makefile.ams.
38229         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
38230         apply to the Makefile.am being generated.
38231         (func_emit_tests_Makefile_am): Execute edits that apply to the
38232         Makefile.am being generated.
38233         (func_import): Setup list of Makefile.am edits before emitting the
38234         Makefile.ams, not at the end.
38235         (func_create_testdir): Update.
38236         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38237
38238 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38239
38240         * gnulib-tool (func_import): Store the --tests-base option in the
38241         comment in gnulib-cache.m4.
38242
38243 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
38244
38245         * NEWS: Document increased portability that sys_select now provides.
38246
38247         * lib/sys_select.in.h: Install select wrapper.
38248         * lib/sys_socket.in.h: Use more descriptive name when there is no
38249         select wrapper.
38250         * lib/winsock-select.c: New.
38251         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
38252         Require gl_HEADER_SYS_SOCKET.
38253         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
38254         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
38255         * tests/test-sys_select.c: Add functional tests.
38256
38257 2008-09-24  Eric Blake  <ebb9@byu.net>
38258
38259         open, fopen: close fd leak in last patch
38260         * lib/open.c (rpl_open): Close fd before returning error.
38261         * lib/fopen.c (rpl_fopen): Close fd before returning error.
38262         * doc/posix-functions/open.texi (open): Document that Irix also
38263         has the bug.
38264         * doc/posix-functions/fopen.texi (fopen): Likewise.
38265         Reported by Paolo Bonzini.
38266
38267 2008-09-24  Bruno Haible  <bruno@clisp.org>
38268
38269         Ensure that a filename ending in a slash cannot be used to access a
38270         non-directory.
38271         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
38272         to check whether it's really a directory.
38273         * lib/fopen.c: Include fcntl.h, unistd.h.
38274         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
38275         and fdopen().
38276         * modules/fopen (Depends-on): Add unistd.
38277         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
38278         * tests/test-fopen.c (main): Likewise.
38279         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
38280         * doc/posix-functions/fopen.texi: Likewise.
38281         Reported by Eric Blake.
38282
38283 2008-09-23  Eric Blake  <ebb9@byu.net>
38284
38285         c-stack: avoid compiler optimizations when provoking overflow
38286         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
38287         recursion harder to optimize, to ensure a stack overflow occurs.
38288         * tests/test-c-stack.c (recurse): Likewise.
38289         Borrowed from libsigsegv.
38290
38291         c-stack: work around Irix sigaltstack bug
38292         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
38293         whether sigaltstack uses wrong end of stack_t (copied in part from
38294         libsigsegv).
38295         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
38296         Irix bug, without requiring an over-allocation.
38297         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
38298         bug.
38299
38300         fopen: document mingw bug on directories
38301         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
38302         not allowing a stream visiting a directory, even though reading
38303         from such a stream is not portable.
38304
38305 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38306
38307         * lib/poll.c: Rewrite.
38308         * modules/poll: Depend on alloca.
38309
38310 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38311
38312         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
38313         instead define prototypes for a full set of wrappers.  Ensure
38314         that Cygwin does not use the compatibility code, which is only
38315         for MinGW.
38316         * lib/winsock.c: New.
38317         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
38318         * modules/sys_socket: Add lib/winsock.c.
38319
38320         * modules/poll-tests: Add errno and perror.
38321         * tests/test-poll.c: Use ioctl, not ioctlsocket.
38322
38323 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38324
38325         * tests/test-poll.c: Downgrade minimum needed Winsock version.
38326
38327 2008-09-23  Bruno Haible  <bruno@clisp.org>
38328
38329         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
38330         * doc/glibc-functions/*: Likewise.
38331
38332 2008-09-23  Simon Josefsson  <simon@josefsson.org>
38333
38334         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
38335         success.
38336
38337 2008-09-22  Eric Blake  <ebb9@byu.net>
38338             Bruno Haible  <bruno@clisp.org>
38339
38340         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
38341         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
38342         supply %A but mishandle pseudo-NaN.
38343         Reported by Simon Josefsson.
38344
38345 2008-09-21  Bruno Haible  <bruno@clisp.org>
38346
38347         * tests/test-lock.c (main): Tweak skip message.
38348         * tests/test-tls.c (main): Likewise.
38349
38350 2008-09-21  Bruno Haible  <bruno@clisp.org>
38351
38352         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
38353         whether 'struct sigaction' has sa_sigaction here...
38354         (gl_PREREQ_SIG_HANDLER_H): ... not here.
38355         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
38356
38357 2008-09-21  Bruno Haible  <bruno@clisp.org>
38358
38359         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
38360         section.
38361         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
38362         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
38363         the new section.
38364         (Support for obsolete systems lacking POSIX:2001): New section.
38365         (String handling <string.h>): Move strdup to the new section.
38366         Suggested by Simon Josefsson and Paolo Bonzini.
38367
38368 2008-09-21  Bruno Haible  <bruno@clisp.org>
38369
38370         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
38371         exponents in %e and %g results on 'long double'. Needed for mingw's
38372         improved *printf functions.
38373         * tests/test-vasprintf-posix.c (test_function): Likewise.
38374         * tests/test-snprintf-posix.h (test_function): Likewise.
38375         * tests/test-sprintf-posix.h (test_function): Likewise.
38376         Reported by Eric Blake.
38377
38378 2008-09-21  Bruno Haible  <bruno@clisp.org>
38379
38380         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
38381         * tests/test-sprintf-posix.h (test_function): Likewise.
38382
38383 2008-09-21  Bruno Haible  <bruno@clisp.org>
38384
38385         * modules/getpass (Depends-on): Add strdup-posix.
38386
38387         New module 'strdup-posix'.
38388         * modules/strdup-posix: New file.
38389         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
38390         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
38391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38392         REPLACE_STRDUP.
38393         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
38394         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
38395         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38396         strdup-posix.
38397
38398         * modules/strdup (Depends-on): Remove malloc-posix.
38399
38400 2008-09-20  Bruno Haible  <bruno@clisp.org>
38401
38402         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
38403         Wildenhues.
38404
38405 2008-09-20  Bruno Haible  <bruno@clisp.org>
38406
38407         Ensure that wint_t gets defined on IRIX 5.3.
38408         * lib/wchar.in.h (wint_t): Define if not defined by the system.
38409         * lib/wctype.in.h (wint_t): Likewise.
38410         (__wctype_wint_t): Remove type.
38411         (isw*): Use wint_t instead of __wctype_wint_t.
38412         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
38413         * modules/wchar (Files): Add m4/wint_t.m4.
38414         (Makefile.am): Substitute HAVE_WINT_T.
38415         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
38416         * tests/test-wctype.c: Check that wint_t is defined.
38417         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
38418         * doc/posix-headers/wctype.texi: Likewise.
38419         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38420
38421 2008-09-18  Bruno Haible  <bruno@clisp.org>
38422
38423         * gnulib-tool (func_exit): Update comment.
38424
38425 2008-09-18  Simon Josefsson  <simon@josefsson.org>
38426
38427         * modules/getaddrinfo (Depends-on): Remove strdup, this module
38428         assumes strdup exists and does not depend on strdup to return
38429         ENOMEM on out of memory conditions.
38430
38431 2008-09-18  Bruno Haible  <bruno@clisp.org>
38432
38433         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
38434         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
38435         digits for the exponent.
38436
38437 2008-09-18  Jim Meyering  <meyering@redhat.com>
38438             Bruno Haible  <bruno@clisp.org>
38439
38440         * lib/vasnprintf.c (decimal_point_char): Define also if
38441         NEED_PRINTF_INFINITE_LONG_DOUBLE.
38442
38443 2008-09-16  Bruno Haible  <bruno@clisp.org>
38444         and Eric Blake  <ebb9@byu.net>
38445
38446         vasnprintf: support Irix 5.3
38447         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
38448         that mishandle long double infinity.
38449         Reported by Tom G. Christensen.
38450
38451 2008-09-16  Bruno Haible  <bruno@clisp.org>
38452
38453         * doc/glibc-functions/scandir.texi: Mention the function is missing on
38454         Solaris 9.
38455         * doc/glibc-functions/alphasort.texi: Likewise.
38456         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
38457
38458 2008-09-16  Jim Meyering  <meyering@redhat.com>
38459
38460         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
38461         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
38462         a umask modification leak out of a subshell.  Otherwise, the
38463         opensolaris /bin/sh would be accepted and thus cause unwarranted
38464         failures in the coreutils test suite.
38465
38466 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
38467
38468         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
38469         to succeed.
38470
38471 2008-09-16  Jim Meyering  <meyering@redhat.com>
38472
38473         avoid spurious test failure when library is built without ACL support
38474         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
38475         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
38476         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
38477         * tests/test-copy-acl.sh: Likewise.
38478
38479 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38480
38481         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
38482         based on character occurrence counts.
38483
38484 2008-09-15  Eric Blake  <ebb9@byu.net>
38485
38486         tests: avoid some compiler warnings
38487         * tests/test-memchr.c (main): Pass NULL indirectly.
38488         * tests/test-closein.c (main): Avoid unused variable.
38489
38490 2008-09-15  Bruno Haible  <bruno@clisp.org>
38491
38492         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
38493         are missing on OpenBSD 4.0 individually.
38494         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38495
38496 2008-09-15  Bruno Haible  <bruno@clisp.org>
38497
38498         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
38499         * doc/posix-functions/strerror.texi: Mention also Cygwin.
38500         * doc/posix-functions/perror.texi: Likewise.
38501         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
38502         is missing.
38503         Reported by Eric Blake.
38504
38505         * lib/errno.in.h: Use replacement values >= 2000.
38506         Reported by Eric Blake.
38507
38508 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38509
38510         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
38511         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
38512         limit.
38513         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
38514         compareseq was aborted.
38515
38516 2008-09-14  Bruno Haible  <bruno@clisp.org>
38517
38518         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
38519         yvec_edit_count.
38520         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
38521         (fstrcmp_bounded): Simplify result computation accordingly.
38522
38523 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38524
38525         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
38526         (fstrcmp): Define in terms of fstrcmp_bounded.
38527         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
38528         lower_bound argument.
38529         Return quickly if the result is certainly < lower_bound.
38530         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
38531
38532 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38533
38534         * lib/diffseq.h (EARLY_ABORT): New macro.
38535         (compareseq): Change return type to bool. Return true when EARLY_ABORT
38536         evaluates to true.
38537
38538 2008-09-14  Bruno Haible  <bruno@clisp.org>
38539
38540         * modules/perror-tests: New file.
38541         * tests/test-perror.sh: New file.
38542         * tests/test-perror.c: New file.
38543
38544         New module 'perror'.
38545         * lib/stdio.in.h (perror): New declaration.
38546         * lib/perror.c: New file.
38547         * m4/perror.m4: New file.
38548         * modules/perror: New file.
38549         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
38550         * doc/posix-functions/perror.texi: Mention the perror module.
38551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
38552         REPLACE_PERROR.
38553         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
38554         REPLACE_PERROR.
38555
38556 2008-09-14  Bruno Haible  <bruno@clisp.org>
38557
38558         * modules/stdio (Makefile.am): Reorder to match the order in
38559         lib/stdio.in.h.
38560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38561
38562 2008-09-13  Bruno Haible  <bruno@clisp.org>
38563
38564         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
38565
38566 2008-09-13  Bruno Haible  <bruno@clisp.org>
38567
38568         Extend strerror to cover the added errno values.
38569         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
38570         (rpl_strerror): Provide error messages for the added errno values and
38571         for the WSA* values.
38572         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
38573         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
38574         strerror.
38575         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
38576         * modules/strerror (Depends-on): Add errno.
38577         * doc/posix-functions/strerror.texi: Document the change.
38578         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
38579         and EOVERFLOW.
38580
38581 2008-09-13  Bruno Haible  <bruno@clisp.org>
38582
38583         * modules/EOVERFLOW: Remove file.
38584         * m4/eoverflow.m4: Remove file.
38585         * modules/EOVERFLOW-tests: Remove file.
38586         * tests/test-EOVERFLOW.c: Remove file.
38587         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
38588         * modules/ftell (Depends-on): Likewise.
38589         * modules/getdelim (Depends-on): Likewise.
38590         * modules/getugroups (Depends-on): Likewise.
38591         * modules/poll (Depends-on): Likewise.
38592         * modules/snprintf (Depends-on): Likewise.
38593         * modules/sprintf-posix (Depends-on): Likewise.
38594         * modules/vasnprintf (Depends-on): Likewise.
38595         * modules/vasprintf (Depends-on): Likewise.
38596         * modules/vfprintf-posix (Depends-on): Likewise.
38597         * modules/vsnprintf (Depends-on): Likewise.
38598         * modules/vsprintf-posix (Depends-on): Likewise.
38599         * modules/xvasprintf (Depends-on): Likewise.
38600         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38601         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
38602         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
38603         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
38604         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38605         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
38606         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
38607         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
38608         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38609         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
38610         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
38611         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
38612         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38613         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
38614         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
38615         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
38616         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38617         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
38618         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
38619         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
38620         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38621         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
38622         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
38623         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
38624         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
38625         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38626         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
38627         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
38628         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
38629         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
38630         * MODULES.html.sh: Remove EOVERFLOW.
38631         * NEWS: Mention the change.
38632
38633 2008-09-13  Bruno Haible  <bruno@clisp.org>
38634
38635         * modules/errno-tests: New file.
38636         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
38637
38638         * lib/errno.in.h: New file.
38639         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
38640         * modules/errno: New file.
38641         * doc/posix-headers/errno.texi: Update documentation.
38642         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
38643
38644 2008-09-13  Bruno Haible  <bruno@clisp.org>
38645
38646         * tests/test-poll.c: Use #if for native Windows, rather than testing
38647         __MSVCRT__.
38648
38649 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38650             Bruno Haible  <bruno@clisp.org>
38651
38652         * lib/glob.c: Don't include <pwd.h> on native Windows.
38653         (WINDOWS32): New macro.
38654         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38655
38656 2008-09-13  Bruno Haible  <bruno@clisp.org>
38657
38658         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38659         (ETIMEDOUT): Remove macro.
38660         (glthread_cond_timedwait_multithreaded): New declaration.
38661         (glthread_cond_timedwait): Use it.
38662         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38663         (glthread_cond_timedwait_multithreaded): New function.
38664
38665 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38666
38667         * modules/poll-tests: Do not check for io.h.
38668         * tests/test-poll.c: Check for __MSVCRT__ instead.
38669
38670 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38671
38672         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38673         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38674         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38675
38676 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38677
38678         * modules/poll-tests: New.
38679         * tests/test-poll.c: New.
38680
38681 2008-09-12  Eric Blake  <ebb9@byu.net>
38682
38683         frexp: test for NetBSD failure on -0.0
38684         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38685         not all, bugs from NetBSD 3.0 have been fixed.
38686         * doc/posix-functions/frexp.texi (frexp): Document bug.
38687         Reported by Thomas Klausner.
38688
38689         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38690         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38691         literal -0.0.
38692         Reported by Jonathan C. Patschke <jp@centtech.com>.
38693
38694 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38695
38696         * lib/glthread/cond.h: Use dummy implementation also if
38697         USE_WIN32_THREADS.
38698
38699 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38700
38701         * modules/fnmatch-posix (License): Change to LGPLv2+.
38702         * modules/fnmatch-gnu (License): Likewise.
38703
38704 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38705
38706         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38707
38708 2008-09-11  Jim Meyering  <meyering@redhat.com>
38709
38710         * users.txt: Add gtk-vnc.
38711
38712 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38713
38714         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38715         rotate amounts.
38716
38717         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38718         required for 16-bit and 8-bit rotates.
38719         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38720         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38721         UINT8_MAX instead of hard-coded constants.
38722         Suggested by Paul Eggert.
38723
38724 2008-09-07  Bruno Haible  <bruno@clisp.org>
38725
38726         * tests/test-striconveh.c (main): Check behaviour when converting from
38727         UTF-7.
38728
38729         Make striconveh work better with stateful encodings.
38730         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38731         that iconv does not increment the inptr when returning -1/EINVAL.
38732
38733 2008-09-07  Bruno Haible  <bruno@clisp.org>
38734
38735         * build-aux/config.rpath: Update according to libtool-2.2.6.
38736         * build-aux/config.libpath: Likewise.
38737
38738 2008-09-06  Bruno Haible  <bruno@clisp.org>
38739
38740         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38741         * lib/freadptr.c (freadptr): Likewise.
38742         * lib/freadseek.c (freadptrinc): Likewise.
38743         Reported by Simon Josefsson.
38744
38745 2008-09-06  Bruno Haible  <bruno@clisp.org>
38746
38747         * modules/freadptr (License): Change to LGPLv2+.
38748         * modules/freadseek (License): Likewise.
38749         Suggested by Eric Blake.
38750
38751         * modules/memchr2 (License): Change to LGPLv2+.
38752         Approved by Eric Blake.
38753
38754 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38755             Bruno Haible  <bruno@clisp.org>
38756
38757         Make gnulib-tool work with native 'sed' on AIX.
38758         * gnulib-tool (sed_noop): New variable.
38759         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38760         func_add_or_update, func_create_testdir): Use it to initialize sed
38761         script variables.
38762         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38763
38764 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38765             Bruno Haible  <bruno@clisp.org>
38766
38767         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38768         also works after #include directives.
38769
38770 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38771
38772         getdate.y: reject an out-of-range timezone value
38773         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38774         the range [-24...+24].  When specified with only one or two digits,
38775         * tests/test-getdate.c: Tests for the fix.
38776         * doc/getdate.texi: Document this change.
38777
38778 2008-09-03  Bruno Haible  <bruno@clisp.org>
38779
38780         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38781
38782 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38783
38784         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38785         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38786         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38787         Blake <ebb9@byu.net>.
38788
38789         * tests/test-bitrotate.c: Add more test vectors.
38790
38791 2008-09-02  Eric Blake  <ebb9@byu.net>
38792
38793         vasnprintf-posix: handle large precision via %.*d
38794         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38795         when handling it ourselves.
38796         * tests/test-vasnprintf-posix.c (test_function): Add test.
38797         * tests/test-snprintf-posix.h (test_function): Likewise.
38798         * tests/test-sprintf-posix.h (test_function): Likewise.
38799         * tests/test-vasprintf-posix.c (test_function): Likewise.
38800         Reported by Alain Guibert.
38801
38802 2008-09-01  Eric Blake  <ebb9@byu.net>
38803
38804         c-stack: make configure-time check more robust
38805         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38806         successful sigaction call.
38807         Reported by Tom G. Christensen.
38808
38809 2008-09-01  Bruno Haible  <bruno@clisp.org>
38810
38811         New module 'findprog-lgpl'.
38812         * modules/findprog-lgpl: New file.
38813         * lib/findprog-lgpl.c: New file.
38814         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38815         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38816         to decide whether to use strdup or xstrdup, concatenated_filename or
38817         xconcatenated_filename.
38818
38819 2008-09-01  Bruno Haible  <bruno@clisp.org>
38820
38821         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38822         'xconcat-filename' (GPL).
38823         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38824         (License): Change to LGPLv2+.
38825         * modules/xconcat-filename: New file.
38826         * lib/concat-filename.h (concatenated_filename): Change specification.
38827         (xconcatenated_filename): New declaration.
38828         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38829         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38830         memory situations.
38831         * lib/xconcat-filename.c: New file.
38832         * NEWS: Mention the change.
38833         * lib/findprog.c: Include concat-filename.h, not filename.h.
38834         (find_in_path): Use xconcatenated_filename instead of
38835         concatenated_filename.
38836         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38837         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38838         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38839         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38840         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38841         instead of concatenated_filename.
38842         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38843         (execute_java_class): Use xconcatenated_filename instead of
38844         concatenated_filename.
38845         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38846         * modules/javacomp (Depends-on): Likewise.
38847         * modules/javaexec (Depends-on): Likewise.
38848
38849 2008-09-01  Bruno Haible  <bruno@clisp.org>
38850
38851         Split module 'filename' into 'filename' and 'concat-filename'.
38852         * modules/filename: Keep only lib/filename.h.
38853         (License): Change to LGPLv2+.
38854         * modules/concat-filename: New file, extracted from modules/filename.
38855         * lib/filename.h (concatenated_filename): Remove declaration.
38856         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38857         * lib/concat-filename.c: Include concat-filename.h.
38858         * NEWS: Mention the change.
38859
38860 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38861
38862         * lib/bitrotate.h (rotl8, rotr8): Add.
38863
38864         * modules/bitrotate (configure.ac): Need
38865         AC_REQUIRE([AC_C_INLINE]).
38866         (Description): Mention stdint.h.  Reported by Bruno Haible
38867         <bruno@clisp.org>.
38868
38869         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38870         Paolo Bonzini <bonzini@gnu.org>.
38871
38872 2008-08-31  Bruno Haible  <bruno@clisp.org>
38873
38874         Assume Solaris specific bi-arch conventions on Solaris systems.
38875         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38876         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38877         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38878         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38879         like acl_libdirstem.
38880         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38881         acl_libdirstem.
38882         * NEWS: Mention the change.
38883         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38884
38885 2008-08-31  Jim Meyering  <meyering@redhat.com>
38886
38887         * lib/strftime.h: Add comments describing the two added arguments.
38888
38889         remove duplicate #include directives
38890         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38891         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38892
38893 2008-08-31  Bruno Haible  <bruno@clisp.org>
38894
38895         New module 'sigpipe-die'.
38896         * modules/sigpipe-die: New file.
38897         * lib/sigpipe-die.h: New file.
38898         * lib/sigpipe-die.c: New file.
38899         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38900
38901 2008-08-31  Bruno Haible  <bruno@clisp.org>
38902
38903         Don't override previously installed signal handlers.
38904         * lib/fatal-signal.c (saved_sigactions): New variable.
38905         (uninstall_handlers): Reset the signal to the saved handler, not
38906         to SIG_DFL (except when ignored).
38907         (install_handlers): Save the previous handlers.
38908
38909 2008-08-30  Bruno Haible  <bruno@clisp.org>
38910
38911         * gnulib-tool (func_reset_sigpipe): New function.
38912         (func_get_automake_snippet, func_modules_transitive_closure,
38913         func_import): Invoke it before a join command that reads from stdin,
38914         to avoid "echo: write error: Broken pipe" error messages on stderr.
38915         Reported by Sam Steingold <sds@gnu.org>.
38916
38917 2008-08-30  Bruno Haible  <bruno@clisp.org>
38918
38919         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38920         Code copied from m4/open.m4.
38921         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38922         access and the filename ends in a slash. Code copied from lib/open.c.
38923         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38924         * tests/test-fopen.c (main): Check against bug with trailing slash.
38925
38926 2008-08-29  Bruno Haible  <bruno@clisp.org>
38927
38928         Avoid some "gcc -pedantic" warnings.
38929         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38930         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38931         * lib/dirent.in.h: Likewise.
38932         * lib/fcntl.in.h: Likewise.
38933         * lib/float.in.h: Likewise.
38934         * lib/iconv.in.h: Likewise.
38935         * lib/inttypes.in.h: Likewise.
38936         * lib/locale.in.h: Likewise.
38937         * lib/math.in.h: Likewise.
38938         * lib/netinet_in.in.h: Likewise.
38939         * lib/search.in.h: Likewise.
38940         * lib/signal.in.h: Likewise.
38941         * lib/stdarg.in.h: Likewise.
38942         * lib/stdint.in.h: Likewise.
38943         * lib/stdio.in.h: Likewise.
38944         * lib/stdlib.in.h: Likewise.
38945         * lib/string.in.h: Likewise.
38946         * lib/strings.in.h: Likewise.
38947         * lib/sys_select.in.h: Likewise.
38948         * lib/sys_socket.in.h: Likewise.
38949         * lib/sys_stat.in.h: Likewise.
38950         * lib/sys_time.in.h: Likewise.
38951         * lib/sysexits.in.h: Likewise.
38952         * lib/time.in.h: Likewise.
38953         * lib/unistd.in.h: Likewise.
38954         * lib/wchar.in.h: Likewise.
38955         * lib/wctype.in.h: Likewise.
38956         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38957         * modules/fchdir (Makefile.am): Likewise.
38958         * modules/fcntl (Makefile.am): Likewise.
38959         * modules/float (Makefile.am): Likewise.
38960         * modules/iconv_open (Makefile.am): Likewise.
38961         * modules/inttypes (Makefile.am): Likewise.
38962         * modules/locale (Makefile.am): Likewise.
38963         * modules/math (Makefile.am): Likewise.
38964         * modules/netinet_in (Makefile.am): Likewise.
38965         * modules/search (Makefile.am): Likewise.
38966         * modules/signal (Makefile.am): Likewise.
38967         * modules/stdarg (Makefile.am): Likewise.
38968         * modules/stdint (Makefile.am): Likewise.
38969         * modules/stdio (Makefile.am): Likewise.
38970         * modules/stdlib (Makefile.am): Likewise.
38971         * modules/string (Makefile.am): Likewise.
38972         * modules/strings (Makefile.am): Likewise.
38973         * modules/sys_select (Makefile.am): Likewise.
38974         * modules/sys_socket (Makefile.am): Likewise.
38975         * modules/sys_stat (Makefile.am): Likewise.
38976         * modules/sys_time (Makefile.am): Likewise.
38977         * modules/sysexits (Makefile.am): Likewise.
38978         * modules/time (Makefile.am): Likewise.
38979         * modules/unistd (Makefile.am): Likewise.
38980         * modules/wchar (Makefile.am): Likewise.
38981         * modules/wctype (Makefile.am): Likewise.
38982         Reported by Reuben Thomas <rrt@sc3d.org>.
38983
38984 2008-08-29  Bruno Haible  <bruno@clisp.org>
38985
38986         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38987         any more.
38988
38989 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38990
38991         * MODULES.html.sh (Misc): Add bitrotate.
38992
38993         * modules/bitrotate: New file.
38994
38995         * lib/bitrotate.h: New file.
38996
38997         * modules/bitrotate-tests: New file.
38998
38999         * tests/test-bitrotate.c: New file.
39000
39001         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
39002         on the bitrotate module.
39003
39004         * lib/arctwo.c: Use new bitrotate module.
39005
39006 2008-08-29  Jim Meyering  <meyering@redhat.com>
39007
39008         bootstrap: merge changes from coreutils
39009         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
39010         of copied files.  Remove a kludge, now that this is fixed.
39011         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
39012         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
39013         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
39014
39015 2008-08-29  Bruno Haible  <bruno@clisp.org>
39016
39017         * MODULES.html.sh: Remove --cvs-urls option.
39018
39019 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
39020
39021         maint.mk: adjust to file name change
39022         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
39023
39024 2008-08-28  Jim Meyering  <meyering@redhat.com>
39025
39026         * modules/getndelim2 (License): Relicense to LGPLv2+.
39027         Approved by Richard Stallman for the version of 1995, and by
39028         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
39029
39030 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
39031
39032         * lib/getdelim.c (flockfile, funlockfile): Make all of them
39033         dummy if one is not available.  Do not touch them if
39034         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
39035         (getc_maybe_unlocked): New.
39036         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
39037
39038 2008-08-26  Eric Blake  <ebb9@byu.net>
39039
39040         doc/INSTALL: resync from autoconf
39041         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
39042         (INSTALL_PRELUDE): Delete; this is done more efficiently by
39043         moving...
39044         * install.texi [!autoconf]: ...here.  Resync from autoconf.
39045         * INSTALL: Regenerate.
39046         * INSTALL.ISO: New file.
39047         * INSTALL.UTF-8: Likewise.
39048
39049 2008-08-26  Jim Meyering  <meyering@redhat.com>
39050
39051         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
39052         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
39053         these definitions conditional, so that they may be overridden, too.
39054
39055 2008-08-26  Bruno Haible  <bruno@clisp.org>
39056
39057         Generate INSTALL file variants with prettier quotes.
39058         * doc/Makefile (INSTALL_PRELUDE): New macro.
39059         (INSTALL): Use it.
39060         (INSTALL.ISO, INSTALL.UTF-8): New rules.
39061
39062 2008-08-26  Bruno Haible  <bruno@clisp.org>
39063
39064         Run makeinfo in an English locale.
39065         * doc/Makefile (MAKEINFO): New variable.
39066
39067 2008-08-26  Bruno Haible  <bruno@clisp.org>
39068
39069         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
39070         Suggested by Eric Blake.
39071
39072 2008-08-25  Bruno Haible  <bruno@clisp.org>
39073
39074         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
39075
39076 2008-08-25  Eric Blake  <ebb9@byu.net>
39077
39078         c-stack: test that stack overflow can be caught
39079         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
39080         that platform allows handling stack overflow; at least OS/2 EMX
39081         has sigaltstack, but crashes before transferring control to
39082         handler on stack overflow.
39083         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
39084         check for HAVE_STACK_OVERFLOW_HANDLING.
39085         Reported by Elbert Pol.
39086
39087 2008-08-25  Bruno Haible  <bruno@clisp.org>
39088
39089         * doc/posix-functions/strftime.texi: Fix description of strftime
39090         module.
39091
39092 2008-08-24  Bruno Haible  <bruno@clisp.org>
39093
39094         * tests/uniwidth/test-uc_width2.c: New file.
39095         * tests/uniwidth/test-uc_width2.sh: New file.
39096         * modules/uniwidth/width-tests (Files): Add the new files.
39097         (TESTS): Add uniwidth/test-uc_width2.sh.
39098         (TESTS_ENVIRONMENT): New variable.
39099         (check_PROGRAMS): Add test-uc_width2.
39100         (test_uc_width2_SOURCES): New variable.
39101
39102         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
39103         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
39104         not 0x00AB.
39105         Reported by Alexander V. Lukyanov <lav@netis.ru>.
39106
39107 2008-08-22  Eric Blake  <ebb9@byu.net>
39108
39109         test-lock, test-tls: mention why a test is skipped
39110         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
39111         skipped.
39112         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
39113
39114         count-one-bits: relax license
39115         * modules/count-one-bits (License): Relicense to LGPLv2+.
39116         Suggested by Ludovic Courtès, approved by Ben Pfaff.
39117
39118 2008-08-22  Andreas Schwab  <schwab@suse.de>
39119
39120         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
39121         Remove spurious space in assignment.
39122
39123 2008-08-21  Simon Josefsson  <simon@josefsson.org>
39124
39125         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
39126         Paul Eggert <eggert@CS.UCLA.EDU>.
39127
39128 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
39129
39130         * modules/gettext: Add m4/threadlib.m4.
39131
39132 2008-08-19  Eric Blake  <ebb9@byu.net>
39133
39134         test-c-stack: fix compilation failure on FreeBSD 5.0
39135         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
39136         headers before <sys/resource.h>.
39137         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
39138         the bug.
39139         Reported by Nelson H. F. Beebe.
39140
39141         strverscmp: migrate from "strverscmp.h" to <string.h>
39142         * modules/string (Makefile.am): Add new hooks.
39143         * modules/strverscmp (Files): Remove strverscmp.h.
39144         (Depends-on): Add string.
39145         (configure.ac): Add indicator.
39146         (Include): Mention new header.
39147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
39148         defaults.
39149         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
39150         results.
39151         * lib/strverscmp.h: Delete.
39152         * lib/string.in.h (strverscmp): Provide declaration, when needed.
39153         * tests/test-strverscmp.c (includes): Adjust client.
39154         * lib/check-version.c (includes): Likewise.
39155         * NEWS: Document the change.
39156
39157         strverscmp: add unit test
39158         * modules/strverscmp-tests: New file.
39159         * tests/test-strverscmp.c: Likewise.
39160
39161 2008-08-19  Simon Josefsson  <simon@josefsson.org>
39162
39163         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
39164         regarding Windows crypto stuff, from Mono.
39165
39166 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
39167
39168         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
39169         if present, for intel RND.  Return error on failures.
39170
39171 2008-08-18  Ben Pfaff  <blp@gnu.org>
39172
39173         gitlog-to-changelog: give better diagnostic for failed pipe-open
39174         * build-aux/gitlog-to-changelog: Improve error message: suggest
39175         that the version of Git may be too old.
39176
39177 2008-08-18  Simon Josefsson  <simon@josefsson.org>
39178
39179         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
39180         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
39181
39182 2008-08-18  Bruno Haible  <bruno@clisp.org>
39183
39184         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
39185         pthread_in_use().
39186
39187 2008-08-18  Bruno Haible  <bruno@clisp.org>
39188
39189         * lib/glthread/threadlib.c: Include <pthread.h>.
39190
39191 2008-08-18  Bruno Haible  <bruno@clisp.org>
39192
39193         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
39194         glthread_recursive_lock_* macros.
39195         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
39196         Fix syntax error.
39197
39198 2008-08-18  Bruno Haible  <bruno@clisp.org>
39199
39200         * lib/glthread/thread.c: Avoid forcing a context switch right after
39201         thread creation.
39202
39203 2008-08-17  Bruno Haible  <bruno@clisp.org>
39204
39205         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
39206         * lib/glthread/thread.h: Provide Win32 specific implementation.
39207         * modules/thread (Files): Add lib/glthread/thread.c.
39208         (Depends-on): Add lock.
39209         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
39210
39211 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39212
39213         New module 'yield'.
39214         * modules/yield: New file.
39215         * lib/glthread/yield.h: New file.
39216         * m4/yield.m4: New file.
39217         * MODULES.html.sh (Multithreading): Add yield.
39218
39219 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39220
39221         New module 'thread'.
39222         * modules/thread: New file.
39223         * lib/glthread/thread.h: New file.
39224         * m4/thread.m4: New file.
39225         * MODULES.html.sh (Multithreading): Add thread.
39226
39227 2008-08-17  Bruno Haible  <bruno@clisp.org>
39228
39229         * lib/glthread/lock.h: Include <stdlib.h> always.
39230         * lib/glthread/tls.h: Likewise.
39231         * lib/glthread/cond.h: Likewise.
39232
39233 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39234
39235         New module 'cond'.
39236         * modules/cond: New file.
39237         * lib/glthread/cond.h: New file.
39238         * lib/glthread/cond.c: New file.
39239         * m4/cond.m4: New file.
39240         * MODULES.html.sh (Multithreading): Add cond.
39241
39242 2008-08-16  Eric Blake  <ebb9@byu.net>
39243
39244         c-stack: fix regression on Irix 5.3 from 2008-06-21
39245         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
39246         sa_sigaction...
39247         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
39248         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
39249         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
39250         * modules/signal (Makefile.am): Use the value.
39251         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
39252         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
39253         * doc/posix-headers/signal.texi (signal.h): Document this
39254         portability issue.
39255         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
39256         Reported by Tom G. Christensen.
39257
39258 2008-08-17  Bruno Haible  <bruno@clisp.org>
39259
39260         New module 'threadlib'.
39261         * modules/threadlib: New file.
39262         * lib/glthread/threadlib.c: New file, extracted from
39263         lib/glthread/lock.c.
39264         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
39265         functions.
39266         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
39267         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
39268         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
39269         macros.
39270         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
39271         (gl_DISABLE_THREADS): Remove macro.
39272         * modules/lock (Files): Remove build-aux/config.rpath.
39273         (Depends-on): Remove havelib. Add threadlib.
39274         (configure.ac-early): Remove section.
39275         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
39276         * modules/tls (Depends-on): Remove lock. Add threadlib.
39277         (Link): New section, copied from threadlib.
39278         * MODULES.html.sh (Multithreading): Add threadlib.
39279
39280 2008-08-14  Bruno Haible  <bruno@clisp.org>
39281
39282         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
39283         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
39284         glthread_rwlock_unlock, glthread_rwlock_destroy,
39285         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
39286         glthread_recursive_lock_destroy): Define as macros always.
39287         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
39288         glthread_lock_lock.
39289         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
39290         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
39291         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
39292         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
39293         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
39294         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
39295         (glthread_recursive_lock_lock_func): Renamed from
39296         glthread_recursive_lock_lock.
39297         (glthread_recursive_lock_unlock_func): Renamed from
39298         glthread_recursive_lock_unlock.
39299         (glthread_recursive_lock_destroy_func): Renamed from
39300         glthread_recursive_lock_destroy.
39301
39302 2008-08-14  Bruno Haible  <bruno@clisp.org>
39303
39304         * lib/glthread/lock.h: Renamed from lib/lock.h.
39305         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
39306         * lib/glthread/tls.h: Renamed from lib/tls.h.
39307         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
39308         * lib/fstrcmp.c: Update includes.
39309         * lib/strsignal.c: Update includes.
39310         * modules/lock (Files, Makefile.am): Update.
39311         (Include): Change to "glthread/lock.h".
39312         * modules/tls (Files, Makefile.am): Update.
39313         (Include): Change to "glthread/tls.h".
39314         * tests/test-lock.c: Update includes.
39315         * tests/test-tls.c: Update includes.
39316         * NEWS: Mention the renamed header files.
39317
39318 2008-08-11  Jim Meyering  <meyering@redhat.com>
39319
39320         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
39321
39322 2008-08-11  Eric Blake  <ebb9@byu.net>
39323
39324         test-c-stack: avoid C99-ism
39325         * tests/test-c-stack.c (main): Fix whitespace, move declaration
39326         before statement.
39327         Reported by Alain Guibert.
39328
39329 2008-08-10  Jim Meyering  <meyering@redhat.com>
39330
39331         ensure that return value of uinttostr et al are not ignored
39332         * lib/inttostr.h (__GNUC_PREREQ): Define.
39333         (__attribute_warn_unused_result__): Define.
39334         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
39335
39336 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
39337
39338         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
39339         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
39340
39341 2008-08-07  Jim Meyering  <meyering@redhat.com>
39342
39343         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
39344
39345         * modules/mkstemp (License): Relicense under LGPLv2+.
39346         * modules/tempname (License): Likewise.
39347
39348 2008-08-06  Bruno Haible  <bruno@clisp.org>
39349
39350         * lib/poll.c (poll): Further micro-optimization.
39351
39352 2008-08-06  Jim Meyering  <meyering@redhat.com>
39353
39354         inet_pton.c: use locale-independent tolower
39355         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
39356         (inet_pton6): Use c_tolower rather than tolower.
39357         * modules/inet_pton (Depends-on): Add c-ctype.
39358
39359 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
39360
39361         * lib/poll.c (poll): Avoid division when timeout is 0, cache
39362         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
39363
39364 2008-08-06  Jim Meyering  <meyering@redhat.com>
39365
39366         * modules/inet_pton (License): Relicense under LGPLv2+.
39367
39368 2008-08-03  Bruno Haible  <bruno@clisp.org>
39369
39370         Additional non-aborting API for lock and tls.
39371         * lib/lock.h: Include <errno.h>.
39372         (glthread_lock_init): New macro/function.
39373         (gl_lock_init): Define as wrapper around glthread_lock_init.
39374         (glthread_lock_lock): New macro/function.
39375         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
39376         (glthread_lock_unlock): New macro/function.
39377         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
39378         (glthread_lock_destroy): New macro/function.
39379         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
39380         (glthread_rwlock_init): New macro/function.
39381         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
39382         (glthread_rwlock_rdlock): New macro/function.
39383         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
39384         (glthread_rwlock_wrlock): New macro/function.
39385         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
39386         (glthread_rwlock_unlock): New macro/function.
39387         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
39388         (glthread_rwlock_destroy): New macro/function.
39389         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
39390         (glthread_recursive_lock_init): New macro/function.
39391         (gl_recursive_lock_init): Define as wrapper around
39392         glthread_recursive_lock_init.
39393         (glthread_recursive_lock_lock): New macro/function.
39394         (gl_recursive_lock_lock): Define as wrapper around
39395         glthread_recursive_lock_lock.
39396         (glthread_recursive_lock_unlock): New macro/function.
39397         (gl_recursive_lock_unlock): Define as wrapper around
39398         glthread_recursive_lock_unlock.
39399         (glthread_recursive_lock_destroy): New macro/function.
39400         (gl_recursive_lock_destroy): Define as wrapper around
39401         glthread_recursive_lock_destroy.
39402         (glthread_once): New macro/function.
39403         (gl_once): Define as wrapper around glthread_once.
39404         Update function declarations.
39405         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
39406         glthread_rwlock_init. Return error code.
39407         (glthread_rwlock_rdlock_multithreaded): Renamed from
39408         glthread_rwlock_rdlock. Return error code.
39409         (glthread_rwlock_wrlock_multithreaded): Renamed from
39410         glthread_rwlock_wrlock. Return error code.
39411         (glthread_rwlock_unlock_multithreaded): Renamed from
39412         glthread_rwlock_unlock. Return error code.
39413         (glthread_rwlock_destroy_multithreaded): Renamed from
39414         glthread_rwlock_destroy. Return error code.
39415         (glthread_recursive_lock_init_multithreaded): Renamed from
39416         glthread_recursive_lock_init. Return error code.
39417         (glthread_recursive_lock_lock_multithreaded): Renamed from
39418         glthread_recursive_lock_lock. Return error code.
39419         (glthread_recursive_lock_unlock_multithreaded): Renamed from
39420         glthread_recursive_lock_unlock. Return error code.
39421         (glthread_recursive_lock_destroy_multithreaded): Renamed from
39422         glthread_recursive_lock_destroy. Return error code.
39423         (glthread_once_call): Make static.
39424         (glthread_once_multithreaded): Renamed from glthread_once.
39425         * lib/tls.h: Include <errno.h>.
39426         (glthread_tls_key_init): New macro/function.
39427         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
39428         (glthread_tls_set): New macro/function.
39429         (gl_tls_set): Define as wrapper around glthread_tls_set.
39430         (glthread_tls_key_destroy): New macro/function.
39431         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
39432         Update function declarations.
39433         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
39434         glthread_tls_get.
39435         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39436
39437 2008-08-04  Eric Blake  <ebb9@byu.net>
39438
39439         gnumakefile: use space, not TAB, outside of targets
39440         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
39441
39442 2008-08-02  Jim Meyering  <meyering@redhat.com>
39443
39444         getdate.y: avoid locale-dependent date parsing failure
39445         In Turkish locales, getdate would fail to recognize keywords
39446         containing a lowercase "i".  The solution is not to rely on
39447         locale-sensitive case-conversion.
39448         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
39449         (lookup_word): Use c_toupper in place of toupper.
39450         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
39451         Reported by Vefa Bicakci <bicave@superonline.com> in
39452         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
39453         * modules/getdate (Depends-on): Add c-ctype.
39454
39455 2008-08-02  Bruno Haible  <bruno@clisp.org>
39456
39457         * gnulib-tool (func_import): When updating or creating a .gitignore
39458         file, prepend each added line with a slash, and ignore leading slashes
39459         from the existing lines.
39460         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39461
39462 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39463
39464         Portability fix for GNU make 3.79.1.
39465         * top/GNUmakefile: Avoid 'else COND', which older GNU make
39466         versions do not understand.
39467
39468 2008-08-01  Bruno Haible  <bruno@clisp.org>
39469
39470         Work around bug of HP-UX 10.20 cc with -0.0 literal.
39471         * tests/test-isnanf.h (zero): New variable.
39472         (main): Avoid literal -0.0f.
39473         * tests/test-isnand.h (zero): New variable.
39474         (main): Avoid literal -0.0.
39475         * tests/test-isnanl.h (zero): New variable.
39476         (main): Avoid literal -0.0L.
39477         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
39478         (test_float, test_double, test_long_double): Avoid literals -0.0f,
39479         -0.0, -0.0L.
39480         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
39481         (test_signbitd): Avoid literal -0.0.
39482         (test_signbitl): Avoid literal -0.0L.
39483         * tests/test-ceilf1.c (zero): New variable.
39484         (main): Avoid literal -0.0f.
39485         * tests/test-ceill.c (zero): New variable.
39486         (main): Avoid literal -0.0L.
39487         * tests/test-floorf1.c (zero): New variable.
39488         (main): Avoid literal -0.0f.
39489         * tests/test-floorl.c (zero): New variable.
39490         (main): Avoid literal -0.0L.
39491         * tests/test-roundf1.c (zero): New variable.
39492         (main): Avoid literal -0.0f.
39493         * tests/test-round1.c (zero): New variable.
39494         (main): Avoid literal -0.0.
39495         * tests/test-roundl.c (zero): New variable.
39496         (main): Avoid literal -0.0L.
39497         * tests/test-truncf1.c (zero): New variable.
39498         (main): Avoid literal -0.0f.
39499         * tests/test-trunc1.c (zero): New variable.
39500         (main): Avoid literal -0.0.
39501         * tests/test-truncl.c (zero): New variable.
39502         (main): Avoid literal -0.0L.
39503         * tests/test-frexp.c (zero): New variable.
39504         (main): Avoid literal -0.0.
39505         * tests/test-frexpl.c (zero): New variable.
39506         (main): Avoid literal -0.0L.
39507         * tests/test-ldexpl.c (zero): New variable.
39508         (main): Avoid literal -0.0L.
39509         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39510         (zerod, zerol): New variables.
39511         (test_function): Avoid literals -0.0, -0.0L.
39512         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39513         (zerod, zerol): New variables.
39514         (test_function): Avoid literals -0.0, -0.0L.
39515         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39516         (zerod, zerol): New variables.
39517         (test_function): Avoid literals -0.0, -0.0L.
39518         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39519         (zerod, zerol): New variables.
39520         (test_function): Avoid literals -0.0, -0.0L.
39521         * tests/test-strtod.c (zero): New variable.
39522         (main): Avoid literal -0.0.
39523         Reported by Jonathan C. Patschke <jp@centtech.com>.
39524
39525 2008-07-31  Jim Meyering  <meyering@redhat.com>
39526
39527         sha256.h: correct definition of SHA224_DIGEST_SIZE
39528         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
39529         Reported by Paulie Pena IV <paulie4@gmail.com>.
39530         Define as 224 / 8, rather than as a literal.
39531         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
39532         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
39533         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
39534
39535 2008-07-31  Bruno Haible  <bruno@clisp.org>
39536
39537         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
39538         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
39539         Reported by Jonathan Patschke <jp@centtech.com>.
39540
39541 2008-07-31  Bruno Haible  <bruno@clisp.org>
39542
39543         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
39544         Reported by Paolo Bonzini <bonzini@gnu.org>.
39545
39546 2008-07-30  Eric Blake  <ebb9@byu.net>
39547
39548         test-strtod: allow compilation without -lm
39549         * tests/test-strtod.c (main): Avoid link dependence on fabs.
39550         Reported by Dennis Clarke <blastwave@gmail.com>.
39551
39552 2008-07-28  Jim Meyering  <meyering@redhat.com>
39553
39554         bootstrap: work also when there are no .po files in po/
39555         * build-aux/bootstrap (update_po_files): Complete the change
39556         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
39557
39558 2008-07-27  Jim Meyering  <meyering@redhat.com>
39559
39560         * users.txt: Add zile.
39561
39562 2008-07-26  Ben Pfaff  <blp@gnu.org>
39563
39564         Add missing dependencies on new m4/exponent[fdl].m4 files.
39565         * modules/isnanf-nolibm: Add m4/exponentf.m4.
39566         * modules/isnand-nolibm: Add m4/exponentd.m4.
39567         * modules/isnanl-nolibm: Add m4/exponentl.m4.
39568         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
39569         m4/isnan[fdl].m4, because the macros actually used moved.
39570         Reported by Jim Meyering.
39571
39572 2008-07-14  Ben Pfaff  <blp@gnu.org>
39573
39574         Add isinf module.
39575         * lib/isinf.c: New file.
39576         * lib/math.in.h: Define isinf macro if we have decided to replace
39577         it.
39578         * m4/isinf.m4: New file.
39579         * m4/math_h.m4: Initialize and substitute variables for isinf
39580         module.
39581         * modules/isinf: New file.
39582         * modules/isinf-tests: New file.
39583         * modules/math: Add substitutions for new module.
39584         * tests/test-isinf.c: New file.
39585         * doc/posix-functions/isinf.texi: Mention new module.
39586         * MODULES.html.sh: Mention new module.
39587
39588 2008-07-14  Ben Pfaff  <blp@gnu.org>
39589
39590         Factor out some macros for use by additional modules.
39591         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
39592         exponentf.m4.
39593         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
39594         exponentd.m4.
39595         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
39596         file exponentl.m4.
39597         * m4/exponentf.m4: New file.
39598         * m4/exponentd.m4: New file.
39599         * m4/exponentl.m4: New file.
39600         * modules/isnanf: Use new file m4/exponentf.m4.
39601         * modules/isnand: Use new file m4/exponentd.m4.
39602         * modules/isnanl: Use new file m4/exponentl.m4.
39603
39604 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
39605
39606         mktime.c: normalize tp->tm_isdst value to -1/0/1.
39607         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
39608         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
39609         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
39610
39611         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
39612         readlink on platforms without PATH_MAX.
39613
39614 2008-07-21  Eric Blake  <ebb9@byu.net>
39615
39616         Warn, not fail, on stale version.
39617         * top/GNUmakefile (_curr-ver): Tone down previous patch.
39618
39619         Don't allow installation with stale devel version number.
39620         * top/GNUmakefile (_is-install-target): New macro.
39621         (_curr-ver): Forbid installation with stale version number.
39622
39623 2008-07-20  Bruno Haible  <bruno@clisp.org>
39624
39625         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
39626         TESTS_ENVIRONMENT.
39627         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
39628
39629 2008-07-20  Bruno Haible  <bruno@clisp.org>
39630
39631         * lib/c-stack.h (c_stack_action): Add documentation.
39632         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
39633
39634 2008-07-20  Bruno Haible  <bruno@clisp.org>
39635
39636         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
39637         * modules/readlink (License): Likewise.
39638
39639 2008-07-17  Eric Blake  <ebb9@byu.net>
39640
39641         * modules/c-stack (Link): Fix typo.
39642
39643         Make c-stack use libsigsegv, when available.
39644         * modules/c-stack (Depends-on): Add libsigsegv.
39645         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39646         needed.
39647         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39648         (segv_handler, overflow_handler, c_stack_action)
39649         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39650         implementation when libsigsegv is available, but only when using
39651         the library is necessary.
39652         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39653         comment, explaining why XSI check fails on Linux.
39654         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39655         * tests/test-c-stack2.sh: Tweak skip message.
39656         * NEWS: Document new link-time requirements.
39657
39658 2008-07-16  Eric Blake  <ebb9@byu.net>
39659
39660         c-stack: Expose false positives when not using libsigsegv.
39661         * modules/c-stack-tests (Files): Expand test.
39662         * tests/test-c-stack.c (main): Add means to conditionally trigger
39663         non-overflow SIGSEGV.
39664         * tests/test-c-stack2.sh: New file.
39665
39666 2008-07-14  Bruno Haible  <bruno@clisp.org>
39667
39668         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39669         Reported by Eric Blake.
39670
39671 2008-07-14  Sam Steingold  <sds@gnu.org>
39672             Bruno Haible  <bruno@clisp.org>
39673
39674         New module libsigsegv.
39675         * modules/libsigsegv: New file.
39676         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39677         modifications.
39678         * MODULES.html.sh (Signal handling): New section.
39679
39680 2008-07-14  Bruno Haible  <bruno@clisp.org>
39681
39682         * modules/unictype/ctype-* (Description): Add the word "function".
39683         Improves the resulting doc in MODULES.html.
39684
39685 2008-07-12  Ben Pfaff  <blp@gnu.org>
39686
39687         Add longlong module.
39688         * modules/longlong: New file.
39689
39690 2008-07-12  Bruno Haible  <bruno@clisp.org>
39691
39692         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39693         to empty.
39694
39695 2008-07-10  Ben Pfaff  <blp@gnu.org>
39696
39697         Add isnan module.
39698         * doc/posix-functions/isnan.texi: Mention new module.
39699         * lib/math.in.h: Define isnan macro if we have decided to replace
39700         it.
39701         * m4/isnan.m4: New file.
39702         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39703         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39704         also.
39705         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39706         redundancy.
39707         * m4/math_h.m4: Initialize and substitute variables for isnan
39708         module.
39709         * modules/isnan: New file.
39710         * modules/isnan-tests: New file.
39711         * modules/math: Add substitutions for new module.
39712         * tests/test-isnan.c: New file.
39713         * MODULES.html.sh: Mention new module.
39714
39715 2008-07-10  Ben Pfaff  <blp@gnu.org>
39716
39717         Add isnanf module.
39718         * lib/isnanf.m4: New file.
39719         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39720         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39721         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39722         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39723         * modules/isnanf: New file.
39724         * modules/isnanf-tests: New file.
39725         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39726         files.
39727         * tests/test-isnanf-nolibm.c: factored most of its contents into
39728         new file tests/test-isnanf.h.
39729         * tests/test-isnanf.h: New file.
39730         * tests/test-isnanf.c: New file.
39731         * MODULES.html.sh: Mention new module.
39732         * doc/glibc-functions/isnanf.texi: Mention new module.
39733
39734 2008-07-10  Ben Pfaff  <blp@gnu.org>
39735
39736         Add isnand module.
39737         * lib/isnand.h: New file.
39738         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39739         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39740         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39741         functionality also.
39742         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39743         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39744         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39745         * modules/isnand: New file.
39746         * modules/isnand-tests: New file.
39747         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39748         files.
39749         * tests/test-isnand-nolibm.c: factored most of its contents into
39750         new file tests/test-isnand.h.
39751         * tests/test-isnand.h: New file.
39752         * tests/test-isnand.c: New file.
39753         * MODULES.html.sh: Mention new module.
39754
39755 2008-07-10  Ben Pfaff  <blp@gnu.org>
39756
39757         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39758         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39759         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39760         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39761         * modules/isnanf-nolibm: Update references to renamed files.
39762         * modules/isnand-nolibm: Likewise.
39763         * modules/isnanf-nolibm-tests: Likewise.
39764         * modules/isnand-nolibm-tests: Likewise.
39765         * lib/frexp.c: Likewise.
39766         * lib/isfinite.c: Likewise.
39767         * lib/signbitd.c: Likewise.
39768         * lib/signbitf.c: Likewise.
39769         * lib/vasnprintf.c: Likewise.
39770         * tests/test-ceilf1.c: Likewise.
39771         * tests/test-ceilf2.c: Likewise.
39772         * tests/test-floorf1.c: Likewise.
39773         * tests/test-floorf2.c: Likewise.
39774         * tests/test-frexp.c: Likewise.
39775         * tests/test-round1.c: Likewise.
39776         * tests/test-round2.c: Likewise.
39777         * tests/test-roundf1.c: Likewise.
39778         * tests/test-strtod.c: Likewise.
39779         * tests/test-trunc1.c: Likewise.
39780         * tests/test-trunc2.c: Likewise.
39781         * tests/test-truncf1.c: Likewise.
39782         * tests/test-truncf2.c: Likewise.
39783         * NEWS: Mention the renamed header files.
39784
39785 2008-07-11  Jim Meyering  <meyering@redhat.com>
39786
39787         vc-list-files: make the last-resort awk code more portable
39788         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39789         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39790         does not support it.
39791
39792 2008-07-10  Eric Blake  <ebb9@byu.net>
39793
39794         Work with tar's bootstrap.
39795         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39796         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39797         an m4 comment.
39798
39799 2008-07-09  Jim Meyering  <meyering@redhat.com>
39800
39801         posix-shell.m4: fix typo that made this test malfunction
39802         * m4/posix-shell.m4: Remove capitalization in variable name.
39803
39804 2008-07-08  Bruno Haible  <bruno@clisp.org>
39805
39806         * m4/onceonly.m4: Update comments.
39807         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39808
39809 2008-07-04  Jim Meyering  <meyering@redhat.com>
39810
39811         * users.txt: Add vc-dwim.
39812         (bison, coreutils): Use the gitweb URL.
39813
39814 2008-07-03  Jim Meyering  <meyering@redhat.com>
39815
39816         * users.txt: Add libffcall.  From Sam Steingold.
39817
39818 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39819
39820         getdate.y: do not ignore TZ with relative day, month or year offset
39821         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39822         relative-date-handling, since otherwise, the latter would clobber the
39823         sole output (an updated Start value) of the tz-handling block.
39824         * tests/test-getdate.c: Tests for the fix
39825
39826 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39827
39828         Recognize 'foo_LIBRARIES += libgnu.a'.
39829         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39830         makefile snippet has already specified an installation location,
39831         also using '+='.
39832
39833 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39834
39835         getdate.y: factor out common actions
39836         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39837         Use them in place of open-coded actions.
39838
39839 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39840
39841         Add self-test for getdate module.
39842         * modules/getdate-tests: New file.
39843         * tests/test-getdate.c: New file.
39844
39845 2008-06-29  Bruno Haible  <bruno@clisp.org>
39846
39847         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39848         .gitignore.
39849         Reported by Sylvain Beucler <beuc@beuc.net>.
39850
39851 2008-06-29  Bruno Haible  <bruno@clisp.org>
39852
39853         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39854         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39855
39856 2008-06-29  Bruno Haible  <bruno@clisp.org>
39857
39858         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39859         EXTRA_DIST.
39860         Reported by Sylvain Beucler <beuc@beuc.net>.
39861
39862 2008-06-26  Jim Meyering  <meyering@redhat.com>
39863
39864         make several modules depend on the "open" module
39865         This provides slightly increased consistency when opening-for-write
39866         the name of a non-directory spelled with a trailing slash.
39867         * modules/chdir-safer: Likewise.
39868         * modules/chown: Likewise.
39869         * modules/clean-temp: Likewise.
39870         * modules/copy-file: Likewise.
39871         * modules/fchdir: Likewise.
39872         * modules/fcntl-safer: Likewise.
39873         * modules/pipe: Likewise.
39874         * modules/utime: Likewise.
39875         Prompted by Eric Blake and Bruno Haible.
39876
39877 2008-06-24  Andreas Schwab  <schwab@suse.de>
39878
39879         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39880         literals can be used as initializers for global variables.
39881
39882 2008-06-23  Eric Blake  <ebb9@byu.net>
39883
39884         Make gnulib-cache.m4 easier to diff.
39885         * gnulib-tool (func_import): Allow newlines when reading cached
39886         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39887
39888 2008-06-23  Bruno Haible  <bruno@clisp.org>
39889
39890         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39891         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39892         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39893         m4/signalblocking.m4.
39894         (gl_PREREQ_SIGACTION): Don't invoke it.
39895         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39896         gl_PREREQ_SIG_HANDLER_H.
39897         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39898         Don't check for sigaction here.
39899
39900 2008-06-23  Bruno Haible  <bruno@clisp.org>
39901
39902         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39903         (install_handlers): Don't set the SA_RESETHAND flag.
39904
39905 2008-06-23  Bruno Haible  <bruno@clisp.org>
39906
39907         * m4/sigaction.m4: Comment fixes.
39908         * lib/signal.in.h: Likewise.
39909
39910 2008-06-23  Eric Blake  <ebb9@byu.net>
39911
39912         Fix typo.
39913         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39914
39915         Avoid SA_ namespace.
39916         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39917         Reported by Ralf Wildenhues.
39918
39919         Avoid test failure due to SA_RESTORER.
39920         * tests/test-sigaction.c (SA_MASK): New macro.
39921         (main): Avoid failing due to extension flags being set.
39922         Reported by Jim Meyering.
39923
39924         Revert use of sig-handler.h in sigprocmask.c.
39925         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39926         it requires the existence of struct sigaction.
39927         * lib/sigprocmask.c (handler_t): Restore typedef.
39928         (rpl_signal, old_handlers): Use local type.
39929
39930 2008-06-22  Bruno Haible  <bruno@clisp.org>
39931
39932         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39933         conditionally.
39934         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39935
39936 2008-06-22  Bruno Haible  <bruno@clisp.org>
39937
39938         * doc/posix-functions/siginterrupt.texi: Move note.
39939
39940         * lib/signal.in.h (SA_RESTART): New macro.
39941         * lib/sigaction.c: Update comment.
39942
39943         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39944
39945         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39946         (gl_PREREQ_SIGPROCMASK): Invoke it.
39947         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39948
39949         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39950
39951         * lib/sigprocmask.c: Update a comment.
39952
39953 2008-06-21  Eric Blake  <ebb9@byu.net>
39954
39955         Use sigaction module rather than signal().
39956         * modules/c-stack (Depends-on): Add sigaction.
39957         * modules/fatal-signal (Depends-on): Likewise.
39958         * modules/nanosleep (Depends-on): Likewise.
39959         * modules/sigprocmask (Files): Add sig-handler.h.
39960         * modules/sigaction (Files): Likewise.
39961         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39962         Eggert.
39963         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39964         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39965         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39966         (init_fatal_signals): Likewise.
39967         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39968         (siginterrupt): Delete fallback.
39969         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39970         instead.
39971         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39972         siginterrupt.
39973
39974         New module sigaction, for mingw.
39975         * modules/sigaction: New module...
39976         * modules/sigaction-tests: ...and its test.
39977         * m4/sigaction.m4: New file.
39978         * lib/sigaction.c: Likewise.
39979         * tests/test-sigaction.c: Likewise.
39980         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39981         * modules/signal (Makefile.am): Likewise.
39982         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39983         needed.
39984         * doc/posix-headers/signal.texi (signal.h): Mention provided
39985         types.
39986         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39987         that sigaction is preferable.
39988         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39989         module.
39990         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39991         sigaction.
39992
39993         Improve robustness of sigprocmask by overriding signal.
39994         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39995         is in use.
39996         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39997         (SIGKILL, SIGSTOP): Provide fallbacks.
39998         (rpl_signal): Implement.
39999         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
40000         signal can be called inside handlers.
40001
40002         Fix nanosleep module on mingw.
40003         * modules/nanosleep (Depends-on): Add sys_select.
40004         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
40005
40006         Fix licensing of sigprocmask.
40007         * modules/raise (License): Relicense as LGPL.
40008
40009 2008-06-21  Bruno Haible  <bruno@clisp.org>
40010
40011         * lib/propername.c (proper_name_utf8): Don't use the transliterated
40012         result if it contains question marks.
40013         Reported by Michael Geng <linux@michaelgeng.de>.
40014
40015 2008-06-19  Bruno Haible  <bruno@clisp.org>
40016
40017         Fix CVS-ism.
40018         * doc/gnulib.texi: Include updated-stamp.texi.
40019         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
40020         (updated-stamp.texi): New rule.
40021         (gnulib.info): Depend on it.
40022         * doc/.gitignore: Add updated-stamp.texi.
40023         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
40024
40025 2008-06-19  Bruno Haible  <bruno@clisp.org>
40026
40027         * doc/Makefile (gnulib.info): Update and simplify dependencies.
40028         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40029
40030 2008-06-19  Eric Blake  <ebb9@byu.net>
40031
40032         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
40033         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
40034         Reported by Stepan Kasal.
40035
40036 2008-06-18  Bruno Haible  <bruno@clisp.org>
40037
40038         * lib/fatal-signal.c (init_fatal_signals): Add comment.
40039         Reported by Eric Blake.
40040
40041 2008-06-18  Eric Blake  <ebb9@byu.net>
40042
40043         Work around cygwin 1.5.25 strsignal bug.
40044         * tests/test-strsignal.c: Allow for const char *.
40045         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
40046
40047 2008-06-18  Simon Josefsson  <simon@josefsson.org>
40048
40049         * users.txt: Update URL to article and add author/date
40050         information.
40051
40052 2008-06-17  Bruno Haible  <bruno@clisp.org>
40053
40054         New macro gl_DISABLE_THREADS.
40055         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
40056         if the user did not pass --enable-threads or --disable-threads option.
40057         (gl_DISABLE_THREADS): New macro.
40058         Reported by Eric Blake <ebb9@byu.net>.
40059
40060 2008-06-17  Bruno Haible  <bruno@clisp.org>
40061
40062         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
40063         when the macro ignores it.
40064         Based on a patch by Eric Blake <ebb9@byu.net>.
40065
40066 2008-06-17  Bruno Haible  <bruno@clisp.org>
40067
40068         * modules/tls (License): Change to LGPLv2+.
40069         Reported by Eric Blake.
40070
40071 2008-06-17  Eric Blake  <ebb9@byu.net>
40072
40073         Simplify c-stack prerequisites.
40074         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
40075         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
40076         no longer requires <ucontext.h> to exist.  Optimize setrlimit
40077         check.
40078         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
40079         <sys/resource.h>.
40080
40081         Move c-stack test into testsuite.
40082         * modules/c-stack-tests: New file.
40083         * lib/c-stack.c [DEBUG]: Move test program...
40084         * tests/test-c-stack.c: ...into this new file.  Skip rather than
40085         fail test if sigaltstack is lacking.
40086         * tests/test-c-stack.sh: New driver file.
40087
40088 2008-06-16  Eric Blake  <ebb9@byu.net>
40089
40090         Use raise module consistently.
40091         * modules/fatal-signal (Depends-on): Add raise.
40092         * modules/sigprocmask (Depends-on): Likewise.
40093         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
40094         * lib/sigprocmask.c (sigprocmask): Likewise.
40095         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40096         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
40097
40098         Fix compliance bug in sigpending.
40099         * lib/sigprocmask.c (sigpending): Return pending array via
40100         parameter, not return value.
40101
40102 2008-06-14  Eric Blake  <ebb9@byu.net>
40103
40104         Improve obstack-printf test code.
40105         * tests/test-obstack-printf.c (test_function): Fix comment, and
40106         simplify usage of obstack_* in macros.  Add a test for coverage.
40107         Reported by Bruno Haible.
40108
40109 2008-06-14  Bruno Haible  <bruno@clisp.org>
40110
40111         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
40112         array size as a constant, not as a const variable.
40113         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
40114         AC_USE_SYSTEM_EXTENSIONS.
40115         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40116         Test whether the obstack_printf function actually exists.
40117         * modules/obstack-printf (Depends-on): Add extensions.
40118         (Include): Remove obstack.h.
40119         * modules/obstack-printf-posix (Depends-on): Add extensions.
40120         (Include): Remove obstack.h.
40121
40122 2008-06-13  Eric Blake  <ebb9@byu.net>
40123
40124         Add obstack-printf and obstack-printf-posix modules.
40125         * modules/obstack-printf: New file.
40126         * modules/obstack-printf-posix: Likewise.
40127         * MODULES.html.sh (Misc): Mention them.
40128         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40129         Likewise.
40130         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40131         Likewise.
40132         * modules/stdio (Makefile.am): Accomodate new modules.
40133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40134         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
40135         Declare.
40136         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
40137         functions.
40138         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
40139         (gl_REPLACE_OBSTACK_PRINTF): New macros
40140         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
40141         * tests/test-obstack-printf.c: New file.
40142         * modules/obstack-printf-tests: Likewise.
40143         * modules/obstack-printf-posix-tests: Likewise.
40144
40145 2008-06-11  Bruno Haible  <bruno@clisp.org>
40146
40147         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
40148         * lib/open.c: Include errno.h.
40149         (open): Fail when attempting to write to a file that has a trailing
40150         slash.
40151         * tests/test-open.c (main): Test against trailing slash bug.
40152         * doc/posix-functions/open.texi: Mention the trailing slash bug.
40153
40154 2008-06-10  Bruno Haible  <bruno@clisp.org>
40155
40156         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
40157         for $? to work inside the trap command, with various /bin/sh-s.
40158         * tests/test-vc-list-files-cvs.sh: Likewise.
40159
40160 2008-06-10  Bruno Haible  <bruno@clisp.org>
40161
40162         * lib/acl-internal.h: Don't include gettext.h here.
40163         * lib/set-mode-acl.c: Include gettext.h here.
40164         * lib/copy-acl.c: Likewise.
40165
40166 2008-06-10  Bruno Haible  <bruno@clisp.org>
40167
40168         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
40169         * lib/wait-process.c (wait_subprocess): Likewise.
40170         * lib/execute.h (execute): Add termsigp argument.
40171         * lib/execute.c (execute): Likewise.
40172         * lib/csharpcomp.c (compile_csharp_using_pnet,
40173         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
40174         * lib/csharpexec.c (execute_csharp_using_pnet,
40175         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
40176         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
40177         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
40178         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
40179         is_jikes_present): Update.
40180         * lib/javaexec.c (execute_java_class): Update.
40181         * lib/javaversion.c (execute_and_read_line): Update.
40182         * NEWS: Document the changes.
40183         Reported by Eric Blake.
40184
40185 2008-06-10  Eric Blake  <ebb9@byu.net>
40186
40187         Add missing include.
40188         * tests/test-strstr.c (includes): Add <signal.h>.
40189         * tests/test-strcasestr.c (includes): Likewise.
40190         * tests/test-memmem.c (includes): Likewise.
40191
40192 2008-06-10  Bruno Haible  <bruno@clisp.org>
40193
40194         * lib/wait-process.c (wait_subprocess): Add an assertion.
40195
40196 2008-06-10  Bruno Haible  <bruno@clisp.org>
40197
40198         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
40199
40200 2008-06-10  Bruno Haible  <bruno@clisp.org>
40201
40202         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
40203         using alarm().
40204         * tests/test-strcasestr.c (main): Likewise.
40205         * tests/test-strstr.c (main): Likewise.
40206
40207 2008-06-09  Bruno Haible  <bruno@clisp.org>
40208
40209         Work around the Solaris 10 ACE ACLs ABI change.
40210         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
40211         declare if ACL_NO_TRIVIAL is present.
40212         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
40213         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
40214         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
40215         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
40216         define if ACL_NO_TRIVIAL is present.
40217         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
40218         and use the current ABI.
40219         (file_has_acl): Use same #if condition as elsewhere.
40220         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
40221         in use, and use the current ABI.
40222         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
40223         Reported by Jim Meyering.
40224
40225 2008-06-09  Eric Blake  <ebb9@byu.net>
40226
40227         Work around environments that (stupidly) ignore SIGALRM.
40228         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
40229         before using alarm().
40230         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40232         Reported by Ian Beckwith <ianb@erislabs.net>.
40233
40234         Produce autobuild blurb earlier in log.
40235         * modules/autobuild (configure.ac-early): Move AB_INIT here.
40236
40237 2008-06-09  Jim Meyering  <meyering@redhat.com>
40238         and OndÅ™ej Vašík  <ovasik@redhat.com>
40239
40240         utimens.c: correct kernel bug work-around
40241         OndÅ™ej Vašík found that the invalid return value of 280 indicates
40242         failure, not success, and the kernel bug we're trying to work
40243         around affects not just the utimensat call, but also the fallback
40244         futimens call.
40245         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
40246         not success.
40247         [HAVE_FUTIMENS]: Use the same work-around, here.
40248
40249 2008-06-09  Jim Meyering  <meyering@redhat.com>
40250
40251         add more guards around definition of ACE_-related code
40252         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
40253         ALLOW and ACE_OWNER are also defined.
40254
40255 2008-06-08  Bruno Haible  <bruno@clisp.org>
40256
40257         * lib/acl-internal.h: Add me as co-author.
40258         * lib/file-has-acl.c: Likewise.
40259         * lib/set-mode-acl.c: Likewise.
40260         * lib/copy-acl.c: Likewise.
40261
40262 2008-06-08  Bruno Haible  <bruno@clisp.org>
40263
40264         Add support for AIX ACLs.
40265         * lib/acl-internal.h (acl_nontrivial): New declaration.
40266         * lib/file-has-acl.c (acl_nontrivial): New function.
40267         (file_has_acl): Add implementation using AIX 4 ACL API.
40268         * lib/set-mode-acl.c (qset_acl): Likewise.
40269         * lib/copy-acl.c (qcopy_acl): Likewise.
40270
40271 2008-06-08  Bruno Haible  <bruno@clisp.org>
40272
40273         Add support for HP-UX ACLs.
40274         * lib/acl-internal.h (acl_nontrivial): New declaration.
40275         * lib/file-has-acl.c (acl_nontrivial): New function.
40276         (file_has_acl): Add implementation using HP-UX 11 ACL API.
40277         * lib/set-mode-acl.c (qset_acl): Likewise.
40278         * lib/copy-acl.c (qcopy_acl): Likewise.
40279
40280 2008-06-08  Bruno Haible  <bruno@clisp.org>
40281
40282         Add support for Cygwin ACLs.
40283         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
40284         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
40285         the chmod_or_fchmod call.
40286         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
40287
40288 2008-06-08  Bruno Haible  <bruno@clisp.org>
40289
40290         Fix bug with setuid modes in Solaris 10+ code.
40291         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
40292         succeeded, when the mode contains some special bits.
40293
40294 2008-06-08  Bruno Haible  <bruno@clisp.org>
40295
40296         Add support for Solaris 7..10 ACLs.
40297         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
40298         declarations.
40299         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
40300         functions.
40301         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
40302         * lib/set-mode-acl.c (qset_acl): Likewise.
40303         * lib/copy-acl.c (qcopy_acl): Likewise.
40304
40305 2008-06-08  Bruno Haible  <bruno@clisp.org>
40306
40307         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
40308         declaration.
40309         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
40310         (acl_access_nontrivial): Remove MacOS X case.
40311         (file_has_acl): Use acl_extended_nontrivial.
40312         * lib/copy-acl.c (qcopy_acl): Likewise.
40313
40314 2008-06-08  Bruno Haible  <bruno@clisp.org>
40315
40316         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
40317
40318 2008-06-08  Jim Meyering  <meyering@redhat.com>
40319
40320         * modules/acl (Maintainer): Add Bruno Haible.
40321
40322 2008-06-07  Bruno Haible  <bruno@clisp.org>
40323
40324         Improve support for Tru64 ACLs.
40325         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
40326         ACL on OSF/1.
40327
40328 2008-06-07  Bruno Haible  <bruno@clisp.org>
40329
40330         Add support for MacOS X ACLs.
40331         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
40332         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
40333         * lib/set-mode-acl.c (qset_acl): Likewise.
40334         * lib/copy-acl.c (qcopy_acl): Likewise.
40335
40336 2008-06-07  Bruno Haible  <bruno@clisp.org>
40337
40338         Fix memory leak introduced on 2008-05-22.
40339         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
40340         use.
40341
40342 2008-06-07  Bruno Haible  <bruno@clisp.org>
40343
40344         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
40345         to construct an empty ACL.
40346
40347 2008-06-07  Bruno Haible  <bruno@clisp.org>
40348
40349         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
40350         precisely.
40351         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
40352
40353 2008-06-07  Bruno Haible  <bruno@clisp.org>
40354
40355         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
40356         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
40357
40358 2008-06-07  Bruno Haible  <bruno@clisp.org>
40359
40360         * doc/posix-functions/_setjmp.texi: Explain the use of this function
40361         regardless of POSIX.
40362         * doc/posix-functions/_longjmp.texi: Likewise.
40363         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
40364         SystemV platform in this case.
40365
40366 2008-06-06  Eric Blake  <ebb9@byu.net>
40367
40368         Document abort() bugs.
40369         * doc/posix-functions/abort.texi (abort): Mention anomalies.
40370
40371         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
40372         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
40373         sigsetjmp.
40374         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
40375         siglongjmp, but only as a macro.
40376         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
40377         is obsolete.
40378         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
40379
40380         Tweak documentation to cover cygwin argz bugs.
40381         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
40382         argz bug fix; no code change needed since no cygwin releases
40383         occurred between the last fix and the bug being tested.
40384         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
40385         module and recently fixed cygwin bugs.
40386         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
40387         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
40388         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
40389         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
40390         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
40391         Likewise.
40392         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
40393         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
40394         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
40395         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
40396         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
40397         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
40398         Likewise.
40399
40400         Avoid gcc warning on cygwin.
40401         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
40402         !ACL_NO_TRIVIAL]: Avoid unused variable.
40403
40404 2008-06-05  Eric Blake  <ebb9@byu.net>
40405
40406         Be tolerant of UNKNOWN version in gnulib-tool test dir.
40407         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
40408         git-version-gen fails to come up with a version.
40409         Reported by Simon Josefsson.
40410
40411 2008-06-05  Jim Meyering  <meyering@redhat.com>
40412             Paul Eggert  <eggert@cs.ucla.edu>
40413
40414         utimens.c: work around a probable Linux kernel bug
40415         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
40416         appears to be a kernel bug that causes utimensat to return 280
40417         instead of 0, indicating success.
40418
40419 2008-06-04  Bruno Haible  <bruno@clisp.org>
40420
40421         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
40422         2008-06-01 commit.
40423
40424 2008-06-04  Bruno Haible  <bruno@clisp.org>
40425
40426         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
40427         * lib/file-has-acl.c (acl_access_nontrivial): New function.
40428         (file_has_acl): Use it. Save errno afterwards.
40429         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
40430
40431 2008-06-03  Bruno Haible  <bruno@clisp.org>
40432
40433         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
40434         draft code. Simplify #ifs.
40435         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
40436         Put Solaris code after POSIX-draft code. Fix comments regarding
40437         Solaris 10, HP-UX. Mention Cygwin.
40438         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
40439
40440 2008-06-03  Eric Blake  <ebb9@byu.net>
40441
40442         Provide fallback for older kernels.
40443         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
40444         Provide runtime fallback if kernel lacks support.
40445         Reported by Mike Frysinger.
40446
40447 2008-06-02  Bruno Haible  <bruno@clisp.org>
40448
40449         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
40450         it exists.
40451
40452 2008-06-02  Bruno Haible  <bruno@clisp.org>
40453
40454         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
40455         * lib/copy-acl.c (qcopy_acl): Update comment.
40456
40457 2008-06-02  Bruno Haible  <bruno@clisp.org>
40458
40459         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
40460         like ACL APIs.
40461
40462 2008-06-02  Bruno Haible  <bruno@clisp.org>
40463
40464         * tests/test-file-has-acl.sh: Use different code for Cygwin.
40465         * tests/test-set-mode-acl.sh: Likewise.
40466         * tests/test-copy-acl.sh: Likewise.
40467         * tests/test-copy-file.sh: Likewise.
40468
40469 2008-06-02  Bruno Haible  <bruno@clisp.org>
40470
40471         * tests/test-file-has-acl.sh: Remove unused code.
40472
40473 2008-06-01  Bruno Haible  <bruno@clisp.org>
40474
40475         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
40476         (copy_acl): Just a wrapper around qcopy_acl that emits the error
40477         messages.
40478         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
40479
40480 2008-06-01  Bruno Haible  <bruno@clisp.org>
40481
40482         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
40483         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
40484         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
40485         APIs.
40486         * modules/acl-tests (configure.ac): Remove tests now contained in
40487         m4/acl.m4.
40488
40489 2008-06-02  Jim Meyering  <meyering@redhat.com>
40490
40491         announce-gen: use a better key-server host name
40492         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
40493         it may be more consistently reliable.  Suggested by Werner Koch
40494         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
40495
40496 2008-06-01  Bruno Haible  <bruno@clisp.org>
40497
40498         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
40499         Reported by Voroskoi Andras <voroskoi@gmail.com>.
40500
40501 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
40502
40503         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
40504
40505 2008-06-01  Bruno Haible  <bruno@clisp.org>
40506
40507         New ACL tests.
40508         * tests/test-file-has-acl.sh: New file.
40509         * tests/test-file-has-acl.c: New file.
40510         * tests/test-set-mode-acl.sh: New file.
40511         * tests/test-set-mode-acl.c: New file.
40512         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
40513         * tests/test-copy-acl.c: New file.
40514         * modules/acl-tests: New file, based on modules/copy-file-tests.
40515         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
40516         (Depends-on): Add acl-tests.
40517         (configure.ac): Remove checks.
40518         (Makefile.am): Don't create test-sameacls program here any more.
40519
40520 2008-06-01  Bruno Haible  <bruno@clisp.org>
40521
40522         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
40523         * tests/test-sameacls.c: Include progname.h.
40524         (main): Invoke set_program_name. Portability fixes for MacOS X,
40525         Solaris, HP-UX.
40526
40527 2008-06-01  Bruno Haible  <bruno@clisp.org>
40528
40529         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
40530         function.
40531         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
40532
40533 2008-06-01  Bruno Haible  <bruno@clisp.org>
40534
40535         * modules/rpmatch (Depends-on): Add strdup.
40536
40537 2008-06-01  Bruno Haible  <bruno@clisp.org>
40538
40539         * lib/pipe.c: Include unistd-safer.h.
40540         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
40541         * modules/pipe (Depends-on): Add unistd-safer.
40542
40543 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40544
40545         * modules/autobuild (configure.ac): Call AB_INIT.
40546
40547 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40548
40549         * tests/test-getaddrinfo.c: Don't print debug messages by default.
40550         Suggested by Bruno Haible <bruno@clisp.org>.
40551
40552 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40553
40554         * tests/test-base64.c: Cast size_t to unsigned long when invoking
40555         printf.  Use %lu instead of %d.  Reported by Bruno Haible
40556         <bruno@clisp.org>.
40557
40558 2008-05-29  Eric Blake  <ebb9@byu.net>
40559
40560         Prefer new POSIX 200x interfaces over futimesat.
40561         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
40562         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
40563         when available.
40564         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
40565
40566 2008-05-28  Bruno Haible  <bruno@clisp.org>
40567
40568         * modules/stpcpy (License): Change to LGPLv2+.
40569         Requested by David Lutterkort <dlutter@redhat.com>.
40570
40571 2008-05-27  Bruno Haible  <bruno@clisp.org>
40572
40573         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
40574         current mingw.
40575         Reported by Jose E. Marchesi <jemarch@gnu.org>.
40576
40577 2008-05-27  Bruno Haible  <bruno@clisp.org>
40578
40579         * modules/iconv_open (Link): New section, from module 'iconv'.
40580         * modules/striconv (Link): Likewise.
40581         * modules/striconveh (Link): Likewise.
40582         * modules/xstriconv (Link): Likewise.
40583         * modules/unicodeio (Link): Likewise.
40584         * modules/propername (Link): Likewise.
40585         Reported by Jim Meyering.
40586
40587 2008-05-26  Jim Meyering  <meyering@redhat.com>
40588
40589         sha256: do not artificially restrict buffer length to be < 2^32
40590         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
40591         uint32_t to size_t.
40592         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
40593         to match.
40594
40595         avoid unaligned access errors, e.g., on sparc
40596         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
40597         direct access through a possibly-unaligned uint64* pointer.
40598         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
40599         direct access through a possibly-unaligned uint32* pointer.
40600         Prompted by this patch from Tom "spot" Callaway:
40601         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
40602
40603         sha512.c: fix typo in comment
40604         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
40605
40606 2008-05-25  Bruno Haible  <bruno@clisp.org>
40607
40608         * lib/set-mode-acl.c: Renamed from lib/acl.c.
40609         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
40610         (Makefile.am): Update lib_SOURCES.
40611
40612 2008-05-25  Bruno Haible  <bruno@clisp.org>
40613
40614         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
40615
40616 2008-05-25  Jim Meyering  <meyering@redhat.com>
40617
40618         useless-if-before-free: freed expr may have white-space differences
40619         * build-aux/useless-if-before-free: Recognize cases in which the
40620         freed expression differs from the tested one in embedded white
40621         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
40622         $1 was used, so we can't make any regexp shy.  Improved tests now
40623         detect this.
40624
40625         useless-if-before-free: accept white space in the expression.
40626         * build-aux/useless-if-before-free: For now, any white space
40627         in the expression must be identical in the free argument.
40628
40629         useless-if-before-free: efficiency tweak
40630         * build-aux/useless-if-before-free: Make the expression-matching
40631         regexp "shy".
40632         Make the *outer* regexp shy, not the expr-matching one.
40633
40634         update code-in-comment to accept cast of free arg
40635         * build-aux/useless-if-before-free: Update regexp.
40636
40637 2008-05-25  Bruno Haible  <bruno@clisp.org>
40638
40639         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
40640         * modules/copy-file-tests (Files, Makefile.am): Update.
40641         * tests/test-copy-file.c (func_test_copy): Update.
40642
40643 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40644
40645         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40646
40647 2008-05-23  Bruno Haible  <bruno@clisp.org>
40648
40649         Improve support for ACLs on OSF/1.
40650         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40651         Remove fallback for unknown flavors of ACLs.
40652
40653 2008-05-22  Bruno Haible  <bruno@clisp.org>
40654
40655         Add support for ACLs on OSF/1.
40656         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40657         replacements.
40658         (acl_free_text): New macro fallback.
40659         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40660         acl_free.
40661         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40662         acl_free_text function. Require AC_C_INLINE.
40663
40664 2008-05-22  Bruno Haible  <bruno@clisp.org>
40665
40666         Make copy_acl work on MacOS X 10.5.
40667         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40668         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40669         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40670         If MODE_INSIDE_ACL, don't assume that every system has the same text
40671         representation for ACLs as FreeBSD.
40672         * lib/copy-acl.c (copy_acl): Add support for platforms with
40673         !MODE_INSIDE_ACL.
40674         * lib/file-has-acl.c (file_has_acl): Likewise.
40675         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40676         FreeBSD, MacOS X, or IRIX, respectively.
40677
40678 2008-05-22  Bruno Haible  <bruno@clisp.org>
40679
40680         * lib/acl.h: Don't include <sys/acl.h>.
40681         (GETACLCNT): Move fallback to lib/acl-internal.h.
40682         * lib/acl-internal.h: Include <sys/acl.h> here.
40683         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40684
40685 2008-05-22  Bruno Haible  <bruno@clisp.org>
40686
40687         Split off copy_acl function to separate file.
40688         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40689         * lib/acl.c (copy_acl): Moved function to separate file.
40690         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40691         * modules/acl (Files): Add lib/copy-acl.c.
40692         (Makefiles.am): Augment lib_SOURCES.
40693
40694 2008-05-22  Bruno Haible  <bruno@clisp.org>
40695
40696         * modules/copy-file-tests: New file.
40697         * tests/test-copy-file.sh: New file.
40698         * tests/test-copy-file.c: New file.
40699         * tests/test-copy-file-sameacls.c: New file.
40700
40701 2008-05-22  Eric Blake  <ebb9@byu.net>
40702
40703         Avoid gcc warning.
40704         * tests/test-memcmp.c (main): Pass NULL indirectly.
40705
40706 2008-05-21  Bruno Haible  <bruno@clisp.org>
40707
40708         Add reference doc about ACLs.
40709         * doc/acl-resources.txt: New file.
40710         * doc/acl-cygwin.txt: New file.
40711
40712 2008-05-21  Bruno Haible  <bruno@clisp.org>
40713
40714         Avoid one more warning from gcc.
40715         * lib/vasnprintf.c (IF_LINT): Update comments.
40716         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40717
40718 2008-05-21  Jim Meyering  <meyering@redhat.com>
40719
40720         avoid a warning from gcc
40721         * lib/vasnprintf.c (IF_LINT): Define.
40722         (scale10_round_decimal_long_double):
40723         Use it to avoid a "may be used uninitialized" warning.
40724         (scale10_round_decimal_double): Likewise.
40725
40726 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40727
40728         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40729         declared.
40730
40731 2008-05-20  Bruno Haible  <bruno@clisp.org>
40732
40733         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40734         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40735
40736 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40737
40738         * modules/memcmp-tests: New file.
40739         * tests/test-memcmp.c: New file.
40740
40741 2008-05-19  Bruno Haible  <bruno@clisp.org>
40742
40743         * modules/propername (Notice, configure.ac): Put quoted "..." into
40744         --keyword option.
40745         * lib/propername.h: Update comments accordingly.
40746         Reported by Eric Blake.
40747
40748 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40749
40750         * modules/getpass-gnu (Depends-on): Add fseeko.
40751
40752 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40753
40754         * modules/base64-tests: New file.
40755
40756 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40757
40758         * lib/base64.c (base64_decode_ctx): If a decode context structure
40759         was passed in use it to ignore newlines.  If a context structure
40760         was _not_ passed in, continue to treat newlines as garbage (this
40761         is the historical behavior).  Formerly base64_decode.
40762         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40763         takes a decode context structure.
40764         * lib/base64.h (base64_decode): Macro for four-argument calls.
40765         (base64_decode_alloc): Likewise.
40766         * lib/base64.c (base64_decode_ctx): If a decode context structure
40767         was passed in use it to ignore newlines.  If a context structure
40768         was _not_ passed in, continue to treat newlines as garbage (this
40769         is the historical behavior).  Formerly base64_decode.
40770         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40771         takes a decode context structure.
40772         * lib/base64.h (base64_decode): Macro for four-argument calls.
40773         (base64_decode_alloc): Likewise.
40774
40775 2008-05-19  Jim Meyering  <meyering@redhat.com>
40776
40777         avoid a warning from gcc
40778         * lib/trim.c (IF_LINT): Define.
40779         (trim2): Use it to avoid a "may be used uninitialized" warning.
40780
40781         Fix doc typo.
40782         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40783
40784 2008-05-19  Bruno Haible  <bruno@clisp.org>
40785
40786         * doc/glibc-functions/getpass.texi: Document limits of other
40787         implementations.
40788
40789 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40790             Bruno Haible <bruno@clisp.org>
40791
40792         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40793
40794 2008-05-18  Bruno Haible  <bruno@clisp.org>
40795
40796         * modules/propername: New file, from GNU gettext.
40797         * lib/propername.h: New file, from GNU gettext.
40798         * lib/propername.c: New file, from GNU gettext.
40799         * MODULES.html.sh (Internationalization functions): Add propername.
40800
40801 2008-05-16  Jim Meyering  <meyering@redhat.com>
40802             Bruno Haible  <bruno@clisp.org>
40803
40804         Avoid some warnings from "gcc -Wshadow".
40805         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40806
40807 2008-05-15  Eric Blake  <ebb9@byu.net>
40808
40809         Extend previous patch to cygwin 1.7.0.
40810         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40811         fast implementation in cygwin >= 1.7.0.
40812         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40814
40815 2008-05-15  Bruno Haible  <bruno@clisp.org>
40816
40817         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40818         implementation in glibc >= 2.9.
40819         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40820         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40821
40822 2008-05-15  Bruno Haible  <bruno@clisp.org>
40823
40824         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40825         (Unicode string functions): Add unilbrk/*.
40826         Reported by Karl Berry.
40827
40828 2008-05-15  Eric Blake  <ebb9@byu.net>
40829
40830         Fix violation of <stdbool.h> replacement in regex.
40831         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40832         * lib/regexec.c (re_search_internal): Likewise.
40833         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40834
40835 2008-05-15  Jim Meyering  <meyering@redhat.com>
40836
40837         avoid distracting test output when git or cvs is not found
40838         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40839         * tests/test-vc-list-files-git.sh: Likewise.
40840
40841 2008-05-15  Eric Blake  <ebb9@byu.net>
40842
40843         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40844         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40845         glibc version.
40846         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40847         * doc/posix-functions/strstr.texi (strstr): Likewise.
40848         * lib/str-two-way.h (MAX): Sychronize with glibc.
40849
40850 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40851
40852         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40853         opr.ctx_type.
40854         (calc_first): Initialize constraint field.
40855         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40856         Fix grammar.
40857         (duplicate_node): Merge constraint field for all node types.
40858         (calc_eclosure_iter): Look at constraint field for all node types.
40859         * lib/regex_internal.c (create_cd_newstate): Don't look at
40860         opr.ctx_type.
40861
40862 2008-05-14  Bruno Haible  <bruno@clisp.org>
40863
40864         Help GCC to do better code generation.
40865         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40866         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40867         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40868         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40869         Declare with attribute 'malloc' if supported.
40870
40871 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40872
40873         use "echo STR|wc -c" rather than unportable "expr length STR"
40874         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40875         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40876
40877 2008-05-14  Jim Meyering  <meyering@redhat.com>
40878
40879         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40880         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40881         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40882         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40883         via Collin Lasse.
40884
40885 2008-05-14  Eric Blake  <ebb9@byu.net>
40886
40887         Avoid quadratic growth in gl_LIBSOURCES.
40888         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40889         Suggested by Bruno Haible.
40890
40891         Test xmemdup0.
40892         * modules/xmemdup0-tests: New file.
40893         * tests/test-xmemdup0.c: Likewise.
40894
40895 2008-05-13  Eric Blake  <ebb9@byu.net>
40896
40897         Split xmemdup0 into its own module.
40898         * modules/xmemdup0: New file.
40899         * lib/xmemdup0.h: Likewise.
40900         * lib/xmemdup0.c: Likewise.
40901         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40902         * lib/xalloc.h (xmemdup0): Remove.
40903         * lib/xmalloc.c (xmemdup0): Likewise.
40904
40905 2008-05-13  Eric Blake  <ebb9@byu.net>
40906             Bruno Haible  <bruno@clisp.org>
40907
40908         Reduce number of forks required during autoconf.
40909         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40910         and gl_LIBSOURCES_DIR.
40911         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40912         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40913         m4_syscmd per file.
40914         <m4_foreach_w>: Move...
40915         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40916
40917 2008-05-13  Eric Blake  <ebb9@byu.net>
40918
40919         * gnulib-tool: Fix various comment typos.
40920
40921 2008-05-12  Bruno Haible  <bruno@clisp.org>
40922
40923         Tailor the linebreaking algorithm.
40924         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40925
40926 2008-05-12  Bruno Haible  <bruno@clisp.org>
40927
40928         Update to Unicode 5.0.0.
40929         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40930         LBP_JV, LBP_JT. Redistribute values.
40931         (unilbrk_table): Change size.
40932         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40933         Unicode TR#14 rev. 22.
40934         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40935         LBP_JV, LBP_JT. Redistribute values.
40936         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40937         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40938         Update.
40939         * lib/unilbrk/lbrkprop1.h: Regenerated.
40940         * lib/unilbrk/lbrkprop2.h: Regenerated.
40941         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40942         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40943         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40944         Likewise.
40945         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40946         Likewise.
40947         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40948         result.
40949         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40950         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40951         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40952         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40953         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40954         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40955
40956 2008-05-11  Bruno Haible  <bruno@clisp.org>
40957
40958         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40959
40960 2008-05-11  Bruno Haible  <bruno@clisp.org>
40961
40962         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40963         * modules/unilbrk/gen-lbrk: New file.
40964
40965 2008-05-11  Bruno Haible  <bruno@clisp.org>
40966
40967         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40968         * m4/sha512.m4 (gl_SHA512): Likewise.
40969
40970 2008-05-11  Jim Meyering  <meyering@redhat.com>
40971
40972         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40973         * modules/crypto/sha256: New file.
40974         * modules/crypto/sha512: Likewise.
40975         * lib/sha256.c: Likewise.
40976         * lib/sha256.h: Likewise.
40977         * lib/sha512.c: Likewise.
40978         * lib/sha512.h: Likewise.
40979         * lib/u64.h: Likewise.
40980         * m4/sha256.m4: Likewise.
40981         * m4/sha512.m4: Likewise.
40982         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40983
40984 2008-05-10  Bruno Haible  <bruno@clisp.org>
40985
40986         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40987         (Input/Output <stdio.h>): Add xprintf.
40988         (Signal handling <signal.h>): Add strsignal.
40989         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40990         (Core language properties): Add func.
40991         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40992         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40993         strings.
40994         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40995         (Input/output): New section.
40996         (File system functions): Add openat-die, stat-macros.
40997         (Networking functions): Add sockets.
40998         (Unicode string functions): Add unictype/*.
40999         (Support for building libraries and executables): Add gperf.
41000         (Support for building documentation): Add agpl-3.0.
41001         (Misc): Add nocrash.
41002
41003 2008-05-10  Bruno Haible  <bruno@clisp.org>
41004
41005         * modules/unictype/gen-ctype: New file.
41006
41007 2008-05-10  Jim Meyering  <meyering@redhat.com>
41008
41009         Make chdir-safer.c more efficient on a system with no symlinks.
41010         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
41011         also if ELOOP is zero.  Suggested by Bruno Haible.
41012
41013         Make chdir-safer.c slightly safer.
41014         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
41015         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
41016
41017         Avoid compile failure on systems without ELOOP (like mingw).
41018         * lib/chdir-safer.c (ELOOP): Define if not already defined.
41019         Reported by Bruno Haible.
41020
41021 2008-05-10  Bruno Haible  <bruno@clisp.org>
41022
41023         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
41024         (is_utf8_encoding): Use a case-insensitive comparison.
41025         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
41026         streq.
41027
41028 2008-05-10  Bruno Haible  <bruno@clisp.org>
41029
41030         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
41031         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
41032         * lib/unilbrk/ulc-common.h (iconv_string_length,
41033         iconv_string_keeping_offsets): Remove declarations.
41034         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
41035         Don't include <iconv.h>, streq.h, xsize.h.
41036         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
41037         conversion.
41038         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
41039         <iconv.h>, streq.h, xsize.h.
41040         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
41041         conversion.
41042         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
41043         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
41044         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
41045         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
41046
41047 2008-05-10  Bruno Haible  <bruno@clisp.org>
41048
41049         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
41050         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
41051
41052         * modules/unilbrk/u32-width-linebreaks-tests: New file.
41053         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
41054
41055         * modules/unilbrk/u16-width-linebreaks-tests: New file.
41056         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
41057
41058         * modules/unilbrk/u8-width-linebreaks-tests: New file.
41059         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
41060
41061         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
41062         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
41063
41064         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
41065         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
41066
41067         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
41068         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
41069
41070         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
41071         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
41072
41073 2008-05-10  Bruno Haible  <bruno@clisp.org>
41074
41075         Split up 'linebreak' module.
41076         * lib/unilbrk.h: New file, based on lib/linebreak.h.
41077         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
41078         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
41079         modifications.
41080         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
41081         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
41082         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
41083         lib/linebreak.c.
41084         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
41085         lib/linebreak.c.
41086         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
41087         lib/linebreak.c.
41088         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
41089         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
41090         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
41091         lib/linebreak.c.
41092         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
41093         lib/linebreak.c.
41094         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
41095         lib/linebreak.c.
41096         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
41097         lib/linebreak.c.
41098         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
41099         lib/linebreak.c.
41100         * modules/unilbrk/base: New file.
41101         * modules/unilbrk/tables: New file.
41102         * modules/unilbrk/u8-possible-linebreaks: New file.
41103         * modules/unilbrk/u16-possible-linebreaks: New file.
41104         * modules/unilbrk/u32-possible-linebreaks: New file.
41105         * modules/unilbrk/ulc-common: New file.
41106         * modules/unilbrk/ulc-possible-linebreaks: New file.
41107         * modules/unilbrk/u8-width-linebreaks: New file.
41108         * modules/unilbrk/u16-width-linebreaks: New file.
41109         * modules/unilbrk/u32-width-linebreaks: New file.
41110         * modules/unilbrk/ulc-width-linebreaks: New file.
41111         * lib/linebreak.h: Remove file.
41112         * lib/linebreak.c: Remove file.
41113         * m4/linebreak.m4: Remove file.
41114         * modules/linebreak: Remove file.
41115         * NEWS: Mention the changes.
41116
41117 2008-05-09  Eric Blake  <ebb9@byu.net>
41118
41119         Add xmemdup0.
41120         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
41121         implementation.
41122         * lib/xmalloc.c (xmemdup0): New C implementation.
41123
41124 2008-05-08  Bruno Haible  <bruno@clisp.org>
41125
41126         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
41127
41128 2008-05-07  Eric Blake  <ebb9@byu.net>
41129
41130         Support cross-compilation of <wctype.h>.
41131         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
41132         AC_CACHE_CHECK.
41133
41134 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
41135
41136         * build-aux/vc-list-files: Add support for bzr.
41137
41138 2008-05-03  Jim Meyering  <meyering@redhat.com>
41139
41140         avoid failed assertion with tight malloc
41141         * tests/test-getndelim2.c: Correct an off-by-one assertion.
41142
41143 2008-05-03  Simon Josefsson  <simon@josefsson.org>
41144
41145         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
41146         are needed from arpa/inet.h.
41147         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
41148         Reported by Bruno Haible.
41149
41150 2008-05-02  Jim Meyering  <meyering@redhat.com>
41151
41152         avoid compilation error on FreeBSD 6
41153         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
41154
41155 2008-05-01  Jim Meyering  <meyering@redhat.com>
41156
41157         useless-if-before-free: correct --help's exit status description
41158         * build-aux/useless-if-before-free (usage): Like grep, exit 0
41159         for one or more matches, etc.  Reported by Bruno Haible.
41160
41161         vc-list-files: make the stand-alone gnulib test work
41162         * modules/vc-list-files-tests (configure.ac):
41163         Define and AC_SUBST abs_aux_dir.
41164         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
41165         $(abs_top_srcdir) to each script and having each of them
41166         duplicate the work of setting PATH, set PATH here, using
41167         the new variable, abs_aux_dir instead.
41168         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
41169         * tests/test-vc-list-files-git.sh: Likewise.
41170         Reported by Bruno Haible.
41171
41172 2008-05-01  Bruno Haible  <bruno@clisp.org>
41173
41174         * lib/getndelim2.c (getndelim2): Fix newsize computation during
41175         reallocation. Rename 'done' to 'found_delimiter'.
41176
41177 2008-05-01  Jim Meyering  <meyering@redhat.com>
41178
41179         vc-list-files: accommodate /bin/sh like the one from Solaris 10
41180         * build-aux/vc-list-files: Use `...`, not $(...).
41181
41182 2008-04-30  Jim Meyering  <meyering@redhat.com>
41183
41184         add tests for vc-list-files
41185         * modules/vc-list-files-tests: New module.
41186         * tests/test-vc-list-files-cvs.sh: New file.
41187         * tests/test-vc-list-files-git.sh: New file.
41188
41189         avoid a warning from gcc
41190         * lib/getndelim2.c (IF_LINT): Define.
41191         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
41192
41193         vc-list-files: work properly with build-aux/cvsu, too
41194         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
41195         to all cvs-based clauses.
41196
41197         vc-list-files: work properly in the CVS+awk case, too
41198         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
41199
41200         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
41201         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
41202         take more than one file argument, so .  Add quotes, just in case $dir
41203         ever contains a shell meta-character.  Prompted by Soren Hansen in
41204         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
41205
41206 2008-04-29  Eric Blake  <ebb9@byu.net>
41207
41208         Optimize getndelim2 to use block operations when possible.
41209         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
41210         freadseek, and memchr2.
41211         * lib/getndelim2.c (getndelim2): Use them for block reads.
41212
41213 2008-04-29  Bruno Haible  <bruno@clisp.org>
41214
41215         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
41216         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41217         * modules/inet_ntop (Depends-on): Add extensions.
41218         * modules/inet_pton (Depends-on): Likewise.
41219         Reported by Simon Josefsson.
41220
41221 2008-04-29  Jim Meyering  <meyering@redhat.com>
41222
41223         When the is more than one match in a block, match all of them.
41224         * build-aux/useless-if-before-free: Iterate through each block
41225         until there are no more matches.
41226
41227         Fix broken useless-if-before-free script.
41228         * build-aux/useless-if-before-free: Fix typo: missing "?" after
41229         the expression to match cast of argument to free-like function.
41230
41231 2008-04-29  Eric Blake  <ebb9@byu.net>
41232
41233         Use new header.
41234         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
41235
41236 2008-04-29  Jim Meyering  <meyering@redhat.com>
41237
41238         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
41239         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
41240         by gnulib to exist and to declare e.g., inet_ntop.
41241         Don't include "inet_ntop.h", now removed.
41242
41243         * m4/arpa_inet_h.m4: Remove trailing blanks.
41244
41245 2008-04-29  Eric Blake  <ebb9@byu.net>
41246
41247         Silence valgrind on safe reads beyond potential array bounds.
41248         * lib/rawmemchr.valgrind: New file.
41249         * lib/strchrnul.valgrind: Likewise.
41250         * modules/rawmemchr (Files): Distribute new file.
41251         * modules/strchrnul (Files): Likewise.
41252         Suggested by Bruno Haible.
41253
41254 2008-04-29  Bruno Haible  <bruno@clisp.org>
41255
41256         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
41257         (inet_ntop, inet_pton): Change portability warning's wording.
41258         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
41259         Invoke gl_CHECK_NEXT_HEADERS.
41260         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
41261         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
41262         set ARPA_INET_H.
41263         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41264         * modules/arpa_inet (Description): No longer only for systems that
41265         lack it.
41266         (Depends-on): Add include_next.
41267         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
41268         HAVE_ARPA_INET_H.
41269
41270 2008-04-29  Jim Meyering  <meyering@redhat.com>
41271
41272         * modules/mkdir (License): Re-license as LGPLv2+.
41273
41274 2008-04-29  Bruno Haible  <bruno@clisp.org>
41275
41276         * modules/rawmemchr (Maintainer): Set to Eric.
41277         * modules/strchrnul (Maintainer): Likewise.
41278
41279 2008-04-29  Simon Josefsson  <simon@josefsson.org>
41280
41281         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
41282         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
41283
41284         * modules/arpa_inet (arpa/inet.h): Use them.
41285
41286 2008-04-28  Eric Blake  <ebb9@byu.net>
41287
41288         Test getndelim2.
41289         * modules/getndelim2-tests: New file.
41290         * tests/test-getndelim2.c: Likewise.
41291         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
41292         stream.
41293         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
41294
41295         * MODULES.html.sh: Document new module.
41296
41297 2008-04-20  Bruno Haible  <bruno@clisp.org>
41298
41299         * lib/c-stack.c (die): Use raise.
41300         * modules/c-stack (Depends-on): Add raise.
41301
41302 2008-04-28  Bruno Haible  <bruno@clisp.org>
41303
41304         Expect rpmatch to be declared.
41305         * lib/yesno.c (rpmatch): Remove declaration.
41306
41307         Declare rpmatch.
41308         * lib/stdlib.in.h (rpmatch): New declaration.
41309         * lib/rpmatch.c: Include <stdlib.h> first.
41310         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
41311         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
41312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
41313         HAVE_RPMATCH.
41314         * modules/rpmatch (Depends-on): Add stdlib, extensions.
41315         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41316         (Include): Set to <stdlib.h>.
41317         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
41318         HAVE_RPMATCH.
41319         * NEWS: Document the change.
41320
41321 2008-04-28  Bruno Haible  <bruno@clisp.org>
41322
41323         Change rpmatch to use nl_langinfo when appropriate.
41324         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
41325         (N_): New macro.
41326         (localized_pattern): New function/macro.
41327         (try): Remove match, nomatch arguments. Copy the pattern into safe
41328         memory before caching it.
41329         (rpmatch): Use localized_pattern. Add translator comments.
41330         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
41331         Suggested by Eric Blake.
41332         * modules/rpmatch (Depends-on): Add stdbool.
41333
41334 2008-04-28  Eric Blake  <ebb9@byu.net>
41335
41336         Add rawmemchr module, matching glibc.
41337         * modules/string (Makefile.am): New indicator.
41338         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
41339         * lib/string.in.h (rawmemchr): Declare when appropriate.
41340         * modules/rawmemchr: New file.
41341         * m4/rawmemchr.m4: Likewise.
41342         * lib/rawmemchr.c: Likewise.
41343         * modules/rawmemchr-tests: Likewise.
41344         * tests/test-rawmemchr.c: Likewise.
41345         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
41346         module.
41347         * modules/strchrnul (Depends-on): Add rawmemchr.
41348         * lib/strchrnul.c (strchrnul): Optimize a corner case.
41349
41350         Whitespace cleanup.
41351         * tests/test-strchrnul.c: Reindent.
41352         * lib/strchrnul.c: Likewise.
41353
41354         Optimize and test strchrnul.
41355         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
41356         * modules/strchrnul-tests: New file.
41357         * tests/test-strchrnul.c: Likewise.
41358
41359         Remove intprops dependency.
41360         * modules/memchr (Depends-on): Remove intprops.
41361         * modules/memrchr (Depends-on): Likewise.
41362         * modules/memchr2 (Depends-on): Likewise.
41363         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
41364         * lib/memrchr.c (__memrchr): Likewise.
41365         * lib/memrchr2.c (memchr2): Likewise.
41366         Reported by Simon Josefsson.
41367
41368 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41369
41370         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
41371         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41372
41373 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41374
41375         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
41376
41377         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
41378
41379         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
41380
41381         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
41382         declarations.
41383         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
41384
41385         * m4/inet_pton.m4: Don't check for header files.
41386
41387         * m4/inet_ntop.m4: Don't check for header files.
41388
41389 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41390
41391         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
41392         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
41393         trigger for cygwin).
41394         Reported by Bruno Haible  <bruno@clisp.org>.
41395
41396 2008-04-28  Bruno Haible  <bruno@clisp.org>
41397
41398         * doc/posix-functions/strdup.texi: Mention mingw problem.
41399
41400 2008-04-27  Bruno Haible  <bruno@clisp.org>
41401
41402         * modules/stat-time-tests (Depends-on): Add sleep.
41403         * tests/test-stat-time.c (force_unlink): New function.
41404         (cleanup): Use it.
41405         (test_mtime): Remove the ctime related tests.
41406         (test_ctime): New function, containing the ctime related tests.
41407         (main): Call test_ctime, except on native Windows platforms.
41408
41409 2008-04-27  Bruno Haible  <bruno@clisp.org>
41410
41411         * lib/rpmatch.c (rpmatch): Add some comments.
41412         Reported by James Youngman <jay@gnu.org>.
41413
41414 2008-04-27  Bruno Haible  <bruno@clisp.org>
41415
41416         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
41417         quiet NaNs.
41418
41419 2008-04-27  Bruno Haible  <bruno@clisp.org>
41420
41421         Make test-yesno.sh work on mingw.
41422         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
41423         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
41424         (main): Set stdin to binary mode.
41425         * modules/yesno-tests (Depends-on): Add binary-io.
41426
41427 2008-04-27  Bruno Haible  <bruno@clisp.org>
41428
41429         Fix 'isfinite' on x86, x86_64, ia64 platforms.
41430         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
41431         argument that lie outside the IEEE 854 domain.
41432         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
41433         (gl_ISFINITE): Use it.
41434         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
41435
41436 2008-04-27  Bruno Haible  <bruno@clisp.org>
41437
41438         Allow local renaming in config.h.
41439         * lib/memrchr.c (memrchr): Don't undefine outside libc.
41440
41441 2008-04-27  Bruno Haible  <bruno@clisp.org>
41442
41443         * lib/memchr.c (__memchr): Change type of 'i'.
41444         * lib/memchr2.c (memchr2): Likewise.
41445
41446 2008-04-26  Eric Blake  <ebb9@byu.net>
41447         and Bruno Haible  <bruno@clisp.org>
41448
41449         Optimize and test memrchr.
41450         * modules/memrchr (Depends-on): Add intprops.
41451         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
41452         * modules/memrchr-tests: New file.
41453         * tests/test-memrchr.c: New file.
41454
41455 2008-04-26  Bruno Haible  <bruno@clisp.org>
41456
41457         Add tentative support for DragonFly BSD.
41458         * lib/stdio-impl.h: Add macros for DragonFly BSD.
41459         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
41460         fp.
41461         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41462         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
41463         * lib/fpurge.c (fpurge): Likewise.
41464         * lib/freadable.c (freaadable): Likewise.
41465         * lib/freadahead.c (freadahead): Likewise.
41466         * lib/freading.c (freading): Likewise.
41467         * lib/freadptr.c (freadptr): Likewise.
41468         * lib/freadseek.c (freadptrinc): Likewise.
41469         * lib/fseeko.c (fseeko): Likewise.
41470         * lib/fseterr.c (fseterr): Likewise.
41471         * lib/fwritable.c (fwritable): Likewise.
41472         * lib/fwriting.c (fwriting): Likewise.
41473
41474 2008-04-26  Bruno Haible  <bruno@clisp.org>
41475
41476         * lib/stdio-impl.h: New file.
41477         * lib/fbufmode.c: Include stdio-impl.h.
41478         (fbufmode): Use fp_, remove redundant #defines.
41479         * lib/fflush.c: Include stdio-impl.h.
41480         (clear_ungetc_buffer): Remove redundant #defines.
41481         * lib/fpurge.c: Include stdio-impl.h.
41482         (fpurge): Remove redundant #defines.
41483         * lib/freadable.c: Include stdio-impl.h.
41484         (freadable): Remove redundant #defines.
41485         * lib/freadahead.c: Include stdio-impl.h.
41486         (freadahead): Remove redundant #defines.
41487         * lib/freading.c: Include stdio-impl.h.
41488         (freading): Remove redundant #defines.
41489         * lib/freadptr.c: Include stdio-impl.h.
41490         (freadptr): Remove redundant #defines.
41491         * lib/freadseek.c: Include stdio-impl.h.
41492         (freadptrinc): Remove redundant #defines.
41493         * lib/fseeko.c: Include stdio-impl.h.
41494         (rpl_fseeko): Remove redundant #defines.
41495         * lib/fseterr.c: Include stdio-impl.h.
41496         (fseterr): Remove redundant #defines.
41497         * lib/fwritable.c: Include stdio-impl.h.
41498         (fwritable: Remove redundant #defines.
41499         * lib/fwriting.c: Include stdio-impl.h.
41500         (fwriting): Remove redundant #defines.
41501         * modules/fbufmode (Files): Add lib/stdio-impl.h.
41502         * modules/fflush (Files): Likewise.
41503         * modules/fpurge (Files): Likewise.
41504         * modules/freadable (Files): Likewise.
41505         * modules/freadahead (Files): Likewise.
41506         * modules/freading (Files): Likewise.
41507         * modules/freadptr (Files): Likewise.
41508         * modules/freadseek (Files): Likewise.
41509         * modules/fseeko (Files): Likewise.
41510         * modules/fseterr (Files): Likewise.
41511         * modules/fwritable (Files): Likewise.
41512         * modules/fwriting (Files): Likewise.
41513
41514 2008-04-26  Bruno Haible  <bruno@clisp.org>
41515
41516         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41517         restore_seek_optimization, update_fpos_cache): New functions, extracted
41518         from rpl_fflush.
41519         (rpl_fflush): Use them.
41520         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
41521         (gl_REPLACE_FFLUSH): Use it.
41522
41523 2008-04-26  Bruno Haible  <bruno@clisp.org>
41524
41525         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
41526         on Solaris.
41527         * tests/test-xstrtoimax.sh: Likewise.
41528         * tests/test-xstrtoumax.sh: Likewise.
41529         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41530
41531 2008-04-26  Bruno Haible  <bruno@clisp.org>
41532
41533         * modules/memchr-tests: New file.
41534         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
41535
41536 2008-04-26  Eric Blake  <ebb9@byu.net>
41537             Bruno Haible  <bruno@clisp.org>
41538
41539         * lib/memchr.c: Include intprops.h.
41540         (__memchr): Optimize parallel detection of matching bytes. Rename local
41541         variables. Add explanatory comments.
41542
41543 2008-04-26  Bruno Haible  <bruno@clisp.org>
41544
41545         Fix module 'memchr', broken since 2000-10-28.
41546         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
41547
41548 2008-04-26  Bruno Haible  <bruno@clisp.org>
41549
41550         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
41551         comments.
41552
41553 2008-04-25  Eric Blake  <ebb9@byu.net>
41554
41555         Use native fstatat on cygwin 1.7.0.
41556         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
41557         first.
41558
41559 2008-04-23  Eric Blake  <ebb9@byu.net>
41560
41561         Improve memchr2 performance.
41562         * lib/memchr2.c (memchr2): Further optimize parallel detection of
41563         NUL bytes.
41564         * modules/memchr2 (Depends-on): Use intprops.h.
41565
41566 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41567
41568         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
41569         an inline function instead of a CPP macro.  Patch by Ben Pfaff
41570         <blp@cs.stanford.edu>.
41571
41572 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41573
41574         * lib/arpa_inet.in.h: New file.
41575
41576         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
41577         (Makefile.am): Sed in substitute header file.
41578
41579         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
41580         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
41581
41582         * modules/inet_ntop (configure.ac): Use
41583         gl_ARPA_INET_MODULE_INDICATOR.
41584
41585         * modules/inet_pton (configure.ac): Use
41586         gl_ARPA_INET_MODULE_INDICATOR.
41587
41588 2008-04-22  Jim Meyering  <meyering@redhat.com>
41589
41590         * modules/verify (License): Re-license as LGPLv2+.
41591
41592 2008-04-22  Simon Josefsson  <simon@josefsson.org>
41593
41594         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
41595         parameter to void* as per POSIX standard (MinGW uses char*).
41596
41597 2008-04-21  Bruno Haible  <bruno@clisp.org>
41598
41599         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41600         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41601         Define to replacements if REPLACE_ISWCNTRL is 1.
41602         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
41603         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
41604         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
41605         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
41606         what it fixes.
41607         * doc/posix-functions/iswalpha.texi: Likewise.
41608         * doc/posix-functions/iswblank.texi: Likewise.
41609         * doc/posix-functions/iswcntrl.texi: Likewise.
41610         * doc/posix-functions/iswdigit.texi: Likewise.
41611         * doc/posix-functions/iswgraph.texi: Likewise.
41612         * doc/posix-functions/iswlower.texi: Likewise.
41613         * doc/posix-functions/iswprint.texi: Likewise.
41614         * doc/posix-functions/iswpunct.texi: Likewise.
41615         * doc/posix-functions/iswspace.texi: Likewise.
41616         * doc/posix-functions/iswupper.texi: Likewise.
41617         * doc/posix-functions/iswxdigit.texi: Likewise.
41618         Reported by Alain Guibert.
41619
41620 2008-04-21  Bruno Haible  <bruno@clisp.org>
41621
41622         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
41623         Patch by Alain Guibert.
41624
41625 2008-04-21  Bruno Haible  <bruno@clisp.org>
41626
41627         Fix test failures on mingw.
41628         * tests/test-xstrtol.c (print_no_progname): New function.
41629         (main): Install it in error_print_progname hook.
41630         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
41631         * tests/test-xstrtoimax.sh: Likewise.
41632         * tests/test-xstrtoumax.sh: Likewise.
41633
41634 2008-04-21  Bruno Haible  <bruno@clisp.org>
41635
41636         Fix test failure on mingw.
41637         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
41638
41639 2008-04-21  Bruno Haible  <bruno@clisp.org>
41640
41641         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
41642         Actually assign a value.
41643
41644 2008-04-20  Bruno Haible  <bruno@clisp.org>
41645
41646         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41647         take 2.
41648         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41649         'canonicalize-lgpl' module is also used.
41650         * lib/canonicalize-lgpl.c: Undo last change.
41651         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41652
41653 2008-04-20  Bruno Haible  <bruno@clisp.org>
41654
41655         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41656         config.h. Provide _mkdir based fallback for mingw.
41657         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41658         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41659         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41660         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41661         rather than defining mkdir in config.h.
41662         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41663         (gl_SYS_STAT_H_DEFAULTS): New macro.
41664         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41665         HAVE_IO_H any more.
41666         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41667         HAVE_DECL_MKDIR and HAVE_IO_H.
41668
41669 2008-04-20  Bruno Haible  <bruno@clisp.org>
41670
41671         * lib/isapipe.c: Port to native Windows platforms.
41672
41673 2008-04-20  Bruno Haible  <bruno@clisp.org>
41674
41675         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41676
41677 2008-04-21  Eric Blake  <ebb9@byu.net>
41678
41679         Work around preprocessors that don't handle UINTMAX_MAX.
41680         * lib/memchr2.c (memchr2): Avoid embedded #if.
41681         Reported by Alain Guibert, fix suggested by Bruno Haible.
41682
41683 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41684
41685         * doc/posix-functions/strftime.texi (strftime): Explain better
41686         Windows incompatibility.  Suggested by Micah Cowan
41687         <micah@cowan.name>.
41688
41689 2008-04-20  Bruno Haible  <bruno@clisp.org>
41690
41691         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41692         unistr/u8-mblen.
41693
41694 2008-04-20  Bruno Haible  <bruno@clisp.org>
41695
41696         Fix test failure on platforms with non-GNU iconv.
41697         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41698         (U_TO_U8): Use it, rather than u16_to_u8.
41699         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41700         units at the end of the input string.
41701         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41702
41703 2008-04-20  Bruno Haible  <bruno@clisp.org>
41704
41705         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41706         when the resulting length is 0.
41707         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41708
41709 2008-04-20  Bruno Haible  <bruno@clisp.org>
41710
41711         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41712         works.
41713         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41714
41715 2008-04-20  Bruno Haible  <bruno@clisp.org>
41716
41717         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41718         * modules/tsearch-tests (configure.ac): Test for initstate function.
41719
41720 2008-04-20  Bruno Haible  <bruno@clisp.org>
41721
41722         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41723         for nlink_t if missing.
41724         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41725
41726 2008-04-19  Bruno Haible  <bruno@clisp.org>
41727
41728         Work around snprintf bug on Linux libc5.
41729         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41731         gl_SNPRINTF_SIZE1.
41732         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41733         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41734         that test failed.
41735         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41736         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41737         * modules/snprintf (Files): Add m4/printf.m4.
41738         * modules/vsnprintf (Files): Likewise.
41739         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41740         * doc/posix-functions/vsnprintf.texi: Likewise.
41741
41742 2008-04-19  Bruno Haible  <bruno@clisp.org>
41743
41744         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41745         from 0.0058 to less than 10^-7.
41746
41747 2008-04-19  Bruno Haible  <bruno@clisp.org>
41748
41749         Fix rounding when a precision is given.
41750         * lib/vasnprintf.c (is_borderline): New function.
41751         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41752         9...9x.
41753         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41754         %e, %g.
41755         * tests/test-vasprintf-posix.c (test_function): Likewise.
41756         * tests/test-snprintf-posix.h (test_function): Likewise.
41757         * tests/test-sprintf-posix.h (test_function): Likewise.
41758         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41759         * tests/test-printf-posix.h (test_function): Likewise.
41760         * tests/test-printf-posix.output: Update.
41761         Reported by John Darrington <john@darrington.wattle.id.au> via
41762         Ben Pfaff <blp@cs.stanford.edu>.
41763
41764 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41765
41766         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41767         Suggested by Bruno Haible <bruno@clisp.org>.
41768
41769 2008-04-17  Bruno Haible  <bruno@clisp.org>
41770
41771         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41772         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41773         implementation.
41774         Patch by Bruce Merry <bmerry@gmail.com>.
41775
41776 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41777
41778         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41779         doesn't work under Windows.
41780
41781 2008-04-16  Bruno Haible  <bruno@clisp.org>
41782
41783         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41784         New macros.
41785         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41786         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41787         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41788         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41789         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41790         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41791         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41792         macros.
41793         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41794         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41795         Northern Sotho, Uighur.
41796
41797 2008-04-16  Bruno Haible  <bruno@clisp.org>
41798
41799         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41800         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41801         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41802         Reported by Daniel Bergström <daniel@octocode.com>.
41803
41804 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41805             Bruno Haible  <bruno@clisp.org>
41806
41807         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41808         function.
41809         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41810         New functions, mostly extracted from gl_locale_name_default.
41811         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41812
41813 2008-04-16  Eric Blake  <ebb9@byu.net>
41814
41815         Adjust strtod detection to catch glibc 2.7 bug.
41816         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41817         Reported by John Gatewood Ham.
41818
41819 2008-04-16  Bruno Haible  <bruno@clisp.org>
41820
41821         Add tentative support for Linux libc5.
41822         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41823         * lib/fpurge.c (fpurge): Likewise.
41824         * lib/freadable.c (freadable): Likewise.
41825         * lib/freadahead.c (freadahead): Likewise.
41826         * lib/freading.c (freading): Likewise.
41827         * lib/freadptr.c (freadptr): Likewise.
41828         * lib/freadseek.c (freadptrinc): Likewise.
41829         * lib/fseeko.c (rpl_fseeko): Likewise.
41830         * lib/fseterr.c (fseterr): Likewise.
41831         * lib/fwritable.c (fwritable): Likewise.
41832         * lib/fwriting.c (fwriting): Likewise.
41833         Reported by Alain Guibert <alguibert+bts@free.fr>.
41834
41835 2008-04-15  Bruno Haible  <bruno@clisp.org>
41836
41837         * modules/mathl (configure.ac): Define module indicator.
41838
41839 2008-04-15  Bruno Haible  <bruno@clisp.org>
41840
41841         * lib/logl.c (logl): Remove unused variables.
41842
41843 2008-04-15  Bruno Haible  <bruno@clisp.org>
41844
41845         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41846         fails.
41847
41848 2008-04-15  Bruno Haible  <bruno@clisp.org>
41849
41850         * lib/trim.c (trim2): Fix argument of isspace() macro.
41851
41852 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41853
41854         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41855         to 0.
41856         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41857
41858 2008-04-14  Bruno Haible  <bruno@clisp.org>
41859
41860         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41861         AC_LANG_PROGRAM argument.
41862         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41863         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41864         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41865         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41866         * m4/math_h.m4 (gl_MATH_H): Likewise.
41867         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41868         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41869         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41870         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41871         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41872         * m4/regex.m4 (gl_REGEX): Likewise.
41873         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41874         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41876         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41877         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41878         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41879         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41880         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41881
41882 2008-04-14  Jim Meyering  <meyering@redhat.com>
41883
41884         test-strtod: fix typos: s/abs/fabs/
41885         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41886
41887 2008-04-13  Bruno Haible  <bruno@clisp.org>
41888
41889         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41890         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41891         module is also used and while not building the reloc-wrapper.
41892
41893 2008-04-13  Bruno Haible  <bruno@clisp.org>
41894
41895         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41896
41897 2008-04-13  Bruno Haible  <bruno@clisp.org>
41898
41899         Fix AIX compilation failure introduced on 2008-04-02.
41900         * tests/test-frexp.c (exp): Undefine before redefining.
41901         * tests/test-frexpl.c (exp): Likewise.
41902
41903 2008-04-13  Bruno Haible  <bruno@clisp.org>
41904
41905         Work around a HP-UX stdio bug.
41906         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41907         * tests/test-ftello.c (main): Likewise.
41908         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41909         * doc/posix-functions/ftello.texi: Likewise.
41910
41911 2008-04-13  Bruno Haible  <bruno@clisp.org>
41912
41913         Make test-signbit pass on HP-UX/hppa.
41914         * tests/test-signbit.c (minus_zerol): New variable.
41915         (test_signbitl): Use it.
41916
41917 2008-04-13  Bruno Haible  <bruno@clisp.org>
41918
41919         Make truncl work on OSF/1 4.0.
41920         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41921         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41922         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41924         HAVE_DECL_TRUNCL.
41925         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41926         HAVE_DECL_TRUNCL.
41927         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41928
41929 2008-04-13  Bruno Haible  <bruno@clisp.org>
41930
41931         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41932
41933 2008-04-13  Bruno Haible  <bruno@clisp.org>
41934
41935         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41936         expression, so as to avoid HP-UX 11 cc compiler bug.
41937
41938 2008-04-13  Bruno Haible  <bruno@clisp.org>
41939
41940         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41941
41942 2008-04-13  Bruno Haible  <bruno@clisp.org>
41943
41944         * lib/git-merge-changelog.c: Remove empty declaration outside of
41945         functions.
41946
41947 2008-04-13  Bruno Haible  <bruno@clisp.org>
41948
41949         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41950
41951 2008-04-13  Bruno Haible  <bruno@clisp.org>
41952
41953         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41954         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41955         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41956         also if it exists but lacks definitions of the SHUT_* macros.
41957         * modules/sys_socket (Description): Update.
41958         Reported by Elbert Pol <e.pol@chello.nl>.
41959
41960 2008-04-13  Bruno Haible  <bruno@clisp.org>
41961
41962         * lib/localcharset.c (OS2): Don't redefine if already defined.
41963         Reported by Elbert Pol <e.pol@chello.nl>.
41964
41965 2008-04-13  Bruno Haible  <bruno@clisp.org>
41966
41967         * lib/binary-io.h [__EMX__]: Include <io.h>.
41968         Reported by Elbert Pol <e.pol@chello.nl>.
41969
41970 2008-04-12  Bruno Haible  <bruno@clisp.org>
41971
41972         * lib/fpucw.h: Enable the definitions also for x86_64.
41973         Needed for NetBSD/x86_64.
41974         Reported by Thomas Klausner <tk@giga.or.at>.
41975
41976 2008-04-12  Bruno Haible  <bruno@clisp.org>
41977
41978         * tests/test-strtod.c: Include isnand.h.
41979         (main): Use isnand instead of isnan.
41980         Reported by Jim Meyering.
41981
41982 2008-04-12  Bruno Haible  <bruno@clisp.org>
41983
41984         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41985         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41986
41987 2008-04-12  Jim Meyering  <meyering@redhat.com>
41988
41989         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41990
41991 2008-04-12  Bruno Haible  <bruno@clisp.org>
41992
41993         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41994         Reported by Elbert Pol <e.pol@chello.nl>.
41995
41996 2008-04-12  Eric Blake  <ebb9@byu.net>
41997
41998         Work around Solaris 10 math.h bug.
41999         * m4/math_h.m4 (gl_MATH_H): Check for bug.
42000         (gl_MATH_H_DEFAULTS): Set up default.
42001         * modules/math (Makefile.am): Replace new indicators.
42002         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
42003         * tests/test-math.c (main): Test this.
42004         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
42005         * doc/posix-headers/math.texi (math.h): Mention bug.
42006         Reported by Nelson H. F. Beebe and Jim Meyering.
42007
42008 2008-04-11  Bruno Haible  <bruno@clisp.org>
42009
42010         Adapt to future versions of Apple GCC.
42011         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
42012         Reported by Peter O'Gorman <peter@pogma.com>.
42013
42014 2008-04-11  Bruno Haible  <bruno@clisp.org>
42015
42016         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
42017
42018 2008-04-11  Bruno Haible  <bruno@clisp.org>
42019
42020         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
42021
42022         * modules/getaddrinfo-tests (Makefile.am): Define
42023         test_getaddrinfo_LDADD.
42024
42025 2008-04-11  Bruno Haible  <bruno@clisp.org>
42026
42027         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
42028         (init): Fix syntax error.
42029         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
42030         is declared.
42031
42032 2008-04-11  Bruno Haible  <bruno@clisp.org>
42033
42034         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
42035         * modules/glob (Depends-on): Add stdbool.
42036
42037 2008-04-11  Bruno Haible  <bruno@clisp.org>
42038
42039         * lib/trim.c: Include <string.h>.
42040
42041 2008-04-11  Eric Blake  <ebb9@byu.net>
42042
42043         Avoid compile failure on OS/2.
42044         * lib/regex_internal.h (internal_function): Disable optimization
42045         on OS/2 (__EMX__), where it caused compiler error.
42046         Reported by Elbert Pol.
42047
42048 2008-04-11  Bruno Haible  <bruno@clisp.org>
42049
42050         Flush the standard error stream before aborting. Needed on mingw.
42051         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
42052         * tests/test-array_list.c (ASSERT): Likewise.
42053         * tests/test-array_oset.c (ASSERT): Likewise.
42054         * tests/test-avltree_list.c (ASSERT): Likewise.
42055         * tests/test-avltree_oset.c (ASSERT): Likewise.
42056         * tests/test-avltreehash_list.c (ASSERT): Likewise.
42057         * tests/test-binary-io.c (ASSERT): Likewise.
42058         * tests/test-byteswap.c (ASSERT): Likewise.
42059         * tests/test-c-ctype.c (ASSERT): Likewise.
42060         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
42061         * tests/test-c-strcasestr.c (ASSERT): Likewise.
42062         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
42063         * tests/test-c-strstr.c (ASSERT): Likewise.
42064         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
42065         * tests/test-canonicalize.c (ASSERT): Likewise.
42066         * tests/test-carray_list.c (ASSERT): Likewise.
42067         * tests/test-ceilf1.c (ASSERT): Likewise.
42068         * tests/test-ceilf2.c (ASSERT): Likewise.
42069         * tests/test-ceill.c (ASSERT): Likewise.
42070         * tests/test-count-one-bits.c (ASSERT): Likewise.
42071         * tests/test-fbufmode.c (ASSERT): Likewise.
42072         * tests/test-fflush2.c (ASSERT): Likewise.
42073         * tests/test-floorf1.c (ASSERT): Likewise.
42074         * tests/test-floorf2.c (ASSERT): Likewise.
42075         * tests/test-floorl.c (ASSERT): Likewise.
42076         * tests/test-fopen.c (ASSERT): Likewise.
42077         * tests/test-fpending.c (ASSERT): Likewise.
42078         * tests/test-fprintf-posix.c (ASSERT): Likewise.
42079         * tests/test-fpurge.c (ASSERT): Likewise.
42080         * tests/test-freadable.c (ASSERT): Likewise.
42081         * tests/test-freadahead.c (ASSERT): Likewise.
42082         * tests/test-freading.c (ASSERT): Likewise.
42083         * tests/test-freadptr.c (ASSERT): Likewise.
42084         * tests/test-freadptr2.c (ASSERT): Likewise.
42085         * tests/test-freadseek.c (ASSERT): Likewise.
42086         * tests/test-freopen.c (ASSERT): Likewise.
42087         * tests/test-frexp.c (ASSERT): Likewise.
42088         * tests/test-frexpl.c (ASSERT): Likewise.
42089         * tests/test-fseek.c (ASSERT): Likewise.
42090         * tests/test-fseeko.c (ASSERT): Likewise.
42091         * tests/test-fstrcmp.c (ASSERT): Likewise.
42092         * tests/test-ftell.c (ASSERT): Likewise.
42093         * tests/test-ftello.c (ASSERT): Likewise.
42094         * tests/test-func.c (ASSERT): Likewise.
42095         * tests/test-fwritable.c (ASSERT): Likewise.
42096         * tests/test-fwriting.c (ASSERT): Likewise.
42097         * tests/test-getdelim.c (ASSERT): Likewise.
42098         * tests/test-getline.c (ASSERT): Likewise.
42099         * tests/test-i-ring.c (ASSERT): Likewise.
42100         * tests/test-iconv-utf.c (ASSERT): Likewise.
42101         * tests/test-iconv.c (ASSERT): Likewise.
42102         * tests/test-isfinite.c (ASSERT): Likewise.
42103         * tests/test-isnand.c (ASSERT): Likewise.
42104         * tests/test-isnanf.c (ASSERT): Likewise.
42105         * tests/test-isnanl.h (ASSERT): Likewise.
42106         * tests/test-ldexpl.c (ASSERT): Likewise.
42107         * tests/test-linked_list.c (ASSERT): Likewise.
42108         * tests/test-linkedhash_list.c (ASSERT): Likewise.
42109         * tests/test-localename.c (ASSERT): Likewise.
42110         * tests/test-lseek.c (ASSERT): Likewise.
42111         * tests/test-mbscasecmp.c (ASSERT): Likewise.
42112         * tests/test-mbscasestr1.c (ASSERT): Likewise.
42113         * tests/test-mbscasestr2.c (ASSERT): Likewise.
42114         * tests/test-mbscasestr3.c (ASSERT): Likewise.
42115         * tests/test-mbscasestr4.c (ASSERT): Likewise.
42116         * tests/test-mbschr.c (ASSERT): Likewise.
42117         * tests/test-mbscspn.c (ASSERT): Likewise.
42118         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
42119         * tests/test-mbspbrk.c (ASSERT): Likewise.
42120         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
42121         * tests/test-mbsrchr.c (ASSERT): Likewise.
42122         * tests/test-mbsspn.c (ASSERT): Likewise.
42123         * tests/test-mbsstr1.c (ASSERT): Likewise.
42124         * tests/test-mbsstr2.c (ASSERT): Likewise.
42125         * tests/test-mbsstr3.c (ASSERT): Likewise.
42126         * tests/test-memchr2.c (ASSERT): Likewise.
42127         * tests/test-memmem.c (ASSERT): Likewise.
42128         * tests/test-open.c (ASSERT): Likewise.
42129         * tests/test-printf-frexp.c (ASSERT): Likewise.
42130         * tests/test-printf-frexpl.c (ASSERT): Likewise.
42131         * tests/test-printf-posix.c (ASSERT): Likewise.
42132         * tests/test-quotearg.c (ASSERT): Likewise.
42133         * tests/test-rbtree_list.c (ASSERT): Likewise.
42134         * tests/test-rbtree_oset.c (ASSERT): Likewise.
42135         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
42136         * tests/test-round1.c (ASSERT): Likewise.
42137         * tests/test-roundf1.c (ASSERT): Likewise.
42138         * tests/test-roundl.c (ASSERT): Likewise.
42139         * tests/test-signbit.c (ASSERT): Likewise.
42140         * tests/test-sleep.c (ASSERT): Likewise.
42141         * tests/test-snprintf-posix.c (ASSERT): Likewise.
42142         * tests/test-snprintf.c (ASSERT): Likewise.
42143         * tests/test-sprintf-posix.c (ASSERT): Likewise.
42144         * tests/test-stat-time.c (ASSERT): Likewise.
42145         * tests/test-strcasestr.c (ASSERT): Likewise.
42146         * tests/test-strerror.c (ASSERT): Likewise.
42147         * tests/test-striconv.c (ASSERT): Likewise.
42148         * tests/test-striconveh.c (ASSERT): Likewise.
42149         * tests/test-striconveha.c (ASSERT): Likewise.
42150         * tests/test-strsignal.c (ASSERT): Likewise.
42151         * tests/test-strstr.c (ASSERT): Likewise.
42152         * tests/test-strtod.c (ASSERT): Likewise.
42153         * tests/test-trunc1.c (ASSERT): Likewise.
42154         * tests/test-trunc2.c (ASSERT): Likewise.
42155         * tests/test-truncf1.c (ASSERT): Likewise.
42156         * tests/test-truncf2.c (ASSERT): Likewise.
42157         * tests/test-truncl.c (ASSERT): Likewise.
42158         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
42159         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
42160         * tests/test-vasnprintf.c (ASSERT): Likewise.
42161         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
42162         * tests/test-vasprintf.c (ASSERT): Likewise.
42163         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
42164         * tests/test-vprintf-posix.c (ASSERT): Likewise.
42165         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
42166         * tests/test-vsnprintf.c (ASSERT): Likewise.
42167         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
42168         * tests/test-wcwidth.c (ASSERT): Likewise.
42169         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
42170         * tests/test-xprintf-posix.c (ASSERT): Likewise.
42171         * tests/test-xvasprintf.c (ASSERT): Likewise.
42172         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
42173         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
42174         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
42175         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
42176         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
42177         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
42178         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
42179         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
42180         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
42181         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
42182         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
42183         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
42184         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
42185         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
42186         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
42187         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
42188         * tests/unictype/test-block_list.c (ASSERT): Likewise.
42189         * tests/unictype/test-block_of.c (ASSERT): Likewise.
42190         * tests/unictype/test-block_test.c (ASSERT): Likewise.
42191         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
42192         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
42193         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
42194         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
42195         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
42196         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
42197         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
42198         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
42199         * tests/unictype/test-combining.c (ASSERT): Likewise.
42200         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
42201         * tests/unictype/test-digit.c (ASSERT): Likewise.
42202         * tests/unictype/test-mirror.c (ASSERT): Likewise.
42203         * tests/unictype/test-numeric.c (ASSERT): Likewise.
42204         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
42205         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
42206         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
42207         * tests/unictype/test-scripts.c (ASSERT): Likewise.
42208         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
42209         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
42210         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
42211         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
42212         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
42213         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
42214         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
42215         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
42216         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
42217         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
42218         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
42219         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
42220         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
42221         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
42222         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
42223         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
42224         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
42225         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
42226         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
42227         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
42228         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
42229         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
42230         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
42231         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
42232         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
42233         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
42234         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
42235         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
42236         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
42237         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
42238         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
42239         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
42240         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
42241         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
42242         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
42243         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
42244         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
42245         Reported by Eric Blake.
42246
42247 2008-04-11  Bruno Haible  <bruno@clisp.org>
42248
42249         * lib/wchar.in.h: Tweak comment.
42250
42251 2008-04-11  Bruno Haible  <bruno@clisp.org>
42252
42253         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
42254         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
42255         gl_COMMON.
42256         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
42257
42258 2008-04-11  Bruno Haible  <bruno@clisp.org>
42259
42260         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
42261
42262 2008-04-11  Simon Josefsson  <simon@josefsson.org>
42263
42264         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
42265         of attempting to use non-existing /dev/*random.  Based on patch
42266         from Adam Strzelecki <ono@java.pl> in
42267         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
42268
42269 2008-04-08  Bruno Haible  <bruno@clisp.org>
42270
42271         Add tentative support for emx+gcc.
42272         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
42273         * lib/fpurge.c (fpurge): Likewise.
42274         * lib/freadable.c (freadable): Likewise.
42275         * lib/freadahead.c (freadahead): Likewise.
42276         * lib/freading.c (freading): Likewise.
42277         * lib/freadptr.c (freadptr): Likewise.
42278         * lib/freadseek.c (freadptrinc): Likewise.
42279         * lib/fseeko.c (rpl_fseeko): Likewise.
42280         * lib/fseterr.c (fseterr): Likewise.
42281         * lib/fwritable.c (fwritable): Likewise.
42282         * lib/fwriting.c (fwriting): Likewise.
42283         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
42284
42285 2008-04-09  Eric Blake  <ebb9@byu.net>
42286
42287         Avoid some autoconf warnings.
42288         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
42289         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
42290         * m4/afs.m4 (gl_AFS): Likewise.
42291         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
42292         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
42293         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42294         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
42295         (gl_INTEGER_TYPE_SUFFIX): Likewise.
42296         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
42297         (AC_CHECK_DECLS_ONCE): Likewise.
42298         Rename file...
42299         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
42300         gnulib-tool requires autoconf 2.59 or better.
42301         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
42302
42303 2008-04-08  Eric Blake  <ebb9@byu.net>
42304
42305         Use 'git describe --match' if present (added in git 1.5.5).
42306         * build-aux/git-version-gen: Limit result to tags that match 'v*'
42307         if possible.
42308
42309 2008-04-08  Bruno Haible  <bruno@clisp.org>
42310
42311         Add tentative support for OpenServer.
42312         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
42313         _ptr, _cnt.
42314         * lib/fpurge.c (fpurge): Likewise.
42315         * lib/freadable.c (freadable): Likewise.
42316         * lib/freadahead.c (freadahead): Likewise.
42317         * lib/freading.c (freading): Likewise.
42318         * lib/freadptr.c (freadptr): Likewise.
42319         * lib/freadseek.c (freadptrinc): Likewise.
42320         * lib/fseeko.c (rpl_fseeko): Likewise.
42321         * lib/fseterr.c (fseterr): Likewise.
42322         * lib/fwritable.c (fwritable): Likewise.
42323         * lib/fwriting.c (fwriting): Likewise.
42324         Reported by Roger Cornelius <rac@tenzing.org> and
42325         Brian K. White <brian@aljex.com>.
42326
42327 2008-04-06  Jim Meyering  <meyering@redhat.com>
42328
42329         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
42330
42331 2008-04-06  Bruno Haible  <bruno@clisp.org>
42332
42333         Avoid possible error with non-ASCII bytes in UTF-8 locales.
42334         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
42335         * tests/test-printf-posix.sh: Likewise.
42336         * tests/test-vfprintf-posix.sh: Likewise.
42337         * tests/test-vprintf-posix.sh: Likewise.
42338         * tests/test-xprintf-posix.sh: Likewise.
42339
42340 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42341
42342         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
42343         hide error from 'ls', needed on OS/2.
42344         Report by Elbert Pol <elbert.pol@gmail.com>.
42345
42346 2008-04-04  Eric Blake  <ebb9@byu.net>
42347
42348         Make test-fseeko.c failures meaningful.
42349         * tests/test-fseeko.c: Print line number on failure.
42350         * tests/test-fseek.c: Likewise.
42351         Reported by Nelson H. F. Beebe.
42352
42353         Improve strtod bug detection check.
42354         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
42355         required for Solaris 10.
42356         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
42357
42358 2008-04-04  Bruno Haible  <bruno@clisp.org>
42359
42360         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
42361         by m4/setenv.m4.
42362
42363 2008-04-03  Eric Blake  <ebb9@byu.net>
42364
42365         Ensure sane .version contents.
42366         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
42367         version string.
42368         * build-aux/git-version-gen: Improve documentation.
42369
42370         Make GNU make output nicer.
42371         * top/GNUmakefile [!_have-Makefile]: Add dependency on
42372         MAKECMDGOALS to enforce message for all command line targets.  Set
42373         srcdir for use in maint.mk.
42374
42375         Another maintainer tweak.
42376         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
42377         a target that regenerates version.
42378
42379 2008-04-03  Jim Meyering  <meyering@redhat.com>
42380
42381         vc-list-files: don't cause coreutils "make po-check" failure
42382         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
42383
42384 2008-04-03  Eric Blake  <ebb9@byu.net>
42385
42386         Allow VPATH usage of vc-list-files.
42387         * build-aux/vc-list-files (scriptversion): Add timestamp.
42388         (options): Add --help, --version, -C.
42389         (CVS): Support installed cvsu.
42390
42391 2008-04-02  Bruno Haible  <bruno@clisp.org>
42392
42393         Avoid some "statement with no effect" warnings from gcc.
42394         * tests/test-wctype.c (main): Explicitly ignore unused values.
42395         Reported by Jim Meyering.
42396
42397 2008-04-02  Jim Meyering  <meyering@redhat.com>
42398
42399         Avoid some warnings from "gcc -Wshadow".
42400         * tests/test-frexp.c (exp): Define to a different identifier.
42401         * tests/test-frexpl.c (exp): Likewise.
42402
42403 2008-04-03  Jim Meyering  <meyering@redhat.com>
42404
42405         bootstrap: remove dangling *.[ch] symlinks from lib
42406         * build-aux/bootstrap [dangling symlink removal]: Move find's
42407         -depth option to precede all others, to avoid a warning.
42408         Remove *.[ch] files too, and from "$source_base" (usually lib/).
42409
42410 2008-04-02  Bruno Haible  <bruno@clisp.org>
42411
42412         Avoid some warnings from "gcc -Wshadow".
42413         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
42414         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
42415         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
42416         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
42417         Reported by Jim Meyering.
42418
42419 2008-04-01  Bruno Haible  <bruno@clisp.org>
42420
42421         Fix test to work on IRIX 6.5 with cc.
42422         * tests/test-math.c (numeric_equal): New function.
42423         (main): Use it.
42424
42425 2008-04-01  Bruno Haible  <bruno@clisp.org>
42426
42427         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
42428
42429 2008-04-01  Bruno Haible  <bruno@clisp.org>
42430
42431         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
42432         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42433         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
42434         (Depends-on): Remove math.
42435
42436         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
42437         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42438         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
42439         (Depends-on): Remove math.
42440
42441         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
42442         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42443         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
42444         (Depends-on): Remove math.
42445         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
42446         (Depends-on): Remove math.
42447
42448         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
42449         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42450         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
42451         (Depends-on): Remove math.
42452         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
42453         (Depends-on): Remove math.
42454
42455         * tests/test-round1.c: Include nan.h.
42456         (main): Use NaNd instead of NAN.
42457         * modules/round-tests (Files): Add tests/nan.h.
42458
42459         * tests/test-trunc1.c: Include nan.h.
42460         (main): Use NaNd instead of NAN.
42461         * modules/trunc-tests (Files): Add tests/nan.h.
42462
42463         * tests/test-roundf1.c: Include nan.h.
42464         (main): Use NaNf instead of NAN.
42465         * modules/roundf-tests (Files): Add tests/nan.h.
42466
42467         * tests/test-truncf1.c: Include nan.h.
42468         (main): Use NaNf instead of NAN.
42469         * modules/truncf-tests (Files): Add tests/nan.h.
42470
42471         * tests/test-ceilf1.c: Include nan.h.
42472         (main): Use NaNf instead of NAN.
42473         * modules/ceilf-tests (Files): Add tests/nan.h.
42474
42475         * tests/test-floorf1.c: Include nan.h.
42476         (main): Use NaNf instead of NAN.
42477         * modules/floorf-tests (Files): Add tests/nan.h.
42478
42479         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
42480         (main): Use NaNf instead of NAN.
42481         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
42482
42483         * tests/test-isnand.c: Include nan.h instead of <math.h>.
42484         (main): Use NaNd instead of NAN.
42485         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
42486
42487         * tests/test-frexp.c: Include nan.h.
42488         (main): Use NaNd instead of NAN.
42489         * modules/frexp-tests (Files): Add tests/nan.h.
42490
42491         * lib/isnan.c: Don't include <math.h>.
42492         (FUNC): Don't use NAN macro.
42493         * modules/isnand-nolibm (Depends-on): Remove math.
42494         * modules/isnanf-nolibm (Depends-on): Remove math.
42495         * modules/isnanl (Depends-on): Remove math.
42496         * modules/isnanl-nolibm (Depends-on): Remove math.
42497
42498         * tests/nan.h: New file.
42499
42500 2008-04-01  Eric Blake  <ebb9@byu.net>
42501
42502         Fix typos.
42503         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
42504         values to be the right type.
42505
42506         For now, cater to gnulib strtod inaccuracies.
42507         * tests/test-strtod.c (main): Allow 1-ulp error on expected
42508         fractional results.  While not as nice from a QoI perspective, it
42509         is a quicker patch than correctly implementing decimal to binary
42510         rounding.
42511
42512 2008-03-31  Eric Blake  <ebb9@byu.net>
42513
42514         Guarantee a definition of NAN.
42515         * lib/math.in.h (NAN): Define if missing.
42516         * tests/test-math.c (main): Test it.
42517         * doc/posix-headers/math.texi (math.h): Document this.
42518         * lib/isnan.c (rpl_isnand): Use it.
42519         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
42520         * tests/test-floorf1.c (NaN): Likewise.
42521         * tests/test-frexp.c (NaN): Likewise.
42522         * tests/test-isnand.c (NaN): Likewise.
42523         * tests/test-isnanf.c (NaN): Likewise.
42524         * tests/test-round1.c (NaN): Likewise.
42525         * tests/test-roundf1.c (NaN): Likewise.
42526         * tests/test-snprintf-posix.h (NaN): Likewise.
42527         * tests/test-sprintf-posix.h (NaN): Likewise.
42528         * tests/test-trunc1.c (NaN): Likewise.
42529         * tests/test-truncf1.c (NaN): Likewise.
42530         * tests/test-vasnprintf-posix.c (NaN): Likewise.
42531         * tests/test-vasprintf-posix.c (NaN): Likewise.
42532         * modules/isnand-nolibm (Depends-on): Add math.
42533         * modules/isnanf-nolibm (Depends-on): Likewise.
42534         * modules/isnanl (Depends-on): Likewise.
42535         * modules/isnanl-nolibm (Depends-on): Likewise.
42536         * modules/snprintf-posix-tests (Depends-on): Likewise.
42537         * modules/sprintf-posix-tests (Depends-on): Likewise.
42538         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
42539         * modules/vsprintf-posix-tests (Depends-on): Likewise.
42540         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
42541         * modules/vasprintf-posix-tests (Depends-on): Likewise.
42542
42543 2008-03-31  Bruno Haible  <bruno@clisp.org>
42544
42545         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
42546         * doc/posix-functions/strtod.texi: Likewise.
42547
42548 2008-03-31  Bruno Haible  <bruno@clisp.org>
42549
42550         * tests/test-strtod.c (main): Don't use C99 syntax.
42551
42552 2008-03-31  Bruno Haible  <bruno@clisp.org>
42553
42554         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
42555         Reported by Eric Blake.
42556
42557 2008-03-31  Jim Meyering  <meyering@redhat.com>
42558
42559         Don't compare actual signbit return values.
42560         * tests/test-strtod.c (main): Rather, compare only their
42561         zero/non-zero nature.
42562
42563 2008-03-31  Eric Blake  <ebb9@byu.net>
42564
42565         More strtod documentation.
42566         * doc/posix-functions/strtod.texi (strtod): Interpret more test
42567         failures as distinct bugs.
42568
42569 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42570
42571         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
42572         Problem reported by Erik Benada in
42573         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
42574
42575 2008-03-30  Bruno Haible  <bruno@clisp.org>
42576
42577         * tests/test-strtod.c: Add comments about which assertion fails on which
42578         platform.
42579         * doc/posix-functions/strtod.texi: Add info about many more platforms.
42580
42581 2008-03-30  Eric Blake  <ebb9@byu.net>
42582
42583         Test signbit behavior on zeros.
42584         * tests/test-signbit.c (test_signbitf): Add tests for zero.
42585         (test_signbitd, test_signbitl): Likewise.
42586
42587         More strtod touchups.
42588         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
42589         sign of negative underflow, for now.  Use .5, not .1.
42590         * doc/posix-functions/strtod.texi (strtod): Mention these
42591         limitations.
42592         Reported by Jim Meyering.
42593
42594 2008-03-30  Bruno Haible  <bruno@clisp.org>
42595
42596         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
42597         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
42598
42599 2008-03-30  Bruno Haible  <bruno@clisp.org>
42600
42601         Avoid failure when attempting to return empty iconv results on some
42602         platforms.
42603         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
42604         allocation, don't report ENOMEM when the resulting string is empty.
42605
42606 2008-03-30  Bruno Haible  <bruno@clisp.org>
42607
42608         Fix buffer overrun.
42609         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
42610         Don't consider the width for tmp_length. Check count against tmp_length
42611         before doing the padding. Ensure enough allocation during padding.
42612
42613 2008-03-30  Eric Blake  <ebb9@byu.net>
42614
42615         strtod touchups.
42616         * lib/strtod.c (strtod): Avoid compiler warnings.
42617         Reported by Jim Meyering.
42618
42619 2008-03-30  Bruno Haible  <bruno@clisp.org>
42620
42621         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
42622         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
42623         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
42624         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
42625         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
42626         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
42627         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
42628         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
42629
42630         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
42631         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
42632         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
42633         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
42634         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42635         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
42636         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
42637         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
42638
42639         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
42640         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
42641         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
42642         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
42643         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42644         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42645         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42646         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42647
42648         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42649         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42650
42651         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42652         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42653
42654         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42655         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42656
42657         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42658         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42659         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42660
42661         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42662         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42663         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42664
42665         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42666         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42667         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42668
42669         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42670         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42671         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42672
42673         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42674         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42675         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42676         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42677         (Depends-on): Add EOVERFLOW.
42678         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42679         (Depends-on): Add EOVERFLOW.
42680         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42681         (Depends-on): Add EOVERFLOW.
42682         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42683         (Depends-on): Add EOVERFLOW.
42684         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42685         (Depends-on): Add EOVERFLOW.
42686         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42687         (Depends-on): Add EOVERFLOW.
42688         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42689         (Depends-on): Add EOVERFLOW.
42690         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42691         (Depends-on): Add EOVERFLOW.
42692
42693         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42694         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42695         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42696
42697         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42698         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42699         * modules/snprintf (Depends-on): Add EOVERFLOW.
42700
42701         * lib/poll.c (EOVERFLOW): Remove fallback.
42702         * modules/poll (Depends-on): Add EOVERFLOW.
42703
42704         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42705         * modules/getugroups (Depends-on): Add EOVERFLOW.
42706
42707         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42708         * modules/getdelim (Depends-on): Add EOVERFLOW.
42709
42710         * lib/ftell.c (EOVERFLOW): Remove fallback.
42711         * modules/ftell (Depends-on): Add EOVERFLOW.
42712
42713         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42714         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42715         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42716
42717         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42718
42719         * modules/EOVERFLOW-tests: New file.
42720         * tests/test-EOVERFLOW.c: New file.
42721
42722         * modules/EOVERFLOW: New file.
42723         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42724
42725 2008-03-30  Bruno Haible  <bruno@clisp.org>
42726
42727         Fix bug introduced on 2007-06-10.
42728         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42729         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42730
42731 2008-03-30  Bruno Haible  <bruno@clisp.org>
42732
42733         Improve freadseek's efficiency after ungetc.
42734         * lib/freadseek.c: Include freadahead.h.
42735         (freadptrinc): New function, extracted from freadseek.
42736         (freadseek): Use it in a loop. Use freadahead to determine the number
42737         of loop iterations.
42738         * modules/freadseek (Depends-on): Add freadahead.
42739         (configure.ac): Require AC_C_INLINE.
42740
42741 2008-03-30  Bruno Haible  <bruno@clisp.org>
42742
42743         * lib/freadseek.c (freadseek): Don't ignore the return value of
42744         freadptr.
42745
42746 2008-03-29  Eric Blake  <ebb9@byu.net>
42747
42748         Add hex float support.
42749         * modules/strtod (Depends-on): Add c-ctype.
42750         (Link): Mention POW_LIB.
42751         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42752         whitespace between 'e' and exponent.
42753         * tests/test-strtod.c (main): Enable hex float tests.
42754         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42755         now provides.
42756
42757         Document various strtod bugs, with some fixes.
42758         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42759         "-0x", "inf", "nan", and hex constants.
42760         * doc/posix-functions/atof.texi (atof): Likewise.
42761         * modules/stdlib (Makefile.am): Support strtod.
42762         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42763         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42764         detect additional strtod bugs.
42765         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42766         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42767         bool where appropriate.  Parse 'inf' and 'nan'.
42768         * tests/test-strtod.c: New file.
42769         * modules/strtod (Depends-on): Add stdbool, stdlib.
42770         (configure.ac): Turn on module indicator.
42771         * modules/strtod-tests: New module.
42772
42773 2008-03-29  Eric Blake  <ebb9@byu.net>
42774
42775         Fix ftell on mingw.
42776         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42777         * modules/ftell-tests (Depends-on): Add binary-io.
42778         * modules/ftello-tests (Depends-on): Likewise.
42779         * tests/test-ftell.c (main): Enhance test to cover behavior after
42780         ungetc.  Enforce binary mode.
42781         * tests/test-ftello.c (main): Likewise.
42782
42783         Pass test-freadseek on cygwin.
42784         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42785         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42786         ungetc buffer.
42787
42788         * tests/test-fflush2.c (main): Fix typo.
42789
42790 2008-03-29  Bruno Haible  <bruno@clisp.org>
42791
42792         * tests/test-fflush2.c (main): Temporarily disable the contents of
42793         this test.
42794         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42795         Reported by Eric Blake.
42796
42797 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42798
42799         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42800         (GC_SHA224_DIGEST_SIZE): Add.
42801
42802         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42803         (gc_hash_digest_length): Likewise.
42804         (gc_hash_buffer): Likewise.
42805
42806 2008-03-25  Bruno Haible  <bruno@clisp.org>
42807
42808         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42809         detail which gettext release to use.
42810         Reported by Simon Josefsson.
42811
42812 2008-03-26  Jim Meyering  <meyering@redhat.com>
42813
42814         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42815         * modules/gnumakefile (clean-GNUmakefile): Also, use
42816         test ... && ... || : syntax rather than if-then ... fi.
42817
42818         gnumakefile: Don't double-quote-expand $(VPATH) value.
42819         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42820
42821 2008-03-24  Eric Blake  <ebb9@byu.net>
42822
42823         Alter GNUmakefile to install into top directory.
42824         * modules/maintainer-makefile: Split, and add dependency...
42825         * modules/gnumakefile: to this new module.
42826         * build-aux/GNUmakefile: Move...
42827         * top/GNUmakefile: ...here.
42828         * build-aux/maint.mk: Move...
42829         * top/maint.mk: ...here.
42830         * MODULES.html.sh (Support for maintaining...): Document new
42831         module.
42832
42833 2008-03-23  Bruno Haible  <bruno@clisp.org>
42834
42835         * gnulib-tool: New options --vc-files, --no-vc-files.
42836         (func_usage): Document them.
42837         (vc_files): New variable.
42838         (func_import): Consider vc_files.
42839         (func_create_testdir): Set vc_files to empty.
42840         Suggested by Jim Meyering and Karl Berry.
42841
42842 2008-03-23  Bruno Haible  <bruno@clisp.org>
42843
42844         Fix regex compilation error on HP-UX 11.
42845         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42846         * modules/regex (Files): Add m4/mbstate_t.m4.
42847         Reported by Ton Voon <ton.voon@altinity.com>.
42848
42849 2008-03-23  Bruno Haible  <bruno@clisp.org>
42850
42851         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42852
42853 2008-03-23  Eric Blake  <ebb9@byu.net>
42854             Bruno Haible  <bruno@clisp.org>
42855
42856         Install files from top/ in the destination directory.
42857         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42858         augmentation also for the files from top/.
42859         (func_import, func_create_testdir): Rewrite file names:
42860         top/filename -> filename.
42861
42862 2008-03-23  Bruno Haible  <bruno@clisp.org>
42863
42864         Tweak "gnulib --version" output.
42865         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42866
42867 2008-03-23  Bruno Haible  <bruno@clisp.org>
42868
42869         Tweak "gnulib --version" output.
42870         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42871         rather than contents of ChangeLog, when possible.
42872
42873 2008-03-21  Eric Blake  <ebb9@byu.net>
42874
42875         More --version tweaks.
42876         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42877         date of last ChangeLog entry.
42878
42879 2008-03-21  Jim Meyering  <meyering@redhat.com>
42880
42881         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42882
42883 2008-03-20  Eric Blake  <ebb9@byu.net>
42884
42885         VPATH fix.
42886         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42887
42888 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42889
42890         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42891         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42892
42893 2008-03-20  Eric Blake  <ebb9@byu.net>
42894
42895         Sync GNUmakefile with coreutils.
42896         * build-aux/GNUmakefile (have-Makefile): Rename...
42897         (_have-Makefile): ...to this, for namespace consideration.
42898         (GNUmakefile.cfg): Include, if present.
42899         (_autoreconf): Define a default.
42900         (_is-dist-target): New rule for rebuilds to pick up intra-release
42901         version.
42902         (maint-cfg.mk): Rename...
42903         (cfg.mk): ...to this.
42904
42905 2008-03-18  Jim Meyering  <meyering@redhat.com>
42906
42907         New script and module: mktempd
42908         * MODULES.html.sh (maint+release support): Add mktempd.
42909         * build-aux/mktempd: New file.
42910         * modules/mktempd: New file.
42911
42912 2008-03-15  Jim Meyering  <meyering@redhat.com>
42913
42914         Undo last change.
42915         * lib/sha1.c, lib/md5.c: 63 != ~63.
42916         Reported by Andreas Schwab.
42917
42918         sha1.c, md5.c: Hoist a redundant expression.
42919         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42920         "ctx->buflen" only once, before calling *_process_block.
42921         * lib/md5.c (md5_process_bytes): Likewise.
42922
42923 2008-03-14  Eric Blake  <ebb9@byu.net>
42924
42925         Bump copyright year in files generated by gnulib-tool.
42926         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42927         gnulib-tool, rather than hard-coding it.
42928
42929         Fix 'gnulib-tool --version' output to work with git.
42930         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42931         (startup): ...here.
42932         (func_version): Use it to invoke git-version-gen, rather than
42933         relying on CVS keyword expansion.  Modernize wording.
42934         (cvsdatestamp, last_checkin_date, version): Kill unused
42935         variables.
42936
42937 2008-03-12  Jim Meyering  <meyering@redhat.com>
42938
42939         Recognize optional cast of the argument to free.
42940         * build-aux/useless-if-before-free: Update regexps.
42941
42942         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42943
42944 2008-03-11  Bruno Haible  <bruno@clisp.org>
42945
42946         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42947         by a single package.
42948         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42949         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42950         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42951         Reported by Sam Steingold <sds@gnu.org>.
42952
42953 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42954
42955         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42956         repositories.
42957
42958 2008-03-11  Bruno Haible  <bruno@clisp.org>
42959
42960         Avoid conflicts between local macro definitions.
42961         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42962         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42963
42964 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42965             Bruno Haible  <bruno@clisp.org>
42966
42967         Make va_copy work with some version of xlc on AIX 5.1.
42968         * lib/stdarg.in.h: New file.
42969         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42970         On AIX, use a <stdarg.h> file substitute.
42971         * modules/stdarg (Files): Add lib/stdarg.in.h.
42972         (Depends-on): Add include_next.
42973         (Makefile.am): Build a stdarg.h substitute if requested.
42974         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42975
42976 2008-03-10  Bruno Haible  <bruno@clisp.org>
42977
42978         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42979         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42980         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42981
42982 2008-03-10  Bruno Haible  <bruno@clisp.org>
42983
42984         * modules/stdlib (Depends-on): Add include_next, remove
42985         absolute-header.
42986
42987 2008-03-09  Bruno Haible  <bruno@clisp.org>
42988
42989         * lib/freadahead.h (freadahead): Document more precisely.
42990         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42991         the sum of both buffer sizes.
42992         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42993         * NEWS: Document the change.
42994
42995 2008-03-09  Bruno Haible  <bruno@clisp.org>
42996
42997         Extend freadptr to return also the buffer size.
42998         * lib/freadptr.h (freadptr): Add sizep argument.
42999         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
43000         (freadptr): Add sizep argument. Determine buffer size like freadahead
43001         does.
43002         * tests/test-freadptr.c: Don't include freadahead.h.
43003         (main): Adapt for new calling convention of freadptr.
43004         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
43005         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
43006         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
43007         tests/test-freadptr2.sh.
43008         (Depends): Remove freadahead.
43009         (TESTS): Add test-freadptr2.sh.
43010         (check_PROGRAMS): Add test-freadptr2.
43011
43012 2008-03-09  Bruno Haible  <bruno@clisp.org>
43013
43014         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
43015         Report and solution by Simon Josefsson.
43016
43017 2008-03-06  Bruno Haible  <bruno@clisp.org>
43018
43019         Make fflush after ungetc work on BSD platforms.
43020         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
43021         * tests/test-fflush2.c: New file.
43022         * tests/test-fflush2.sh: New file.
43023         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
43024         tests/test-fflush2.c.
43025         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
43026         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
43027
43028 2008-03-06  Eric Blake  <ebb9@byu.net>
43029
43030         Likewise for ftello.
43031         * modules/ftello (Dependencies): Add extensions.
43032         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
43033
43034 2008-03-06  Bruno Haible  <bruno@clisp.org>
43035
43036         * modules/fseeko (Dependencies): Add extensions.
43037         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
43038         Needed on glibc systems.
43039
43040 2008-03-06  Bruno Haible  <bruno@clisp.org>
43041
43042         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
43043         email address.
43044         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43045
43046 2008-03-06  Bruno Haible  <bruno@clisp.org>
43047
43048         * users.txt: Add libgnupdf.
43049
43050 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43051
43052         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
43053         (Header File Substitutes, Function Substitutes,
43054         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
43055         (Build robot for gnulib): Fix typo.
43056
43057 2008-03-06  Bruno Haible  <bruno@clisp.org>
43058
43059         * doc/gnulib-tool.texi (VCS Issues): Small updates.
43060         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43061
43062 2008-03-06  Bruno Haible  <bruno@clisp.org>
43063
43064         * doc/func.texi: New file, extracted from doc/gnulib.texi.
43065         * doc/gnulib.texi: Include it.
43066
43067 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43068
43069         * modules/func (License): Change license to unlimited; there was
43070         no LGPL parts in the module anyway.
43071
43072 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43073
43074         * modules/__func__: Renamed to modules/func.
43075         * modules/__func__-tests: Renamed to modules/func-tests.
43076         * tests/test-__func__.c: Renamed to tests/test-func.c.
43077         * m4/__func__.m4: Renamed to m4/func.m4.
43078         * doc/gnulib.texi (__func__): Section renamed to func.
43079         Suggested by Eric Blake <ebb9@byu.net>.
43080
43081 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43082
43083         * doc/gnulib.texi (__func__): Use C99 terminology when talking
43084         about __func__.  Make example self-contained.  Suggested by Eric
43085         Blake <ebb9@byu.net>.
43086
43087         * tests/test-__func__.c (main): Avoid extraneous () around __func.
43088         Suggested by Eric Blake <ebb9@byu.net>.
43089
43090 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43091
43092         * modules/__func__: New file.
43093         * modules/__func__-tests: New file.
43094         * tests/test-__func__.c: New file.
43095         * m4/__func__.m4: New file.
43096         * doc/gnulib.texi (__func__): Document __func__ module.
43097
43098 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43099
43100         * modules/byteswap (License): Re-license as LGPLv2+.
43101
43102 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43103
43104         * doc/Makefile: Add pdf target.
43105
43106 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43107
43108         * modules/inline (License): Use 'unlimited', since there are only
43109         *.m4 files in this module.
43110
43111 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43112             Bruno Haible  <bruno@clisp.org>
43113
43114         Add support for HP C 7.1 on OpenVMS 8.3.
43115         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
43116
43117 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43118
43119         Update VMS specifics.
43120         * lib/getopt.c [VMS]: Remove include of unixlib.h.
43121
43122 2008-03-02  Jim Meyering  <meyering@redhat.com>
43123
43124         Remove the last dependency on the "free" module.
43125         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
43126         Reported by Bob Proulx.
43127
43128         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
43129
43130         Remove useless "if" tests before free.  Deprecate "free" module.
43131         * doc/posix-functions/free.texi: Mention that this
43132         module is no longer useful.
43133         * modules/free (Notice): Say this module is obsolete.
43134         * modules/readutmp (Depends-on): Remove free.
43135         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
43136         * lib/putenv.c (putenv): Likewise.
43137         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
43138         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
43139         * tests/test-c-strcasestr.c (main): Likewise.
43140         * tests/test-c-strstr.c (main): Likewise.
43141         * tests/test-mbscasestr1.c (main): Likewise.
43142         * tests/test-mbscasestr2.c (main): Likewise.
43143         * tests/test-mbsstr1.c (main): Likewise.
43144         * tests/test-mbsstr2.c (main): Likewise.
43145         * tests/test-memmem.c (main): Likewise.
43146         * tests/test-strcasestr.c (main): Likewise.
43147         * tests/test-striconv.c (main): Likewise.
43148         * tests/test-striconveh.c (main): Likewise.
43149         * tests/test-striconveha.c (main): Likewise.
43150         * tests/test-strstr.c (main): Likewise.
43151
43152         * build-aux/git-version-gen: Adjust a comment and the Usage string.
43153
43154         bootstrap: sync from coreutils again
43155         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
43156
43157 2008-03-01  Jim Meyering  <meyering@redhat.com>
43158
43159         bootstrap: sync from coreutils
43160         * build-aux/bootstrap (update_po_files): Copy a .po file into place
43161         also when the target doesn't exist.
43162
43163 2008-03-01  Eric Blake  <ebb9@byu.net>
43164
43165         Fix bugs in last patch.
43166         * lib/memchr2.c (memchr2): Fix typo.
43167         * tests/test-memchr2.c: Test previous bug, and don't use GNU
43168         extension.
43169         Reported by Bruce Korb.
43170
43171         New module 'memchr2'.
43172         * modules/memchr2: New file.
43173         * modules/memchr2-tests: Likewise.
43174         * lib/memchr2.h: Likewise.
43175         * lib/memchr2.c: Likewise, based on memchr.c.
43176         * tests/test-memchr2.c: New test.
43177         * MODULES.html.sh (String handling): Add memchr2.
43178
43179 2008-02-29  Bruno Haible  <bruno@clisp.org>
43180
43181         * modules/freadseek-tests: New file.
43182         * tests/test-freadseek.sh: New file.
43183         * tests/test-freadseek.c: New file.
43184
43185         New module 'freadseek'.
43186         * modules/freadseek: New file.
43187         * lib/freadseek.h: New file.
43188         * lib/freadseek.c: New file.
43189         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
43190
43191 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43192
43193         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
43194         wydawca.
43195
43196         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
43197         program_invocation_name and program_invocation_short_name are
43198         present.
43199
43200 2008-02-28  Bruno Haible  <bruno@clisp.org>
43201
43202         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
43203         * tests/test-freadptr.sh: Also test non-seekable stdin.
43204
43205 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
43206
43207         * build-aux/bootstrap (source_base, m4_base)
43208         (doc_base, tests_base): New variables.
43209         (gnulib_tool_options): Do not hardcode base directories, use
43210         the above variables instead.
43211
43212 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
43213
43214         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
43215
43216 2008-02-28  Bruno Haible  <bruno@clisp.org>
43217
43218         * modules/freadptr-tests: New file.
43219         * tests/test-freadptr.sh: New file.
43220         * tests/test-freadptr.c: New file.
43221
43222         New module 'freadptr'.
43223         * modules/freadptr: New file.
43224         * lib/freadptr.h: New file.
43225         * lib/freadptr.c: New file.
43226         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
43227
43228 2008-02-26  Karl Berry  <karl@freefriends.org>
43229
43230         Sync from Libtool:
43231         * libltdl/argz.c (argz_add, argz_count): New functions.
43232         * libltdl/argz.in.h: Declare them.
43233         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
43234
43235 2008-02-22  Bruno Haible  <bruno@clisp.org>
43236
43237         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
43238         is a pointer type.  Needed for HP-UX 10.
43239         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
43240         * doc/posix-functions/gmtime_r.texi: Likewise.
43241         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43242
43243 2008-02-24  Bruno Haible  <bruno@clisp.org>
43244
43245         * modules/environ-tests: New file.
43246         * tests/test-environ.c: New file.
43247
43248         New module 'environ'.
43249         * modules/environ: New file.
43250         * lib/unistd.in.h (environ): New declaration.
43251         * m4/environ.m4: New file.
43252         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
43253         after use.
43254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
43255         HAVE_DECL_ENVIRON.
43256         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
43257         HAVE_DECL_ENVIRON.
43258         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
43259         wrong claim that 'environ' is missing on some systems.
43260         * modules/execute (Depends-on): Add environ.
43261         * lib/execute.c (environ): Remove fallback declaration.
43262         * modules/pipe (Depends-on): Add environ.
43263         * lib/pipe.c (environ): Remove fallback declaration.
43264         * modules/setenv (Depends-on): Add environ.
43265         * lib/setenv.c (environ): Remove fallback declaration.
43266         * modules/unsetenv (Depends-on): Add environ.
43267         * lib/unsetenv.c (environ): Remove fallback declaration.
43268         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
43269         m4/environ.m4.
43270         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
43271         (gl_PREREQ_UNSETENV): Likewise.
43272
43273 2008-02-24  Bruno Haible  <bruno@clisp.org>
43274
43275         * doc/posix-functions/environ.texi: Document the MacOS X problem.
43276
43277 2008-02-20  Bob Proulx  <bob@proulx.com>
43278
43279         Enable use of older two part flavor 'git describe'.
43280         * build-aux/git-version-gen: If using the older two part flavor of
43281         git version then recreate the third part now present in the
43282         newer three part flavor of git describe.
43283
43284 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
43285
43286         * lib/fts.c (fts_build): Typo correction to comment.
43287
43288 2008-02-17  Bruno Haible  <bruno@clisp.org>
43289
43290         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
43291         generating no-op conflicts.
43292
43293 2008-02-17  Bruno Haible  <bruno@clisp.org>
43294
43295         Speed up by 10%.
43296         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
43297         result_entries, rather than an index-based loop.
43298
43299 2008-02-17  Bruno Haible  <bruno@clisp.org>
43300
43301         Speed up by 25%.
43302         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
43303         'hashcode_cached'.
43304         (entry_create): New function.
43305         (entry_hashcode): Use the cached hashcode if possible.
43306         (read_changelog_file, try_split_merged_entry): Use entry_create.
43307
43308 2008-02-17  Bruno Haible  <bruno@clisp.org>
43309
43310         Speed up from O(n^2) to O(n) for long ChangeLog files.
43311         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
43312         (read_changelog_file): Change implementation of entries_reversed list
43313         to rbtreehash.
43314         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
43315
43316 2008-02-17  Bruno Haible  <bruno@clisp.org>
43317
43318         New option --split-merged-entry.
43319         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
43320         (find_paragraph_end, try_split_merged_entry): New functions.
43321         (long_options): Add option --split-merged-entry.
43322         (usage): Document option --split-merged-entry.
43323         (main): Implement option --split-merged-entry.
43324         Reported by Eric Blake.
43325
43326 2008-02-17  Bruno Haible  <bruno@clisp.org>
43327
43328         * lib/git-merge-changelog.c: Include c-strstr.h.
43329         (main): Support the "git pull --rebase" situation.
43330         * modules/git-merge-changelog (Depends-on): Add c-strstr.
43331         Reported by Eric Blake.
43332
43333 2008-02-16  Eric Blake  <ebb9@byu.net>
43334
43335         Avoid doubling \ in common case of "c-maybe" quoting style.
43336         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
43337         eliding outer quotes.
43338         * lib/quotearg.h: Document this.
43339         * tests/test-quotearg.c (result_strings, inputs, results_g)
43340         (flag_results, locale_results): Test it by adding a new string to
43341         each test group.
43342         (compare_strings): Test new string.
43343
43344 2008-02-13  Eric Blake  <ebb9@byu.net>
43345
43346         Avoid trigraph quoting in default output.
43347         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
43348         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
43349         unless explicitly requested.
43350         * tests/test-quotearg.c (flag_results, main): Add additional tests.
43351
43352 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
43353
43354         Don't rely on signed integer overflowing to negative value.
43355         * lib/getugroups.c (getugroups): Include <limits.h>.
43356         Instead, compare against INT_MAX, and increment only if the test passes.
43357
43358 2008-02-13  Jim Meyering  <meyering@redhat.com>
43359         and Eric Blake  <ebb9@byu.net>
43360
43361         Avoid shadowing warning and compile errors on Linux.
43362         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
43363         forwarding macros on Linux.
43364         (dcgettext): Define a stub, for Linux.
43365         (results_g, main): Avoid warnings.
43366
43367 2008-02-12  Eric Blake  <ebb9@byu.net>
43368
43369         Silence warning in last patch.
43370         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
43371
43372         Quotearg part 4: add tests, fix c-maybe colon quoting.
43373         * lib/quotearg.h: Improve documentation.
43374         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
43375         escapes when adding outer quotes.  When quoting trigraphs, use
43376         valid C notation.  When quoting NUL, omit extra characters if next
43377         character is not digit.  Alter prototype.
43378         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
43379         callers.
43380         * modules/quotearg-tests: New module.
43381         * tests/test-quotearg.c: New test.
43382
43383 2008-02-07  Eric Blake  <ebb9@byu.net>
43384
43385         Quotearg part 3: add flag to control outer quote elision.
43386         * lib/quotearg.h (c_maybe_quoting_style): New style.
43387         (enum quoting_flags): Better documentation of flags.
43388         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
43389         c-maybe style.
43390         (quotearg_buffer_restyled): Handle new flag to elide outer
43391         quotes.
43392
43393         Quotearg part 2: add flag that can control NUL elision.
43394         * lib/quotearg.h (set_quoting_flags): New prototype.
43395         * lib/quotearg.c (struct quoting_options): Add flag field.
43396         (set_quoting_flags): New function.
43397         (quotearg_buffer_restyled): Add flags parameter.
43398         (quotearg_alloc_mem): Set the flag if length cannot be returned.
43399         (quotearg_n_options): Set the flag, since length cannot be
43400         returned.
43401         (quoting_options_from_style): Default flags correctly.
43402
43403         Quotearg part 1: more wrappers, restore quotearg_char state.
43404         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
43405         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
43406         (quotearg_colon_mem): New wrappers.
43407         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
43408         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
43409         functions.
43410         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
43411         (quotearg_colon_mem): New functions.
43412
43413 2008-02-11  Bruno Haible  <bruno@clisp.org>
43414
43415         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
43416         library in the current directory: it does not work with parallel make.
43417         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43418
43419 2008-02-11  Bruno Haible  <bruno@clisp.org>
43420
43421         * .gitattributes: New file.
43422
43423 2008-02-11  Jim Meyering  <meyering@redhat.com>
43424
43425         useless-if-before-free: Fix reversed exit values.
43426         * build-aux/useless-if-before-free: Use correct values
43427         for EXIT_MATCH and EXIT_NO_MATCH.
43428
43429         * build-aux/useless-if-before-free: Close stdout carefully.
43430
43431 2008-02-10  Bruno Haible  <bruno@clisp.org>
43432
43433         New module 'git-merge-changelog'.
43434         * modules/git-merge-changelog: New file.
43435         * lib/git-merge-changelog.c: New file.
43436
43437 2008-02-10  Jim Meyering  <meyering@redhat.com>
43438
43439         useless-if-before-free: New option: --list (-l).
43440
43441         useless-if-before-free: Don't exit immediately upon open failure.
43442         * build-aux/useless-if-before-free: Exit 2 for errors.
43443         Upon failure to open a file, don't exit immediately.
43444         Rather, just warn and continue with any remaining files.
43445
43446 2008-02-10  Bruno Haible  <bruno@clisp.org>
43447
43448         New abstract list operation 'node_set_value'.
43449         * lib/gl_list.h (gl_list_node_set_value): New function.
43450         (struct gl_list_implementation): New field node_set_value.
43451         * lib/gl_list.c (gl_list_node_set_value): New function.
43452         * lib/gl_array_list.c (gl_array_node_set_value): New function.
43453         (gl_array_list_implementation): Update.
43454         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
43455         (gl_carray_list_implementation): Update.
43456         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
43457         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43458         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43459         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
43460         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43461         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43462         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43463         Update.
43464         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43465         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
43466         (gl_sublist_list_implementation): Update.
43467
43468 2008-02-10  Bruno Haible  <bruno@clisp.org>
43469
43470         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
43471         Needed when ELEMENT is #defined to 'some_type *'.
43472
43473 2008-02-10  Jim Meyering  <meyering@redhat.com>
43474
43475         New script and module: useless-if-before-free
43476         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
43477         * build-aux/useless-if-before-free: New file.
43478         * modules/useless-if-before-free: New file.
43479
43480         * build-aux/gitlog-to-changelog: Use committer date, not author date.
43481
43482         xstrtol_error: Fix typo.
43483         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
43484         s/exit_failure/exit_status/.
43485
43486 2008-02-09  Jim Meyering  <meyering@redhat.com>
43487
43488         New script and module: gitlog-to-changelog
43489         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
43490         * modules/gitlog-to-changelog: New file.
43491         * build-aux/gitlog-to-changelog: New file.
43492
43493 2008-02-08  Jim Meyering  <meyering@redhat.com>
43494
43495         Avoid two "parameter unused" warnings.
43496         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
43497         Mark "st" as used.
43498
43499         Use "git COMMAND", not "git-COMMAND".
43500         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
43501         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
43502         * build-aux/git-version-gen: Use "git status", not "git-status".
43503
43504 2008-02-07  Bruno Haible  <bruno@clisp.org>
43505
43506         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
43507         Avoids a crash on Windows Vista.
43508         Reported by Adam Strzelecki <ono@java.pl> via
43509         Simon Josefsson <simon@josefsson.org>.
43510
43511 2008-02-06  Bruno Haible  <bruno@clisp.org>
43512
43513         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
43514         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
43515         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
43516         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
43517         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43518         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43519         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
43520         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
43521         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43522         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43523         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43524         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43525         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43526         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43527         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43528         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
43529         left-adjust flag.
43530         * tests/test-snprintf-posix.h (test_function): Likewise.
43531         * tests/test-sprintf-posix.h (test_function): Likewise.
43532         * tests/test-vasprintf-posix.c (test_function): Likewise.
43533         * doc/posix-functions/fprintf.texi: Update.
43534         * doc/posix-functions/printf.texi: Update.
43535         * doc/posix-functions/snprintf.texi: Update.
43536         * doc/posix-functions/sprintf.texi: Update.
43537         * doc/posix-functions/vfprintf.texi: Update.
43538         * doc/posix-functions/vprintf.texi: Update.
43539         * doc/posix-functions/vsnprintf.texi: Update.
43540         * doc/posix-functions/vsprintf.texi: Update.
43541         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43542
43543 2008-02-06  Bruno Haible  <bruno@clisp.org>
43544
43545         Fix bug introduced on 2008-01-26.
43546         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
43547
43548 2008-02-06  Bruno Haible  <bruno@clisp.org>
43549
43550         Fix bug introduced on 2007-06-10.
43551         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
43552         !NEED_PRINTF_FLAG_ZERO.
43553
43554 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
43555
43556         getloadavg: use libperfstat on AIX5
43557         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
43558
43559 2008-02-03  Bruno Haible  <bruno@clisp.org>
43560
43561         * lib/diffseq.h: Add comments about required #includes.
43562         Reported by Michael Biggs <gnulib@doubleplum.net>.
43563
43564 2008-02-01  Bruno Haible  <bruno@clisp.org>
43565
43566         * users.txt: Add gnuit.
43567
43568 2008-01-31  Bruno Haible  <bruno@clisp.org>
43569
43570         * lib/md4.c (set_uint32): Mark as inline.
43571         * lib/md5.c (set_uint32): Likewise.
43572         * lib/sha1.c (set_uint32): Likewise.
43573         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
43574         * m4/md5.m4 (gl_MD5): Likewise.
43575         * m4/sha1.m4 (gl_SHA1): Likewise.
43576
43577 2008-01-31  Jim Meyering  <meyering@redhat.com>
43578
43579         Use "sizeof VAR", rather than a literal "4".
43580         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
43581         * lib/md4.c (md4_read_ctx): Likewise.
43582         * lib/sha1.c (sha1_read_ctx): Likewise.
43583
43584 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43585
43586         * tests/test-sha1.c: New file, based on test-md5.c.
43587
43588         * modules/crypto/sha1-tests: New file.
43589
43590 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43591
43592         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
43593
43594 2008-01-31  Jim Meyering  <meyering@redhat.com>
43595
43596         Prefer "sizeof v" over the equivalent "4".
43597         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
43598         * lib/md5.c (set_uint32): Likewise.
43599         * lib/sha1.c (set_uint32): Likewise.
43600
43601 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43602
43603         * lib/sha1.c (set_uint32): Mark function as static.
43604
43605 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43606
43607         md2: clarify comments to say that alignment is not required.
43608         * lib/md2.h: Remove warning about alignment in comment.
43609         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
43610         never been required.
43611
43612 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43613
43614         md4: adapt alignment constraint fix from sha1.
43615         * lib/md4.c (set_uint32): New function, from sha1.c
43616         (md4_read_ctx): Use it.
43617         (md4_finish_ctx): Doc fix.
43618         * lib/md4.h: Doc fix.
43619
43620 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43621
43622         md5: adapt alignment constraint fix from sha1.
43623         * lib/md5.c (set_uint32): New function, from sha1.c
43624         (md5_read_ctx): Use it.
43625         (md5_finish_ctx): Doc fix.
43626         * lib/md5.h: Doc fix.
43627
43628 2008-01-30  Peter Palfrader  <weasel@debian.org>
43629
43630         sha1: remove the result buffer alignment constraint
43631         * lib/sha1.c (set_uint32): New function.
43632         (sha1_read_ctx): Rewrite to remove the result buffer alignment
43633         constraint.
43634         (sha1_finish_ctx): Remove comment warning about alignment constraint.
43635         * lib/sha1.h: Likewise.
43636
43637 2008-01-30  Andreas Schwab  <schwab@suse.de>
43638             Bruno Haible  <bruno@clisp.org>
43639
43640         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
43641         correct definition of LDBL_MIN_EXP.
43642
43643 2008-01-30  Karl Berry  <karl@gnu.org>
43644
43645         * config/srclist-update: try to preserve x bit on updates.
43646         * config/srclistvars.sh: update for karl.
43647
43648 2008-01-29  Jim Meyering  <meyering@redhat.com>
43649
43650         vasnprintf.c: Avoid warning about unused label
43651         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43652         "overflow" label definition and associated code with the
43653         same cpp condition that guards the sole use of that label.
43654
43655 2008-01-26  Bruno Haible  <bruno@clisp.org>
43656
43657         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43658         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43659         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43660         * lib/isnanl-nolibm.h (isnanl): Likewise.
43661         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43662
43663 2008-01-26  Bruno Haible  <bruno@clisp.org>
43664
43665         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43666         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43667
43668 2008-01-26  Bruno Haible  <bruno@clisp.org>
43669
43670         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43671         GCC >= 4.0 built-in.
43672         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43673
43674 2008-01-26  Bruno Haible  <bruno@clisp.org>
43675
43676         Rename isnan, applicable to 'double' only, to isnand.
43677         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43678         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43679         (configure.ac): Update.
43680         (Include): Replace "isnan.h" with "isnand.h".
43681         * m4/isnand.m4: Renamed from m4/isnan.m4.
43682         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43683         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43684         instead of isnan.c.
43685         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43686         instead of HAVE_ISNAN_IN_LIBC.
43687         (isnand): Renamed from isnan.
43688         * lib/isnand.c: New file.
43689         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43690         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43691         (Makefile.am): Update.
43692         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43693         Include isnand.h instead of isnan.h.
43694         (main): Test isnand instead of isnan.
43695         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43696         isnan-nolibm.
43697         * modules/frexp (Depends-on): Likewise.
43698         * modules/frexp-tests (Depends-on): Likewise.
43699         * modules/frexp-nolibm (Depends-on): Likewise.
43700         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43701         * modules/isfinite (Depends-on): Likewise.
43702         * modules/round-tests (Depends-on): Likewise.
43703         * modules/signbit (Depends-on): Likewise.
43704         * modules/signbit-tests (Depends-on): Likewise.
43705         * modules/snprintf-posix (Depends-on): Likewise.
43706         * modules/sprintf-posix (Depends-on): Likewise.
43707         * modules/trunc-tests (Depends-on): Likewise.
43708         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43709         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43710         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43711         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43712         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43713         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43714         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43715         * modules/vasnprintf-posix (Depends-on): Likewise.
43716         * modules/vasprintf-posix (Depends-on): Likewise.
43717         * modules/vfprintf-posix (Depends-on): Likewise.
43718         * modules/vsnprintf-posix (Depends-on): Likewise.
43719         * modules/vsprintf-posix (Depends-on): Likewise.
43720         * lib/frexp.c: Include isnand.h instead of isnan.h.
43721         (ISNAN): Set to isnand instead of isnan.
43722         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43723         (gl_isfinited): Use isnand instead of isnan.
43724         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43725         (gl_signbitd): Use isnand instead of isnan.
43726         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43727         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43728         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43729         (main): Use isnand instead of isnan.
43730         * tests/test-round1.c: Include isnand.h.
43731         (main): Use isnand instead of isnan.
43732         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43733         (ISNAN): Set to isnand instead of isnan.
43734         * tests/test-trunc1.c: Include isnand.h.
43735         (main): Use isnand instead of isnan.
43736         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43737         (equal): Use isnand instead of isnan.
43738         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43739         isnand-nolibm.
43740         * NEWS: Mention the change.
43741
43742 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43743             Bruno Haible  <bruno@clisp.org>
43744
43745         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43746         the GCC builtins for signbits are present and set
43747         REPLACE_SIGNBIT_USING_GCC if so.
43748         * lib/math.in.h (signbit): Define using GCC builtins if
43749         REPLACE_SIGNBIT_USING_GCC is set.
43750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43751         REPLACE_SIGNBIT_USING_GCC.
43752         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43753
43754 2008-01-25  Jim Meyering  <meyering@redhat.com>
43755
43756         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43757         * lib/poll.c: Include <config.h>, not "config.h".
43758         * tests/test-getaddrinfo.c: Likewise.
43759
43760 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43761
43762         * modules/sockets-tests: New file.
43763
43764 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43765
43766         * modules/sockets: New module, can be used to call WSA_Startup and
43767         WSA_Cleanup when needed.
43768
43769         * lib/sockets.h, lib/sockets.c: New files.
43770
43771         * m4/sockets.m4: New file.
43772
43773         * tests/test-sockets.c: New file.
43774
43775 2008-01-19  Bruno Haible  <bruno@clisp.org>
43776
43777         * doc/posix-headers: Renamed from doc/headers.
43778         * doc/posix-functions: Renamed from doc/functions.
43779         * doc/gnulib.texi: Update.
43780
43781 2008-01-19  Bruno Haible  <bruno@clisp.org>
43782
43783         * doc/glibc-functions/strcasestr.texi: Include contents of
43784         doc/functions/strcasestr.texi, fixing the list of platforms.
43785         * doc/functions/strcasestr.texi: Remove file.
43786
43787 2008-01-19  Bruno Haible  <bruno@clisp.org>
43788
43789         * doc/glibc-functions/memmem.texi: Include contents of
43790         doc/functions/memmem.texi.
43791         * doc/functions/memmem.texi: Remove file.
43792
43793 2008-01-18  Bruno Haible  <bruno@clisp.org>
43794
43795         * doc/glibc-functions/*.texi: New files.
43796         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43797         to use the new files.
43798
43799 2008-01-17  Bruno Haible  <bruno@clisp.org>
43800
43801         * tests/test-gethostname.c (main): Fix printf statement.
43802
43803 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43804
43805         * modules/gethostname-tests: New file.
43806
43807         * tests/test-gethostname.c: New file.
43808
43809 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43810
43811         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43812         used by the UNAME case.  Reported by Bruno Haible
43813         <bruno@clisp.org>.
43814
43815 2008-01-17  Eric Blake  <ebb9@byu.net>
43816
43817         Convert c-strcasestr to be more efficient.
43818         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43819         (Depends-on): Add c-strcase, remove malloca, strnlen.
43820         * tests/test-c-strcasestr.c (main): Enhance test.
43821         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43822
43823 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43824
43825         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43826         Use it in creating po/Makevars.
43827
43828 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43829
43830         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43831         Applications that requires it should initialize libgcrypt
43832         manually.
43833
43834 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43835
43836         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43837
43838 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43839
43840         Fix problem with getdate on mingw32 reported by Simon Josefsson
43841         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43842         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43843         tzname", when deciding whether to declare tzname.
43844         * lib/strftime.c (tzname): Likewise.
43845
43846 2008-01-15  Bruno Haible  <bruno@clisp.org>
43847
43848         Work around a MacOS X 10.5 bug in frexpl().
43849         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43850         * doc/functions/frexpl.texi: Document the bug.
43851         Reported by Elias Pipping <pipping@gentoo.org>.
43852
43853 2008-01-14  Eric Blake  <ebb9@byu.net>
43854
43855         Touch up previous patch.
43856         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43857         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43858
43859         Convert strcasestr module to use Two-Way algorithm.
43860         * modules/strcasestr-simple: New module, based on the old
43861         strcasestr, but with Two-Way rather than KMP.
43862         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43863         * lib/string.in.h (rpl_strcasestr): Declare.
43864         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43865         performance.
43866         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43867         * modules/string (Makefile.am): Support strcasestr.
43868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43869         * modules/strcasestr-tests (Depends-on): Check for alarm.
43870         * tests/test-strcasestr.c: Augment test.
43871         * lib/str-two-way.h: Clean up stray macro.
43872         * NEWS: Document new module.
43873         * MODULES.html.sh (string handling): Likewise.
43874         * doc/functions/strcasestr.texi: New file.
43875         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43876         here, since it is not a POSIX function.
43877
43878 2008-01-14  Colin Watson  <cjwatson@debian.org>
43879             Bruno Haible  <bruno@clisp.org>
43880
43881         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43882         works fine; if not, set REPLACE_STRSIGNAL.
43883         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43884         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43885         REPLACE_STRSIGNAL.
43886         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43887         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43888         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43889
43890 2008-01-14  Bruno Haible  <bruno@clisp.org>
43891
43892         * modules/strsignal (Include): Change to <string.h>.
43893
43894 2008-01-14  Colin Watson  <cjwatson@debian.org>
43895
43896         * modules/argp (Notice): Add a notice recommending to change
43897         XGETTEXT_OPTIONS.
43898         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43899
43900 2008-01-13  Colin Watson  <cjwatson@debian.org>
43901
43902         * modules/strsignal-tests: New file.
43903         * tests/test-strsignal.c: New file.
43904
43905         * lib/strsignal.c: New file, from glibc with modifications.
43906         * lib/siglist.h: New file, from glibc with modifications.
43907         * lib/string.in.h (strsignal): New declaration.
43908         * m4/strsignal.m4: New file.
43909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43910         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43911         * modules/strsignal: New file.
43912         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43913         HAVE_DECL_STRSIGNAL.
43914
43915 2008-01-13  Bruno Haible  <bruno@clisp.org>
43916
43917         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43918         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43919         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43920         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43921
43922 2008-01-13  Bruno Haible  <bruno@clisp.org>
43923
43924         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43925         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43926         * lib/argp.h (__attribute__): Likewise.
43927         * lib/c-stack.c (__attribute__): Likewise.
43928         * lib/error.h (__attribute__): Likewise.
43929         * lib/fts.c (__attribute__): Likewise.
43930         * lib/openat.h (__attribute__): Likewise.
43931         * lib/stdio.in.h (__attribute__): Likewise.
43932         * lib/string.in.h (__attribute__): Likewise.
43933         * lib/utimens.c (__attribute__): Likewise.
43934         * lib/vasnprintf.h (__attribute__): Likewise.
43935         * lib/xalloc.h (__attribute__): Likewise.
43936         * lib/xprintf.h (__attribute__): Likewise.
43937         * lib/xstrtol.h (__attribute__): Likewise.
43938         * lib/xvasprintf.h (__attribute__): Likewise.
43939
43940 2008-01-12  Bruno Haible  <bruno@clisp.org>
43941
43942         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43943         * doc/glibc-headers/a.out.texi: New file.
43944         * doc/glibc-headers/aliases.texi: New file.
43945         * doc/glibc-headers/alloca.texi: New file.
43946         * doc/glibc-headers/ar.texi: New file.
43947         * doc/glibc-headers/argp.texi: New file.
43948         * doc/glibc-headers/argz.texi: New file.
43949         * doc/glibc-headers/byteswap.texi: New file.
43950         * doc/glibc-headers/crypt.texi: New file.
43951         * doc/glibc-headers/endian.texi: New file.
43952         * doc/glibc-headers/envz.texi: New file.
43953         * doc/glibc-headers/err.texi: New file.
43954         * doc/glibc-headers/error.texi: New file.
43955         * doc/glibc-headers/execinfo.texi: New file.
43956         * doc/glibc-headers/fpu_control.texi: New file.
43957         * doc/glibc-headers/fstab.texi: New file.
43958         * doc/glibc-headers/fts.texi: New file.
43959         * doc/glibc-headers/getopt.texi: New file.
43960         * doc/glibc-headers/ieee754.texi: New file.
43961         * doc/glibc-headers/ifaddrs.texi: New file.
43962         * doc/glibc-headers/libintl.texi: New file.
43963         * doc/glibc-headers/mcheck.texi: New file.
43964         * doc/glibc-headers/mntent.texi: New file.
43965         * doc/glibc-headers/obstack.texi: New file.
43966         * doc/glibc-headers/paths.texi: New file.
43967         * doc/glibc-headers/printf.texi: New file.
43968         * doc/glibc-headers/pty.texi: New file.
43969         * doc/glibc-headers/resolv.texi: New file.
43970         * doc/glibc-headers/shadow.texi: New file.
43971         * doc/glibc-headers/sysexits.texi: New file.
43972         * doc/glibc-headers/ttyent.texi: New file.
43973
43974 2008-01-12  Jim Meyering  <meyering@redhat.com>
43975
43976         announce-gen: emit Gnulib's git-based version string.
43977         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43978         New option --gnulib-version=V, where V is expected to be
43979         the output of running git describe in the gnulib directory.
43980         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43981         not useful, and plan to stop publishing an xdelta file with each
43982         coreutils release.
43983
43984         * build-aux/announce-gen: Also check for lzma-compressed files.
43985
43986 2008-01-11  Bruno Haible  <bruno@clisp.org>
43987
43988         * tests/test-memmem.c (main): Increase maximum allowed time.
43989         * tests/test-strstr.c (main): Likewise.
43990
43991 2008-01-11  Bruno Haible  <bruno@clisp.org>
43992
43993         * doc/functions/memmem.texi: Add more precisions about platforms.
43994         * doc/functions/strstr.texi: Likewise.
43995
43996 2008-01-10  Eric Blake  <ebb9@byu.net>
43997
43998         * m4/strstr.m4: Delete cruft from copy-n-paste.
43999         Reported by Bruno Haible.
44000
44001 2008-01-10  Bruno Haible  <bruno@clisp.org>
44002
44003         Make c-strstr rely on strstr.
44004         * lib/c-strstr.c: Don't include str-kmp.h.
44005         (c_strstr): Define in terms of strstr.
44006         * modules/c-strstr (Files): Remove lib/str-kmp.h.
44007         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
44008
44009 2008-01-10  Bruno Haible  <bruno@clisp.org>
44010
44011         * doc/gnulib.texi (String Functions in C Locale): New section.
44012         * doc/c-ctype.texi: New file.
44013         * doc/c-strcase.texi: New file.
44014         * doc/c-strcaseeq.texi: New file.
44015         * doc/c-strcasestr.texi: New file.
44016         * doc/c-strstr.texi: New file.
44017         * doc/c-strtod.texi: New file.
44018         * doc/c-strtold.texi: New file.
44019
44020 2008-01-10  Eric Blake  <ebb9@byu.net>
44021
44022         * lib/relocatable.h: Fix a comment.
44023
44024 2008-01-10  Eric Blake  <ebb9@byu.net>
44025
44026         Share two-way algorithm.
44027         * lib/str-two-way.h: New file, merged from...
44028         * lib/memmem.c: ...here...
44029         * lib/strstr.c: ...and here.
44030         * modules/memmem (Files): Use it.
44031         * modules/strstr (Files): Likewise.
44032
44033         Avoid quadratic strstr implementations.
44034         * lib/strstr.c: New file.
44035         * m4/strstr.m4: Likewise.
44036         * modules/strstr: Likewise.
44037         * modules/strstr-tests: Likewise.
44038         * tests/test-strstr.c: Likewise.
44039         * lib/string.in.h (rpl_strstr): Declare.
44040         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
44041         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
44042         * modules/string (Makefile.am): Likewise.
44043         * MODULES.html.sh (string handling): Mention new module.
44044         * doc/functions/strstr.texi (strstr): Document the bug.
44045
44046 2008-01-10  Bruno Haible  <bruno@clisp.org>
44047
44048         * lib/relocatable.h (relocate): State whether result is freshly
44049         allocated or not.
44050         * lib/relocatable.c (relocate): Return a freshly allocated string
44051         instead of a pointer to a privately held string.
44052         Reported by Sylvain Beucler <beuc@gnu.org>.
44053
44054 2008-01-10  Colin Watson  <cjwatson@debian.org>
44055
44056         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
44057         s/S_ISNLK/S_ISLNK/.
44058
44059 2008-01-09  Bruno Haible  <bruno@clisp.org>
44060
44061         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
44062         and other files.
44063         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
44064         if it's only a guess.
44065         * modules/memmem: Simplify by depending on memmem-simple.
44066
44067 2008-01-09  Bruno Haible  <bruno@clisp.org>
44068
44069         Work around OpenBSD 4.0 tdelete() bug.
44070         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
44071         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
44072         macros and don't redefine the enum values.
44073         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
44074         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
44075         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
44076
44077 2008-01-09  Bruno Haible  <bruno@clisp.org>
44078
44079         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
44080         (main): Don't perform the tests if setlocale did not install a UTF-8
44081         locale. Needed on OpenBSD 4.0.
44082         * modules/wcwidth-tests (Depends-on): Add localcharset.
44083
44084 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44085
44086         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
44087         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
44088         * NEWS: announce this.
44089         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
44090
44091 2008-01-09  Simon Josefsson  <simon@josefsson.org>
44092         and Eric Blake  <ebb9@byu.net>
44093
44094         Add memmem-simple module.
44095         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
44096         (gl_FUNC_MEMMEM): Separate performance from presence checks.
44097         * modules/memmem-simple: New file.
44098         * modules/memmem (Description): Tweak.
44099         * MODULES.html.sh (string handling): Mention new module.
44100         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
44101         addressed by memmem-simple.
44102         * NEWS: Document the difference.
44103
44104 2008-01-09  Eric Blake  <ebb9@byu.net>
44105
44106         Give gcc some memmem optimization hints.
44107         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
44108         (strcasestr): Declare as pure.
44109         * modules/memmem (Maintainer): Claim my implementation.
44110
44111 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44112
44113         Support AIX 6.1 and higher.
44114         * build-aux/config.libpath: Likewise.
44115         * build-aux/config.rpath: Likewise.
44116
44117 2008-01-08  Jim Meyering  <meyering@redhat.com>
44118             Bruno Haible  <bruno@clisp.org>
44119
44120         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
44121         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
44122         Reported by Peter Fales in
44123         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
44124
44125 2008-01-08  Bruno Haible  <bruno@clisp.org>
44126
44127         * modules/unictype/category-of (Depends-on): Add
44128         unictype/category-none.
44129         * modules/unictype/category-and-tests (Depends-on): Add
44130         unictype/category-{L,N,Lu,Nd}.
44131         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
44132         * modules/unictype/category-or-tests (Depends-on): Add
44133         unictype/category-{L,N}.
44134         * modules/unictype/category-name-tests (Depends-on): Add
44135         unictype/category-{Z,Nl}.
44136         Reported by Simon Josefsson.
44137
44138 2008-01-08  Bruno Haible  <bruno@clisp.org>
44139
44140         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
44141         convention better.
44142         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
44143         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
44144         Reported by Peter Miller <millerp@canb.auug.org.au>.
44145
44146 2008-01-08  Eric Blake  <ebb9@byu.net>
44147
44148         Rewrite memmem to guarantee linear complexity without malloc.
44149         * lib/memmem.c (memmem): Use Two-Way rather than
44150         Knuth-Morris-Pratt, to allow O(1) space usage.
44151         (critical_factorization, two_way_short_needle)
44152         (two_way_long_needle): New functions.
44153         (knuth_morris_pratt): Delete.
44154         * modules/memmem (Depends-on): No longer need malloca or stdbool.
44155         Add stdint.
44156         * tests/test-memmem.c (main): Add tests for periodic needle and
44157         sublinear performance.
44158         * doc/functions/memmem.texi (memmem): Document other deficiencies
44159         in cygwin and older glibc.
44160
44161 2008-01-08  Bruno Haible  <bruno@clisp.org>
44162
44163         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
44164         augmentation.
44165
44166 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
44167
44168         Add a configure time option: --disable-acl.
44169         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
44170         AC_ARG_ENABLE(acl).
44171
44172 2008-01-06  Simon Josefsson  <simon@josefsson.org>
44173
44174         * tests/test-localename.c: Don't include obsolete "setenv.h".
44175
44176         * modules/localename-tests (Depends-on): Need unsetenv.
44177
44178 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44179
44180         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
44181
44182 2008-01-06  Colin Watson  <cjwatson@debian.org>
44183
44184         * users.txt: Add man-db.
44185
44186 2008-01-07  Bruno Haible  <bruno@clisp.org>
44187
44188         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
44189         previous section name.
44190
44191 2008-01-07  Bruno Haible  <bruno@clisp.org>
44192
44193         * lib/progname.c (set_program_name): Don't strip off a leading
44194         "lt-" prefix outside a .libs directory.
44195         Suggested by Paul Eggert.
44196
44197 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
44198             Bruno Haible  <bruno@clisp.org>
44199
44200         Improve memory cleanup in 'relocatable' module.
44201         * lib/relocatable.h (compute_curr_prefix): Change return type to
44202         'char *'.
44203         * lib/relocatable.c (compute_curr_prefix): Change return type to
44204         'char *'. Free curr_installdir after use.
44205         (relocate): Free curr_prefix_better after use.
44206         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
44207
44208 2008-01-01  Bruno Haible  <bruno@clisp.org>
44209
44210         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
44211         failure on older glibc systems.
44212         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44213
44214 2008-01-05  Eric Blake  <ebb9@byu.net>
44215
44216         Avoid quadratic system memmem.
44217         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
44218         Reported by Ralf Wildenhues.
44219
44220         Fix memmem test for mingw.
44221         * modules/memmem-tests (configure.ac): Check for alarm.
44222         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
44223         it.
44224         * doc/functions/memmem.texi: New file.
44225         * doc/gnulib.texi (Function Substitutes): Add memmem.
44226         Reported by Bruno Haible.
44227
44228 2008-01-04  Bruno Haible  <bruno@clisp.org>
44229
44230         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
44231         Require gl_HEADER_STRINGS_H_DEFAULTS, not
44232         gl_HEADER_STRING_H_DEFAULTS.
44233
44234 2008-01-04  Eric Blake  <ebb9@byu.net>
44235
44236         Shorten duration of memmem test.
44237         * tests/test-memmem.c (main): Use alarm to declare failure if test
44238         is taking too long.
44239         Reported by Ralf Wildenhues.
44240
44241 2007-12-21  Simon Josefsson  <simon@josefsson.org>
44242
44243         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
44244         string, needed by strerror.
44245
44246 2008-01-03  Colin Watson  <cjwatson@debian.org>
44247             Bruno Haible  <bruno@clisp.org>
44248
44249         * doc/gnulib-tool.texi (Localization): New section.
44250
44251 2008-01-02  Bruno Haible  <bruno@clisp.org>
44252
44253         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
44254         variables to 'unsigned char *' type.
44255         Reported by Paul Eggert.
44256
44257 2008-01-02  Jim Meyering  <jim@meyering.net>
44258
44259         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
44260
44261 2007-12-31  Jim Meyering  <jim@meyering.net>
44262
44263         Avoid use of private FTS type name.
44264         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
44265
44266 2007-12-30  Karl Berry  <karl@gnu.org>
44267
44268         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
44269         work around defect in Texinfo and/or the standalone Info browser.
44270
44271 2007-12-30  Bruno Haible  <bruno@clisp.org>
44272
44273         Unify 5 copies of the KMP code.
44274         * lib/str-kmp.h: New file.
44275         * lib/c-strcasestr.c: Include str-kmp.h.
44276         (knuth_morris_pratt): Remove function.
44277         (c_strcasestr): Update.
44278         * lib/c-strstr.c: Include str-kmp.h.
44279         (knuth_morris_pratt): Remove function.
44280         (c_strcasestr): Update.
44281         * lib/mbscasestr.c: Include str-kmp.h.
44282         (knuth_morris_pratt_unibyte): Remove function.
44283         * lib/mbsstr.c: Include str-kmp.h.
44284         (knuth_morris_pratt_unibyte): Remove function.
44285         * lib/strcasestr.c: Include str-kmp.h.
44286         (knuth_morris_pratt): Remove function.
44287         (strcasestr): Update.
44288         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
44289         * modules/c-strstr (Files): Likewise.
44290         * modules/mbscasestr (Files): Likewise.
44291         * modules/mbsstr (Files): Likewise.
44292         * modules/strcasestr (Files): Likewise.
44293         Suggested by Paul Eggert.
44294
44295 2007-12-30  Bruno Haible  <bruno@clisp.org>
44296
44297         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
44298         defined.
44299
44300 2007-12-30  Bruno Haible  <bruno@clisp.org>
44301
44302         * lib/xmalloca.h: Include xalloc.h.
44303         (xnmalloca): New macro.
44304
44305 2007-12-30  Bruno Haible  <bruno@clisp.org>
44306
44307         * lib/malloca.h (nmalloca): New macro.
44308         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
44309         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
44310         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
44311         knuth_morris_pratt_multibyte): Likewise.
44312         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
44313         knuth_morris_pratt_multibyte): Likewise.
44314         * lib/memmem.c (knuth_morris_pratt): Likewise.
44315         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
44316
44317 2007-12-25  Bruno Haible  <bruno@clisp.org>
44318
44319         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
44320         * lib/glob.c: Don't include openat.h.
44321         (link_exists2_p): Add back the code that deals with the
44322         !GLOB_ALTDIRFUNC case.
44323         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
44324         let it do the filename concatenation.
44325         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
44326         * modules/glob (Depends-on): Remove openat.
44327
44328 2007-12-31  Bruno Haible  <bruno@clisp.org>
44329
44330         * modules/dirfd (License): Change to LGPLv2+.
44331         Approved by Jim Meyering.
44332
44333 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44334
44335         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
44336         when multiplying M by sizeof (size_t).
44337
44338 2007-12-10  Martin Lambers  <marlam@marlam.de>
44339
44340         Override getpagesize on mingw.
44341         * lib/getpagesize.c: New file.
44342         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
44343         * modules/getpagesize (Files): Add lib/getpagesize.c.
44344         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
44345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44346         REPLACE_GETPAGESIZE.
44347         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
44348
44349 2007-12-25  Bruno Haible  <bruno@clisp.org>
44350
44351         * modules/localcharset (Notice): New field.
44352         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
44353         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
44354
44355 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44356             Bruno Haible  <bruno@clisp.org>
44357
44358         Avoid using the syntax symbol() in formatted documentation.
44359         * MODULES.html.sh (func_module): When replacing symbol() with a
44360         hyperlink, remove the parentheses. Show an error if some remain.
44361         Recognize and render the '...' syntax.
44362         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
44363         Rework. Add paragraph about GCC's inlining.
44364         * doc/alloca.texi: Likewise.
44365         * doc/error.texi: Remove parentheses from symbol reference.
44366         * doc/gnulib-intro.texi: Likewise.
44367         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
44368         * modules/fnmatch (Description): Reword to say "the ... function".
44369         * modules/full-read (Description): Likewise.
44370         * modules/full-write (Description): Likewise.
44371         * modules/safe-read (Description): Likewise.
44372         * modules/safe-write (Description): Likewise.
44373         * modules/strchrnul (Description): Likewise.
44374         * modules/trim (Description): Likewise.
44375         * modules/error (Description): Remove parentheses from symbol
44376         references.
44377         * modules/verror (Description): Likewise.
44378         Reported by Karl Berry.
44379
44380 2007-12-25  Bruno Haible  <bruno@clisp.org>
44381
44382         Fixup after 2007-10-16 commit.
44383         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
44384
44385 2007-12-24  Bruno Haible  <bruno@clisp.org>
44386
44387         Make --enable-relocatable work with DESTDIR.
44388         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
44389         to compute installdir from destprog.
44390         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
44391         also set the RELOC_DESTDIR variable.
44392         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44393
44394 2007-12-24  Bruno Haible  <bruno@clisp.org>
44395
44396         Fix link error due to xalloc_die().
44397         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
44398         of xreadlink.
44399         * lib/relocwrapper.c: Update comments.
44400         * build-aux/install-reloc: Remove xreadlink.c from file list.
44401         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
44402         xreadlink.c.
44403         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44404
44405 2007-12-24  Bruno Haible  <bruno@clisp.org>
44406
44407         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
44408         * lib/setenv.h: Remove file.
44409         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
44410         lib/setenv.h.
44411         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
44412         (Depends-on): Add stdlib.
44413         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
44414         gl_FUNC_UNSETENV.
44415         (Include): Replace setenv.h with <stdlib.h>.
44416         * modules/unsetenv: New file.
44417         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
44418         * lib/unsetenv.c: Include <stdlib.h> first.
44419         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
44420         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
44421         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
44422         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
44423         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
44424         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
44426         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44427         * doc/functions/unsetenv.texi: Update.
44428         * modules/xsetenv (Depends-on): Add unsetenv.
44429         * modules/getdate (Depends-on): Likewise.
44430         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
44431         * lib/xsetenv.c: Don't include setenv.h.
44432         * lib/getdate.y: Likewise.
44433         * lib/relocwrapper.c: Likewise.
44434         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
44435         (Depends-on): Add stdlib.
44436         * NEWS: Mention the changes.
44437         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44438
44439 2007-12-23  Bruno Haible  <bruno@clisp.org>
44440
44441         * lib/memmem.c (memmem): Use lowercase variable names. Tab
44442         indentation.
44443
44444 2007-12-23  Bruno Haible  <bruno@clisp.org>
44445
44446         * lib/c-strcasestr.c: Add more comments.
44447         * lib/c-strstr.c: Likewise.
44448         * lib/mbscasestr.c: Likewise.
44449         * lib/mbsstr.c: Likewise.
44450         * lib/strcasestr.c: Likewise.
44451         * lib/memmem.c: Likewise.
44452
44453 2007-12-23  Bruno Haible  <bruno@clisp.org>
44454
44455         * tests/test-memmem.c: Include <string.h> first.
44456
44457 2007-12-22  Bruno Haible  <bruno@clisp.org>
44458
44459         * gnulib-tool (func_create_testdir): Change $auxdir while generating
44460         the contents of $testsbase.
44461         Reported by Ralf Wildenhues.
44462
44463 2007-12-22  Bruno Haible  <bruno@clisp.org>
44464
44465         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
44466         two variables local_ldadd_before, local_ldadd_last.
44467
44468 2007-12-20  Eric Blake  <ebb9@byu.net>
44469
44470         Work around circular library issue when cross-compiling.
44471         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
44472         that progname.o does not need to pull in rpl_memcmp.
44473
44474 2007-12-19  Eric Blake  <ebb9@byu.net>
44475
44476         Fix memmem to avoid O(n^2) worst-case complexity.
44477         * lib/memmem.c (knuth_morris_pratt): New function.
44478         (memmem): Use it if first few naive iterations fail.
44479         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
44480         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
44481         * modules/memchr (License): Likewise.
44482         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
44483         malloca.
44484         * tests/test-memmem.c: Rewrite, borrowing ideas from
44485         test-mbsstr1.c; the old version wouldn't even compile!
44486         * modules/memmem-tests: New file.
44487         * lib/string.in.h (rpl_memmem): Add declaration.
44488         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
44489         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
44490         REPLACE_MEMMEM.
44491
44492 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44493
44494         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
44495         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
44496         before any system include files, and undef after them all.  This
44497         should fix a problem on VMS reported by John E. Malmberg in
44498         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
44499
44500 2007-12-17  Eric Blake  <ebb9@byu.net>
44501
44502         Revert addition of verify, for BSD/OS.
44503         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
44504         can't handle large files, for the sake of obsolete platforms.
44505         * modules/fseeko (Depends-on): Remove verify.
44506         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
44507         * doc/functions/ftello.texi (ftello): Likewise.
44508         * doc/functions/fgetpos.texi (fgetpos): Likewise.
44509         Reported by Larry Jones.
44510
44511 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
44512
44513         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
44514         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
44515
44516 2007-12-17  Jim Meyering  <meyering@redhat.com>
44517
44518         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
44519         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
44520         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
44521         * modules/getcwd (Depends-on): Add openat.
44522         Reported by Petr Salinger.
44523
44524 2007-12-17  Bruno Haible  <bruno@clisp.org>
44525
44526         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
44527         avoid a segmentation fault of the configure test on x86_64 systems.
44528
44529 2007-12-15  Jim Meyering  <meyering@redhat.com>
44530
44531         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
44532
44533 2007-12-13  Eric Blake  <ebb9@byu.net>
44534
44535         Another fseek test.
44536         * tests/test-fseek.c (main): Also test ungetc handling.
44537         * tests/test-fseeko.c (main): Likewise.
44538         * modules/fseeko (Depends-on): Add verify.
44539         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
44540         large.
44541         Reported by Larry Jones.
44542
44543         Fix fseeko on mingw.
44544         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
44545         seek.
44546
44547         Beef up fseek tests.
44548         * tests/test-fseek.c (main): Also test eof handling.
44549         * tests/test-fseeko.c (main): Likewise.
44550         Reported by Larry Jones.
44551
44552 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
44553
44554         Fix fseeko on BSD-based platforms.
44555         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
44556         successful seek.
44557
44558 2007-12-12  Eric Blake  <ebb9@byu.net>
44559
44560         Allow circular dependency of separate libtests.a
44561         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
44562         when use_libtests.
44563
44564 2007-12-11  Eric Blake  <ebb9@byu.net>
44565
44566         Fix bug with -0.0L in previous patch.
44567         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
44568         * tests/test-isnan.c (main): Also test on zeroes.
44569         * tests/test-isnanf.c (main): Likewise.
44570         * tests/test-isnanl.h (main): Likewise.
44571
44572         Detect pseudo-denormals on x86 even when cross-compiling.
44573         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
44574         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
44575         invalid bit patterns that happen to satisfy ==.
44576
44577         Avoid link failures with separate libtests.a.
44578         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
44579         last, to satisfy circular dependencies.
44580
44581 2007-12-11  Eric Blake  <ebb9@byu.net>
44582         and Bruno Haible  <bruno@clisp.org>
44583
44584         Fix OpenBSD 4.0 <float.h> handling of long double.
44585         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
44586         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
44587         * doc/headers/float.texi (float.h): Document OpenBSD bug.
44588
44589 2007-12-11  Jim Meyering  <meyering@redhat.com>
44590
44591         * users.txt: Add libvirt.
44592
44593         Support versions of autoconf prior to 2.59c.
44594         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
44595         if it is not already defined.
44596
44597 2007-12-09  Bruno Haible  <bruno@clisp.org>
44598
44599         Let 'gnulib-tool --import' collect sources needed for the tests in
44600         tests/ rather than in lib/.
44601         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
44602         argument. If true, add rules to generate libtests.a, and put libtests.a
44603         into $(LDADD). Consider source files in subdirectories and set
44604         uses_subdirs.
44605         (func_emit_initmacro_start, func_emit_initmacro_end,
44606         func_emit_initmacro_done): Pass all arguments explicitly.
44607         (func_import): Determine two module lists main_modules,
44608         testsrelated_modules. Determine use_libtests. Determine two variables
44609         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
44610         instead of just sed_transform_lib_file. Determine two variables
44611         main_files and testsrelated_files. Compute 'files' as the union of
44612         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
44613         func_add_or_update. In the generated gnulib-comp.m4, collect the
44614         object files for tests/ in different variables than those for lib/.
44615         Substitute LIBTESTS_LIBDEPS.
44616         (func_create_testdir): Combine the uses_subdirs results from
44617         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
44618
44619 2007-12-09  Bruno Haible  <bruno@clisp.org>
44620
44621         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
44622         the build-aux directory.
44623
44624 2007-12-09  Bruno Haible  <bruno@clisp.org>
44625
44626         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
44627         introduced on 2006-09-09.
44628
44629 2007-12-07  Jim Meyering  <meyering@redhat.com>
44630
44631         Let these macros work also with autoconf-2.59.
44632         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
44633         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
44634         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44635
44636 2007-12-06  Jim Meyering  <meyering@redhat.com>
44637
44638         Avoid a configure-time syntax error in gl_FUNC_ACL.
44639         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
44640         function in each branch, before testing the cache variable.
44641
44642 2007-12-04  Eric Blake  <ebb9@byu.net>
44643
44644         Make scripts executable.
44645         * build-aux/config.guess: Add execute permissions.
44646         * build-aux/config.sub: Likewise.
44647         * build-aux/gendocs.sh: Likewise.
44648
44649         Fix frexp on mingw.
44650         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44651         cross-compiling.
44652         * doc/functions/frexp.texi (frexp): Document the bug.
44653
44654         Make cygwin fseeko check more reliable.
44655         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44656         version numbers, rather than unrelated feature check.
44657         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44658         * doc/functions/ftello.texi (ftello): Likewise.
44659         Reported by Bruno Haible.
44660
44661         * m4/strerror.m4: Bump version number.
44662
44663 2007-12-03  Bruno Haible  <bruno@clisp.org>
44664
44665         * doc/functions/mprotect.texi: Mention the mingw problem.
44666
44667 2007-12-03  Eric Blake  <ebb9@byu.net>
44668
44669         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44670         REPLACE_STRERROR is initialized before this macro.
44671
44672 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44673
44674         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44675         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44676         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44677         put -lsec in even for programs other than 'ls'.  This fixes a problem
44678         for gettext reported by Bruno Haible in
44679         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44680         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44681         Add support for Solaris 10.  This isn't efficient, but should get the
44682         job done for now.
44683
44684 2007-12-03  James Youngman  <jay@gnu.org>
44685
44686         * doc/regexprops-generic.texi: change "an close-group" to "a
44687         close-group" and "illegal" to "not allowed".
44688
44689 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44690
44691         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44692         pr_byname.h. Needed for the rare case when the maintainer has done
44693         "make maintainer-clean" in the source directory and then attempts a
44694         build outside the source directory.
44695         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44696         scripts_byname.h.
44697
44698 2007-12-02  Martin Lambers <marlam@marlam.de>
44699             Bruno Haible  <bruno@clisp.org>
44700
44701         * lib/getpagesize.h: Remove file.
44702         * lib/unistd.in.h: Include declaration of getpagesize here.
44703         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44704         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44705         HAVE_SYS_PARAM_H.
44706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44707         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44708         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44709         (Depends-on): Add unistd.
44710         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44711         (Include): Use <unistd.h> instead of getpagesize.h.
44712         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44713         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44714         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44715         gl_GETPAGESIZE invocation, already handled by module dependency.
44716         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44717
44718 2007-12-02  Bruno Haible  <bruno@clisp.org>
44719
44720         * modules/strings-tests: New file.
44721         * tests/test-strings.c: New file.
44722
44723         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44724         * lib/strings.in.h: New file.
44725         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44726         * m4/strings_h.m4: New file.
44727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44728         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44729         * modules/strings: New file.
44730         * modules/string (Makefile.am): Update.
44731         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44732         Reported by Karl Berry.
44733
44734 2007-12-01  Eric Blake  <ebb9@byu.net>
44735
44736         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44737         accomodate fix in cygwin 1.5.25.
44738
44739 2007-12-01  Jim Meyering  <meyering@redhat.com>
44740
44741         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44742         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44743         that would inhibit utf8-optimization of a regexp containing line-
44744         or buffer-anchors, e.g., `^', `$'.
44745
44746 2007-11-30  Bruno Haible  <bruno@clisp.org>
44747
44748         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44749         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44750         glthread_recursive_lock_init.
44751         * lib/lock.c (glthread_recursive_lock_init)
44752         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44753         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44754
44755 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44756
44757         New function qset_acl, like set_acl but with syscall semantics.
44758         * lib/acl.h (qset_acl): New decl.
44759         * lib/acl.c (qset_acl): New function.
44760         (set_acl): Use new function.  Use more-consistent diagnostics.
44761
44762 2007-11-28  Jim Meyering  <meyering@redhat.com>
44763
44764         * modules/physmem (License): Change from GPL to LGPLv2+.
44765
44766 2007-11-26  Bruno Haible  <bruno@clisp.org>
44767
44768         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44769         'long double' type has excess precision.
44770         Reported by Jim Meyering in
44771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44772
44773 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44774
44775         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44776         Sync from <http://gnu.org/licenses>.
44777         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44778         with license text from same location.
44779         * doc/maintain.texi, doc/standards.texi:  Sync from
44780         <http://savannah.gnu.org/projects/gnustandards>.
44781
44782 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44783         and Jim Meyering  <meyering@redhat.com>
44784
44785         Adjust getdate' grammar to accept a slightly more regular language.
44786         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44787         Before, the former was rejected.
44788         * lib/getdate.y (digits_to_date_time): New function, factored
44789         out of ...
44790         (number): ...here.  Just call digits_to_date_time.
44791         (hybrid): New non-terminal to handle an <unsigned number,
44792         signed relative offset> sequence consistently.
44793
44794 2007-11-18  Jim Meyering  <meyering@redhat.com>
44795
44796         Pull my changes from coreutils:
44797         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44798         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44799         use of $gnulib_tool_option_extras, so that it's separated from the
44800         preceding argument.
44801
44802         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44803         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44804         parent destination directories before copying a file into place.
44805
44806 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44807
44808         bootstrap: work also with 4-argument variant of AC_INIT
44809         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44810
44811 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44812
44813         Port test-getaddrinfo to Solaris.
44814         Problem reported by Bruno Haible in
44815         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44816         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44817         explanation of setting 'hints'.
44818         Don't reject an implementation merely because it returns EAI_SERVICE.
44819         (EAI_SERVICE): Define to 0 if not defined.
44820
44821 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44822
44823         The license of gnu-make and posix-shell is now "GPLed build tool".
44824         * modules/gnu-make (License): Likewise.
44825         * modules/posix-shell (License): Likewise.
44826
44827         New module posix-shell, for determining a POSIX shell
44828         or perhaps something that is close enough to a POSIX shell.
44829         * m4/posix-shell.m4: New file.
44830         * modules/posix-shell: New file.
44831
44832         * MODULES.html.sh: Mention new module.
44833
44834         New module gnu-make, for determining whether we're using GNU Make.
44835         * m4/gnu-make.m4: New file.
44836         * modules/gnu-make: New file.
44837         * MODULES.html.sh: Mention new module.
44838
44839 2007-11-14  Jim Meyering  <meyering@redhat.com>
44840
44841         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44842         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44843         use this macro to create a function _definition_.
44844         Remove useless "#undef ARGMATCH_DIE".
44845
44846 2007-11-14  Bruno Haible  <bruno@clisp.org>
44847
44848         * lib/config.charset: Update for OpenBSD 4.1.
44849         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44850
44851 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44852
44853         Document 64-bit #if problems in stdint.texi.
44854         * doc/headers/stdint.texi (stdint.h): Mention problems with
44855         64-bit-#if, and how to work around them.
44856
44857         Don't insist on 'long long int' support in the preprocessor.  It
44858         breaks too many things.  For example, PRIdMAX still uses a 'long
44859         long int' format with the latest Sun compiler, even though
44860         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44861         preprocessor problem.  This causes the latest coreutils to dump
44862         core on Solaris 10 sparc with the Sun C compiler.
44863         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44864         the troublesome expressions at configure-time, not at #if-time.
44865         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44866         preprocessor.
44867         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44868         compile-time C checks, done at 'configure'-time.
44869         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44870         * modules/inttypes (Makefile): Substitute the new symbols that
44871         gl_INTTYPES_H now generates.
44872         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44873
44874 2007-11-12  Bruno Haible  <bruno@clisp.org>
44875
44876         Tests for Unicode character classification functions.
44877
44878         * modules/unictype/bidicategory-byname-tests: New file.
44879         * modules/unictype/bidicategory-name-tests: New file.
44880         * modules/unictype/bidicategory-of-tests: New file.
44881         * modules/unictype/bidicategory-test-tests: New file.
44882         * modules/unictype/block-list-tests: New file.
44883         * modules/unictype/block-of-tests: New file.
44884         * modules/unictype/block-test-tests: New file.
44885         * modules/unictype/category-C-tests: New file.
44886         * modules/unictype/category-Cc-tests: New file.
44887         * modules/unictype/category-Cf-tests: New file.
44888         * modules/unictype/category-Cn-tests: New file.
44889         * modules/unictype/category-Co-tests: New file.
44890         * modules/unictype/category-Cs-tests: New file.
44891         * modules/unictype/category-L-tests: New file.
44892         * modules/unictype/category-Ll-tests: New file.
44893         * modules/unictype/category-Lm-tests: New file.
44894         * modules/unictype/category-Lo-tests: New file.
44895         * modules/unictype/category-Lt-tests: New file.
44896         * modules/unictype/category-Lu-tests: New file.
44897         * modules/unictype/category-M-tests: New file.
44898         * modules/unictype/category-Mc-tests: New file.
44899         * modules/unictype/category-Me-tests: New file.
44900         * modules/unictype/category-Mn-tests: New file.
44901         * modules/unictype/category-N-tests: New file.
44902         * modules/unictype/category-Nd-tests: New file.
44903         * modules/unictype/category-Nl-tests: New file.
44904         * modules/unictype/category-No-tests: New file.
44905         * modules/unictype/category-P-tests: New file.
44906         * modules/unictype/category-Pc-tests: New file.
44907         * modules/unictype/category-Pd-tests: New file.
44908         * modules/unictype/category-Pe-tests: New file.
44909         * modules/unictype/category-Pf-tests: New file.
44910         * modules/unictype/category-Pi-tests: New file.
44911         * modules/unictype/category-Po-tests: New file.
44912         * modules/unictype/category-Ps-tests: New file.
44913         * modules/unictype/category-S-tests: New file.
44914         * modules/unictype/category-Sc-tests: New file.
44915         * modules/unictype/category-Sk-tests: New file.
44916         * modules/unictype/category-Sm-tests: New file.
44917         * modules/unictype/category-So-tests: New file.
44918         * modules/unictype/category-Z-tests: New file.
44919         * modules/unictype/category-Zl-tests: New file.
44920         * modules/unictype/category-Zp-tests: New file.
44921         * modules/unictype/category-Zs-tests: New file.
44922         * modules/unictype/category-and-not-tests: New file.
44923         * modules/unictype/category-and-tests: New file.
44924         * modules/unictype/category-byname-tests: New file.
44925         * modules/unictype/category-name-tests: New file.
44926         * modules/unictype/category-none-tests: New file.
44927         * modules/unictype/category-of-tests: New file.
44928         * modules/unictype/category-or-tests: New file.
44929         * modules/unictype/category-test-withtable-tests: New file.
44930         * modules/unictype/combining-class-tests: New file.
44931         * modules/unictype/ctype-alnum-tests: New file.
44932         * modules/unictype/ctype-alpha-tests: New file.
44933         * modules/unictype/ctype-blank-tests: New file.
44934         * modules/unictype/ctype-cntrl-tests: New file.
44935         * modules/unictype/ctype-digit-tests: New file.
44936         * modules/unictype/ctype-graph-tests: New file.
44937         * modules/unictype/ctype-lower-tests: New file.
44938         * modules/unictype/ctype-print-tests: New file.
44939         * modules/unictype/ctype-punct-tests: New file.
44940         * modules/unictype/ctype-space-tests: New file.
44941         * modules/unictype/ctype-upper-tests: New file.
44942         * modules/unictype/ctype-xdigit-tests: New file.
44943         * modules/unictype/decimal-digit-tests: New file.
44944         * modules/unictype/digit-tests: New file.
44945         * modules/unictype/mirror-tests: New file.
44946         * modules/unictype/numeric-tests: New file.
44947         * modules/unictype/property-alphabetic-tests: New file.
44948         * modules/unictype/property-ascii-hex-digit-tests: New file.
44949         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44950         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44951         * modules/unictype/property-bidi-block-separator-tests: New file.
44952         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44953         * modules/unictype/property-bidi-common-separator-tests: New file.
44954         * modules/unictype/property-bidi-control-tests: New file.
44955         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44956         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44957         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44958         * modules/unictype/property-bidi-european-digit-tests: New file.
44959         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44960         * modules/unictype/property-bidi-left-to-right-tests: New file.
44961         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44962         * modules/unictype/property-bidi-other-neutral-tests: New file.
44963         * modules/unictype/property-bidi-pdf-tests: New file.
44964         * modules/unictype/property-bidi-segment-separator-tests: New file.
44965         * modules/unictype/property-bidi-whitespace-tests: New file.
44966         * modules/unictype/property-byname-tests: New file.
44967         * modules/unictype/property-combining-tests: New file.
44968         * modules/unictype/property-composite-tests: New file.
44969         * modules/unictype/property-currency-symbol-tests: New file.
44970         * modules/unictype/property-dash-tests: New file.
44971         * modules/unictype/property-decimal-digit-tests: New file.
44972         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44973         * modules/unictype/property-deprecated-tests: New file.
44974         * modules/unictype/property-diacritic-tests: New file.
44975         * modules/unictype/property-extender-tests: New file.
44976         * modules/unictype/property-format-control-tests: New file.
44977         * modules/unictype/property-grapheme-base-tests: New file.
44978         * modules/unictype/property-grapheme-extend-tests: New file.
44979         * modules/unictype/property-grapheme-link-tests: New file.
44980         * modules/unictype/property-hex-digit-tests: New file.
44981         * modules/unictype/property-hyphen-tests: New file.
44982         * modules/unictype/property-id-continue-tests: New file.
44983         * modules/unictype/property-id-start-tests: New file.
44984         * modules/unictype/property-ideographic-tests: New file.
44985         * modules/unictype/property-ids-binary-operator-tests: New file.
44986         * modules/unictype/property-ids-trinary-operator-tests: New file.
44987         * modules/unictype/property-ignorable-control-tests: New file.
44988         * modules/unictype/property-iso-control-tests: New file.
44989         * modules/unictype/property-join-control-tests: New file.
44990         * modules/unictype/property-left-of-pair-tests: New file.
44991         * modules/unictype/property-line-separator-tests: New file.
44992         * modules/unictype/property-logical-order-exception-tests: New file.
44993         * modules/unictype/property-lowercase-tests: New file.
44994         * modules/unictype/property-math-tests: New file.
44995         * modules/unictype/property-non-break-tests: New file.
44996         * modules/unictype/property-not-a-character-tests: New file.
44997         * modules/unictype/property-numeric-tests: New file.
44998         * modules/unictype/property-other-alphabetic-tests: New file.
44999         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
45000         * modules/unictype/property-other-grapheme-extend-tests: New file.
45001         * modules/unictype/property-other-id-continue-tests: New file.
45002         * modules/unictype/property-other-id-start-tests: New file.
45003         * modules/unictype/property-other-lowercase-tests: New file.
45004         * modules/unictype/property-other-math-tests: New file.
45005         * modules/unictype/property-other-uppercase-tests: New file.
45006         * modules/unictype/property-paired-punctuation-tests: New file.
45007         * modules/unictype/property-paragraph-separator-tests: New file.
45008         * modules/unictype/property-pattern-syntax-tests: New file.
45009         * modules/unictype/property-pattern-white-space-tests: New file.
45010         * modules/unictype/property-private-use-tests: New file.
45011         * modules/unictype/property-punctuation-tests: New file.
45012         * modules/unictype/property-quotation-mark-tests: New file.
45013         * modules/unictype/property-radical-tests: New file.
45014         * modules/unictype/property-sentence-terminal-tests: New file.
45015         * modules/unictype/property-soft-dotted-tests: New file.
45016         * modules/unictype/property-space-tests: New file.
45017         * modules/unictype/property-terminal-punctuation-tests: New file.
45018         * modules/unictype/property-test-tests: New file.
45019         * modules/unictype/property-titlecase-tests: New file.
45020         * modules/unictype/property-unassigned-code-value-tests: New file.
45021         * modules/unictype/property-unified-ideograph-tests: New file.
45022         * modules/unictype/property-uppercase-tests: New file.
45023         * modules/unictype/property-variation-selector-tests: New file.
45024         * modules/unictype/property-white-space-tests: New file.
45025         * modules/unictype/property-xid-continue-tests: New file.
45026         * modules/unictype/property-xid-start-tests: New file.
45027         * modules/unictype/property-zero-width-tests: New file.
45028         * modules/unictype/scripts-tests: New file.
45029         * modules/unictype/syntax-c-ident-tests: New file.
45030         * modules/unictype/syntax-c-whitespace-tests: New file.
45031         * modules/unictype/syntax-java-ident-tests: New file.
45032         * modules/unictype/syntax-java-whitespace-tests: New file.
45033         * tests/unictype/test-bidi_byname.c: New file.
45034         * tests/unictype/test-bidi_name.c: New file.
45035         * tests/unictype/test-bidi_of.c: New file.
45036         * tests/unictype/test-bidi_test.c: New file.
45037         * tests/unictype/test-block_list.c: New file.
45038         * tests/unictype/test-block_of.c: New file.
45039         * tests/unictype/test-block_test.c: New file.
45040         * tests/unictype/test-categ_and.c: New file.
45041         * tests/unictype/test-categ_and_not.c: New file.
45042         * tests/unictype/test-categ_byname.c: New file.
45043         * tests/unictype/test-categ_name.c: New file.
45044         * tests/unictype/test-categ_none.c: New file.
45045         * tests/unictype/test-categ_of.c: New file.
45046         * tests/unictype/test-categ_or.c: New file.
45047         * tests/unictype/test-categ_test_withtable.c: New file.
45048         * tests/unictype/test-combining.c: New file.
45049         * tests/unictype/test-decdigit.c: New file.
45050         * tests/unictype/test-digit.c: New file.
45051         * tests/unictype/test-mirror.c: New file.
45052         * tests/unictype/test-numeric.c: New file.
45053         * tests/unictype/test-pr_byname.c: New file.
45054         * tests/unictype/test-pr_test.c: New file.
45055         * tests/unictype/test-predicate-part1.h: New file.
45056         * tests/unictype/test-predicate-part2.h: New file.
45057         * tests/unictype/test-scripts.c: New file.
45058         * tests/unictype/test-sy_c_ident.c: New file.
45059         * tests/unictype/test-sy_java_ident.c: New file.
45060
45061         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
45062         for Unicode 5.0.0.
45063         * tests/unictype/test-categ_Cc.c: Likewise.
45064         * tests/unictype/test-categ_Cf.c: Likewise.
45065         * tests/unictype/test-categ_Cn.c: Likewise.
45066         * tests/unictype/test-categ_Co.c: Likewise.
45067         * tests/unictype/test-categ_Cs.c: Likewise.
45068         * tests/unictype/test-categ_L.c: Likewise.
45069         * tests/unictype/test-categ_Ll.c: Likewise.
45070         * tests/unictype/test-categ_Lm.c: Likewise.
45071         * tests/unictype/test-categ_Lo.c: Likewise.
45072         * tests/unictype/test-categ_Lt.c: Likewise.
45073         * tests/unictype/test-categ_Lu.c: Likewise.
45074         * tests/unictype/test-categ_M.c: Likewise.
45075         * tests/unictype/test-categ_Mc.c: Likewise.
45076         * tests/unictype/test-categ_Me.c: Likewise.
45077         * tests/unictype/test-categ_Mn.c: Likewise.
45078         * tests/unictype/test-categ_N.c: Likewise.
45079         * tests/unictype/test-categ_Nd.c: Likewise.
45080         * tests/unictype/test-categ_Nl.c: Likewise.
45081         * tests/unictype/test-categ_No.c: Likewise.
45082         * tests/unictype/test-categ_P.c: Likewise.
45083         * tests/unictype/test-categ_Pc.c: Likewise.
45084         * tests/unictype/test-categ_Pd.c: Likewise.
45085         * tests/unictype/test-categ_Pe.c: Likewise.
45086         * tests/unictype/test-categ_Pf.c: Likewise.
45087         * tests/unictype/test-categ_Pi.c: Likewise.
45088         * tests/unictype/test-categ_Po.c: Likewise.
45089         * tests/unictype/test-categ_Ps.c: Likewise.
45090         * tests/unictype/test-categ_S.c: Likewise.
45091         * tests/unictype/test-categ_Sc.c: Likewise.
45092         * tests/unictype/test-categ_Sk.c: Likewise.
45093         * tests/unictype/test-categ_Sm.c: Likewise.
45094         * tests/unictype/test-categ_So.c: Likewise.
45095         * tests/unictype/test-categ_Z.c: Likewise.
45096         * tests/unictype/test-categ_Zl.c: Likewise.
45097         * tests/unictype/test-categ_Zp.c: Likewise.
45098         * tests/unictype/test-categ_Zs.c: Likewise.
45099         * tests/unictype/test-ctype_alnum.c: Likewise.
45100         * tests/unictype/test-ctype_alpha.c: Likewise.
45101         * tests/unictype/test-ctype_blank.c: Likewise.
45102         * tests/unictype/test-ctype_cntrl.c: Likewise.
45103         * tests/unictype/test-ctype_digit.c: Likewise.
45104         * tests/unictype/test-ctype_graph.c: Likewise.
45105         * tests/unictype/test-ctype_lower.c: Likewise.
45106         * tests/unictype/test-ctype_print.c: Likewise.
45107         * tests/unictype/test-ctype_punct.c: Likewise.
45108         * tests/unictype/test-ctype_space.c: Likewise.
45109         * tests/unictype/test-ctype_upper.c: Likewise.
45110         * tests/unictype/test-ctype_xdigit.c: Likewise.
45111         * tests/unictype/test-decdigit.h: Likewise.
45112         * tests/unictype/test-digit.h: Likewise.
45113         * tests/unictype/test-numeric.h: Likewise.
45114         * tests/unictype/test-pr_alphabetic.c: Likewise.
45115         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
45116         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45117         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
45118         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
45119         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
45120         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
45121         * tests/unictype/test-pr_bidi_control.c: Likewise.
45122         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
45123         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
45124         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45125         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45126         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45127         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45128         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45129         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45130         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
45131         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
45132         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
45133         * tests/unictype/test-pr_combining.c: Likewise.
45134         * tests/unictype/test-pr_composite.c: Likewise.
45135         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45136         * tests/unictype/test-pr_dash.c: Likewise.
45137         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45138         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
45139         * tests/unictype/test-pr_deprecated.c: Likewise.
45140         * tests/unictype/test-pr_diacritic.c: Likewise.
45141         * tests/unictype/test-pr_extender.c: Likewise.
45142         * tests/unictype/test-pr_format_control.c: Likewise.
45143         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45144         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45145         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45146         * tests/unictype/test-pr_hex_digit.c: Likewise.
45147         * tests/unictype/test-pr_hyphen.c: Likewise.
45148         * tests/unictype/test-pr_id_continue.c: Likewise.
45149         * tests/unictype/test-pr_id_start.c: Likewise.
45150         * tests/unictype/test-pr_ideographic.c: Likewise.
45151         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
45152         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
45153         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45154         * tests/unictype/test-pr_iso_control.c: Likewise.
45155         * tests/unictype/test-pr_join_control.c: Likewise.
45156         * tests/unictype/test-pr_left_of_pair.c: Likewise.
45157         * tests/unictype/test-pr_line_separator.c: Likewise.
45158         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45159         * tests/unictype/test-pr_lowercase.c: Likewise.
45160         * tests/unictype/test-pr_math.c: Likewise.
45161         * tests/unictype/test-pr_non_break.c: Likewise.
45162         * tests/unictype/test-pr_not_a_character.c: Likewise.
45163         * tests/unictype/test-pr_numeric.c: Likewise.
45164         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45165         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
45166         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
45167         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45168         * tests/unictype/test-pr_other_id_start.c: Likewise.
45169         * tests/unictype/test-pr_other_lowercase.c: Likewise.
45170         * tests/unictype/test-pr_other_math.c: Likewise.
45171         * tests/unictype/test-pr_other_uppercase.c: Likewise.
45172         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
45173         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
45174         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
45175         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
45176         * tests/unictype/test-pr_private_use.c: Likewise.
45177         * tests/unictype/test-pr_punctuation.c: Likewise.
45178         * tests/unictype/test-pr_quotation_mark.c: Likewise.
45179         * tests/unictype/test-pr_radical.c: Likewise.
45180         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45181         * tests/unictype/test-pr_soft_dotted.c: Likewise.
45182         * tests/unictype/test-pr_space.c: Likewise.
45183         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45184         * tests/unictype/test-pr_titlecase.c: Likewise.
45185         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45186         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45187         * tests/unictype/test-pr_uppercase.c: Likewise.
45188         * tests/unictype/test-pr_variation_selector.c: Likewise.
45189         * tests/unictype/test-pr_white_space.c: Likewise.
45190         * tests/unictype/test-pr_xid_continue.c: Likewise.
45191         * tests/unictype/test-pr_xid_start.c: Likewise.
45192         * tests/unictype/test-pr_zero_width.c: Likewise.
45193         * tests/unictype/test-sy_c_whitespace.c: Likewise.
45194         * tests/unictype/test-sy_java_whitespace.c: Likewise.
45195
45196 2007-11-12  Bruno Haible  <bruno@clisp.org>
45197
45198         Unicode character classification functions.
45199         * lib/unictype.h: New file.
45200         * modules/unictype/base: New file.
45201         * modules/unictype/category-L: New file.
45202         * modules/unictype/category-Lu: New file.
45203         * modules/unictype/category-Ll: New file.
45204         * modules/unictype/category-Lt: New file.
45205         * modules/unictype/category-Lm: New file.
45206         * modules/unictype/category-Lo: New file.
45207         * modules/unictype/category-M: New file.
45208         * modules/unictype/category-Mn: New file.
45209         * modules/unictype/category-Mc: New file.
45210         * modules/unictype/category-Me: New file.
45211         * modules/unictype/category-N: New file.
45212         * modules/unictype/category-Nd: New file.
45213         * modules/unictype/category-Nl: New file.
45214         * modules/unictype/category-No: New file.
45215         * modules/unictype/category-P: New file.
45216         * modules/unictype/category-Pc: New file.
45217         * modules/unictype/category-Pd: New file.
45218         * modules/unictype/category-Ps: New file.
45219         * modules/unictype/category-Pe: New file.
45220         * modules/unictype/category-Pi: New file.
45221         * modules/unictype/category-Pf: New file.
45222         * modules/unictype/category-Po: New file.
45223         * modules/unictype/category-S: New file.
45224         * modules/unictype/category-Sm: New file.
45225         * modules/unictype/category-Sc: New file.
45226         * modules/unictype/category-Sk: New file.
45227         * modules/unictype/category-So: New file.
45228         * modules/unictype/category-Z: New file.
45229         * modules/unictype/category-Zs: New file.
45230         * modules/unictype/category-Zl: New file.
45231         * modules/unictype/category-Zp: New file.
45232         * modules/unictype/category-C: New file.
45233         * modules/unictype/category-Cc: New file.
45234         * modules/unictype/category-Cf: New file.
45235         * modules/unictype/category-Cs: New file.
45236         * modules/unictype/category-Co: New file.
45237         * modules/unictype/category-Cn: New file.
45238         * modules/unictype/category-or: New file.
45239         * modules/unictype/category-of: New file.
45240         * modules/unictype/category-test: New file.
45241         * modules/unictype/category-test-withtable: New file.
45242         * modules/unictype/category-byname: New file.
45243         * modules/unictype/category-none: New file.
45244         * modules/unictype/category-and: New file.
45245         * modules/unictype/category-and-not: New file.
45246         * modules/unictype/category-name: New file.
45247         * modules/unictype/combining-class: New file.
45248         * modules/unictype/category-all: New file.
45249         * modules/unictype/bidicategory-all: New file.
45250         * modules/unictype/bidicategory-byname: New file.
45251         * modules/unictype/bidicategory-name: New file.
45252         * modules/unictype/bidicategory-of: New file.
45253         * modules/unictype/bidicategory-test: New file.
45254         * modules/unictype/decimal-digit: New file.
45255         * modules/unictype/digit: New file.
45256         * modules/unictype/numeric: New file.
45257         * modules/unictype/mirror: New file.
45258         * modules/unictype/property-white-space: New file.
45259         * modules/unictype/property-alphabetic: New file.
45260         * modules/unictype/property-other-alphabetic: New file.
45261         * modules/unictype/property-not-a-character: New file.
45262         * modules/unictype/property-default-ignorable-code-point: New file.
45263         * modules/unictype/property-other-default-ignorable-code-point: New
45264         file.
45265         * modules/unictype/property-deprecated: New file.
45266         * modules/unictype/property-logical-order-exception: New file.
45267         * modules/unictype/property-variation-selector: New file.
45268         * modules/unictype/property-private-use: New file.
45269         * modules/unictype/property-unassigned-code-value: New file.
45270         * modules/unictype/property-uppercase: New file.
45271         * modules/unictype/property-other-uppercase: New file.
45272         * modules/unictype/property-lowercase: New file.
45273         * modules/unictype/property-other-lowercase: New file.
45274         * modules/unictype/property-titlecase: New file.
45275         * modules/unictype/property-soft-dotted: New file.
45276         * modules/unictype/property-id-start: New file.
45277         * modules/unictype/property-other-id-start: New file.
45278         * modules/unictype/property-id-continue: New file.
45279         * modules/unictype/property-other-id-continue: New file.
45280         * modules/unictype/property-xid-start: New file.
45281         * modules/unictype/property-xid-continue: New file.
45282         * modules/unictype/property-pattern-white-space: New file.
45283         * modules/unictype/property-pattern-syntax: New file.
45284         * modules/unictype/property-join-control: New file.
45285         * modules/unictype/property-grapheme-base: New file.
45286         * modules/unictype/property-grapheme-extend: New file.
45287         * modules/unictype/property-other-grapheme-extend: New file.
45288         * modules/unictype/property-grapheme-link: New file.
45289         * modules/unictype/property-bidi-control: New file.
45290         * modules/unictype/property-bidi-left-to-right: New file.
45291         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
45292         * modules/unictype/property-bidi-arabic-right-to-left: New file.
45293         * modules/unictype/property-bidi-european-digit: New file.
45294         * modules/unictype/property-bidi-eur-num-separator: New file.
45295         * modules/unictype/property-bidi-eur-num-terminator: New file.
45296         * modules/unictype/property-bidi-arabic-digit: New file.
45297         * modules/unictype/property-bidi-common-separator: New file.
45298         * modules/unictype/property-bidi-block-separator: New file.
45299         * modules/unictype/property-bidi-segment-separator: New file.
45300         * modules/unictype/property-bidi-whitespace: New file.
45301         * modules/unictype/property-bidi-non-spacing-mark: New file.
45302         * modules/unictype/property-bidi-boundary-neutral: New file.
45303         * modules/unictype/property-bidi-pdf: New file.
45304         * modules/unictype/property-bidi-embedding-or-override: New file.
45305         * modules/unictype/property-bidi-other-neutral: New file.
45306         * modules/unictype/property-hex-digit: New file.
45307         * modules/unictype/property-ascii-hex-digit: New file.
45308         * modules/unictype/property-ideographic: New file.
45309         * modules/unictype/property-unified-ideograph: New file.
45310         * modules/unictype/property-radical: New file.
45311         * modules/unictype/property-ids-binary-operator: New file.
45312         * modules/unictype/property-ids-trinary-operator: New file.
45313         * modules/unictype/property-zero-width: New file.
45314         * modules/unictype/property-space: New file.
45315         * modules/unictype/property-non-break: New file.
45316         * modules/unictype/property-iso-control: New file.
45317         * modules/unictype/property-format-control: New file.
45318         * modules/unictype/property-dash: New file.
45319         * modules/unictype/property-hyphen: New file.
45320         * modules/unictype/property-punctuation: New file.
45321         * modules/unictype/property-line-separator: New file.
45322         * modules/unictype/property-paragraph-separator: New file.
45323         * modules/unictype/property-quotation-mark: New file.
45324         * modules/unictype/property-sentence-terminal: New file.
45325         * modules/unictype/property-terminal-punctuation: New file.
45326         * modules/unictype/property-currency-symbol: New file.
45327         * modules/unictype/property-math: New file.
45328         * modules/unictype/property-other-math: New file.
45329         * modules/unictype/property-paired-punctuation: New file.
45330         * modules/unictype/property-left-of-pair: New file.
45331         * modules/unictype/property-combining: New file.
45332         * modules/unictype/property-composite: New file.
45333         * modules/unictype/property-decimal-digit: New file.
45334         * modules/unictype/property-numeric: New file.
45335         * modules/unictype/property-diacritic: New file.
45336         * modules/unictype/property-extender: New file.
45337         * modules/unictype/property-ignorable-control: New file.
45338         * modules/unictype/property-test: New file.
45339         * modules/unictype/property-byname: New file.
45340         * modules/unictype/property-all: New file.
45341         * modules/unictype/scripts: New file.
45342         * modules/unictype/scripts-all: New file.
45343         * modules/unictype/block-of: New file.
45344         * modules/unictype/block-test: New file.
45345         * modules/unictype/block-list: New file.
45346         * modules/unictype/block-all: New file.
45347         * modules/unictype/syntax-c-whitespace: New file.
45348         * modules/unictype/syntax-java-whitespace: New file.
45349         * modules/unictype/syntax-c-ident: New file.
45350         * modules/unictype/syntax-java-ident: New file.
45351         * modules/unictype/ctype-alnum: New file.
45352         * modules/unictype/ctype-alpha: New file.
45353         * modules/unictype/ctype-cntrl: New file.
45354         * modules/unictype/ctype-digit: New file.
45355         * modules/unictype/ctype-graph: New file.
45356         * modules/unictype/ctype-lower: New file.
45357         * modules/unictype/ctype-print: New file.
45358         * modules/unictype/ctype-punct: New file.
45359         * modules/unictype/ctype-space: New file.
45360         * modules/unictype/ctype-upper: New file.
45361         * modules/unictype/ctype-xdigit: New file.
45362         * modules/unictype/ctype-blank: New file.
45363         * lib/unictype/bidi_byname.c: New file.
45364         * lib/unictype/bidi_name.c: New file.
45365         * lib/unictype/bidi_of.c: New file.
45366         * lib/unictype/bidi_test.c: New file.
45367         * lib/unictype/bitmap.h: New file.
45368         * lib/unictype/block_test.c: New file.
45369         * lib/unictype/blocks.c: New file.
45370         * lib/unictype/categ_C.c: New file.
45371         * lib/unictype/categ_Cc.c: New file.
45372         * lib/unictype/categ_Cf.c: New file.
45373         * lib/unictype/categ_Cn.c: New file.
45374         * lib/unictype/categ_Co.c: New file.
45375         * lib/unictype/categ_Cs.c: New file.
45376         * lib/unictype/categ_L.c: New file.
45377         * lib/unictype/categ_Ll.c: New file.
45378         * lib/unictype/categ_Lm.c: New file.
45379         * lib/unictype/categ_Lo.c: New file.
45380         * lib/unictype/categ_Lt.c: New file.
45381         * lib/unictype/categ_Lu.c: New file.
45382         * lib/unictype/categ_M.c: New file.
45383         * lib/unictype/categ_Mc.c: New file.
45384         * lib/unictype/categ_Me.c: New file.
45385         * lib/unictype/categ_Mn.c: New file.
45386         * lib/unictype/categ_N.c: New file.
45387         * lib/unictype/categ_Nd.c: New file.
45388         * lib/unictype/categ_Nl.c: New file.
45389         * lib/unictype/categ_No.c: New file.
45390         * lib/unictype/categ_P.c: New file.
45391         * lib/unictype/categ_Pc.c: New file.
45392         * lib/unictype/categ_Pd.c: New file.
45393         * lib/unictype/categ_Pe.c: New file.
45394         * lib/unictype/categ_Pf.c: New file.
45395         * lib/unictype/categ_Pi.c: New file.
45396         * lib/unictype/categ_Po.c: New file.
45397         * lib/unictype/categ_Ps.c: New file.
45398         * lib/unictype/categ_S.c: New file.
45399         * lib/unictype/categ_Sc.c: New file.
45400         * lib/unictype/categ_Sk.c: New file.
45401         * lib/unictype/categ_Sm.c: New file.
45402         * lib/unictype/categ_So.c: New file.
45403         * lib/unictype/categ_Z.c: New file.
45404         * lib/unictype/categ_Zl.c: New file.
45405         * lib/unictype/categ_Zp.c: New file.
45406         * lib/unictype/categ_Zs.c: New file.
45407         * lib/unictype/categ_and.c: New file.
45408         * lib/unictype/categ_and_not.c: New file.
45409         * lib/unictype/categ_byname.c: New file.
45410         * lib/unictype/categ_name.c: New file.
45411         * lib/unictype/categ_none.c: New file.
45412         * lib/unictype/categ_of.c: New file.
45413         * lib/unictype/categ_or.c: New file.
45414         * lib/unictype/categ_test.c: New file.
45415         * lib/unictype/combining.c: New file.
45416         * lib/unictype/ctype_alnum.c: New file.
45417         * lib/unictype/ctype_alpha.c: New file.
45418         * lib/unictype/ctype_blank.c: New file.
45419         * lib/unictype/ctype_cntrl.c: New file.
45420         * lib/unictype/ctype_digit.c: New file.
45421         * lib/unictype/ctype_graph.c: New file.
45422         * lib/unictype/ctype_lower.c: New file.
45423         * lib/unictype/ctype_print.c: New file.
45424         * lib/unictype/ctype_punct.c: New file.
45425         * lib/unictype/ctype_space.c: New file.
45426         * lib/unictype/ctype_upper.c: New file.
45427         * lib/unictype/ctype_xdigit.c: New file.
45428         * lib/unictype/decdigit.c: New file.
45429         * lib/unictype/digit.c: New file.
45430         * lib/unictype/identsyntaxmap.h: New file.
45431         * lib/unictype/mirror.c: New file.
45432         * lib/unictype/numeric.c: New file.
45433         * lib/unictype/pr_alphabetic.c: New file.
45434         * lib/unictype/pr_ascii_hex_digit.c: New file.
45435         * lib/unictype/pr_bidi_arabic_digit.c: New file.
45436         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
45437         * lib/unictype/pr_bidi_block_separator.c: New file.
45438         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
45439         * lib/unictype/pr_bidi_common_separator.c: New file.
45440         * lib/unictype/pr_bidi_control.c: New file.
45441         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
45442         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
45443         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
45444         * lib/unictype/pr_bidi_european_digit.c: New file.
45445         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
45446         * lib/unictype/pr_bidi_left_to_right.c: New file.
45447         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
45448         * lib/unictype/pr_bidi_other_neutral.c: New file.
45449         * lib/unictype/pr_bidi_pdf.c: New file.
45450         * lib/unictype/pr_bidi_segment_separator.c: New file.
45451         * lib/unictype/pr_bidi_whitespace.c: New file.
45452         * lib/unictype/pr_byname.c: New file.
45453         * lib/unictype/pr_byname.gperf: New file.
45454         * lib/unictype/pr_combining.c: New file.
45455         * lib/unictype/pr_composite.c: New file.
45456         * lib/unictype/pr_currency_symbol.c: New file.
45457         * lib/unictype/pr_dash.c: New file.
45458         * lib/unictype/pr_decimal_digit.c: New file.
45459         * lib/unictype/pr_default_ignorable_code_point.c: New file.
45460         * lib/unictype/pr_deprecated.c: New file.
45461         * lib/unictype/pr_diacritic.c: New file.
45462         * lib/unictype/pr_extender.c: New file.
45463         * lib/unictype/pr_format_control.c: New file.
45464         * lib/unictype/pr_grapheme_base.c: New file.
45465         * lib/unictype/pr_grapheme_extend.c: New file.
45466         * lib/unictype/pr_grapheme_link.c: New file.
45467         * lib/unictype/pr_hex_digit.c: New file.
45468         * lib/unictype/pr_hyphen.c: New file.
45469         * lib/unictype/pr_id_continue.c: New file.
45470         * lib/unictype/pr_id_start.c: New file.
45471         * lib/unictype/pr_ideographic.c: New file.
45472         * lib/unictype/pr_ids_binary_operator.c: New file.
45473         * lib/unictype/pr_ids_trinary_operator.c: New file.
45474         * lib/unictype/pr_ignorable_control.c: New file.
45475         * lib/unictype/pr_iso_control.c: New file.
45476         * lib/unictype/pr_join_control.c: New file.
45477         * lib/unictype/pr_left_of_pair.c: New file.
45478         * lib/unictype/pr_line_separator.c: New file.
45479         * lib/unictype/pr_logical_order_exception.c: New file.
45480         * lib/unictype/pr_lowercase.c: New file.
45481         * lib/unictype/pr_math.c: New file.
45482         * lib/unictype/pr_non_break.c: New file.
45483         * lib/unictype/pr_not_a_character.c: New file.
45484         * lib/unictype/pr_numeric.c: New file.
45485         * lib/unictype/pr_other_alphabetic.c: New file.
45486         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
45487         * lib/unictype/pr_other_grapheme_extend.c: New file.
45488         * lib/unictype/pr_other_id_continue.c: New file.
45489         * lib/unictype/pr_other_id_start.c: New file.
45490         * lib/unictype/pr_other_lowercase.c: New file.
45491         * lib/unictype/pr_other_math.c: New file.
45492         * lib/unictype/pr_other_uppercase.c: New file.
45493         * lib/unictype/pr_paired_punctuation.c: New file.
45494         * lib/unictype/pr_paragraph_separator.c: New file.
45495         * lib/unictype/pr_pattern_syntax.c: New file.
45496         * lib/unictype/pr_pattern_white_space.c: New file.
45497         * lib/unictype/pr_private_use.c: New file.
45498         * lib/unictype/pr_punctuation.c: New file.
45499         * lib/unictype/pr_quotation_mark.c: New file.
45500         * lib/unictype/pr_radical.c: New file.
45501         * lib/unictype/pr_sentence_terminal.c: New file.
45502         * lib/unictype/pr_soft_dotted.c: New file.
45503         * lib/unictype/pr_space.c: New file.
45504         * lib/unictype/pr_terminal_punctuation.c: New file.
45505         * lib/unictype/pr_test.c: New file.
45506         * lib/unictype/pr_titlecase.c: New file.
45507         * lib/unictype/pr_unassigned_code_value.c: New file.
45508         * lib/unictype/pr_unified_ideograph.c: New file.
45509         * lib/unictype/pr_uppercase.c: New file.
45510         * lib/unictype/pr_variation_selector.c: New file.
45511         * lib/unictype/pr_white_space.c: New file.
45512         * lib/unictype/pr_xid_continue.c: New file.
45513         * lib/unictype/pr_xid_start.c: New file.
45514         * lib/unictype/pr_zero_width.c: New file.
45515         * lib/unictype/scripts.c: New file.
45516         * lib/unictype/sy_c_ident.c: New file.
45517         * lib/unictype/sy_c_whitespace.c: New file.
45518         * lib/unictype/sy_java_ident.c: New file.
45519         * lib/unictype/sy_java_whitespace.c: New file.
45520
45521         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
45522         Unicode 5.0.0.
45523         * lib/unictype/blocks.h: Likewise.
45524         * lib/unictype/categ_C.h: Likewise.
45525         * lib/unictype/categ_Cc.h: Likewise.
45526         * lib/unictype/categ_Cf.h: Likewise.
45527         * lib/unictype/categ_Cn.h: Likewise.
45528         * lib/unictype/categ_Co.h: Likewise.
45529         * lib/unictype/categ_Cs.h: Likewise.
45530         * lib/unictype/categ_L.h: Likewise.
45531         * lib/unictype/categ_Ll.h: Likewise.
45532         * lib/unictype/categ_Lm.h: Likewise.
45533         * lib/unictype/categ_Lo.h: Likewise.
45534         * lib/unictype/categ_Lt.h: Likewise.
45535         * lib/unictype/categ_Lu.h: Likewise.
45536         * lib/unictype/categ_M.h: Likewise.
45537         * lib/unictype/categ_Mc.h: Likewise.
45538         * lib/unictype/categ_Me.h: Likewise.
45539         * lib/unictype/categ_Mn.h: Likewise.
45540         * lib/unictype/categ_N.h: Likewise.
45541         * lib/unictype/categ_Nd.h: Likewise.
45542         * lib/unictype/categ_Nl.h: Likewise.
45543         * lib/unictype/categ_No.h: Likewise.
45544         * lib/unictype/categ_P.h: Likewise.
45545         * lib/unictype/categ_Pc.h: Likewise.
45546         * lib/unictype/categ_Pd.h: Likewise.
45547         * lib/unictype/categ_Pe.h: Likewise.
45548         * lib/unictype/categ_Pf.h: Likewise.
45549         * lib/unictype/categ_Pi.h: Likewise.
45550         * lib/unictype/categ_Po.h: Likewise.
45551         * lib/unictype/categ_Ps.h: Likewise.
45552         * lib/unictype/categ_S.h: Likewise.
45553         * lib/unictype/categ_Sc.h: Likewise.
45554         * lib/unictype/categ_Sk.h: Likewise.
45555         * lib/unictype/categ_Sm.h: Likewise.
45556         * lib/unictype/categ_So.h: Likewise.
45557         * lib/unictype/categ_Z.h: Likewise.
45558         * lib/unictype/categ_Zl.h: Likewise.
45559         * lib/unictype/categ_Zp.h: Likewise.
45560         * lib/unictype/categ_Zs.h: Likewise.
45561         * lib/unictype/categ_of.h: Likewise.
45562         * lib/unictype/combining.h: Likewise.
45563         * lib/unictype/ctype_alnum.h: Likewise.
45564         * lib/unictype/ctype_alpha.h: Likewise.
45565         * lib/unictype/ctype_blank.h: Likewise.
45566         * lib/unictype/ctype_cntrl.h: Likewise.
45567         * lib/unictype/ctype_digit.h: Likewise.
45568         * lib/unictype/ctype_graph.h: Likewise.
45569         * lib/unictype/ctype_lower.h: Likewise.
45570         * lib/unictype/ctype_print.h: Likewise.
45571         * lib/unictype/ctype_punct.h: Likewise.
45572         * lib/unictype/ctype_space.h: Likewise.
45573         * lib/unictype/ctype_upper.h: Likewise.
45574         * lib/unictype/ctype_xdigit.h: Likewise.
45575         * lib/unictype/decdigit.h: Likewise.
45576         * lib/unictype/digit.h: Likewise.
45577         * lib/unictype/mirror.h: Likewise.
45578         * lib/unictype/numeric.h: Likewise.
45579         * lib/unictype/pr_alphabetic.h: Likewise.
45580         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45581         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45582         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45583         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45584         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45585         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45586         * lib/unictype/pr_bidi_control.h: Likewise.
45587         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45588         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45589         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45590         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45591         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45592         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45593         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45594         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45595         * lib/unictype/pr_bidi_pdf.h: Likewise.
45596         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45597         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45598         * lib/unictype/pr_combining.h: Likewise.
45599         * lib/unictype/pr_composite.h: Likewise.
45600         * lib/unictype/pr_currency_symbol.h: Likewise.
45601         * lib/unictype/pr_dash.h: Likewise.
45602         * lib/unictype/pr_decimal_digit.h: Likewise.
45603         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45604         * lib/unictype/pr_deprecated.h: Likewise.
45605         * lib/unictype/pr_diacritic.h: Likewise.
45606         * lib/unictype/pr_extender.h: Likewise.
45607         * lib/unictype/pr_format_control.h: Likewise.
45608         * lib/unictype/pr_grapheme_base.h: Likewise.
45609         * lib/unictype/pr_grapheme_extend.h: Likewise.
45610         * lib/unictype/pr_grapheme_link.h: Likewise.
45611         * lib/unictype/pr_hex_digit.h: Likewise.
45612         * lib/unictype/pr_hyphen.h: Likewise.
45613         * lib/unictype/pr_id_continue.h: Likewise.
45614         * lib/unictype/pr_id_start.h: Likewise.
45615         * lib/unictype/pr_ideographic.h: Likewise.
45616         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45617         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45618         * lib/unictype/pr_ignorable_control.h: Likewise.
45619         * lib/unictype/pr_iso_control.h: Likewise.
45620         * lib/unictype/pr_join_control.h: Likewise.
45621         * lib/unictype/pr_left_of_pair.h: Likewise.
45622         * lib/unictype/pr_line_separator.h: Likewise.
45623         * lib/unictype/pr_logical_order_exception.h: Likewise.
45624         * lib/unictype/pr_lowercase.h: Likewise.
45625         * lib/unictype/pr_math.h: Likewise.
45626         * lib/unictype/pr_non_break.h: Likewise.
45627         * lib/unictype/pr_not_a_character.h: Likewise.
45628         * lib/unictype/pr_numeric.h: Likewise.
45629         * lib/unictype/pr_other_alphabetic.h: Likewise.
45630         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45631         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45632         * lib/unictype/pr_other_id_continue.h: Likewise.
45633         * lib/unictype/pr_other_id_start.h: Likewise.
45634         * lib/unictype/pr_other_lowercase.h: Likewise.
45635         * lib/unictype/pr_other_math.h: Likewise.
45636         * lib/unictype/pr_other_uppercase.h: Likewise.
45637         * lib/unictype/pr_paired_punctuation.h: Likewise.
45638         * lib/unictype/pr_paragraph_separator.h: Likewise.
45639         * lib/unictype/pr_pattern_syntax.h: Likewise.
45640         * lib/unictype/pr_pattern_white_space.h: Likewise.
45641         * lib/unictype/pr_private_use.h: Likewise.
45642         * lib/unictype/pr_punctuation.h: Likewise.
45643         * lib/unictype/pr_quotation_mark.h: Likewise.
45644         * lib/unictype/pr_radical.h: Likewise.
45645         * lib/unictype/pr_sentence_terminal.h: Likewise.
45646         * lib/unictype/pr_soft_dotted.h: Likewise.
45647         * lib/unictype/pr_space.h: Likewise.
45648         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45649         * lib/unictype/pr_titlecase.h: Likewise.
45650         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45651         * lib/unictype/pr_unified_ideograph.h: Likewise.
45652         * lib/unictype/pr_uppercase.h: Likewise.
45653         * lib/unictype/pr_variation_selector.h: Likewise.
45654         * lib/unictype/pr_white_space.h: Likewise.
45655         * lib/unictype/pr_xid_continue.h: Likewise.
45656         * lib/unictype/pr_xid_start.h: Likewise.
45657         * lib/unictype/pr_zero_width.h: Likewise.
45658         * lib/unictype/scripts.h: Likewise.
45659         * lib/unictype/scripts_byname.gperf: Likewise.
45660         * lib/unictype/sy_c_ident.h: Likewise.
45661         * lib/unictype/sy_c_whitespace.h: Likewise.
45662         * lib/unictype/sy_java_ident.h: Likewise.
45663         * lib/unictype/sy_java_whitespace.h: Likewise.
45664
45665         * lib/unictype/Makefile: New file.
45666         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45667         glibc.
45668         * lib/unictype/3level.h: New file, copied from glibc.
45669         * lib/unictype/3levelbit.h: New file.
45670
45671 2007-11-11  Bruno Haible  <bruno@clisp.org>
45672
45673         * modules/gperf: New file.
45674         * modules/iconv_open (Depends-on): Add it.
45675         (Makefile.am): Remove the GPERF definition.
45676
45677 2007-11-11  Bruno Haible  <bruno@clisp.org>
45678
45679         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45680         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45681
45682 2007-11-11  Bruno Haible  <bruno@clisp.org>
45683
45684         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45685         (usage): Remove function.
45686
45687 2007-11-11  Bruno Haible  <bruno@clisp.org>
45688
45689         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45690         gl_FUNC_CEILF_LIBS.
45691         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45692         gl_FUNC_CEIL_LIBS.
45693         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45694         gl_FUNC_CEILL_LIBS.
45695         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45696         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45697         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45698
45699 2007-11-11  Bruno Haible  <bruno@clisp.org>
45700
45701         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45702         roundf were declared but do not exist on functions.
45703         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45704         roundl were declared but do not exist on functions.
45705         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45706         HAVE_FLOORL_AND_CEILL, respectively.
45707         Needed for Sun C on Solaris 10.
45708
45709 2007-11-11  Bruno Haible  <bruno@clisp.org>
45710
45711         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45712         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45713         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45714         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45715         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45716         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45717         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45718         HAVE_DECL_ROUNDF.
45719         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45720         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45722         of HAVE_DECL_ROUND*.
45723         * modules/math (Makefile.am): Update.
45724
45725 2007-11-10  Bruno Haible  <bruno@clisp.org>
45726
45727         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45728         ptrdiff_t as m4/intl.m4.
45729
45730 2007-11-10  Jim Meyering  <meyering@redhat.com>
45731
45732         Avoid link failure for the argmatch test.
45733         * tests/test-argmatch.c (usage): Define function to avoid a link
45734         failure: argmatch_die requires a usage function.
45735
45736 2007-11-09  Bruno Haible  <bruno@clisp.org>
45737
45738         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45739         * doc/functions/vsnprintf.texi: Likewise.
45740         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45741         with a size argument < 2.
45742
45743 2007-11-09  Bruno Haible  <bruno@clisp.org>
45744
45745         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45746         buffer. Fixes an inefficiency introduced on 2007-11-03.
45747
45748 2007-11-09  Bruno Haible  <bruno@clisp.org>
45749
45750         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45751         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45752
45753 2007-11-08  Jim Meyering  <meyering@redhat.com>
45754
45755         Change cache variable name prefix "jm_" to "gl_" everywhere.
45756         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45757         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45758         * m4/uptime.m4: s/gl_/jm_/
45759
45760 2007-11-07  Bruno Haible  <bruno@clisp.org>
45761
45762         Update to GNU gettext 0.17.
45763         * m4/intl.m4: Update to GNU gettext 0.17.
45764         * m4/po.m4: Likewise.
45765         * modules/gettext (Files): Remove m4/ulonglong.m4.
45766         (configure.ac): Require gettext infrastructure from version 0.17.
45767
45768 2007-11-06  Bruno Haible  <bruno@clisp.org>
45769
45770         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45771         symbolic values are not defined in a public header.
45772         * lib/freadable.c (freadable) [QNX]: Likewise.
45773         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45774         * lib/freading.c (freading) [QNX]: Likewise.
45775         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45776         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45777         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45778         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45779         Reported by Alain Magloire.
45780
45781         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45782
45783 2007-11-05  Bruno Haible  <bruno@clisp.org>
45784
45785         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45786         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45787         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45788         Reported by Eric Blake.
45789
45790 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45791             Bruno Haible  <bruno@clisp.org>
45792
45793         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45794         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45795         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45796         (malloc): Undefine also before including <stdlib.h>.
45797         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45798         Needed on OSF/1 4.0.
45799
45800 2007-11-05  Jim Meyering  <meyering@redhat.com>
45801
45802         git-version-gen: sync from coreutils.
45803         * build-aux/git-version-gen: Add comments.
45804         Change the first '-' to '.' in the snapshot version string,
45805         e.g., 6.9-377-08144 -> 6.9.377-08144
45806         Remove first parameter.
45807         Don't declare a version "-dirty" merely because a time
45808         stamp has changed.
45809
45810 2007-11-04  Bruno Haible  <bruno@clisp.org>
45811
45812         * lib/lock.h: Protect all macro definitions containing an 'if'
45813         statement through a "do { ... } while (0)".
45814         * lib/tls.h: Likewise.
45815
45816 2007-11-04  Bruno Haible  <bruno@clisp.org>
45817
45818         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45819
45820 2007-11-04  Bruno Haible  <bruno@clisp.org>
45821
45822         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45823         * modules/fprintf-posix (Depends-on): Add nocrash.
45824         * modules/snprintf-posix (Depends-on): Likewise.
45825         * modules/sprintf-posix (Depends-on): Likewise.
45826         * modules/vasnprintf-posix (Depends-on): Likewise.
45827         * modules/vasprintf-posix (Depends-on): Likewise.
45828         * modules/vfprintf-posix (Depends-on): Likewise.
45829         * modules/vsnprintf-posix (Depends-on): Likewise.
45830         * modules/vsprintf-posix (Depends-on): Likewise.
45831         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45832         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45833         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45834         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45835         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45836         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45837         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45838
45839 2007-11-04  Bruno Haible  <bruno@clisp.org>
45840
45841         * modules/nocrash: New file.
45842         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45843         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45844
45845 2007-11-04  Bruno Haible  <bruno@clisp.org>
45846
45847         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45848         precision handling.
45849         * tests/test-vasprintf-posix.c (test_function): Likewise.
45850         * tests/test-snprintf-posix.h (test_function): Likewise.
45851         * tests/test-sprintf-posix.h (test_function): Likewise.
45852
45853         Fix *printf behaviour for large precisions on mingw and BeOS.
45854         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45855         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45857         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45858         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45859         gl_PRINTF_PRECISION and test its result. Invoke
45860         gl_PREREQ_VASNPRINTF_PRECISION.
45861         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45862         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45863         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45864         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45865         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45866         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45867         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45868         * doc/functions/fprintf.texi: Update.
45869         * doc/functions/printf.texi: Update.
45870         * doc/functions/snprintf.texi: Update.
45871         * doc/functions/sprintf.texi: Update.
45872         * doc/functions/vfprintf.texi: Update.
45873         * doc/functions/vprintf.texi: Update.
45874         * doc/functions/vsnprintf.texi: Update.
45875         * doc/functions/vsprintf.texi: Update.
45876
45877 2007-11-04  Bruno Haible  <bruno@clisp.org>
45878
45879         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45880
45881 2007-11-04  Bruno Haible  <bruno@clisp.org>
45882
45883         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45884         Reported by Sylvain Beucler <beuc@gnu.org>.
45885
45886 2007-11-03  Bruno Haible  <bruno@clisp.org>
45887
45888         * tests/test-fprintf-posix2.sh: New file.
45889         * tests/test-fprintf-posix2.c: New file.
45890         * modules/fprintf-posix-tests (Files): Add them.
45891         (TESTS): Add test-fprintf-posix2.sh.
45892         (configure.ac): Check for getrlimit and setrlimit.
45893         (check_PROGRAMS): Add test-fprintf-posix2.
45894
45895         * tests/test-printf-posix2.sh: New file.
45896         * tests/test-printf-posix2.c: New file.
45897         * modules/printf-posix-tests (Files): Add them.
45898         (TESTS): Add test-printf-posix2.sh.
45899         (configure.ac): Check for getrlimit and setrlimit.
45900         (check_PROGRAMS): Add test-printf-posix2.
45901
45902         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45903         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45904         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45905         (decode_double): New function, copied from decode_long_double.
45906         (scale10_round_decimal_decoded): New function, extracted from
45907         scale10_round_decimal_long_double.
45908         (scale10_round_decimal_long_double): Use it.
45909         (scale10_round_decimal_double): New function.
45910         (floorlog10): New function.
45911         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45912         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45913         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45914         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45915         gl_PRINTF_ENOMEM and test its result. Invoke
45916         gl_PREREQ_VASNPRINTF_ENOMEM.
45917         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45918         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45919         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45920         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45921         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45922         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45924         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45925         * modules/snprintf-posix (Depends-on): Likewise.
45926         * modules/sprintf-posix (Depends-on): Likewise.
45927         * modules/vasnprintf-posix (Depends-on): Likewise.
45928         * modules/vasprintf-posix (Depends-on): Likewise.
45929         * modules/vfprintf-posix (Depends-on): Likewise.
45930         * modules/vsnprintf-posix (Depends-on): Likewise.
45931         * modules/vsprintf-posix (Depends-on): Likewise.
45932         * doc/functions/fprintf.texi: Update.
45933         * doc/functions/printf.texi: Update.
45934         * doc/functions/snprintf.texi: Update.
45935         * doc/functions/sprintf.texi: Update.
45936         * doc/functions/vfprintf.texi: Update.
45937         * doc/functions/vprintf.texi: Update.
45938         * doc/functions/vsnprintf.texi: Update.
45939         * doc/functions/vsprintf.texi: Update.
45940
45941 2007-11-03  Bruno Haible  <bruno@clisp.org>
45942
45943         * modules/frexp-nolibm-tests: New file.
45944
45945         * modules/frexp-nolibm: New file.
45946         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45947
45948 2007-11-03  Bruno Haible  <bruno@clisp.org>
45949
45950         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45951         value is C99 compliant.
45952         Needed for OSF/1 5.1.
45953
45954 2007-11-03  Bruno Haible  <bruno@clisp.org>
45955
45956         Fix out-of-memory handling of vasnprintf.
45957         * lib/printf-parse.c: Include <errno.h>.
45958         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45959         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45960         is already set.
45961
45962 2007-11-02  Eric Blake  <ebb9@byu.net>
45963
45964         Fix tests on cygwin.
45965         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45966
45967 2007-11-01  Bruno Haible  <bruno@clisp.org>
45968
45969         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45970         warning.
45971         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45972         needed for POSIX compatibility.
45973
45974 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45975
45976         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45977         for compatibility with GNU.
45978
45979 2007-11-01  Bruno Haible  <bruno@clisp.org>
45980
45981         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45982         (putenv): Renamed from rpl_putenv. Change argument type from
45983         'const char *' to 'char *'.
45984         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45985         of defining putenv in config.h, just set REPLACE_PUTENV.
45986         * modules/putenv (Depends-on): Add stdlib.
45987         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45988         (Include): Use <stdlib.h>.
45989         * lib/stdlib.in.h (putenv): New declaration.
45990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45991         REPLACE_PUTENV.
45992         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45993         REPLACE_PUTENV.
45994         Needed for MacOS X 10.5.0.
45995         Reported by Peter O'Gorman <peter@pogma.com>.
45996
45997 2007-11-01  Jim Meyering  <meyering@redhat.com>
45998
45999         Treat an empty date string exactly like "0".
46000         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
46001         if the remaining date string (to be parsed) is empty, use "0".
46002         Reported by Mischa Molhoek and discussed in this thread:
46003         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
46004
46005 2007-10-31  Bruno Haible  <bruno@clisp.org>
46006
46007         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
46008         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
46009         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
46010         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
46011         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
46012         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
46013
46014 2007-10-31  Bruno Haible  <bruno@clisp.org>
46015
46016         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
46017         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
46018         (AC_TYPE_LONG_LONG_INT): Use it.
46019         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
46020         it as well.
46021         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
46022         to m4/longlong.m4.
46023         * modules/stdint (Files): Remove m4/ulonglong.m4.
46024         * modules/strtoull (Files): Use m4/longlong.m4 instead of
46025         m4/ulonglong.m4.
46026         * modules/strtoumax (Files): Likewise.
46027
46028 2007-10-30  Bruno Haible  <bruno@clisp.org>
46029
46030         * modules/xvasprintf-posix: New file.
46031         Suggested by Eric Blake.
46032
46033 2007-10-30  Bruno Haible  <bruno@clisp.org>
46034
46035         * modules/xprintf-posix-tests: New file.
46036         * tests/test-xprintf-posix.sh: New file.
46037         * tests/test-xprintf-posix.c: New file.
46038         * tests/test-xfprintf-posix.c: New file.
46039
46040         * modules/xprintf-posix: New file.
46041
46042 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46043
46044         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
46045         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
46046         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
46047
46048 2007-10-29  Bruno Haible  <bruno@clisp.org>
46049
46050         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
46051         contain the special marker '_cv_'.
46052         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46053         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46054         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46055         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
46056         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46057         Reported by Ralf Wildenhues.
46058
46059 2007-10-29  Bruno Haible  <bruno@clisp.org>
46060
46061         * gnulib-tool (func_import): When --lgpl is not specified, set
46062         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
46063         GPLv3.
46064         Reported by Simon Josefsson.
46065
46066 2007-10-28  Bruno Haible  <bruno@clisp.org>
46067
46068         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
46069         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
46070         HAVE_DECL_ISFINITE.
46071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46072         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
46073         HAVE_DECL_ISFINITE.
46074
46075 2007-10-28  Bruno Haible  <bruno@clisp.org>
46076
46077         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
46078         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
46079
46080 2007-10-28  Bruno Haible  <bruno@clisp.org>
46081
46082         Fix link errors with Sun C 5.0 on Solaris 10.
46083         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
46084         function is declared but not present in the compiler's libm.
46085         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46086         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
46087         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
46088         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
46089         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
46090         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
46091         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
46092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46093         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
46094         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
46095         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
46096         HAVE_DECL_FLOORL.
46097
46098 2007-10-28  Bruno Haible  <bruno@clisp.org>
46099
46100         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
46101         gl_FUNC_FLOORL. Cache the result.
46102         (gl_FUNC_FLOORL): Use it.
46103         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
46104         gl_FUNC_CEILL. Cache the result.
46105         (gl_FUNC_CEILL): Use it.
46106
46107         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
46108         gl_FUNC_FLOOR. Cache the result.
46109         (gl_FUNC_FLOOR): Use it.
46110         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
46111         gl_FUNC_CEIL. Cache the result.
46112         (gl_FUNC_CEIL): Use it.
46113
46114         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
46115         gl_FUNC_FLOORF. Cache the result.
46116         (gl_FUNC_FLOORF): Use it.
46117         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
46118         gl_FUNC_CEILF. Cache the result.
46119         (gl_FUNC_CEILF): Use it.
46120
46121 2007-10-28  Bruno Haible  <bruno@clisp.org>
46122
46123         * gnulib-tool: Allow specifying the LGPL version number through
46124         --lgpl=2 or --lgpl=3.
46125         (func_usage): Document --lgpl with argument.
46126         Handle --lgpl=... arguments.
46127         (func_import): Recognize also gl_LGPL calls with an argument. When
46128         --lgpl=2 is used and the module's license is just LGPL, report an
46129         error. Set sed_transform_lib_file according to the lgpl variable. In
46130         the generated files, use --lgpl or gl_LGPL invocations with argument,
46131         if necessary.
46132         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
46133         an LGPv2+ license.
46134         * doc/gnulib-tool.texi (Modified imports): Update explanation of
46135         gl_LGPL macro.
46136
46137 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46138             Bruno Haible  <bruno@clisp.org>
46139
46140         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
46141         (u16_uctomb_aux): Likewise.
46142         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
46143         !HAVE_INLINE.
46144         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
46145
46146 2007-10-28  Bruno Haible  <bruno@clisp.org>
46147
46148         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
46149         Invoke AM_GETTEXT_OPTION if it exists.
46150         * modules/vasprintf: Likewise.
46151         * modules/verror: Likewise.
46152         * modules/xprintf: Likewise.
46153         * modules/xvasprintf: Likewise.
46154
46155 2007-10-27  Ben Pfaff  <blp@gnu.org>
46156
46157         * lib/math.in.h: Define isfinite macro and prototypes for
46158         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
46159         implementations.
46160         * m4/math_h.m4: New substitutions for isfinite module.
46161         * lib/isfinite.c: New file.
46162         * m4/isfinite.m4: New file.
46163         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
46164         * modules/isfinite: New file.
46165         * modules/isfinite-tests: New file.
46166         * tests/tests-isfinite.c: New file.
46167         * doc/functions/isfinite.texi: Mention isfinite module.
46168         * MODULES.html.sh: Mention new module.
46169
46170 2007-10-27  Ben Pfaff  <blp@gnu.org>
46171
46172         Ralf Wildenhues reported that Tru64 4.0D declares the round
46173         functions but does not have definitions.
46174         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
46175         cannot be found in any library, set the output variable to
46176         "missing" instead of "".
46177         * m4/round.m4: Also use our substitute if we cannot find round in
46178         any library, even if it is declared.
46179         * m4/roundf.m4: Likewise for roundf.
46180         * m4/roundl.m4: Likewise for roundl.
46181         * lib/math.in.h: Undefine roundf, round, roundl before defining
46182         their replacements, to allow for hypothetical systems where these
46183         may be defined as macros but not available in libraries.
46184
46185 2007-10-27  Bruno Haible  <bruno@clisp.org>
46186
46187         * doc/gnulib.texi: Invoke @firstparagraphindent.
46188         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
46189         changes in gnulib.
46190         (Source changes): New section.
46191
46192 2007-10-26  Bruno Haible  <bruno@clisp.org>
46193
46194         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
46195         borrowed from autoconf.
46196
46197 2007-10-26  Bruno Haible  <bruno@clisp.org>
46198
46199         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
46200         strerror returned the empty string. Needed on HP-UX 11.00.
46201
46202 2007-10-24  Micah Cowan  <micah@cowan.name>
46203
46204         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
46205         * build-aux/bootstrap: Remove support for now-unnecessary option,
46206         --cvs-user, and envvars CVS_USER, CVS_RSH.
46207
46208 2007-10-24  Jim Meyering  <meyering@redhat.com>
46209
46210         Avoid diagnostics from sha1sum when there is no cached checksum.
46211         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
46212         if the po.s1 file hasn't been created yet.
46213
46214         * build-aux/bootstrap: Sync from coreutils:
46215         2007-10-24  Jim Meyering  <meyering@redhat.com>
46216         Get gnulib from the git repository, not from an obsolete cvs one.
46217         * build-aux/bootstrap: Suggestion from Micah Cowan.
46218         2007-10-04  Jim Meyering  <jim@meyering.net>
46219         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
46220         (update_po_files): Work also when there are no .po files in po/.
46221
46222 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46223
46224         * README: Append ".git" to git and cg examples.
46225         Problem reported by Benoit Sigoure.
46226
46227 2007-10-23  Micah Cowan  <micah@cowan.name>
46228
46229         * users.txt: Add wget.
46230
46231 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46232
46233         Fix linking of some unistdio tests on FreeBSD.
46234         * modules/unistdio/u16-vsnprintf-tests
46235         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
46236         * modules/unistdio/u16-vsprintf-tests
46237         (test_u16_vsnprintf1_LDADD): Likewise.
46238         * modules/unistdio/u32-vsnprintf-tests
46239         (test_u32_vsnprintf1_LDADD): Likewise.
46240         * modules/unistdio/u32-vsprintf-tests
46241         (test_u32_vsprintf1_LDADD): Likewise.
46242         * modules/unistdio/u8-vsnprintf-tests
46243         (test_u8_vsnprintf1_LDADD): Likewise.
46244         * modules/unistdio/u8-vsprintf-tests
46245         (test_u8_vsprintf1_LDADD): Likewise.
46246         * modules/unistdio/ulc-vsnprintf-tests
46247         (test_ulc_vsnprintf1_LDADD): Likewise.
46248         * modules/unistdio/ulc-vsprintf-tests
46249         (test_ulc_vsprintf1_LDADD): Likewise.
46250
46251         Fix linking of some uniconv tests on FreeBSD.
46252         * modules/uniconv/u16-conv-from-enc-tests
46253         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
46254         * modules/uniconv/u16-conv-to-enc-tests
46255         (test_u16_conv_to_enc_LDADD): Likewise.
46256         * modules/uniconv/u16-strconv-from-enc-tests
46257         (test_u16_strconv_from_enc_LDADD): Likewise.
46258         * modules/uniconv/u16-strconv-to-enc-tests
46259         (test_u16_strconv_to_enc_LDADD): Likewise.
46260         * modules/uniconv/u32-conv-from-enc-tests
46261         (test_u32_conv_from_enc_LDADD): Likewise.
46262         * modules/uniconv/u32-conv-to-enc-tests
46263         (test_u32_conv_to_enc_LDADD): Likewise.
46264         * modules/uniconv/u32-strconv-from-enc-tests
46265         (test_u32_strconv_from_enc_LDADD): Likewise.
46266         * modules/uniconv/u32-strconv-to-enc-tests
46267         (test_u32_strconv_to_enc_LDADD): Likewise.
46268         * modules/uniconv/u8-conv-from-enc-tests
46269         (test_u8_conv_from_enc_LDADD): Likewise.
46270         * modules/uniconv/u8-conv-to-enc-tests
46271         (test_u8_conv_to_enc_LDADD): Likewise.
46272         * modules/uniconv/u8-strconv-from-enc-tests
46273         (test_u8_strconv_from_enc_LDADD): Likewise.
46274         * modules/uniconv/u8-strconv-to-enc-tests
46275         (test_u8_strconv_to_enc_LDADD): Likewise.
46276
46277 2007-10-22  Bruno Haible  <bruno@clisp.org>
46278
46279         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
46280         size.
46281
46282 2007-10-22  Eric Blake  <ebb9@byu.net>
46283
46284         Tweak x*printf documentation.
46285         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
46286         variable name and comments.
46287         Suggested by Bruno Haible.
46288
46289 2007-10-22  Bruno Haible  <bruno@clisp.org>
46290
46291         * lib/acl.c (copy_acl): Fix file name in comment.
46292
46293 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46294
46295         Fix Tru64 problem with stdbool.h.
46296         * lib/stdbool.in.h (false, true):
46297         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
46298         Don't declare as an enum in this situation; it runs afoul of Tru64.
46299         Problem reported by Steven M. Schweda in
46300         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
46301
46302 2007-10-22  Eric Blake  <ebb9@byu.net>
46303
46304         Also wrap vf?printf.
46305         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
46306         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
46307         (xvprintf, xvfprintf): New functions.
46308
46309 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46310
46311         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
46312         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
46313
46314         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
46315         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
46316
46317 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46318
46319         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
46320         by Bruno Haible.
46321
46322 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46323
46324         * lib/getloadavg.c
46325         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
46326         Undef `sys' after including sys/table.h, for Tru64 4.0D.
46327
46328         * tests/test-i-ring.c: Work for C89.
46329
46330 2007-10-22  Bruno Haible  <bruno@clisp.org>
46331
46332         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
46333         -1u, in preprocessor expression, so that we don't test for the bug
46334         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
46335         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
46336
46337 2007-10-22  Eric Blake  <ebb9@byu.net>
46338
46339         * tests/test-yesno.sh: Silence stderr during test.
46340
46341 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46342
46343         * modules/crypto/gc-camellia: New file.
46344
46345         * m4/gc-camellia.m4: New file.
46346
46347         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
46348
46349         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
46350
46351 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46352
46353         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
46354         --help to stdout.  Reported by sms@antinode.org (Steven
46355         M. Schweda).
46356
46357 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46358
46359         * users.txt: Fix link to libksba.
46360
46361 2007-10-21  Ben Pfaff  <blp@gnu.org>
46362
46363         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
46364         round.c roundf implementation that depends on floorf and ceilf to
46365         be tested unconditionally.
46366
46367 2007-10-21  Ben Pfaff  <blp@gnu.org>
46368
46369         * m4/check-libm-func.m4: Removed.
46370         * m4/check-math-lib.m4: New file.
46371         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
46372         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
46373         definition and lack of AC_LIBOBJ([roundf]).
46374         * m4/roundl.m4: Ditto, and similarly for roundl.
46375         * modules/round: Reference new m4 file.
46376         * modules/roundf: Ditto.
46377         * modules/roundl: Ditto.
46378         * tests/test-round2.c (main): Use ROUND instead of round.
46379         Bug report from Bruno Haible.
46380
46381 2007-10-21  Bruno Haible  <bruno@clisp.org>
46382
46383         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
46384         context.
46385
46386 2007-10-21  Bruno Haible  <bruno@clisp.org>
46387
46388         * tests/test-wcwidth.c (main): Allow negative result for some control
46389         characters.
46390
46391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
46392         Needed on OSF/1 5.1.
46393
46394 2007-10-21  Bruno Haible  <bruno@clisp.org>
46395
46396         * tests/test-floorf1.c: Include isnanf.h.
46397         (main): Use isnanf() instead of isnan().
46398         * tests/test-ceilf1.c: Include isnanf.h.
46399         (main): Use isnanf() instead of isnan().
46400         * tests/test-truncf1.c: Include isnanf.h.
46401         (main): Use isnanf() instead of isnan().
46402         * tests/test-roundf1.c: Include isnanf.h.
46403         (main): Use isnanf() instead of isnan().
46404
46405 2007-10-21  Eric Blake  <ebb9@byu.net>
46406
46407         * users.txt: Update URL for m4.
46408
46409 2007-10-21  Bruno Haible  <bruno@clisp.org>
46410
46411         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
46412
46413 2007-10-21  Bruno Haible  <bruno@clisp.org>
46414
46415         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
46416         Git's management files if the CVS files are not present.
46417
46418 2007-10-20  Bruno Haible  <bruno@clisp.org>
46419
46420         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
46421         gcc-3.4.x.
46422
46423 2007-10-20  Ben Pfaff  <blp@gnu.org>
46424
46425         * lib/math.in.h: Declare round, roundf, roundl if we are providing
46426         implementations.
46427         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
46428         * lib/round.c: New file.
46429         * lib/roundf.c: New file.
46430         * lib/roundl.c: New file.
46431         * m4/round.m4: New file.
46432         * m4/roundf.m4: New file.
46433         * m4/roundl.m4: New file.
46434         * m4/check-libm-func-m4: New file.
46435         * modules/math: Replace round, roundf, roundl related @VARS@ in
46436         math.in.h.
46437         * modules/round: New file.
46438         * modules/round-tests: New file.
46439         * modules/roundf: New file.
46440         * modules/roundf-tests: New file.
46441         * modules/roundl: New file.
46442         * modules/roundl-tests: New file.
46443         * tests/test-round1.c: New file.
46444         * tests/test-round2.c: New file.
46445         * tests/test-roundf1.c: New file.
46446         * tests/test-roundf2.c: New file.
46447         * tests/test-roundl.c: New file.
46448         * doc/functions/round.texi: Mention round module.
46449         * doc/functions/roundf.texi: Mention roundf module.
46450         * doc/functions/roundl.texi: Mention roundl module.
46451         * MODULES.html.sh: Mention new modules.
46452         Thanks to Bruno Haible for suggestions.
46453
46454 2007-10-20  Jim Meyering  <meyering@redhat.com>
46455
46456         * lib/xprintf.c: Include <config.h> unconditionally.
46457
46458         Change xprintf's license to GPL.
46459         * modules/xprintf (License): s/LGPL/GPL/, since this module
46460         depends on modules (exit and exitfail) which are GPL.
46461         Suggestion from Bruno Haible.
46462
46463         xprintf fixes.
46464         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
46465         Use a clearer diagnostic.
46466         Patch from Bruno Haible.
46467
46468 2007-10-20  Bruno Haible  <bruno@clisp.org>
46469
46470         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
46471         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
46472         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46473
46474 2007-10-20  Bruno Haible  <bruno@clisp.org>
46475
46476         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
46477         precision in the comparison result > x - 1 or similar.
46478         * tests/test-ceilf2.c (correct_result_p): Likewise.
46479         * tests/test-truncf2.c (correct_result_p): Likewise.
46480         * tests/test-trunc2.c (correct_result_p): Likewise.
46481         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46482
46483 2007-10-20  Bruno Haible  <bruno@clisp.org>
46484
46485         * modules/ceil: New file.
46486         * m4/ceil.m4: New file.
46487         * doc/functions/ceil.texi: Mention the 'ceil' module.
46488
46489 2007-10-20  Bruno Haible  <bruno@clisp.org>
46490
46491         * modules/floor: New file.
46492         * m4/floor.m4: New file.
46493         * doc/functions/floor.texi: Mention the 'floor' module.
46494
46495 2007-10-20  Bruno Haible  <bruno@clisp.org>
46496
46497         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
46498         of %a.
46499         * modules/floorf-tests (Depends-on): Likewise.
46500         * modules/truncf-tests (Depends-on): Likewise.
46501         * modules/trunc-tests (Depends-on): Likewise.
46502         Reported by Ben Pfaff.
46503
46504 2007-10-19  Jim Meyering  <meyering@redhat.com>
46505
46506         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
46507         Don't bother testing specific errno values.  Just test ferror.
46508
46509         New module: xprintf
46510         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
46511
46512 2007-10-19  Bruno Haible  <bruno@clisp.org>
46513
46514         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
46515         syntax.
46516         * modules/javaexec (Makefile.am): Likewise.
46517         * modules/relocatable-prog (Makefile.am): Likewise.
46518         Suggested by Jim Meyering.
46519
46520 2007-10-18  Bruno Haible  <bruno@clisp.org>
46521
46522         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
46523         Reported by Jim Meyering.
46524
46525 2007-10-18  Eric Blake  <ebb9@byu.net>
46526
46527         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
46528
46529 2007-10-18  Bruno Haible  <bruno@clisp.org>
46530
46531         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
46532         the format string into writable memory. Needed in Fortify conditions.
46533
46534 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
46535             Bruno Haible  <bruno@clisp.org>
46536
46537         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
46538         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
46539         * modules/trim (Depends-on): Add mbchar.
46540         (configure.ac): Add gl_FUNC_MBRTOWC.
46541         (Makefile.am): Augment lib_SOURCES.
46542
46543 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46544
46545         Modify glob.c to use fstatat and dirfd, to simplify it.
46546         Suggested by Eric Blake.
46547         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
46548         Don't include <stdbool.h>; not used.
46549         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
46550         (link_exists_p): Simplify implementation, since we can now assume
46551         dirfd and fstatat.
46552         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
46553
46554 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46555
46556         * gnulib-tool (func_get_dependencies): Fix sed script to
46557         match only tests.
46558
46559 2007-10-17  Bruno Haible  <bruno@clisp.org>
46560
46561         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
46562         allow locale names without encoding suffix.
46563         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46564         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46565
46566 2007-10-16  Bruno Haible  <bruno@clisp.org>
46567
46568         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
46569         * lib/getgroups.c (getgroups): Likewise.
46570         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
46571
46572 2007-10-16  Bruno Haible  <bruno@clisp.org>
46573
46574         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
46575         * modules/malloc-posix (License): Likewise.
46576         * modules/realloc-posix (License): Likewise.
46577         * modules/calloc-posix (License): Likewise.
46578         * modules/intprops (License): Change from GPL to LGPL, with
46579         Paul Eggert's approval.
46580
46581 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46582
46583         Merge glibc changes into lib/glob.c.
46584
46585         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
46586         2007-10-15 04:59:03 UTC.  Here are the changes:
46587
46588         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
46589
46590         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
46591
46592         * lib/glob.c: Add some branch prediction throughout.
46593
46594         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
46595
46596         [BZ #5103]
46597         * lib/glob.c (glob): Recognize patterns starting \/.
46598
46599         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
46600
46601         [BZ #3996]
46602         * lib/glob.c (attribute_hidden): Define if not defined.
46603         (glob): Unescape dirname, filename or username when needed and not
46604         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
46605         is NULL.  Handle unescaped [ in pattern without closing ].
46606         Don't pass GLOB_CHECK down to recursive glob for directories.
46607         (__glob_pattern_type): New function.
46608         (__glob_pattern_p): Implement using __glob_pattern_type.
46609         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
46610         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
46611         Remove unreachable code.
46612
46613         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
46614
46615         * lib/glob.c (glob_in_dir): Add some comments and asserts to
46616         explain why there are no leaks.
46617
46618         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
46619
46620         [BZ #3253]
46621         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
46622         time, rather allocate increasingly bigger arrays of pointers, if
46623         possible with alloca, if too large with malloc.
46624
46625 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46626
46627         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
46628         Problem reported by H.Merijn Brand in
46629         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
46630         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
46631         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46632
46633 2007-10-15  Bruno Haible  <bruno@clisp.org>
46634
46635         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
46636         with explicit rpl_ prefix.
46637         * lib/fopen.c (fopen): Likewise.
46638         * lib/freopen.c (freopen): Likewise.
46639         * lib/iconv.c (iconv): Likewise.
46640         * lib/iconv_close.c (iconv_close): Likewise.
46641
46642 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46643
46644         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46645
46646 2007-10-15  Bruno Haible  <bruno@clisp.org>
46647
46648         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46649         <stddef.h> instead of <stdlib.h> since we only need NULL.
46650         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46651
46652 2007-10-15  Bruno Haible  <bruno@clisp.org>
46653
46654         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46655         Replace paragraph talking about LIBOBJS.
46656         Reported by Colin Watson <cjwatson@debian.org>.
46657
46658 2007-10-15  Bruno Haible  <bruno@clisp.org>
46659
46660         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46661         <stdlib.h> before using NULL.
46662
46663 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46664
46665         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46666         Reported by Albert Chin <china@thewrittenword.com>.
46667
46668 2007-10-14  Bruno Haible  <bruno@clisp.org>
46669
46670         * modules/iconv_open-utf-tests: New file.
46671         * tests/test-iconv-utf.c: New file.
46672
46673         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46674         * modules/iconv_open-utf: New file.
46675         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46676         (iconv, iconv_close): New declarations.
46677         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46678         be defined.
46679         (iconv_open): Add special handling of conversion between UTF-8 and
46680         UTF-{16,32}{BE,LE}.
46681         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46682         * lib/iconv_close.c: New file.
46683         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46684         gl_FUNC_ICONV_OPEN.
46685         (gl_FUNC_ICONV_OPEN): Use it.
46686         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46687         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46688         and REPLACE_ICONV_UTF.
46689         * modules/iconv_open (Depends-on): Add c-strcase.
46690         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46691         ICONV_CONST.
46692         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46693
46694 2007-10-13  Albert Chin  <china@thewrittenword.com>
46695             Bruno Haible  <bruno@clisp.org>
46696
46697         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46698         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46699
46700 2007-10-13  Bruno Haible  <bruno@clisp.org>
46701
46702         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46703         defined, use the ISO C99 inline semantics.
46704         * lib/argp.h (ARGP_EI): Likewise.
46705
46706 2007-10-13  Bruno Haible  <bruno@clisp.org>
46707
46708         Handle 'inline' change in gcc 4.3.0.
46709         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46710         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46711         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46712         argp_fmtstream_point): Disable 'extern' declaration if the function
46713         definition is going to be provided inline.
46714         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46715         semantics, not the ISO C99 inline semantics.
46716         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46717         'extern' declaration if the function definition is going to be provided
46718         inline.
46719         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46720         the GNU C inline semantics, not the ISO C99 inline semantics. With
46721         GCC 4.2, avoid a warning.
46722
46723 2007-10-13  Bruno Haible  <bruno@clisp.org>
46724
46725         * lib/freading.h (freading): Enable the use of __freading for
46726         glibc >= 2.7.
46727         * lib/freading.c (freading): Likewise.
46728
46729 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46730
46731         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46732         "warning: C99 inline functions are not supported; using GNU89".
46733
46734 2007-10-12  Bruno Haible  <bruno@clisp.org>
46735
46736         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46737         of 2.
46738         * tests/test-ceilf2.c: New file.
46739         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46740
46741         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46742         * modules/ceilf-tests: Update.
46743
46744 2007-10-12  Bruno Haible  <bruno@clisp.org>
46745
46746         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46747         of 2.
46748         * tests/test-floorf2.c: New file.
46749         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46750
46751         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46752         * modules/floorf-tests: Update.
46753
46754 2007-10-12  Bruno Haible  <bruno@clisp.org>
46755
46756         * tests/test-trunc2.c: New file.
46757         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46758
46759         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46760         * modules/trunc-tests: Update.
46761
46762 2007-10-12  Bruno Haible  <bruno@clisp.org>
46763
46764         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46765         of 2.
46766         * tests/test-truncf2.c: New file.
46767         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46768
46769         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46770         * modules/truncf-tests: Update.
46771
46772 2007-10-11  Eric Blake  <ebb9@byu.net>
46773
46774         Don't claim strerror is broken on Interix.
46775         * doc/functions/strerror.texi (strerror): Known broken systems are
46776         now Solaris 8, and not Interix.
46777         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46778         Interix on cross-compile.
46779         Reported by Martin Koeppe in
46780         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46781
46782 2007-10-11  Bruno Haible  <bruno@clisp.org>
46783
46784         * modules/i-ring-tests: New file.
46785         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46786         instead of assert.
46787
46788 2007-10-11  Bruno Haible  <bruno@clisp.org>
46789
46790         * modules/filenamecat-tests: New file.
46791         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46792         * lib/filenamecat.c: Remove test code.
46793
46794 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46795
46796         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46797
46798         * lib/strerror.c: Include <string.h> always, to test interface,
46799         and to remove the need for the dummy.
46800         Include intprops.h to compute width instead of doing it ourselves
46801         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46802         (strerror): Define it to return NULL if there's no system strerror.
46803         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46804         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46805         ancient pre-strerror Unix systems well any more.  Saying "unknown
46806         system error" is enough.
46807         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46808         simpler strerror.c implementation.
46809         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46810         Simplify the tests to reflect the simpler strerror implementation.
46811         * modules/strerror (Depends-on): Add intprops.
46812
46813 2007-10-09  Eric Blake  <ebb9@byu.net>
46814
46815         Silence test-fpending.
46816         * modules/fpending-tests (Files): Add wrapper script.
46817         * tests/test-fpending.sh: New file.
46818
46819 2007-10-09  Bruno Haible  <bruno@clisp.org>
46820
46821         * MODULES.html.sh (func_module): Don't create a hyperlink for
46822         function names like 'printf_frexp'.
46823         (Misc): Add crc, memxor.
46824         (Characteristics of floating types): New section.
46825         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46826         isnanf-nolibm, signbit, trunc, truncf, truncl.
46827         (Enhancements for ISO C 99 functions): New subsection Input/output.
46828         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46829         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46830         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46831         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46832         (Enhancements for POSIX:2001 functions): Add chdir-long.
46833         (File system functions): Add areadlink, chdir-safer, read-file.
46834         Remove cycle-check.
46835         (File system as inode set): New section.
46836         (Date and time): Add gethrxtime.
46837         (Multithreading): Add openmp.
46838         (Internationalization functions): Add localename.
46839         (Unicode string functions): Add unistr/u*-mbsnlen.
46840         (Support for maintaining and releasing projects): Add git-version-gen.
46841         (Lone files): Remove directories.
46842
46843 2007-10-08  Ben Pfaff  <blp@gnu.org>
46844
46845         * lib/xmalloca.h: Fix typo in comment.
46846
46847 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46848
46849         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46850         when avoiding problems with integer overflow.  Use a portable test
46851         instead.
46852
46853 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46854
46855         * modules/dummy (License): Change to LGPLv2+.
46856         * modules/float (License): Likewise
46857         * modules/realloc (License): Likewise
46858         * modules/stdlib (License): Likewise
46859
46860 2007-10-07  Bruno Haible  <bruno@clisp.org>
46861
46862         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46863         * floor.c (TWO_MANT_DIG): Likewise.
46864         * ceil.c (TWO_MANT_DIG): Likewise.
46865         Reported by Ben Pfaff.
46866
46867 2007-10-07  Bruno Haible  <bruno@clisp.org>
46868
46869         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46870         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46871         * lib/frexp.c (FUNC): Likewise.
46872         * lib/printf-frexp.h (printf_frexp): Likewise.
46873         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46874         * lib/printf-frexp.c (FUNC): Likewise.
46875         Suggested by Jim Meyering.
46876
46877 2007-10-07  Jim Meyering  <meyering@redhat.com>
46878
46879         Make xnanosleep's integer overflow test more robust.
46880         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46881         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46882
46883 2007-10-07  Bruno Haible  <bruno@clisp.org>
46884
46885         * NEWS: Mention the license change.
46886
46887         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46888         abbreviations in the modules files.
46889
46890         Change copyright notice from GPLv2+ to GPLv3+.
46891         * README: Change copyright notice.
46892         * MODULES.html.sh: Likewise.
46893         * build-aux/bootstrap.conf: Likewise.
46894         * build-aux/config.libpath: Likewise.
46895         * build-aux/csharpcomp.sh.in: Likewise.
46896         * build-aux/csharpexec.sh.in: Likewise.
46897         * build-aux/install-reloc: Likewise.
46898         * build-aux/javacomp.sh.in: Likewise.
46899         * build-aux/javaexec.sh.in: Likewise.
46900         * build-aux/ldd.sh.in: Likewise.
46901         * build-aux/reloc-ldflags: Likewise.
46902         * build-aux/relocatable.sh.in: Likewise.
46903         * build-aux/x-to-1.in: Likewise.
46904         * check-module: Likewise.
46905         * config/srclistvars.sh: Likewise.
46906         * gnulib-tool: Likewise.
46907         * lib/acl-internal.h: Likewise.
46908         * lib/acl.c: Likewise.
46909         * lib/acl.h: Likewise.
46910         * lib/acl_entries.c: Likewise.
46911         * lib/areadlink-with-size.c: Likewise.
46912         * lib/areadlink.c: Likewise.
46913         * lib/areadlink.h: Likewise.
46914         * lib/argmatch.c: Likewise.
46915         * lib/argmatch.h: Likewise.
46916         * lib/argp-ba.c: Likewise.
46917         * lib/argp-eexst.c: Likewise.
46918         * lib/argp-fmtstream.c: Likewise.
46919         * lib/argp-fmtstream.h: Likewise.
46920         * lib/argp-fs-xinl.c: Likewise.
46921         * lib/argp-help.c: Likewise.
46922         * lib/argp-namefrob.h: Likewise.
46923         * lib/argp-parse.c: Likewise.
46924         * lib/argp-pin.c: Likewise.
46925         * lib/argp-pv.c: Likewise.
46926         * lib/argp-pvh.c: Likewise.
46927         * lib/argp-xinl.c: Likewise.
46928         * lib/argp.h: Likewise.
46929         * lib/at-func.c: Likewise.
46930         * lib/atanl.c: Likewise.
46931         * lib/backupfile.c: Likewise.
46932         * lib/backupfile.h: Likewise.
46933         * lib/basename.c: Likewise.
46934         * lib/binary-io.h: Likewise.
46935         * lib/byteswap.in.h: Likewise.
46936         * lib/c-stack.c: Likewise.
46937         * lib/c-stack.h: Likewise.
46938         * lib/c-strcasestr.c: Likewise.
46939         * lib/c-strcasestr.h: Likewise.
46940         * lib/c-strstr.c: Likewise.
46941         * lib/c-strstr.h: Likewise.
46942         * lib/c-strtod.c: Likewise.
46943         * lib/calloc.c: Likewise.
46944         * lib/canon-host.c: Likewise.
46945         * lib/canon-host.h: Likewise.
46946         * lib/canonicalize-lgpl.c: Likewise.
46947         * lib/canonicalize.c: Likewise.
46948         * lib/canonicalize.h: Likewise.
46949         * lib/ceil.c: Likewise.
46950         * lib/ceilf.c: Likewise.
46951         * lib/ceill.c: Likewise.
46952         * lib/chdir-long.c: Likewise.
46953         * lib/chdir-long.h: Likewise.
46954         * lib/chdir-safer.c: Likewise.
46955         * lib/chdir-safer.h: Likewise.
46956         * lib/chown.c: Likewise.
46957         * lib/classpath.c: Likewise.
46958         * lib/classpath.h: Likewise.
46959         * lib/clean-temp.c: Likewise.
46960         * lib/clean-temp.h: Likewise.
46961         * lib/cloexec.c: Likewise.
46962         * lib/close-stream.c: Likewise.
46963         * lib/closein.c: Likewise.
46964         * lib/closein.h: Likewise.
46965         * lib/closeout.c: Likewise.
46966         * lib/closeout.h: Likewise.
46967         * lib/concat-filename.c: Likewise.
46968         * lib/copy-file.c: Likewise.
46969         * lib/copy-file.h: Likewise.
46970         * lib/count-one-bits.h: Likewise.
46971         * lib/crc.c: Likewise.
46972         * lib/crc.h: Likewise.
46973         * lib/creat-safer.c: Likewise.
46974         * lib/csharpcomp.c: Likewise.
46975         * lib/csharpcomp.h: Likewise.
46976         * lib/csharpexec.c: Likewise.
46977         * lib/csharpexec.h: Likewise.
46978         * lib/cycle-check.c: Likewise.
46979         * lib/cycle-check.h: Likewise.
46980         * lib/diacrit.c: Likewise.
46981         * lib/diacrit.h: Likewise.
46982         * lib/diffseq.h: Likewise.
46983         * lib/dirchownmod.c: Likewise.
46984         * lib/dirent.in.h: Likewise.
46985         * lib/dirfd.c: Likewise.
46986         * lib/dirfd.h: Likewise.
46987         * lib/dirname.c: Likewise.
46988         * lib/dirname.h: Likewise.
46989         * lib/dummy.c: Likewise.
46990         * lib/dup-safer.c: Likewise.
46991         * lib/dup2.c: Likewise.
46992         * lib/eealloc.h: Likewise.
46993         * lib/error.c: Likewise.
46994         * lib/error.h: Likewise.
46995         * lib/euidaccess.c: Likewise.
46996         * lib/exclude.c: Likewise.
46997         * lib/exclude.h: Likewise.
46998         * lib/execute.c: Likewise.
46999         * lib/execute.h: Likewise.
47000         * lib/exitfail.c: Likewise.
47001         * lib/exitfail.h: Likewise.
47002         * lib/expl.c: Likewise.
47003         * lib/fatal-signal.c: Likewise.
47004         * lib/fatal-signal.h: Likewise.
47005         * lib/fbufmode.c: Likewise.
47006         * lib/fbufmode.h: Likewise.
47007         * lib/fchdir.c: Likewise.
47008         * lib/fchmodat.c: Likewise.
47009         * lib/fchownat.c: Likewise.
47010         * lib/fcntl--.h: Likewise.
47011         * lib/fcntl-safer.h: Likewise.
47012         * lib/fcntl.in.h: Likewise.
47013         * lib/fd-safer.c: Likewise.
47014         * lib/fflush.c: Likewise.
47015         * lib/file-has-acl.c: Likewise.
47016         * lib/file-set.c: Likewise.
47017         * lib/file-type.c: Likewise.
47018         * lib/file-type.h: Likewise.
47019         * lib/fileblocks.c: Likewise.
47020         * lib/filemode.c: Likewise.
47021         * lib/filemode.h: Likewise.
47022         * lib/filename.h: Likewise.
47023         * lib/filenamecat.c: Likewise.
47024         * lib/filenamecat.h: Likewise.
47025         * lib/findprog.c: Likewise.
47026         * lib/findprog.h: Likewise.
47027         * lib/float.in.h: Likewise.
47028         * lib/floor.c: Likewise.
47029         * lib/floorf.c: Likewise.
47030         * lib/floorl.c: Likewise.
47031         * lib/fopen-safer.c: Likewise.
47032         * lib/fopen.c: Likewise.
47033         * lib/fpending.c: Likewise.
47034         * lib/fpending.h: Likewise.
47035         * lib/fprintf.c: Likewise.
47036         * lib/fprintftime.h: Likewise.
47037         * lib/fpucw.h: Likewise.
47038         * lib/fpurge.c: Likewise.
47039         * lib/fpurge.h: Likewise.
47040         * lib/freadable.c: Likewise.
47041         * lib/freadable.h: Likewise.
47042         * lib/freadahead.c: Likewise.
47043         * lib/freadahead.h: Likewise.
47044         * lib/freading.c: Likewise.
47045         * lib/freading.h: Likewise.
47046         * lib/free.c: Likewise.
47047         * lib/freopen.c: Likewise.
47048         * lib/frexp.c: Likewise.
47049         * lib/frexpl.c: Likewise.
47050         * lib/fseek.c: Likewise.
47051         * lib/fseterr.c: Likewise.
47052         * lib/fseterr.h: Likewise.
47053         * lib/fstatat.c: Likewise.
47054         * lib/fstrcmp.c: Likewise.
47055         * lib/fstrcmp.h: Likewise.
47056         * lib/fsusage.c: Likewise.
47057         * lib/fsusage.h: Likewise.
47058         * lib/ftell.c: Likewise.
47059         * lib/ftello.c: Likewise.
47060         * lib/fts-cycle.c: Likewise.
47061         * lib/fts.c: Likewise.
47062         * lib/fts_.h: Likewise.
47063         * lib/full-read.c: Likewise.
47064         * lib/full-read.h: Likewise.
47065         * lib/full-write.c: Likewise.
47066         * lib/full-write.h: Likewise.
47067         * lib/fwritable.c: Likewise.
47068         * lib/fwritable.h: Likewise.
47069         * lib/fwriteerror.c: Likewise.
47070         * lib/fwriteerror.h: Likewise.
47071         * lib/fwriting.c: Likewise.
47072         * lib/fwriting.h: Likewise.
47073         * lib/gcd.c: Likewise.
47074         * lib/gcd.h: Likewise.
47075         * lib/getcwd.c: Likewise.
47076         * lib/getdate.h: Likewise.
47077         * lib/getdate.y: Likewise.
47078         * lib/getdomainname.c: Likewise.
47079         * lib/getdomainname.h: Likewise.
47080         * lib/getgroups.c: Likewise.
47081         * lib/gethostname.c: Likewise.
47082         * lib/gethrxtime.c: Likewise.
47083         * lib/gethrxtime.h: Likewise.
47084         * lib/getloadavg.c: Likewise.
47085         * lib/getndelim2.c: Likewise.
47086         * lib/getndelim2.h: Likewise.
47087         * lib/getnline.c: Likewise.
47088         * lib/getnline.h: Likewise.
47089         * lib/getopt.c: Likewise.
47090         * lib/getopt.in.h: Likewise.
47091         * lib/getopt1.c: Likewise.
47092         * lib/getopt_int.h: Likewise.
47093         * lib/getpagesize.h: Likewise.
47094         * lib/getsubopt.c: Likewise.
47095         * lib/gettime.c: Likewise.
47096         * lib/getugroups.c: Likewise.
47097         * lib/getugroups.h: Likewise.
47098         * lib/getusershell.c: Likewise.
47099         * lib/gl_anyavltree_list1.h: Likewise.
47100         * lib/gl_anyavltree_list2.h: Likewise.
47101         * lib/gl_anyhash_list1.h: Likewise.
47102         * lib/gl_anyhash_list2.h: Likewise.
47103         * lib/gl_anylinked_list1.h: Likewise.
47104         * lib/gl_anylinked_list2.h: Likewise.
47105         * lib/gl_anyrbtree_list1.h: Likewise.
47106         * lib/gl_anyrbtree_list2.h: Likewise.
47107         * lib/gl_anytree_list1.h: Likewise.
47108         * lib/gl_anytree_list2.h: Likewise.
47109         * lib/gl_anytree_oset.h: Likewise.
47110         * lib/gl_anytreehash_list1.h: Likewise.
47111         * lib/gl_anytreehash_list2.h: Likewise.
47112         * lib/gl_array_list.c: Likewise.
47113         * lib/gl_array_list.h: Likewise.
47114         * lib/gl_array_oset.c: Likewise.
47115         * lib/gl_array_oset.h: Likewise.
47116         * lib/gl_avltree_list.c: Likewise.
47117         * lib/gl_avltree_list.h: Likewise.
47118         * lib/gl_avltree_oset.c: Likewise.
47119         * lib/gl_avltree_oset.h: Likewise.
47120         * lib/gl_avltreehash_list.c: Likewise.
47121         * lib/gl_avltreehash_list.h: Likewise.
47122         * lib/gl_carray_list.c: Likewise.
47123         * lib/gl_carray_list.h: Likewise.
47124         * lib/gl_linked_list.c: Likewise.
47125         * lib/gl_linked_list.h: Likewise.
47126         * lib/gl_linkedhash_list.c: Likewise.
47127         * lib/gl_linkedhash_list.h: Likewise.
47128         * lib/gl_list.c: Likewise.
47129         * lib/gl_list.h: Likewise.
47130         * lib/gl_oset.c: Likewise.
47131         * lib/gl_oset.h: Likewise.
47132         * lib/gl_rbtree_list.c: Likewise.
47133         * lib/gl_rbtree_list.h: Likewise.
47134         * lib/gl_rbtree_oset.c: Likewise.
47135         * lib/gl_rbtree_oset.h: Likewise.
47136         * lib/gl_rbtreehash_list.c: Likewise.
47137         * lib/gl_rbtreehash_list.h: Likewise.
47138         * lib/gl_sublist.c: Likewise.
47139         * lib/gl_sublist.h: Likewise.
47140         * lib/group-member.c: Likewise.
47141         * lib/group-member.h: Likewise.
47142         * lib/hard-locale.c: Likewise.
47143         * lib/hard-locale.h: Likewise.
47144         * lib/hash-pjw.c: Likewise.
47145         * lib/hash-pjw.h: Likewise.
47146         * lib/hash-triple.c: Likewise.
47147         * lib/hash.c: Likewise.
47148         * lib/hash.h: Likewise.
47149         * lib/human.c: Likewise.
47150         * lib/human.h: Likewise.
47151         * lib/i-ring.c: Likewise.
47152         * lib/i-ring.h: Likewise.
47153         * lib/idcache.c: Likewise.
47154         * lib/imaxabs.c: Likewise.
47155         * lib/imaxdiv.c: Likewise.
47156         * lib/inet_pton.c: Likewise.
47157         * lib/inet_pton.h: Likewise.
47158         * lib/intprops.h: Likewise.
47159         * lib/inttostr.c: Likewise.
47160         * lib/inttostr.h: Likewise.
47161         * lib/inttypes.in.h: Likewise.
47162         * lib/isapipe.c: Likewise.
47163         * lib/isdir.c: Likewise.
47164         * lib/isnan.c: Likewise.
47165         * lib/isnan.h: Likewise.
47166         * lib/isnanf.c: Likewise.
47167         * lib/isnanf.h: Likewise.
47168         * lib/isnanl-nolibm.h: Likewise.
47169         * lib/isnanl.c: Likewise.
47170         * lib/isnanl.h: Likewise.
47171         * lib/javacomp.c: Likewise.
47172         * lib/javacomp.h: Likewise.
47173         * lib/javaexec.c: Likewise.
47174         * lib/javaexec.h: Likewise.
47175         * lib/javaversion.c: Likewise.
47176         * lib/javaversion.h: Likewise.
47177         * lib/javaversion.java: Likewise.
47178         * lib/lbrkprop.h: Likewise.
47179         * lib/lchmod.h: Likewise.
47180         * lib/lchown.c: Likewise.
47181         * lib/ldexpl.c: Likewise.
47182         * lib/linebreak.c: Likewise.
47183         * lib/linebreak.h: Likewise.
47184         * lib/linebuffer.c: Likewise.
47185         * lib/linebuffer.h: Likewise.
47186         * lib/locale.in.h: Likewise.
47187         * lib/logl.c: Likewise.
47188         * lib/long-options.c: Likewise.
47189         * lib/long-options.h: Likewise.
47190         * lib/lstat.c: Likewise.
47191         * lib/lstat.h: Likewise.
47192         * lib/math.in.h: Likewise.
47193         * lib/mbchar.c: Likewise.
47194         * lib/mbchar.h: Likewise.
47195         * lib/mbfile.h: Likewise.
47196         * lib/mbiter.h: Likewise.
47197         * lib/mbscasecmp.c: Likewise.
47198         * lib/mbscasestr.c: Likewise.
47199         * lib/mbschr.c: Likewise.
47200         * lib/mbscspn.c: Likewise.
47201         * lib/mbslen.c: Likewise.
47202         * lib/mbsncasecmp.c: Likewise.
47203         * lib/mbsnlen.c: Likewise.
47204         * lib/mbspbrk.c: Likewise.
47205         * lib/mbspcasecmp.c: Likewise.
47206         * lib/mbsrchr.c: Likewise.
47207         * lib/mbssep.c: Likewise.
47208         * lib/mbsspn.c: Likewise.
47209         * lib/mbsstr.c: Likewise.
47210         * lib/mbstok_r.c: Likewise.
47211         * lib/mbswidth.c: Likewise.
47212         * lib/mbswidth.h: Likewise.
47213         * lib/mbuiter.h: Likewise.
47214         * lib/memcasecmp.c: Likewise.
47215         * lib/memcasecmp.h: Likewise.
47216         * lib/memchr.c: Likewise.
47217         * lib/memcmp.c: Likewise.
47218         * lib/memcoll.c: Likewise.
47219         * lib/memcoll.h: Likewise.
47220         * lib/memcpy.c: Likewise.
47221         * lib/memrchr.c: Likewise.
47222         * lib/mkancesdirs.c: Likewise.
47223         * lib/mkdir-p.c: Likewise.
47224         * lib/mkdir-p.h: Likewise.
47225         * lib/mkdir.c: Likewise.
47226         * lib/mkdirat.c: Likewise.
47227         * lib/mkdtemp.c: Likewise.
47228         * lib/mkstemp-safer.c: Likewise.
47229         * lib/mkstemp.c: Likewise.
47230         * lib/modechange.c: Likewise.
47231         * lib/modechange.h: Likewise.
47232         * lib/mountlist.c: Likewise.
47233         * lib/mountlist.h: Likewise.
47234         * lib/mpsort.c: Likewise.
47235         * lib/nanosleep.c: Likewise.
47236         * lib/obstack.c: Likewise.
47237         * lib/obstack.h: Likewise.
47238         * lib/open-safer.c: Likewise.
47239         * lib/open.c: Likewise.
47240         * lib/openat-die.c: Likewise.
47241         * lib/openat-priv.h: Likewise.
47242         * lib/openat-proc.c: Likewise.
47243         * lib/openat.c: Likewise.
47244         * lib/openat.h: Likewise.
47245         * lib/pagealign_alloc.c: Likewise.
47246         * lib/pagealign_alloc.h: Likewise.
47247         * lib/physmem.c: Likewise.
47248         * lib/physmem.h: Likewise.
47249         * lib/pipe-safer.c: Likewise.
47250         * lib/pipe.c: Likewise.
47251         * lib/pipe.h: Likewise.
47252         * lib/posixtm.c: Likewise.
47253         * lib/posixtm.h: Likewise.
47254         * lib/posixver.c: Likewise.
47255         * lib/printf-frexp.c: Likewise.
47256         * lib/printf-frexp.h: Likewise.
47257         * lib/printf-frexpl.c: Likewise.
47258         * lib/printf-frexpl.h: Likewise.
47259         * lib/printf.c: Likewise.
47260         * lib/progname.c: Likewise.
47261         * lib/progname.h: Likewise.
47262         * lib/progreloc.c: Likewise.
47263         * lib/putenv.c: Likewise.
47264         * lib/quote.c: Likewise.
47265         * lib/quote.h: Likewise.
47266         * lib/quotearg.c: Likewise.
47267         * lib/quotearg.h: Likewise.
47268         * lib/raise.c: Likewise.
47269         * lib/readline.c: Likewise.
47270         * lib/readline.h: Likewise.
47271         * lib/readlink.c: Likewise.
47272         * lib/readtokens.c: Likewise.
47273         * lib/readtokens.h: Likewise.
47274         * lib/readtokens0.c: Likewise.
47275         * lib/readtokens0.h: Likewise.
47276         * lib/readutmp.c: Likewise.
47277         * lib/readutmp.h: Likewise.
47278         * lib/realloc.c: Likewise.
47279         * lib/relocwrapper.c: Likewise.
47280         * lib/rename-dest-slash.c: Likewise.
47281         * lib/rename.c: Likewise.
47282         * lib/rmdir.c: Likewise.
47283         * lib/rpmatch.c: Likewise.
47284         * lib/safe-read.c: Likewise.
47285         * lib/safe-read.h: Likewise.
47286         * lib/safe-write.c: Likewise.
47287         * lib/safe-write.h: Likewise.
47288         * lib/same-inode.h: Likewise.
47289         * lib/same.c: Likewise.
47290         * lib/same.h: Likewise.
47291         * lib/save-cwd.c: Likewise.
47292         * lib/save-cwd.h: Likewise.
47293         * lib/savedir.c: Likewise.
47294         * lib/savedir.h: Likewise.
47295         * lib/savewd.c: Likewise.
47296         * lib/savewd.h: Likewise.
47297         * lib/search.in.h: Likewise.
47298         * lib/setenv.c: Likewise.
47299         * lib/setenv.h: Likewise.
47300         * lib/settime.c: Likewise.
47301         * lib/sh-quote.c: Likewise.
47302         * lib/sh-quote.h: Likewise.
47303         * lib/sig2str.c: Likewise.
47304         * lib/sig2str.h: Likewise.
47305         * lib/signal.in.h: Likewise.
47306         * lib/signbitd.c: Likewise.
47307         * lib/signbitf.c: Likewise.
47308         * lib/signbitl.c: Likewise.
47309         * lib/sigprocmask.c: Likewise.
47310         * lib/sincosl.c: Likewise.
47311         * lib/sleep.c: Likewise.
47312         * lib/sprintf.c: Likewise.
47313         * lib/sqrtl.c: Likewise.
47314         * lib/stat-time.h: Likewise.
47315         * lib/stdio--.h: Likewise.
47316         * lib/stdio-safer.h: Likewise.
47317         * lib/stdlib--.h: Likewise.
47318         * lib/stdlib-safer.h: Likewise.
47319         * lib/stdlib.in.h: Likewise.
47320         * lib/stpcpy.c: Likewise.
47321         * lib/stpncpy.c: Likewise.
47322         * lib/strchrnul.c: Likewise.
47323         * lib/strcspn.c: Likewise.
47324         * lib/strerror.c: Likewise.
47325         * lib/strftime.c: Likewise.
47326         * lib/strftime.h: Likewise.
47327         * lib/striconveh.c: Likewise.
47328         * lib/striconveh.h: Likewise.
47329         * lib/striconveha.c: Likewise.
47330         * lib/striconveha.h: Likewise.
47331         * lib/stripslash.c: Likewise.
47332         * lib/strnlen1.c: Likewise.
47333         * lib/strnlen1.h: Likewise.
47334         * lib/strtod.c: Likewise.
47335         * lib/strtoimax.c: Likewise.
47336         * lib/strtok_r.c: Likewise.
47337         * lib/strtol.c: Likewise.
47338         * lib/strtoll.c: Likewise.
47339         * lib/strtoul.c: Likewise.
47340         * lib/strtoull.c: Likewise.
47341         * lib/sysexits.in.h: Likewise.
47342         * lib/tempname.c: Likewise.
47343         * lib/tempname.h: Likewise.
47344         * lib/timespec.h: Likewise.
47345         * lib/tls.c: Likewise.
47346         * lib/tls.h: Likewise.
47347         * lib/tmpdir.c: Likewise.
47348         * lib/tmpdir.h: Likewise.
47349         * lib/tmpfile-safer.c: Likewise.
47350         * lib/tmpfile.c: Likewise.
47351         * lib/trigl.c: Likewise.
47352         * lib/trigl.h: Likewise.
47353         * lib/trim.c: Likewise.
47354         * lib/trim.h: Likewise.
47355         * lib/trunc.c: Likewise.
47356         * lib/truncf.c: Likewise.
47357         * lib/truncl.c: Likewise.
47358         * lib/tsearch.c: Likewise.
47359         * lib/unicodeio.c: Likewise.
47360         * lib/unicodeio.h: Likewise.
47361         * lib/unistd--.h: Likewise.
47362         * lib/unistd-safer.h: Likewise.
47363         * lib/unistdio/ulc-fprintf.c: Likewise.
47364         * lib/unistdio/ulc-vfprintf.c: Likewise.
47365         * lib/unlinkdir.c: Likewise.
47366         * lib/unlinkdir.h: Likewise.
47367         * lib/unlocked-io.h: Likewise.
47368         * lib/unsetenv.c: Likewise.
47369         * lib/userspec.c: Likewise.
47370         * lib/utime.c: Likewise.
47371         * lib/utimecmp.c: Likewise.
47372         * lib/utimecmp.h: Likewise.
47373         * lib/utimens.c: Likewise.
47374         * lib/verify.h: Likewise.
47375         * lib/verror.c: Likewise.
47376         * lib/verror.h: Likewise.
47377         * lib/version-etc-fsf.c: Likewise.
47378         * lib/version-etc.c: Likewise.
47379         * lib/version-etc.h: Likewise.
47380         * lib/vfprintf.c: Likewise.
47381         * lib/vprintf.c: Likewise.
47382         * lib/vsprintf.c: Likewise.
47383         * lib/w32spawn.h: Likewise.
47384         * lib/wait-process.c: Likewise.
47385         * lib/wait-process.h: Likewise.
47386         * lib/wcwidth.c: Likewise.
47387         * lib/write-any-file.c: Likewise.
47388         * lib/xalloc-die.c: Likewise.
47389         * lib/xalloc.h: Likewise.
47390         * lib/xasprintf.c: Likewise.
47391         * lib/xgetcwd.c: Likewise.
47392         * lib/xgetcwd.h: Likewise.
47393         * lib/xgetdomainname.c: Likewise.
47394         * lib/xgetdomainname.h: Likewise.
47395         * lib/xgethostname.c: Likewise.
47396         * lib/xmalloc.c: Likewise.
47397         * lib/xmalloca.c: Likewise.
47398         * lib/xmalloca.h: Likewise.
47399         * lib/xmemcoll.c: Likewise.
47400         * lib/xnanosleep.c: Likewise.
47401         * lib/xreadlink.c: Likewise.
47402         * lib/xreadlink.h: Likewise.
47403         * lib/xsetenv.c: Likewise.
47404         * lib/xsetenv.h: Likewise.
47405         * lib/xstriconv.c: Likewise.
47406         * lib/xstriconv.h: Likewise.
47407         * lib/xstrndup.c: Likewise.
47408         * lib/xstrndup.h: Likewise.
47409         * lib/xstrtod.c: Likewise.
47410         * lib/xstrtod.h: Likewise.
47411         * lib/xstrtol-error.c: Likewise.
47412         * lib/xstrtol.c: Likewise.
47413         * lib/xstrtol.h: Likewise.
47414         * lib/xtime.h: Likewise.
47415         * lib/xvasprintf.c: Likewise.
47416         * lib/xvasprintf.h: Likewise.
47417         * lib/yesno.c: Likewise.
47418         * lib/yesno.h: Likewise.
47419         * posix-modules: Likewise.
47420         * tests/test-alloca-opt.c: Likewise.
47421         * tests/test-arcfour.c: Likewise.
47422         * tests/test-arctwo.c: Likewise.
47423         * tests/test-argmatch.c: Likewise.
47424         * tests/test-argp-2.sh: Likewise.
47425         * tests/test-argp.c: Likewise.
47426         * tests/test-arpa_inet.c: Likewise.
47427         * tests/test-array_list.c: Likewise.
47428         * tests/test-array_oset.c: Likewise.
47429         * tests/test-atexit.c: Likewise.
47430         * tests/test-avltree_list.c: Likewise.
47431         * tests/test-avltree_oset.c: Likewise.
47432         * tests/test-avltreehash_list.c: Likewise.
47433         * tests/test-base64.c: Likewise.
47434         * tests/test-binary-io.c: Likewise.
47435         * tests/test-byteswap.c: Likewise.
47436         * tests/test-c-ctype.c: Likewise.
47437         * tests/test-c-strcasecmp.c: Likewise.
47438         * tests/test-c-strcasestr.c: Likewise.
47439         * tests/test-c-strncasecmp.c: Likewise.
47440         * tests/test-c-strstr.c: Likewise.
47441         * tests/test-canonicalize-lgpl.c: Likewise.
47442         * tests/test-canonicalize.c: Likewise.
47443         * tests/test-carray_list.c: Likewise.
47444         * tests/test-ceilf.c: Likewise.
47445         * tests/test-ceill.c: Likewise.
47446         * tests/test-count-one-bits.c: Likewise.
47447         * tests/test-crc.c: Likewise.
47448         * tests/test-dirname.c: Likewise.
47449         * tests/test-fbufmode.c: Likewise.
47450         * tests/test-fcntl.c: Likewise.
47451         * tests/test-fflush.c: Likewise.
47452         * tests/test-floorf.c: Likewise.
47453         * tests/test-floorl.c: Likewise.
47454         * tests/test-fopen.c: Likewise.
47455         * tests/test-fprintf-posix.c: Likewise.
47456         * tests/test-fprintf-posix.h: Likewise.
47457         * tests/test-fpurge.c: Likewise.
47458         * tests/test-freadable.c: Likewise.
47459         * tests/test-freadahead.c: Likewise.
47460         * tests/test-freading.c: Likewise.
47461         * tests/test-freopen.c: Likewise.
47462         * tests/test-frexp.c: Likewise.
47463         * tests/test-frexpl.c: Likewise.
47464         * tests/test-fseek.c: Likewise.
47465         * tests/test-fseeko.c: Likewise.
47466         * tests/test-fseterr.c: Likewise.
47467         * tests/test-fstrcmp.c: Likewise.
47468         * tests/test-ftell.c: Likewise.
47469         * tests/test-ftello.c: Likewise.
47470         * tests/test-fwritable.c: Likewise.
47471         * tests/test-fwriting.c: Likewise.
47472         * tests/test-getaddrinfo.c: Likewise.
47473         * tests/test-getpass.c: Likewise.
47474         * tests/test-gettimeofday.c: Likewise.
47475         * tests/test-hmac-md5.c: Likewise.
47476         * tests/test-hmac-sha1.c: Likewise.
47477         * tests/test-iconv.c: Likewise.
47478         * tests/test-iconvme.c: Likewise.
47479         * tests/test-inttypes.c: Likewise.
47480         * tests/test-isnan.c: Likewise.
47481         * tests/test-isnanf.c: Likewise.
47482         * tests/test-isnanl-nolibm.c: Likewise.
47483         * tests/test-isnanl.c: Likewise.
47484         * tests/test-isnanl.h: Likewise.
47485         * tests/test-ldexpl.c: Likewise.
47486         * tests/test-linked_list.c: Likewise.
47487         * tests/test-linkedhash_list.c: Likewise.
47488         * tests/test-locale.c: Likewise.
47489         * tests/test-localename.c: Likewise.
47490         * tests/test-lock.c: Likewise.
47491         * tests/test-lseek.c: Likewise.
47492         * tests/test-malloca.c: Likewise.
47493         * tests/test-math.c: Likewise.
47494         * tests/test-mbscasecmp.c: Likewise.
47495         * tests/test-mbscasestr1.c: Likewise.
47496         * tests/test-mbscasestr2.c: Likewise.
47497         * tests/test-mbscasestr3.c: Likewise.
47498         * tests/test-mbscasestr4.c: Likewise.
47499         * tests/test-mbschr.c: Likewise.
47500         * tests/test-mbscspn.c: Likewise.
47501         * tests/test-mbsncasecmp.c: Likewise.
47502         * tests/test-mbspbrk.c: Likewise.
47503         * tests/test-mbspcasecmp.c: Likewise.
47504         * tests/test-mbsrchr.c: Likewise.
47505         * tests/test-mbsspn.c: Likewise.
47506         * tests/test-mbsstr1.c: Likewise.
47507         * tests/test-mbsstr2.c: Likewise.
47508         * tests/test-mbsstr3.c: Likewise.
47509         * tests/test-md5.c: Likewise.
47510         * tests/test-memmem.c: Likewise.
47511         * tests/test-netinet_in.c: Likewise.
47512         * tests/test-open.c: Likewise.
47513         * tests/test-printf-frexp.c: Likewise.
47514         * tests/test-printf-frexpl.c: Likewise.
47515         * tests/test-printf-posix.c: Likewise.
47516         * tests/test-printf-posix.h: Likewise.
47517         * tests/test-rbtree_list.c: Likewise.
47518         * tests/test-rbtree_oset.c: Likewise.
47519         * tests/test-rbtreehash_list.c: Likewise.
47520         * tests/test-read-file.c: Likewise.
47521         * tests/test-rijndael.c: Likewise.
47522         * tests/test-search.c: Likewise.
47523         * tests/test-signbit.c: Likewise.
47524         * tests/test-sleep.c: Likewise.
47525         * tests/test-snprintf-posix.c: Likewise.
47526         * tests/test-snprintf-posix.h: Likewise.
47527         * tests/test-snprintf.c: Likewise.
47528         * tests/test-sprintf-posix.c: Likewise.
47529         * tests/test-sprintf-posix.h: Likewise.
47530         * tests/test-stat-time.c: Likewise.
47531         * tests/test-stdbool.c: Likewise.
47532         * tests/test-stdint.c: Likewise.
47533         * tests/test-stdio.c: Likewise.
47534         * tests/test-stdlib.c: Likewise.
47535         * tests/test-stpncpy.c: Likewise.
47536         * tests/test-strcasestr.c: Likewise.
47537         * tests/test-striconv.c: Likewise.
47538         * tests/test-striconveh.c: Likewise.
47539         * tests/test-striconveha.c: Likewise.
47540         * tests/test-string.c: Likewise.
47541         * tests/test-sys_select.c: Likewise.
47542         * tests/test-sys_socket.c: Likewise.
47543         * tests/test-sys_stat.c: Likewise.
47544         * tests/test-sys_time.c: Likewise.
47545         * tests/test-sysexits.c: Likewise.
47546         * tests/test-time.c: Likewise.
47547         * tests/test-tls.c: Likewise.
47548         * tests/test-trunc.c: Likewise.
47549         * tests/test-truncf.c: Likewise.
47550         * tests/test-truncl.c: Likewise.
47551         * tests/test-unistd.c: Likewise.
47552         * tests/test-vasnprintf-posix.c: Likewise.
47553         * tests/test-vasnprintf-posix2.c: Likewise.
47554         * tests/test-vasnprintf.c: Likewise.
47555         * tests/test-vasprintf-posix.c: Likewise.
47556         * tests/test-vasprintf.c: Likewise.
47557         * tests/test-verify.c: Likewise.
47558         * tests/test-vfprintf-posix.c: Likewise.
47559         * tests/test-vprintf-posix.c: Likewise.
47560         * tests/test-vsnprintf-posix.c: Likewise.
47561         * tests/test-vsnprintf.c: Likewise.
47562         * tests/test-vsprintf-posix.c: Likewise.
47563         * tests/test-wchar.c: Likewise.
47564         * tests/test-wctype.c: Likewise.
47565         * tests/test-wcwidth.c: Likewise.
47566         * tests/test-xstrtol.c: Likewise.
47567         * tests/test-xvasprintf.c: Likewise.
47568         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
47569         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
47570         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47571         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47572         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47573         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
47574         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47575         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47576         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47577         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
47578         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47579         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47580         * tests/uniname/test-uninames.c: Likewise.
47581         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
47582         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
47583         * tests/unistdio/test-u16-printf1.h: Likewise.
47584         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
47585         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
47586         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
47587         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
47588         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
47589         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
47590         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
47591         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
47592         * tests/unistdio/test-u32-printf1.h: Likewise.
47593         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
47594         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
47595         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
47596         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
47597         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
47598         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
47599         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
47600         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
47601         * tests/unistdio/test-u8-printf1.h: Likewise.
47602         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
47603         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
47604         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
47605         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
47606         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
47607         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
47608         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
47609         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
47610         * tests/unistdio/test-ulc-printf1.h: Likewise.
47611         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
47612         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
47613         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
47614         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
47615         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
47616         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
47617         * tests/uniwidth/test-u16-strwidth.c: Likewise.
47618         * tests/uniwidth/test-u16-width.c: Likewise.
47619         * tests/uniwidth/test-u32-strwidth.c: Likewise.
47620         * tests/uniwidth/test-u32-width.c: Likewise.
47621         * tests/uniwidth/test-u8-strwidth.c: Likewise.
47622         * tests/uniwidth/test-u8-width.c: Likewise.
47623         * tests/uniwidth/test-uc_width.c: Likewise.
47624         * config/srclist-update: Likewise.
47625         (fixlicense): Update to GPLv3+.
47626
47627         Change copyright notice from LGPLv2.1+ to LGPLv3+.
47628         * tests/test-tsearch.c: Change copyright notice.
47629
47630         Change copyright notice from LGPLv2.0+ to LGPLv3+.
47631         * lib/c-strcaseeq.h: Change copyright notice.
47632         * lib/streq.h: Likewise.
47633         * lib/uniconv.h: Likewise.
47634         * lib/uniconv/u-conv-from-enc.h: Likewise.
47635         * lib/uniconv/u-conv-to-enc.h: Likewise.
47636         * lib/uniconv/u-strconv-from-enc.h: Likewise.
47637         * lib/uniconv/u-strconv-to-enc.h: Likewise.
47638         * lib/uniconv/u16-conv-from-enc.c: Likewise.
47639         * lib/uniconv/u16-conv-to-enc.c: Likewise.
47640         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
47641         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
47642         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
47643         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47644         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47645         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47646         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47647         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47648         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47649         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47650         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47651         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47652         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47653         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47654         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47655         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47656         * lib/uniname.h: Likewise.
47657         * lib/uniname/uniname.c: Likewise.
47658         * lib/unistdio.h: Likewise.
47659         * lib/unistdio/u-asnprintf.h: Likewise.
47660         * lib/unistdio/u-asprintf.h: Likewise.
47661         * lib/unistdio/u-printf-args.c: Likewise.
47662         * lib/unistdio/u-printf-args.h: Likewise.
47663         * lib/unistdio/u-printf-parse.h: Likewise.
47664         * lib/unistdio/u-snprintf.h: Likewise.
47665         * lib/unistdio/u-sprintf.h: Likewise.
47666         * lib/unistdio/u-vasprintf.h: Likewise.
47667         * lib/unistdio/u-vsnprintf.h: Likewise.
47668         * lib/unistdio/u-vsprintf.h: Likewise.
47669         * lib/unistdio/u16-asnprintf.c: Likewise.
47670         * lib/unistdio/u16-asprintf.c: Likewise.
47671         * lib/unistdio/u16-printf-parse.c: Likewise.
47672         * lib/unistdio/u16-snprintf.c: Likewise.
47673         * lib/unistdio/u16-sprintf.c: Likewise.
47674         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47675         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47676         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47677         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47678         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47679         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47680         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47681         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47682         * lib/unistdio/u16-vasnprintf.c: Likewise.
47683         * lib/unistdio/u16-vasprintf.c: Likewise.
47684         * lib/unistdio/u16-vsnprintf.c: Likewise.
47685         * lib/unistdio/u16-vsprintf.c: Likewise.
47686         * lib/unistdio/u32-asnprintf.c: Likewise.
47687         * lib/unistdio/u32-asprintf.c: Likewise.
47688         * lib/unistdio/u32-printf-parse.c: Likewise.
47689         * lib/unistdio/u32-snprintf.c: Likewise.
47690         * lib/unistdio/u32-sprintf.c: Likewise.
47691         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47692         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47693         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47694         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47695         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47696         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47697         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47698         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47699         * lib/unistdio/u32-vasnprintf.c: Likewise.
47700         * lib/unistdio/u32-vasprintf.c: Likewise.
47701         * lib/unistdio/u32-vsnprintf.c: Likewise.
47702         * lib/unistdio/u32-vsprintf.c: Likewise.
47703         * lib/unistdio/u8-asnprintf.c: Likewise.
47704         * lib/unistdio/u8-asprintf.c: Likewise.
47705         * lib/unistdio/u8-printf-parse.c: Likewise.
47706         * lib/unistdio/u8-snprintf.c: Likewise.
47707         * lib/unistdio/u8-sprintf.c: Likewise.
47708         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47709         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47710         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47711         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47712         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47713         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47714         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47715         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47716         * lib/unistdio/u8-vasnprintf.c: Likewise.
47717         * lib/unistdio/u8-vasprintf.c: Likewise.
47718         * lib/unistdio/u8-vsnprintf.c: Likewise.
47719         * lib/unistdio/u8-vsprintf.c: Likewise.
47720         * lib/unistdio/ulc-asnprintf.c: Likewise.
47721         * lib/unistdio/ulc-asprintf.c: Likewise.
47722         * lib/unistdio/ulc-printf-parse.c: Likewise.
47723         * lib/unistdio/ulc-snprintf.c: Likewise.
47724         * lib/unistdio/ulc-sprintf.c: Likewise.
47725         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47726         * lib/unistdio/ulc-vasprintf.c: Likewise.
47727         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47728         * lib/unistdio/ulc-vsprintf.c: Likewise.
47729         * lib/unistr.h: Likewise.
47730         * lib/unistr/u-cpy-alloc.h: Likewise.
47731         * lib/unistr/u-cpy.h: Likewise.
47732         * lib/unistr/u-endswith.h: Likewise.
47733         * lib/unistr/u-move.h: Likewise.
47734         * lib/unistr/u-set.h: Likewise.
47735         * lib/unistr/u-startswith.h: Likewise.
47736         * lib/unistr/u-stpcpy.h: Likewise.
47737         * lib/unistr/u-stpncpy.h: Likewise.
47738         * lib/unistr/u-strcat.h: Likewise.
47739         * lib/unistr/u-strcpy.h: Likewise.
47740         * lib/unistr/u-strcspn.h: Likewise.
47741         * lib/unistr/u-strdup.h: Likewise.
47742         * lib/unistr/u-strlen.h: Likewise.
47743         * lib/unistr/u-strncat.h: Likewise.
47744         * lib/unistr/u-strncpy.h: Likewise.
47745         * lib/unistr/u-strnlen.h: Likewise.
47746         * lib/unistr/u-strpbrk.h: Likewise.
47747         * lib/unistr/u-strspn.h: Likewise.
47748         * lib/unistr/u-strstr.h: Likewise.
47749         * lib/unistr/u-strtok.h: Likewise.
47750         * lib/unistr/u16-check.c: Likewise.
47751         * lib/unistr/u16-chr.c: Likewise.
47752         * lib/unistr/u16-cmp.c: Likewise.
47753         * lib/unistr/u16-cpy-alloc.c: Likewise.
47754         * lib/unistr/u16-cpy.c: Likewise.
47755         * lib/unistr/u16-endswith.c: Likewise.
47756         * lib/unistr/u16-mblen.c: Likewise.
47757         * lib/unistr/u16-mbsnlen.c: Likewise.
47758         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47759         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47760         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47761         * lib/unistr/u16-mbtouc.c: Likewise.
47762         * lib/unistr/u16-mbtoucr.c: Likewise.
47763         * lib/unistr/u16-move.c: Likewise.
47764         * lib/unistr/u16-next.c: Likewise.
47765         * lib/unistr/u16-prev.c: Likewise.
47766         * lib/unistr/u16-set.c: Likewise.
47767         * lib/unistr/u16-startswith.c: Likewise.
47768         * lib/unistr/u16-stpcpy.c: Likewise.
47769         * lib/unistr/u16-stpncpy.c: Likewise.
47770         * lib/unistr/u16-strcat.c: Likewise.
47771         * lib/unistr/u16-strchr.c: Likewise.
47772         * lib/unistr/u16-strcmp.c: Likewise.
47773         * lib/unistr/u16-strcpy.c: Likewise.
47774         * lib/unistr/u16-strcspn.c: Likewise.
47775         * lib/unistr/u16-strdup.c: Likewise.
47776         * lib/unistr/u16-strlen.c: Likewise.
47777         * lib/unistr/u16-strmblen.c: Likewise.
47778         * lib/unistr/u16-strmbtouc.c: Likewise.
47779         * lib/unistr/u16-strncat.c: Likewise.
47780         * lib/unistr/u16-strncmp.c: Likewise.
47781         * lib/unistr/u16-strncpy.c: Likewise.
47782         * lib/unistr/u16-strnlen.c: Likewise.
47783         * lib/unistr/u16-strpbrk.c: Likewise.
47784         * lib/unistr/u16-strrchr.c: Likewise.
47785         * lib/unistr/u16-strspn.c: Likewise.
47786         * lib/unistr/u16-strstr.c: Likewise.
47787         * lib/unistr/u16-strtok.c: Likewise.
47788         * lib/unistr/u16-to-u32.c: Likewise.
47789         * lib/unistr/u16-to-u8.c: Likewise.
47790         * lib/unistr/u16-uctomb-aux.c: Likewise.
47791         * lib/unistr/u16-uctomb.c: Likewise.
47792         * lib/unistr/u32-check.c: Likewise.
47793         * lib/unistr/u32-chr.c: Likewise.
47794         * lib/unistr/u32-cmp.c: Likewise.
47795         * lib/unistr/u32-cpy-alloc.c: Likewise.
47796         * lib/unistr/u32-cpy.c: Likewise.
47797         * lib/unistr/u32-endswith.c: Likewise.
47798         * lib/unistr/u32-mblen.c: Likewise.
47799         * lib/unistr/u32-mbsnlen.c: Likewise.
47800         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47801         * lib/unistr/u32-mbtouc.c: Likewise.
47802         * lib/unistr/u32-mbtoucr.c: Likewise.
47803         * lib/unistr/u32-move.c: Likewise.
47804         * lib/unistr/u32-next.c: Likewise.
47805         * lib/unistr/u32-prev.c: Likewise.
47806         * lib/unistr/u32-set.c: Likewise.
47807         * lib/unistr/u32-startswith.c: Likewise.
47808         * lib/unistr/u32-stpcpy.c: Likewise.
47809         * lib/unistr/u32-stpncpy.c: Likewise.
47810         * lib/unistr/u32-strcat.c: Likewise.
47811         * lib/unistr/u32-strchr.c: Likewise.
47812         * lib/unistr/u32-strcmp.c: Likewise.
47813         * lib/unistr/u32-strcpy.c: Likewise.
47814         * lib/unistr/u32-strcspn.c: Likewise.
47815         * lib/unistr/u32-strdup.c: Likewise.
47816         * lib/unistr/u32-strlen.c: Likewise.
47817         * lib/unistr/u32-strmblen.c: Likewise.
47818         * lib/unistr/u32-strmbtouc.c: Likewise.
47819         * lib/unistr/u32-strncat.c: Likewise.
47820         * lib/unistr/u32-strncmp.c: Likewise.
47821         * lib/unistr/u32-strncpy.c: Likewise.
47822         * lib/unistr/u32-strnlen.c: Likewise.
47823         * lib/unistr/u32-strpbrk.c: Likewise.
47824         * lib/unistr/u32-strrchr.c: Likewise.
47825         * lib/unistr/u32-strspn.c: Likewise.
47826         * lib/unistr/u32-strstr.c: Likewise.
47827         * lib/unistr/u32-strtok.c: Likewise.
47828         * lib/unistr/u32-to-u16.c: Likewise.
47829         * lib/unistr/u32-to-u8.c: Likewise.
47830         * lib/unistr/u32-uctomb.c: Likewise.
47831         * lib/unistr/u8-check.c: Likewise.
47832         * lib/unistr/u8-chr.c: Likewise.
47833         * lib/unistr/u8-cmp.c: Likewise.
47834         * lib/unistr/u8-cpy-alloc.c: Likewise.
47835         * lib/unistr/u8-cpy.c: Likewise.
47836         * lib/unistr/u8-endswith.c: Likewise.
47837         * lib/unistr/u8-mblen.c: Likewise.
47838         * lib/unistr/u8-mbsnlen.c: Likewise.
47839         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47840         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47841         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47842         * lib/unistr/u8-mbtouc.c: Likewise.
47843         * lib/unistr/u8-mbtoucr.c: Likewise.
47844         * lib/unistr/u8-move.c: Likewise.
47845         * lib/unistr/u8-next.c: Likewise.
47846         * lib/unistr/u8-prev.c: Likewise.
47847         * lib/unistr/u8-set.c: Likewise.
47848         * lib/unistr/u8-startswith.c: Likewise.
47849         * lib/unistr/u8-stpcpy.c: Likewise.
47850         * lib/unistr/u8-stpncpy.c: Likewise.
47851         * lib/unistr/u8-strcat.c: Likewise.
47852         * lib/unistr/u8-strchr.c: Likewise.
47853         * lib/unistr/u8-strcmp.c: Likewise.
47854         * lib/unistr/u8-strcpy.c: Likewise.
47855         * lib/unistr/u8-strcspn.c: Likewise.
47856         * lib/unistr/u8-strdup.c: Likewise.
47857         * lib/unistr/u8-strlen.c: Likewise.
47858         * lib/unistr/u8-strmblen.c: Likewise.
47859         * lib/unistr/u8-strmbtouc.c: Likewise.
47860         * lib/unistr/u8-strncat.c: Likewise.
47861         * lib/unistr/u8-strncmp.c: Likewise.
47862         * lib/unistr/u8-strncpy.c: Likewise.
47863         * lib/unistr/u8-strnlen.c: Likewise.
47864         * lib/unistr/u8-strpbrk.c: Likewise.
47865         * lib/unistr/u8-strrchr.c: Likewise.
47866         * lib/unistr/u8-strspn.c: Likewise.
47867         * lib/unistr/u8-strstr.c: Likewise.
47868         * lib/unistr/u8-strtok.c: Likewise.
47869         * lib/unistr/u8-to-u16.c: Likewise.
47870         * lib/unistr/u8-to-u32.c: Likewise.
47871         * lib/unistr/u8-uctomb-aux.c: Likewise.
47872         * lib/unistr/u8-uctomb.c: Likewise.
47873         * lib/unitypes.h: Likewise.
47874         * lib/uniwidth.h: Likewise.
47875         * lib/uniwidth/cjk.h: Likewise.
47876         * lib/uniwidth/u16-strwidth.c: Likewise.
47877         * lib/uniwidth/u16-width.c: Likewise.
47878         * lib/uniwidth/u32-strwidth.c: Likewise.
47879         * lib/uniwidth/u32-width.c: Likewise.
47880         * lib/uniwidth/u8-strwidth.c: Likewise.
47881         * lib/uniwidth/u8-width.c: Likewise.
47882         * lib/uniwidth/width.c: Likewise.
47883
47884 2007-10-07  Bruno Haible  <bruno@clisp.org>
47885
47886         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47887         The file is still under LGPL (see modules/inttypes).
47888
47889 2007-10-06  Bruno Haible  <bruno@clisp.org>
47890
47891         * modules/trunc (Dependencies): Add 'extensions'.
47892         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47893         Reported by Ben Pfaff <blp@gnu.org>.
47894
47895 2007-10-06  Bruno Haible  <bruno@clisp.org>
47896
47897         * modules/freopen-tests: New file.
47898         * tests/test-freopen.c: New file.
47899
47900         * modules/fopen-tests: New file.
47901         * tests/test-fopen.c: New file.
47902
47903         * modules/fopen: New file.
47904         * lib/fopen.c: New file.
47905         * m4/fopen.m4: New file.
47906         * modules/freopen: New file.
47907         * lib/freopen.c: New file.
47908         * m4/freopen.m4: New file.
47909         * lib/stdio.in.h (fopen, freopen): New declarations.
47910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47911         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47912         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47913         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47914         * doc/functions/fopen.texi: Mention the 'fopen' module.
47915         * doc/functions/freopen.texi: Mention the 'freopen' module.
47916
47917 2007-10-06  Bruno Haible  <bruno@clisp.org>
47918
47919         * modules/open-tests: New file.
47920         * tests/test-open.c: New file.
47921
47922         * modules/open: New file.
47923         * lib/open.c: New file.
47924         * m4/open.m4: New file.
47925         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47926         lib/open.c does.
47927         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47928         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47929         macros.
47930         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47931         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47932         REPLACE_OPEN.
47933         * doc/functions/open.texi: Mention the 'open' module.
47934
47935 2007-10-04  Bruno Haible  <bruno@clisp.org>
47936
47937         * modules/ceill-tests: New file.
47938         * tests/test-ceill.c: New file.
47939
47940         * modules/ceill: New file.
47941         * lib/ceill.c: Replace entire file.
47942         * m4/ceill.m4: New file.
47943         * lib/math.in.h (ceill): Replace declaration.
47944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47945         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47946         * doc/functions/ceill.texi: Mention the 'ceill' module.
47947         * modules/mathl (Files): Remove lib/ceill.c.
47948         (Depends-on): Add ceill.
47949
47950 2007-10-04  Bruno Haible  <bruno@clisp.org>
47951
47952         * modules/ceilf-tests: New file.
47953         * tests/test-ceilf.c: New file.
47954
47955         * modules/ceilf: New file.
47956         * lib/ceil.c: New file.
47957         * lib/ceilf.c: New file.
47958         * m4/ceilf.m4: New file.
47959         * lib/math.in.h (ceilf): New declaration.
47960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47961         HAVE_DECL_CEILF.
47962         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47963         HAVE_DECL_CEILF.
47964         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47965
47966 2007-10-04  Bruno Haible  <bruno@clisp.org>
47967
47968         * modules/floorl-tests: New file.
47969         * tests/test-floorl.c: New file.
47970
47971         * modules/floorl: New file.
47972         * lib/floorl.c: Replace entire file.
47973         * m4/floorl.m4: New file.
47974         * lib/math.in.h (floorl): Replace declaration.
47975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47976         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47977         * doc/functions/floorl.texi: Mention the 'floorl' module.
47978         * modules/mathl (Files): Remove lib/floorl.c.
47979         (Depends-on): Add floorl.
47980
47981 2007-10-04  Bruno Haible  <bruno@clisp.org>
47982
47983         * modules/floorf-tests: New file.
47984         * tests/test-floorf.c: New file.
47985
47986         * modules/floorf: New file.
47987         * lib/floor.c: New file.
47988         * lib/floorf.c: New file.
47989         * m4/floorf.m4: New file.
47990         * lib/math.in.h (floorf): New declaration.
47991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47992         HAVE_DECL_FLOORF.
47993         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47994         HAVE_DECL_FLOORF.
47995         * doc/functions/floorf.texi: Mention the 'floorf' module.
47996
47997 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47998             Bruno Haible  <bruno@clisp.org>
47999
48000         Advertise for the Git server instead of the CVS server.
48001         * doc/gnulib-intro.texi (Steady Development): Mention the Git
48002         repository instead of the CVS one.
48003         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
48004         about all VCS systems generically.
48005         * doc/gnulib.texi (Introduction): Capitalize `Git'.
48006
48007 2007-10-04  Bruno Haible  <bruno@clisp.org>
48008
48009         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
48010         means.
48011         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
48012
48013 2007-10-04  Bruno Haible  <bruno@clisp.org>
48014
48015         * modules/truncl-tests: New file.
48016         * tests/test-truncl.c: New file.
48017
48018         * modules/truncl: New file.
48019         * lib/truncl.c: New file.
48020         * m4/truncl.m4: New file.
48021         * lib/math.in.h (truncl): New declaration.
48022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
48023         HAVE_DECL_TRUNCL.
48024         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
48025         HAVE_DECL_TRUNCL.
48026         * doc/functions/truncl.texi: Mention the 'truncl' module.
48027
48028 2007-10-04  Bruno Haible  <bruno@clisp.org>
48029
48030         * modules/truncf-tests: New file.
48031         * tests/test-truncf.c: New file.
48032
48033         * modules/truncf: New file.
48034         * lib/trunc.c: Make paramerizable through USE_* macros.
48035         * lib/truncf.c: New file.
48036         * m4/truncf.m4: New file.
48037         * lib/math.in.h (truncf): New declaration.
48038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
48039         HAVE_DECL_TRUNCF.
48040         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
48041         HAVE_DECL_TRUNCF.
48042         * doc/functions/truncf.texi: Mention the 'truncf' module.
48043
48044 2007-10-03  Bruno Haible  <bruno@clisp.org>
48045
48046         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48047         augmentation also for tests modules.
48048         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
48049         * modules/atexit-tests (Makefile.am): Likewise.
48050         * modules/binary-io-tests (Makefile.am): Likewise.
48051         * modules/c-strcase-tests (Makefile.am): Likewise.
48052         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
48053         * modules/canonicalize-tests (Makefile.am): Likewise.
48054         * modules/closein-tests (Makefile.am): Likewise.
48055         * modules/fprintf-posix-tests (Makefile.am): Likewise.
48056         * modules/freadahead-tests (Makefile.am): Likewise.
48057         * modules/fseek-tests (Makefile.am): Likewise.
48058         * modules/fseeko-tests (Makefile.am): Likewise.
48059         * modules/ftell-tests (Makefile.am): Likewise.
48060         * modules/ftello-tests (Makefile.am): Likewise.
48061         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
48062         * modules/isnanl-tests (Makefile.am): Likewise.
48063         * modules/lseek-tests (Makefile.am): Likewise.
48064         * modules/mbscasecmp-tests (Makefile.am): Likewise.
48065         * modules/mbscasestr-tests (Makefile.am): Likewise.
48066         * modules/mbschr-tests (Makefile.am): Likewise.
48067         * modules/mbscspn-tests (Makefile.am): Likewise.
48068         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
48069         * modules/mbspbrk-tests (Makefile.am): Likewise.
48070         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
48071         * modules/mbsrchr-tests (Makefile.am): Likewise.
48072         * modules/mbsspn-tests (Makefile.am): Likewise.
48073         * modules/mbsstr-tests (Makefile.am): Likewise.
48074         * modules/printf-posix-tests (Makefile.am): Likewise.
48075         * modules/snprintf-posix-tests (Makefile.am): Likewise.
48076         * modules/sprintf-posix-tests (Makefile.am): Likewise.
48077         * modules/tsearch-tests (Makefile.am): Likewise.
48078         * modules/uniname/uniname-tests (Makefile.am): Likewise.
48079         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
48080         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
48081         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
48082         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
48083         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
48084         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
48085         * modules/vprintf-posix-tests (Makefile.am): Likewise.
48086         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
48087         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
48088         * modules/xstrtoimax-tests (Makefile.am): Likewise.
48089         * modules/xstrtol-tests (Makefile.am): Likewise.
48090         * modules/xstrtoumax-tests (Makefile.am): Likewise.
48091         * modules/yesno-tests (Makefile.am): Likewise.
48092
48093 2007-10-03  Bruno Haible  <bruno@clisp.org>
48094
48095         * modules/trunc-tests: New file.
48096         * tests/test-trunc.c: New file.
48097
48098         * modules/trunc: New file.
48099         * lib/trunc.c: New file.
48100         * m4/trunc.m4: New file.
48101         * lib/math.in.h (trunc): New declaration.
48102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
48103         HAVE_DECL_TRUNC.
48104         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
48105         HAVE_DECL_TRUNC.
48106         * doc/functions/trunc.texi: Mention the 'trunc' module.
48107
48108 2007-10-03  Bruno Haible  <bruno@clisp.org>
48109
48110         * tests/test-fpending.c: New file, mostly copied
48111         from coreutils/lib/t-fpending.c.
48112         * modules/fpending-tests: New file.
48113
48114 2007-10-03  Bruno Haible  <bruno@clisp.org>
48115
48116         Port the stdio extensions to QNX (untested).
48117         * lib/fseterr.c (fseterr): Add support for QNX.
48118         * lib/fbufmode.c (fbufmode): Likewise.
48119         * lib/freadable.c (freadable): Likewise.
48120         * lib/fwritable.c (fwritable): Likewise.
48121         * lib/freading.c (freading): Likewise.
48122         * lib/fwriting.c (fwriting): Likewise.
48123         * lib/freadahead.c (freadahed): Likewise.
48124         * lib/fpurge.c (fpurge): Likewise.
48125         * lib/fseeko.c (rpl_fseeko): Likewise.
48126
48127 2007-10-03  Bruno Haible  <bruno@clisp.org>
48128             Jim Meyering  <jim@meyering.net>
48129             Eric Blake  <ebb9@byu.net>
48130
48131         * doc/relocatable.texi: Use @command instead of @program.
48132
48133 2007-10-02  Jim Meyering  <jim@meyering.net>
48134
48135         Perform one more "_.h" -> ".in.h" substitution.
48136         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
48137         instead of unistd_.h here, too.
48138
48139 2007-10-01  Bruno Haible  <bruno@clisp.org>
48140
48141         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
48142         Needed for the alloca-opt module.
48143
48144 2007-09-30  Bruno Haible  <bruno@clisp.org>
48145
48146         * lib/alloca.in.h: Renamed from lib/alloca_.h.
48147         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
48148         alloca_.h.
48149         * lib/argz.in.h: Renamed from lib/argz_.h.
48150         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
48151         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
48152         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
48153         byteswap_.h.
48154         * lib/dirent.in.h: Renamed from lib/dirent_.h.
48155         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
48156         dirent_.h.
48157         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
48158         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
48159         fcntl_.h.
48160         * lib/float.in.h: Renamed from lib/float_.h.
48161         * modules/float (Files, Makefile.am): Use float.in.h instead of
48162         float_.h.
48163         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
48164         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
48165         fnmatch_.h.
48166         * lib/getopt.in.h: Renamed from lib/getopt_.h.
48167         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
48168         getopt_.h.
48169         * lib/glob.in.h: Renamed from lib/glob_.h.
48170         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
48171         * lib/iconv.in.h: Renamed from lib/iconv_.h.
48172         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
48173         iconv_.h.
48174         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
48175         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
48176         inttypes_.h.
48177         * lib/locale.in.h: Renamed from lib/locale_.h.
48178         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
48179         locale_.h.
48180         * lib/math.in.h: Renamed from lib/math_.h.
48181         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
48182         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
48183         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
48184         of netinet_in_.h. Add dependency.
48185         * lib/poll.in.h: Renamed from lib/poll_.h.
48186         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
48187         * lib/search.in.h: Renamed from lib/search_.h.
48188         * modules/search (Files, Makefile.am): Use search.in.h instead of
48189         search_.h.
48190         * lib/signal.in.h: Renamed from lib/signal_.h.
48191         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
48192         _signal.h.
48193         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
48194         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
48195         stdbool_.h.
48196         * lib/stdint.in.h: Renamed from lib/stdint_.h.
48197         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
48198         stdint_.h.
48199         * lib/stdio.in.h: Renamed from lib/stdio_.h.
48200         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
48201         stdio_.h.
48202         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
48203         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
48204         stdlib_.h.
48205         * lib/string.in.h: Renamed from lib/string_.h.
48206         * modules/string (Files, Makefile.am): Use string.in.h instead of
48207         string_.h.
48208         * doc/gnulib-tool.texi (Initial import): Update.
48209         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
48210         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
48211         of sys_select_.h. Add dependency.
48212         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
48213         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
48214         of sys_socket_.h.
48215         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
48216         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
48217         sys_stat_.h.
48218         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
48219         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
48220         sys_time_.h.
48221         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
48222         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
48223         sysexits_.h.
48224         * lib/time.in.h: Renamed from lib/time_.h.
48225         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
48226         * lib/unistd.in.h: Renamed from lib/unistd_.h.
48227         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
48228         unistd_.h.
48229         * lib/wchar.in.h: Renamed from lib/wchar_.h.
48230         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
48231         wchar_.h.
48232         * lib/wctype.in.h: Renamed from lib/wctype_.h.
48233         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
48234         wctype_.h.
48235         * build-aux/bootstrap (slurp): Update.
48236         * lib/.cppi-disable: Update.
48237
48238 2007-09-30  Bruno Haible  <bruno@clisp.org>
48239
48240         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
48241         Needed on BeOS.
48242
48243 2007-09-30  Bruno Haible  <bruno@clisp.org>
48244
48245         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
48246
48247 2007-09-29  Bruno Haible  <bruno@clisp.org>
48248
48249         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
48250
48251 2007-09-29  Bruno Haible  <bruno@clisp.org>
48252
48253         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
48254         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
48255         * build-aux/install-reloc: Compile also areadlink.c.
48256         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
48257
48258 2007-09-29  Bruno Haible  <bruno@clisp.org>
48259
48260         * gnulib-tool (func_emit_initmacro_done): Indentation.
48261
48262 2007-09-29  Bruno Haible  <bruno@clisp.org>
48263
48264         * README: Add CVS checkout update instructions.
48265         Info from Bob Proulx <bob@proulx.com>.
48266
48267 2007-09-28  Eric Blake  <ebb9@byu.net>
48268
48269         Provide move-if-change.
48270         * build-aux/move-if-change: New file, based on best practice
48271         rather than any canonical upstream location.
48272
48273 2007-09-28  Jim Meyering  <jim@meyering.net>
48274
48275         Fix canonicalize loop-detection corner case.
48276         Do not attempt to stat the symlink values stored via seen_triple.
48277         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
48278         on linux-2.6.18, (but not 2.6.22).
48279         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
48280         triple_compare.  The former compares dev,ino,filename, while the latter
48281         would actually stat dirname(filename) when dev and ino were equal.
48282         * lib/hash-triple.c: Install <string.h>.
48283         (STREQ): Define.
48284         (triple_compare_ino_str): New function.
48285         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
48286
48287 2007-09-28  Eric Blake  <ebb9@byu.net>
48288
48289         Enforce that AC_REPLACE_FUNCS files exist.
48290         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
48291         override check for typos.
48292
48293         Fix test-closein on Solaris 10.
48294         * tests/test-closein.c (main): Don't assume stdin can be inherited
48295         closed on all systems.
48296         * tests/test-closein.sh: Likewise.
48297         Reported by Piotr Tarnowski.
48298
48299 2007-09-28  Jim Meyering  <jim@meyering.net>
48300
48301         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
48302
48303 2007-09-27  Jim Meyering  <jim@meyering.net>
48304
48305         canonicalize: Avoid a false-positive cycle failure.
48306         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
48307         Sort.  Remove cycle-check.
48308         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
48309         not cycle-check.h.
48310         (seen_triple): New function.
48311         (canonicalize_filename_mode): Use it instead of cycle-check.
48312         * tests/test-canonicalize.c: Add a test for this bug.
48313         * tests/test-canonicalize.sh: Set up and run the test.
48314
48315         New module, file-set, from coreutils.
48316         * modules/file-set: Define it.
48317         * lib/file-set.c, lib/file-set.h: Implement.
48318
48319         New module, hash-triple, from coreutils.
48320         * modules/hash-triple: Define it.
48321         * lib/hash-triple.c, lib/hash-triple.h: Implement.
48322
48323 2007-09-25  Eric Blake  <ebb9@byu.net>
48324
48325         Fix strerror on Interix.
48326         * lib/string_.h (strerror): Declare replacement.
48327         * doc/functions/strerror.texi (strerror): Document the Interix
48328         shortcoming.
48329         * modules/string (Makefile.am): Support new hooks.
48330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
48331         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
48332         gl_FUNC_STRERROR_SEPARATE.
48333         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
48334         * lib/strerror.c (rpl_strerror): Provide replacement.
48335         * modules/strerror (Depends-on): Add string.
48336         (configure.ac): Detect use of module.
48337         * tests/test-strerror.c: New file.
48338         * modules/strerror-tests: New test module.
48339         * modules/argp (Depends-on): Add strerror.
48340         * modules/error (Depends-on): Likewise.
48341         Reported by Martin Koeppe.
48342
48343 2007-09-24  Bruno Haible  <bruno@clisp.org>
48344
48345         * README: Update git instructions.
48346
48347 2007-09-24  Eric Blake  <ebb9@byu.net>
48348
48349         Revert fpending breakage from 2007-09-08.
48350         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
48351         __fpending.c.
48352
48353 2007-09-24  Jim Meyering  <jim@meyering.net>
48354
48355         filenamecat.c: Add a test.
48356         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
48357         showing how the function works when DIR is the empty string.
48358
48359 2007-09-21  Simon Josefsson  <simon@josefsson.org>
48360
48361         * tests/test-canonicalize.sh: Turn on executable bit.
48362
48363 2007-09-19  Eric Blake  <ebb9@byu.net>
48364
48365         * README: Update CVS instructions.
48366
48367 2007-09-18  Bruno Haible  <bruno@clisp.org>
48368
48369         * modules/areadlink: New file.
48370         * lib/areadlink.h (areadlink): New declaration.
48371         * lib/areadlink.c: New file, based on lib/xreadlink.c.
48372
48373 2007-09-17  Jim Meyering  <jim@meyering.net>
48374
48375         * lib/savewd.c (ESTALE) [!defined]: Define.
48376         Reported to be required on Interix by Martin Koeppe.
48377
48378 2007-09-17  Bruno Haible  <bruno@clisp.org>
48379
48380         * gnulib-tool (func_version): Use $version.
48381
48382 2007-09-16  Bruno Haible  <bruno@clisp.org>
48383
48384         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
48385         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
48386         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
48387         Reported by Greg Schafer <gschafer@zip.com.au>.
48388
48389 2007-09-15  Bruno Haible  <bruno@clisp.org>
48390
48391         * gnulib-tool (sed): Try a little harder to make bash understand the
48392         alias.
48393         Reported by Bruce Korb <bruce.korb@gmail.com>.
48394
48395 2007-09-13  Eric Blake  <ebb9@byu.net>
48396
48397         * ChangeLog: Remove conflict markers.
48398
48399 2007-09-13  Simon Josefsson  <simon@josefsson.org>
48400
48401         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
48402         Reported by Bruno Haible <bruno@clisp.org>.
48403
48404 2007-09-12  Bruno Haible  <bruno@clisp.org>
48405
48406         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
48407         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
48408         is not defined.
48409
48410 2007-09-12  Eric Blake  <ebb9@byu.net>
48411
48412         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
48413         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
48414         Autoconf definition.
48415         * modules/euidaccess (Depends-on): Add extensions, for
48416         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
48417         * modules/fnmatch (Depends-on): Likewise.
48418         * modules/getaddrinfo (Depends-on): Likewise.
48419         * modules/getdelim (Depends-on): Likewise.
48420         * modules/getline (Depends-on): Likewise.
48421         * modules/getsubopt (Depends-on): Likewise.
48422         * modules/gettext (Depends-on): Likewise.
48423         * modules/group-member (Depends-on): Likewise.
48424         * modules/mbchar (Depends-on): Likewise.
48425         * modules/memmem (Depends-on): Likewise.
48426         * modules/mempcpy (Depends-on): Likewise.
48427         * modules/memrchr (Depends-on): Likewise.
48428         * modules/pagealign_alloc (Depends-on): Likewise.
48429         * modules/readutmp (Depends-on): Likewise.
48430         * modules/stpcpy (Depends-on): Likewise.
48431         * modules/stpncpy (Depends-on): Likewise.
48432         * modules/strchrnul (Depends-on): Likewise.
48433         * modules/strndup (Depends-on): Likewise.
48434         * modules/strsep (Depends-on): Likewise.
48435         * modules/strverscmp (Depends-on): Likewise.
48436         * modules/vasprintf (Depends-on): Likewise.
48437         * modules/wcwidth (Depends-on): Likewise.
48438         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
48439         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
48440         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
48441         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
48442         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48443         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48444         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
48445         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48446         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
48447         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
48448         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48449         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48450         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48451         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
48452         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
48453         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48454         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48455         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48456         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48457         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48458         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48459         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48460         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48461         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
48462         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
48463         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48464         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
48465         so that lock.m4 can be used in gettext without extensions module.
48466
48467 2007-09-11  Bruno Haible  <bruno@clisp.org>
48468
48469         * m4/isc-posix.m4: Remove file.
48470         Suggested by Eric Blake.
48471
48472 2007-09-11  Eric Blake  <ebb9@byu.net>
48473
48474         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
48475
48476 2007-09-10  Bruno Haible  <bruno@clisp.org>
48477
48478         * posix-modules: Fix typo in error message.
48479         Reported by Matt <mkraai@beckman.com>.
48480
48481 2007-09-09  Bruno Haible  <bruno@clisp.org>
48482
48483         * doc/functions/getdelim.texi: Update list of platforms lacking the
48484         function.
48485         * doc/functions/getline.texi: Likewise.
48486
48487 2007-09-09  Jim Meyering  <jim@meyering.net>
48488
48489         * lib/hash.c (hash_initialize): Detect calloc failure.
48490         Reported by Bruno Haible.
48491
48492 2007-09-09  Bruno Haible  <bruno@clisp.org>
48493
48494         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
48495         malloc or realloc fails.
48496
48497 2007-09-09  Bruno Haible  <bruno@clisp.org>
48498
48499         * modules/getcwd (Depends-on): Add malloc-posix.
48500         * modules/glob (Depends-on): Likewise.
48501         * modules/putenv (Depends-on): Likewise.
48502         * modules/strdup (Depends-on): Likewise.
48503         * modules/getdelim (Depends-on): Add realloc-posix.
48504         * modules/read-file (Depends-on): Likewise.
48505
48506 2007-09-09  Bruno Haible  <bruno@clisp.org>
48507
48508         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
48509         (gl_FUNC_MALLOC_POSIX): Require it.
48510         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
48511         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
48512         * modules/realloc (Files): Add m4/malloc.m4.
48513         * modules/calloc (Files): Likewise.
48514
48515 2007-09-09  Bruno Haible  <bruno@clisp.org>
48516
48517         * modules/malloc-posix: New file.
48518         * modules/malloc (Depends-on): Add malloc-posix.
48519         * lib/malloc.c: Include errno.h.
48520         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
48521         and a POSIX-compatible malloc into a single function. Set ENOMEM
48522         when returning NULL.
48523         * m4/malloc.m4: New file.
48524         * doc/functions/malloc.texi: Mention the malloc-posix module.
48525         * lib/stdlib_.h (malloc): New declaration.
48526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48527         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
48528         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
48529         and HAVE_MALLOC_POSIX.
48530
48531 2007-09-09  Bruno Haible  <bruno@clisp.org>
48532
48533         * modules/realloc-posix: New file.
48534         * modules/realloc (Depends-on): Add realloc-posix.
48535         * lib/realloc.c: Include errno.h.
48536         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
48537         and a POSIX-compatible realloc into a single function. Set ENOMEM
48538         when returning NULL.
48539         * m4/realloc.m4: New file.
48540         * doc/functions/realloc.texi: Mention the realloc-posix module.
48541         * lib/stdlib_.h (realloc): New declaration.
48542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48543         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
48544         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
48545         and HAVE_REALLOC_POSIX.
48546
48547 2007-09-09  Bruno Haible  <bruno@clisp.org>
48548
48549         * modules/calloc-posix: New file.
48550         * modules/calloc (Depends-on): Add calloc-posix.
48551         * lib/calloc.c: Include errno.h.
48552         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
48553         and a POSIX-compatible calloc into a single function. Set ENOMEM
48554         when returning NULL.
48555         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
48556         * doc/functions/calloc.texi: Mention the calloc-posix module.
48557         * lib/stdlib_.h (calloc): New declaration.
48558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48559         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
48560         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
48561         and HAVE_CALLOC_POSIX.
48562
48563 2007-09-09  Bruno Haible  <bruno@clisp.org>
48564
48565         Allow for modules to show an arbitrary notice.
48566         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
48567         * gnulib-tool: New option --extract-notice.
48568         (func_usage): Document it.
48569         (sed_extract_prog): Update.
48570         (func_get_notice): New function.
48571         (func_modules_notice): New function.
48572         (func_import, func_create_testdir): Invoke it.
48573         Suggested by Jim Meyering.
48574
48575 2007-09-09  Bruno Haible  <bruno@clisp.org>
48576
48577         * gnulib-tool: New options --verbose, --quiet.
48578         (func_usage): Document them.
48579         (verbose): New variable.
48580         (func_execute_command): New function.
48581         (func_import): Don't show the module list and the file list if
48582         $verbose < 0.
48583         (func_create_testdir): Likewise. Use func_execute_command.
48584         (func_create_megatestdir): Use func_execute_command.
48585
48586 2007-09-08  Bruno Haible  <bruno@clisp.org>
48587
48588         * gnulib-tool (func_import): Prefer rsync over wget when available,
48589         for fetching the PO files.
48590
48591 2007-09-08  Bruno Haible  <bruno@clisp.org>
48592
48593         * posix-modules: New file. Portions copied from gnulib-tool.
48594         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
48595
48596 2007-09-08  Jim Meyering  <jim@meyering.net>
48597
48598         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
48599         * lib/fpending.h: Rename from __fpending.h.
48600         * lib/fpending.c: Rename from __fpending.c.
48601         Include "fpending.h", not "__fpending.h".
48602         * lib/__fpending.h, lib/__fpending.c: Remove files.
48603         * modules/fpending (Files): Reflect new file names.
48604         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
48605
48606 2007-09-08  Bruno Haible  <bruno@clisp.org>
48607
48608         * m4/inttypes-h.m4: Remove stub file.
48609
48610 2007-09-07  Simon Josefsson  <simon@josefsson.org>
48611
48612         * doc/headers/stdint.texi: Discuss #include_next issue.
48613
48614 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48615
48616         * build-aux/bootstrap: Remove obsolete comment about wget --help.
48617
48618 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48619
48620         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
48621         in variable name.
48622
48623 2007-09-03  Jim Meyering  <jim@meyering.net>
48624
48625         New module: git-version-gen.
48626         * modules/git-version-gen: New file.
48627
48628         Import changes from coreutils for bootstrap script.
48629
48630         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
48631
48632         bootstrap: uses rsync to download the .po files
48633         * build-aux/bootstrap (po_download_command_format): New global.
48634         (download_po_files): Use rsync.
48635         (update_po_files): Don't remove .po files after download,
48636         so future rsync runs can take advantage of the copies.
48637
48638         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
48639
48640         Solve the unnecessary-.po-file-regeneration problem once and for all.
48641         * build-aux/bootstrap (download_po_files): New function, renamed from
48642         get_translations.  Now, downloads, but doesn't update LINGUAS.
48643         (update_po_files): New function.
48644
48645         bootstrap: Ignore more.
48646         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48647         uniwidth to e.g., lib/.gitignore.
48648         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48649
48650         * build-aux/bootstrap: New setting: vc_ignore.
48651         (insert_sorted_if_absent): Create $file if absent.
48652         Adapt to new, possibly empty, list: $vc_ignore.
48653
48654         bootstrap: generate more ignorable names
48655         * build-aux/bootstrap (slurp): When generating ignorable names,
48656         also map .sin to .sed, .gperf to .c, and .y to .c.
48657
48658 2007-09-03  Jim Meyering  <jim@meyering.net>
48659
48660         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48661         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48662
48663 2007-09-02  Bruno Haible  <bruno@clisp.org>
48664
48665         Fix mis-recognition of 'mcs' on QNX 6.
48666         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48667         output contains the string "Mono".
48668         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48669         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48670
48671 2007-09-01  Bruno Haible  <bruno@clisp.org>
48672
48673         Fix collision between uniwidth/* and linebreak modules.
48674         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48675         u32_width): Remove declarations.
48676         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48677         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48678         streq3, streq2, streq1, streq0): Remove functions.
48679         (STREQ): Remove macro.
48680         (is_cjk_encoding): Remove function.
48681         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48682         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48683         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48684         * NEWS: Document the change.
48685
48686 2007-09-01  Bruno Haible  <bruno@clisp.org>
48687
48688         * lib/streq.h: Add double-inclusion guard.
48689
48690 2007-09-01  Karl Berry  <karl@gnu.org>
48691
48692         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48693
48694 2007-08-28  Jim Meyering  <jim@meyering.net>
48695
48696         Rename mreadlink_with_size to areadlink_with_size.
48697         * NEWS: Document the change.
48698         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48699         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48700         * lib/mreadlink.h: Rename this to...
48701         * lib/areadlink.h: ...this.
48702         * modules/mreadlink-with-size: Rename this to...
48703         * modules/areadlink-with-size: ...this.
48704         * lib/canonicalize.c: Reflect the renaming.
48705         * modules/canonicalize: Likewise.
48706
48707 2007-08-26  Bruno Haible  <bruno@clisp.org>
48708
48709         * gnulib-tool (func_import): When deciding which files to remove,
48710         consider also dangling symbolic links.
48711         Reported by Eric Blake.
48712
48713 2007-08-26  Bruno Haible  <bruno@clisp.org>
48714
48715         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48716
48717 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48718
48719         * lib/readline.c: Don't include getline.h, the prototype is now
48720         found in stdio.h.
48721
48722 2007-08-23  Jim Meyering  <jim@meyering.net>
48723
48724         Getdelim touchup.
48725         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48726         around the funlockfile call, since funlockfile never sets errno.
48727         Don't set errno upon failed realloc.
48728
48729 2007-08-22  Eric Blake  <ebb9@byu.net>
48730
48731         Getline touchups.
48732         * lib/getdelim.c (getdelim): Revert regression that required *n to
48733         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48734         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48735         getdelim, rather than whether implementation is missing.
48736         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48737         * lib/stdio_.h (getline): Also declare if replacement is
48738         required.
48739         * doc/functions/getdelim.texi: New file.
48740         * doc/functions/getline.texi: Likewise.
48741         * doc/gnulib.texi (Function Substitutes): Add new files.
48742         Reported by Bruno Haible.
48743
48744 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48745
48746         * users.txt: Add Guile.
48747
48748 2007-08-22  Eric Blake  <ebb9@byu.net>
48749
48750         * tests/test-getdelim.c (main): Use remove, not unlink.
48751         * tests/test-getline.c (main): Likewise.
48752
48753         Move getline and getdelim into stdio.h, per POSIX 200x.
48754         * modules/getline (Files): Remove getline.h.
48755         (Depends-on): Add stdio.
48756         (configure.ac): Add module indicator.
48757         * modules/getdelim (Files): Remove getdelim.h.
48758         (Depends-on): Add stdio.
48759         (configure.ac): Add module indicator.
48760         * modules/stdio (Makefile.am): Work with new indicators.
48761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48762         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48763         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48764         * lib/getdelim.h: Delete.
48765         * lib/getline.h: Delete.
48766         * lib/stdio_.h (getdelim, getline): Declare.
48767         * modules/getdelim-tests: New module.
48768         * modules/getline-tests: Likewise.
48769         * tests/test-getdelim.c: New file.
48770         * tests/test-getline.c: Likewise.
48771         * NEWS: Document the change.
48772         * lib/getline.c: Update choice of header.
48773         * lib/csharpcomp.c: Likewise.
48774         * lib/getpass.c: Likewise.
48775         * lib/javacomp.c: Likewise.
48776         * lib/javaversion.c: Likewise.
48777         * lib/yesno.c: Likewise.
48778         * lib/getdelim.c: Likewise.
48779         (getdelim): Set errno on failure, and avoid memory leak.
48780
48781 2007-08-19  Bruno Haible  <bruno@clisp.org>
48782
48783         * modules/closein (Depends-on): Add freadahead.
48784         * lib/closein.c: Include freadahead.h.
48785         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48786         is zero.
48787
48788 2007-08-19  Bruno Haible  <bruno@clisp.org>
48789
48790         * modules/freadahead-tests: New file.
48791         * tests/test-freadahead.sh: New file.
48792         * tests/test-freadahead.c: New file.
48793
48794         * modules/freadahead: New file.
48795         * lib/freadahead.h: New file.
48796         * lib/freadahead.c: New file.
48797         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48798         fbufmode, fpurge, freadable, fwritable.
48799
48800 2007-08-19  Eric Blake  <ebb9@byu.net>
48801
48802         Test yesno in combination with closein.
48803         * lib/yesno.c (yesno): Document use of stdin.
48804         * modules/yesno-tests (Files): New module.
48805         * tests/test-yesno.c (main): New file.
48806         * tests/test-yesno.sh: Likewise.
48807
48808 2007-08-19  Bruno Haible  <bruno@clisp.org>
48809
48810         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48811         * lib/fseeko.c (rpl_fseeko): Likewise.
48812         * lib/fseterr.c (fseterr): Likewise.
48813
48814 2007-08-19  Bruno Haible  <bruno@clisp.org>
48815
48816         * tests/test-lseek.c (main): Disable a test for BeOS.
48817         * doc/functions/lseek.texi: Document the BeOS bug.
48818
48819 2007-08-19  Bruno Haible  <bruno@clisp.org>
48820             Eric Blake  <ebb9@byu.net>
48821
48822         * lib/lseek.c: Include <sys/stat.h>.
48823         (rpl_lseek): Add workaround code also for Unix platforms.
48824         Needed for BeOS.
48825         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48826         * doc/functions/lseek.texi: Document BeOS definiency.
48827
48828 2007-08-18  Bruno Haible  <bruno@clisp.org>
48829
48830         * modules/fstrcmp-tests: New file.
48831         * tests/test-fstrcmp.c: New file.
48832
48833 2007-08-18  Bruno Haible  <bruno@clisp.org>
48834
48835         * modules/fstrcmp: New file, from GNU gettext with modifications.
48836         * lib/fstrcmp.h: New file, from GNU gettext.
48837         * lib/fstrcmp.c: New file, from GNU gettext.
48838         * MODULES.html.sh (String handling): Add fstrcmp.
48839
48840 2007-08-18  Bruno Haible  <bruno@clisp.org>
48841
48842         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48843         'bool'.
48844         (diag, compareseq): Remove const from the ctxt argument.
48845         (USE_HEURISTIC): Undefine at the end.
48846
48847 2007-08-18  Jim Meyering  <jim@meyering.net>
48848
48849         New file: lib/idcache.h
48850         * NEWS: Mention the addition.
48851         * modules/idcache (Files): Add lib/idcache.h
48852         * lib/idcache.c: Include "idcache.h".
48853         Don't include <sys/types.h>.
48854         Add a FIXME comment.
48855         Move file-scoped "static" declarations to the top.
48856         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48857
48858 2007-08-17  Bruno Haible  <bruno@clisp.org>
48859         and Paul Eggert  <eggert@cs.ucla.edu>
48860
48861         * MODULES.html.sh: Add diffseq.
48862         * modules/diffseq: New file.
48863         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48864         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48865
48866 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48867
48868         Import changes from coreutils for bootstrap script.
48869
48870         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48871
48872         * build-aux/bootstrap (slurp): Work even in environments where
48873         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48874         current code does not slurp files whose names start with ".", and
48875         this looks like it might be a troublesome area.
48876
48877         2007-07-11  Jim Meyering  <jim@meyering.net>
48878
48879         If there's a GPL vN copyright comment, require that N == 3.
48880
48881         2007-07-08  Jim Meyering  <jim@meyering.net>
48882
48883         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48884         * build-aux/bootstrap (mam_template): Move definition out of loop.
48885
48886         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48887
48888         * build-aux/bootstrap (symlink_to_dir): Rename function from
48889         symlink_to_gnulib.  Add a directory parameter.  Update all
48890         callers.
48891         (cp_mark_as_generated): Also check for -- and link to -- files in
48892         gl/.
48893
48894         2007-07-08  Jim Meyering  <jim@meyering.net>
48895
48896         Adapt to deeper hierarchy in gnulib.
48897         * build-aux/bootstrap (symlink_to_dir): If the destination
48898         directory doesn't exist, create it. This is required at least for
48899         "lib/uniwidth/cjk.h".
48900
48901         2007-05-15  Jim Meyering  <jim@meyering.net>
48902
48903         * build-aux/bootstrap: Now that generated Makefile.am files
48904         are no longer under version control, they must be created at
48905         bootstrap time.
48906
48907 2007-08-14  Ben Pfaff  <blp@gnu.org>
48908
48909         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48910
48911 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48912
48913         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48914         given the changes below.
48915         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48916         even on hosts that have padding bits beyond the supported 64.
48917
48918 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48919
48920         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48921         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48922         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48923         depends on it.
48924         (xstrtol_error): Remove.
48925         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48926         but with a different signature.
48927         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48928         * lib/xstrtol-error.c: Include exitfail.h.
48929         (xstrtol_fatal): New function, with a different signature from the
48930         old xstrtol_error, so that the caller need not worry about passing
48931         in an exit status, or about storage management of the option argument.
48932         (xstrtol_error): Now a static function.  Redo signature to
48933         implement xstrtol_fatal.  Output the correct number of hyphens in
48934         front of the option so that the caller need not worry about
48935         storage management.
48936         (N_): New macro.
48937         (_): Remove; not used now.
48938         * modules/xstrtol: Depend on getopt.
48939         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48940         of old STRTOL_FATAL_ERROR macro.
48941         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48942         of test program.
48943         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48944         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48945
48946 2007-08-08  Eric Blake  <ebb9@byu.net>
48947
48948         * lib/xstrtol-error.c: Add missing include.
48949
48950         Move xstrtol messages into gnulib domain, when --pobase is used.
48951         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48952         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48953         * modules/xstrtol (Files): Distribute new file.
48954         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48955         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48956         * tests/test-xstrtol.c: ...into new file.
48957         * tests/test-xstrtoul.c: Also test xstrtoul.
48958         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48959         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48960         * tests/test-xstrtol.sh: Drive the tests.
48961         * tests/test-xstrtoimax.sh: Likewise.
48962         * tests/test-xstrtoumax.sh: Likewise.
48963         * modules/xstrtol-tests: New module.
48964         * modules/xstrtoimax-tests: Likewise.
48965         * modules/xstrtoumax-tests: Likewise.
48966
48967 2007-08-08  Jim Meyering  <jim@meyering.net>
48968
48969         New function: mfile_name_concat.
48970         * lib/filenamecat.c (mfile_name_concat): New function, just like
48971         file_name_concat, but return NULL upon failure rather than exiting
48972         with a diagnostic.
48973         * lib/filenamecat.h: Declare it.
48974
48975 2007-08-07  Bruno Haible  <bruno@clisp.org>
48976
48977         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48978         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48979         warning from gcc.
48980         Reported by Eric Blake.
48981
48982 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48983
48984         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48985         * modules/crypto/arcfour (License): Likewise.
48986         * modules/crypto/des-tests (License): Likewise.
48987         * modules/crypto/gc-arctwo-tests (License): Likewise.
48988         * modules/crypto/gc-des-tests (License): Likewise.
48989         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48990         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48991         * modules/crypto/gc-md2-tests (License): Likewise.
48992         * modules/crypto/gc-md4-tests (License): Likewise.
48993         * modules/crypto/gc-md5-tests (License): Likewise.
48994         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48995         * modules/crypto/gc-rijndael-tests (License): Likewise.
48996         * modules/crypto/gc-sha1-tests (License): Likewise.
48997         * modules/crypto/gc-tests (License): Likewise.
48998         * modules/crypto/hmac-md5 (License): Likewise.
48999         * modules/crypto/hmac-sha1 (License): Likewise.
49000         * modules/crypto/md2-tests (License): Likewise.
49001         * modules/crypto/md4-tests (License): Likewise.
49002         * modules/crypto/md5 (License): Likewise.
49003         * modules/crypto/rijndael (License): Likewise.
49004         * modules/crypto/sha1 (License): Likewise.
49005         * modules/memxor (License): Likewise.
49006
49007 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
49008         and Bruno Haible  <bruno@clisp.org>
49009
49010         * NEWS: Describe interface changes to human, xstrtol.
49011         * lib/human.h: Include <xstrtol.h>.
49012         (human_options): Return enum strtol_error, not int.  Remove
49013         bool arg; take int * instead.
49014         * lib/human.c: Don't include "gettext.h".
49015         (_): Remove; no longer used.
49016         Don't include <xstrtol.h>, since human.h does it.
49017         (human_options): Adjust to abovementioned interface changes.
49018         Do not report error to stderr; that's now the caller's
49019         responsibility.
49020         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
49021         interface change.
49022         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
49023         Str, Argument_type_string.  All uses changed.  Put " argument"
49024         in diagnostics to make them clearer.  Change wording of suffix
49025         message for clarity.
49026         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
49027         Argument_type_string.
49028         (STRTOL_FATAL_WARN): Remove; no longer used.
49029         * modules/human (Depends-on): Remove gettext-h.
49030
49031 2007-08-06  Simon Josefsson  <simon@josefsson.org>
49032
49033         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
49034
49035 2007-07-31  Bruno Haible  <bruno@clisp.org>
49036
49037         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
49038         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
49039         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
49040
49041 2007-07-31  Bruno Haible  <bruno@clisp.org>
49042
49043         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
49044         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
49045
49046 2007-07-30  Bruno Haible  <bruno@clisp.org>
49047
49048         * modules/base64 (License): Use the synonymous term "LGPLv2+".
49049         * modules/c-ctype (License): Likewise.
49050         * modules/c-strcase (License): Likewise.
49051         * modules/check-version (License): Likewise.
49052         * modules/iconv (License): Likewise.
49053         * modules/iconv_open (License): Likewise.
49054         * modules/read-file (License): Likewise.
49055         * modules/striconv (License): Likewise.
49056         * modules/strverscmp (License): Likewise.
49057         * modules/vasprintf (License): Likewise.
49058         * modules/crypto/des (License): Likewise.
49059         * modules/crypto/gc (License): Likewise.
49060         * modules/crypto/gc-arcfour (License): Likewise.
49061         * modules/crypto/gc-arctwo (License): Likewise.
49062         * modules/crypto/gc-des (License): Likewise.
49063         * modules/crypto/gc-hmac-md5 (License): Likewise.
49064         * modules/crypto/gc-hmac-sha1 (License): Likewise.
49065         * modules/crypto/gc-md2 (License): Likewise.
49066         * modules/crypto/gc-md4 (License): Likewise.
49067         * modules/crypto/gc-md5 (License): Likewise.
49068         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
49069         * modules/crypto/gc-random (License): Likewise.
49070         * modules/crypto/gc-rijndael (License): Likewise.
49071         * modules/crypto/gc-sha1 (License): Likewise.
49072         * modules/crypto/md2 (License): Likewise.
49073         * modules/crypto/md4 (License): Likewise.
49074
49075 2007-07-30  Jim Meyering  <jim@meyering.net>
49076
49077         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
49078         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
49079         it has valid stat data.  This bug would cause du not to count the
49080         sizes of inaccessible directories.
49081         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
49082         in <http://bugzilla.redhat.com/250077>.
49083
49084 2007-07-25  Peter O'Gorman  <peter@pogma.com>
49085             Bruno Haible  <bruno@clisp.org>
49086
49087         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
49088         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
49089         #include_next, gives a diagnostic about it, but reports no error in
49090         the exit code.
49091         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49092
49093 2007-07-24  Ben Pfaff  <blp@gnu.org>
49094
49095         Improve name: "count-one-bits" is better than "popcount".
49096         * MODULES.html.sh: Update name.
49097         * lib/popcount.h: Renamed lib/count-one-bits.h.
49098         (popcount): Renamed count_one_bits.
49099         (popcountl): Renamed count_one_bits_l.
49100         (popcountll): Renamed count_one_bits_ll.
49101         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
49102         * modules/popcount: Renamed module/count-one-bits.
49103         * modules/popcount-tests: Renamed module/count-one-bits-tests.
49104         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
49105
49106 2007-07-23  Ben Pfaff  <blp@gnu.org>
49107
49108         * lib/popcount.h (popcount32): Reduce size of constants, to allow
49109         better code generation, and add U to large constants to avoid
49110         warnings, in non-GCC case.
49111         Suggested by Bruno Haible.
49112
49113 2007-07-23  Ben Pfaff  <blp@gnu.org>
49114
49115         * lib/popcount.h: Use verify_true instead of if...abort.
49116         * modules/popcount: Depend on verify module.
49117         Suggested by Jim Meyering.
49118
49119 2007-07-23  Bruno Haible  <bruno@clisp.org>
49120
49121         * gnulib-tool (func_import): Create a .cvsignore file also when the
49122         directory is not yet in CVS but the toplevel directory is. When
49123         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
49124         Reported by Karl Berry.
49125
49126 2007-07-22  Ben Pfaff  <blp@gnu.org>
49127
49128         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
49129         case.
49130         Suggested by Eric Blake.
49131
49132 2007-07-22  Ben Pfaff  <blp@gnu.org>
49133
49134         New module: popcount.
49135         * MODULES.html.sh: Add popcount.
49136         * modules/popcount: New file.
49137         * modules/popcount-tests: New file.
49138         * tests/test-popcount.c: New file.
49139         * lib/popcount.h: New file.
49140         * m4/popcount.m4: New file.
49141
49142 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49143
49144         * build-aux/announce-gen: Update to GPLv3.
49145
49146         * build-aux/config.guess: Update from config.
49147
49148 2007-07-21  Bruno Haible  <bruno@clisp.org>
49149
49150         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
49151         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
49152
49153 2007-07-20  Jim Meyering  <jim@meyering.net>
49154
49155         * check-module: Diagnose a self-dependency.
49156
49157 2007-07-19  Bruno Haible  <bruno@clisp.org>
49158
49159         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
49160         empty.
49161         Reported by Eric Blake.
49162
49163 2007-07-18  Bruno Haible  <bruno@clisp.org>
49164
49165         * gnulib-tool: New options --po-base, --po-domain.
49166         (func_usage): Document them.
49167         (pobase, po_domain): New variables.
49168         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
49169         DEFAULT_TEXT_DOMAIN.
49170         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
49171         (func_import): Consider pobase and po_domain. Create a po/ directory.
49172         (func_create_testdir): Set pobase and po_domain to empty.
49173         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
49174         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
49175
49176 2007-07-18  Bruno Haible  <bruno@clisp.org>
49177
49178         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49179         EXTRA_DIST augmentation for files in build-aux/.
49180
49181 2007-07-16  Bruno Haible  <bruno@clisp.org>
49182
49183         * modules/lseek (License): Use the synonymous term "LGPLv2+".
49184         * modules/getdelim (License): Likewise.
49185
49186 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49187
49188         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
49189         * modules/d-type (License): Likewise.
49190         * modules/extensions (License): Likewise.
49191         * modules/fnmatch (License): Likewise.
49192         * modules/fseeko (License): Likewise.
49193         * modules/getaddrinfo (License): Likewise.
49194         * modules/getline (License): Likewise.
49195         * modules/getlogin_r (License): Likewise.
49196         * modules/getpass (License): Likewise.
49197         * modules/gettimeofday (License): Likewise.
49198         * modules/glob (License): Likewise.
49199         * modules/inet_ntop (License): Likewise.
49200         * modules/malloc (License): Likewise.
49201         * modules/malloca (License): Likewise.
49202         * modules/memmem (License): Likewise.
49203         * modules/mempcpy (License): Likewise.
49204         * modules/memset (License): Likewise.
49205         * modules/minmax (License): Likewise.
49206         * modules/mktime (License): Likewise.
49207         * modules/netinet_in (License): Likewise.
49208         * modules/pathmax (License): Likewise.
49209         * modules/poll (License): Likewise.
49210         * modules/regex (License): Likewise.
49211         * modules/snprintf (License): Likewise.
49212         * modules/stdbool (License): Likewise.
49213         * modules/stdint (License): Likewise.
49214         * modules/stdio (License): Likewise.
49215         * modules/strcase (License): Likewise.
49216         * modules/strcasestr (License): Likewise.
49217         * modules/strdup (License): Likewise.
49218         * modules/string (License): Likewise.
49219         * modules/strndup (License): Likewise.
49220         * modules/strnlen (License): Likewise.
49221         * modules/strpbrk (License): Likewise.
49222         * modules/strptime (License): Likewise.
49223         * modules/strsep (License): Likewise.
49224         * modules/sys_select (License): Likewise.
49225         * modules/sys_socket (License): Likewise.
49226         * modules/sys_stat (License): Likewise.
49227         * modules/sys_time (License): Likewise.
49228         * modules/time (License): Likewise.
49229         * modules/time_r (License): Likewise.
49230         * modules/timegm (License): Likewise.
49231         * modules/unistd (License): Likewise.
49232         * modules/vsnprintf (License): Likewise.
49233         * modules/wctype (License): Likewise.
49234
49235 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49236
49237         * modules/argz (License): LGPLv2+.
49238
49239 2007-07-15  Karl Berry  <karl@gnu.org>
49240
49241         * doc/gnulib.texi: revise node structure per new fdl.texi.
49242
49243 2007-07-14  Bruno Haible  <bruno@clisp.org>
49244
49245         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
49246         the output file.
49247         * lib/uniname/uninames.h: Regenerated.
49248
49249 2007-07-14  Karl Berry  <karl@gnu.org>
49250
49251         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
49252         omitting sectioning and index commands.
49253
49254 2007-07-13  Bruno Haible  <bruno@clisp.org>
49255
49256         New gnulib-tool option --more-symlinks.
49257         * gnulib-tool (func_usage): Document --more-symlinks.
49258         (do_copyrights): New variable.
49259         Recognize option --more-symlinks.
49260         (func_import): Don't add a copyright notice transform to
49261         sed_transform_lib_file if do_copyrights is empty.
49262
49263 2007-07-13  Bruno Haible  <bruno@clisp.org>
49264
49265         * lib/vasnprintf.c (decimal_point_char): Define also if
49266         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
49267         && !NEED_PRINTF_DIRECTIVE_A.
49268         Reported by Clemens Koller <clemens.koller@anagramm.de> via
49269         Gary V. Vaughan <gary@gnu.org>.
49270
49271 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
49272
49273         * lib/inttypes_.h: Undo previous change, since it was fixed
49274         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
49275
49276 2007-07-13  Bruno Haible  <bruno@clisp.org>
49277
49278         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
49279         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
49280
49281 2007-07-13  Jim Meyering  <jim@meyering.net>
49282
49283         df: Don't fail for Tru64's "file-on-file mount".
49284         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
49285         so we fall through and use statfs instead.  Details here:
49286         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
49287         Reported by Albert Chin.
49288
49289 2007-07-13  Bruno Haible  <bruno@clisp.org>
49290
49291         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
49292         * modules/configmake (License): Likewise.
49293         * modules/gettext (License): Likewise.
49294         * modules/gettext-h (License): Likewise.
49295         * modules/include_next (License): Likewise.
49296         * modules/link-warning (License): Likewise.
49297         * modules/localcharset (License): Likewise.
49298         * modules/localename (License): Likewise.
49299         * modules/lock (License): Likewise.
49300         * modules/relocatable-lib-lgpl (License): Likewise.
49301         * modules/size_max (License): Likewise.
49302         * modules/vasnprintf (License): Likewise.
49303         * modules/wchar (License): Likewise.
49304         * modules/xsize (License): Likewise.
49305
49306 2007-07-13  Bruno Haible  <bruno@clisp.org>
49307
49308         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
49309         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
49310
49311 2007-07-12  Bruno Haible  <bruno@clisp.org>
49312
49313         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
49314         in the modules files.
49315
49316 2007-07-11  Karl Berry  <karl@gnu.org>
49317
49318         * MODULES.html.sh (func_module): use
49319          sed -e '\|^'"${includefile}"'$|d'
49320          instead of /.../d, to avoid errors on $includefile's containing /.
49321
49322 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49323
49324         * gnulib-tool (func_import): Avoid duplication of --avoid
49325         statements
49326         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
49327         names to `_' in variable names.
49328
49329 2007-07-10  Eric Blake  <ebb9@byu.net>
49330
49331         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
49332         * NEWS: Document this change.
49333
49334 2007-07-08  Bruno Haible  <bruno@clisp.org>
49335
49336         Update to Unicode 5.0.
49337         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
49338         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
49339         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
49340         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
49341         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
49342         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
49343         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
49344         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
49345         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
49346         U+10A3F, U+1D242..U+1D244.
49347         (nonspacing_table_ind): Update.
49348         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
49349         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
49350
49351 2007-07-08  Bruno Haible  <bruno@clisp.org>
49352
49353         Update to Unicode 5.0.
49354         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
49355         code transform. Extend the name index field of unicode_name_to_code and
49356         unicode_code_to_name from 16 to 24 bits.
49357         * lib/uniname/uniname.c (unicode_character_name,
49358         unicode_name_character): Add the range 0x12xxx to the code transform.
49359         * lib/uniname/uninames.h: Regenerated.
49360         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
49361
49362 2007-07-07  Bruno Haible  <bruno@clisp.org>
49363
49364         * modules/wcwidth-tests: New file.
49365         * tests/test-wcwidth.c: New file.
49366
49367         Work around MacOS X wcwidth() bug.
49368         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
49369         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
49370         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
49371         original wcwidth in non-UTF-8 locales.
49372         * modules/wcwidth (Depends-on): Add localcharset, streq,
49373         uniwidth/width.
49374         * doc/functions/wcwidth.texi: Update.
49375
49376 2007-07-07  Bruno Haible  <bruno@clisp.org>
49377
49378         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
49379         (wcwidth): New declaration.
49380         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
49381         macros.
49382         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
49383         here. Prepare for creating <wchar.h> unconditionally.
49384         * modules/wchar (Depends-on): Add link-warning.
49385         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
49386         REPLACE_WCWIDTH, and GL_LINK_WARNING.
49387         * lib/wcwidth.h: Remove file.
49388         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
49389         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
49390         * modules/wcwidth (Files): Remove lib/wcwidth.h.
49391         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
49392         (Include): Replace wcwidth.h with <wchar.h>.
49393         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
49394         * lib/mbchar.h: Don't include wcwidth.h.
49395         * lib/mbswidth.c: Likewise.
49396         * NEWS: Mention the change.
49397
49398 2007-07-07  Bruno Haible  <bruno@clisp.org>
49399
49400         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
49401         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
49402         definition with an external declaration.
49403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
49404         defined as a function. Remove AC_C_INLINE requirement.
49405         * modules/wcwidth (Files): Add lib/wcwidth.c.
49406         (Makefile.am): Remove redundant statement.
49407
49408 2007-07-07  Bruno Haible  <bruno@clisp.org>
49409
49410         * MODULES.html.sh (Unicode string functions): Add the new modules.
49411
49412         * tests/uniwidth/test-u32-strwidth.c: New file.
49413         * modules/uniwidth/u32-strwidth-tests: New file.
49414
49415         * lib/uniwidth/u32-strwidth.c: New file.
49416         * modules/uniwidth/u32-strwidth: New file.
49417
49418         * tests/uniwidth/test-u16-strwidth.c: New file.
49419         * modules/uniwidth/u16-strwidth-tests: New file.
49420
49421         * lib/uniwidth/u16-strwidth.c: New file.
49422         * modules/uniwidth/u16-strwidth: New file.
49423
49424         * tests/uniwidth/test-u8-strwidth.c: New file.
49425         * modules/uniwidth/u8-strwidth-tests: New file.
49426
49427         * lib/uniwidth/u8-strwidth.c: New file.
49428         * modules/uniwidth/u8-strwidth: New file.
49429
49430         * tests/uniwidth/test-u32-width.c: New file.
49431         * modules/uniwidth/u32-width-tests: New file.
49432
49433         * lib/uniwidth/u32-width.c: New file.
49434         * modules/uniwidth/u32-width: New file.
49435
49436         * tests/uniwidth/test-u16-width.c: New file.
49437         * modules/uniwidth/u16-width-tests: New file.
49438
49439         * lib/uniwidth/u16-width.c: New file.
49440         * modules/uniwidth/u16-width: New file.
49441
49442         * tests/uniwidth/test-u8-width.c: New file.
49443         * modules/uniwidth/u8-width-tests: New file.
49444
49445         * lib/uniwidth/u8-width.c: New file.
49446         * modules/uniwidth/u8-width: New file.
49447
49448         * tests/uniwidth/test-uc_width.c: New file.
49449         * modules/uniwidth/width-tests: New file.
49450
49451         * lib/uniwidth/width.c: New file, from GNU libiconv.
49452         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
49453         * modules/uniwidth/width: New file.
49454
49455         * lib/uniwidth.h: New file, from GNU libiconv.
49456         * modules/uniwidth/base: New file.
49457
49458 2007-07-07  Bruno Haible  <bruno@clisp.org>
49459
49460         * lib/uniname.h: New file, from GNU gettext.
49461         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
49462         * lib/uniname/uninames.h: New file, from GNU gettext.
49463         * lib/uniname/uniname.c: New file, from GNU gettext.
49464         * tests/uniname/test-uninames.sh: New file.
49465         * tests/uniname/test-uninames.c: New file, from GNU gettext.
49466         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
49467         * modules/uniname/base: New file.
49468         * modules/uniname/uniname: New file.
49469         * modules/uniname/uniname-tests: New file.
49470         * MODULES.html.sh (Unicode string functions): Add the new modules.
49471
49472 2007-07-06  Bruno Haible  <bruno@clisp.org>
49473
49474         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
49475
49476 2007-07-06  Bruno Haible  <bruno@clisp.org>
49477
49478         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
49479         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
49480         includes <cygwin/sys_time.h> which includes <sys/select.h> which
49481         include <sys/time.h>.
49482         Reported by Eric Blake.
49483
49484 2007-07-06  Eric Blake  <ebb9@byu.net>
49485
49486         Fix testing canonicalize on cygwin.
49487         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49488         Revert patch from 2007-06-19.
49489         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
49490         canonicalize module is also in use.
49491         * tests/test-canonicalize.c: New file.
49492         * tests/test-canonicalize.sh: Likewise.
49493         * modules/canonicalize-tests: Likewise.
49494
49495 2007-07-06  Jim Meyering  <jim@meyering.net>
49496
49497         * lib/getugroups.c (getugroups): Detect getgrent failure.
49498         Adjust comment to reflect reality: this function may return -1.
49499
49500 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49501
49502         * build-aux/bootstrap (TP_URL,get_translations): Update to use
49503         the new TP address.
49504         (usage): Fix typo
49505         (gnulib_mk): New variable.
49506
49507 2007-07-05  Jim Meyering  <jim@meyering.net>
49508
49509         Don't let endgrent clobber errno, no matter how improbable.
49510         * lib/getugroups.c (getugroups): Save and restore errno around
49511         endgrent call.
49512
49513         Close the group DB even when failing with 2^31 or more members.
49514         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
49515
49516 2007-07-04  Jim Meyering  <jim@meyering.net>
49517
49518         * lib/getugroups.h: New file.
49519         * lib/getugroups.c: Include "getugroups.h".
49520         Remove uses of "register" keyword.
49521         Move local variable, "cp", down into scope where used.
49522         Give "username" parameter the "const" attribute.
49523         * modules/getugroups (Files): Add lib/getugroups.h
49524
49525 2007-07-04  Karl Berry  <karl@gnu.org>
49526
49527         * MODULES.html.sh (func_all_modules): Complete rename of
49528         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
49529
49530 2007-07-02  Bruno Haible  <bruno@clisp.org>
49531
49532         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
49533         mode, when inttypes.h comes from gnulib.
49534         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49535
49536 2007-07-02  Simon Josefsson  <simon@josefsson.org>
49537
49538         * NEWS: Mention lgpl module name change.
49539
49540         * modules/lgpl-2.1: Renamed from lgpl.
49541
49542         * NEWS: Mention gpl module name change.
49543
49544         * modules/gpl-3.0: New file, based on gpl-2.0.
49545
49546         * modules/gpl-2.0: Renamed from gpl.
49547
49548         * modules/gpl: Fix filename, doc/gpl.texi is now found at
49549         doc/gpl-2.0.texi.
49550
49551 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49552
49553         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
49554         #define __STDC_LIMIT_MACROS temporarily while including
49555         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
49556         Problem reported by Joel E. Denny in
49557         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
49558
49559 2007-07-01  Bruno Haible  <bruno@clisp.org>
49560
49561         * lib/unistdio.h: New file.
49562         * lib/unistdio/u-asnprintf.h: New file.
49563         * lib/unistdio/u-asprintf.h: New file.
49564         * lib/unistdio/u-printf-args.c: New file.
49565         * lib/unistdio/u-printf-args.h: New file.
49566         * lib/unistdio/u-printf-parse.h: New file.
49567         * lib/unistdio/u-snprintf.h: New file.
49568         * lib/unistdio/u-sprintf.h: New file.
49569         * lib/unistdio/u-vasprintf.h: New file.
49570         * lib/unistdio/u-vsnprintf.h: New file.
49571         * lib/unistdio/u-vsprintf.h: New file.
49572         * lib/unistdio/ulc-asnprintf.c: New file.
49573         * lib/unistdio/ulc-asprintf.c: New file.
49574         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
49575         * lib/unistdio/ulc-printf-parse.c: New file.
49576         * lib/unistdio/ulc-snprintf.c: New file.
49577         * lib/unistdio/ulc-sprintf.c: New file.
49578         * lib/unistdio/ulc-vasnprintf.c: New file.
49579         * lib/unistdio/ulc-vasprintf.c: New file.
49580         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
49581         * lib/unistdio/ulc-vsnprintf.c: New file.
49582         * lib/unistdio/ulc-vsprintf.c: New file.
49583         * lib/unistdio/u8-asnprintf.c: New file.
49584         * lib/unistdio/u8-asprintf.c: New file.
49585         * lib/unistdio/u8-printf-parse.c: New file.
49586         * lib/unistdio/u8-snprintf.c: New file.
49587         * lib/unistdio/u8-sprintf.c: New file.
49588         * lib/unistdio/u8-vasnprintf.c: New file.
49589         * lib/unistdio/u8-vasprintf.c: New file.
49590         * lib/unistdio/u8-vsnprintf.c: New file.
49591         * lib/unistdio/u8-vsprintf.c: New file.
49592         * lib/unistdio/u8-u8-asnprintf.c: New file.
49593         * lib/unistdio/u8-u8-asprintf.c: New file.
49594         * lib/unistdio/u8-u8-snprintf.c: New file.
49595         * lib/unistdio/u8-u8-sprintf.c: New file.
49596         * lib/unistdio/u8-u8-vasnprintf.c: New file.
49597         * lib/unistdio/u8-u8-vasprintf.c: New file.
49598         * lib/unistdio/u8-u8-vsnprintf.c: New file.
49599         * lib/unistdio/u8-u8-vsprintf.c: New file.
49600         * lib/unistdio/u16-asnprintf.c: New file.
49601         * lib/unistdio/u16-asprintf.c: New file.
49602         * lib/unistdio/u16-printf-parse.c: New file.
49603         * lib/unistdio/u16-snprintf.c: New file.
49604         * lib/unistdio/u16-sprintf.c: New file.
49605         * lib/unistdio/u16-vasnprintf.c: New file.
49606         * lib/unistdio/u16-vasprintf.c: New file.
49607         * lib/unistdio/u16-vsnprintf.c: New file.
49608         * lib/unistdio/u16-vsprintf.c: New file.
49609         * lib/unistdio/u16-u16-asnprintf.c: New file.
49610         * lib/unistdio/u16-u16-asprintf.c: New file.
49611         * lib/unistdio/u16-u16-snprintf.c: New file.
49612         * lib/unistdio/u16-u16-sprintf.c: New file.
49613         * lib/unistdio/u16-u16-vasnprintf.c: New file.
49614         * lib/unistdio/u16-u16-vasprintf.c: New file.
49615         * lib/unistdio/u16-u16-vsnprintf.c: New file.
49616         * lib/unistdio/u16-u16-vsprintf.c: New file.
49617         * lib/unistdio/u32-asnprintf.c: New file.
49618         * lib/unistdio/u32-asprintf.c: New file.
49619         * lib/unistdio/u32-printf-parse.c: New file.
49620         * lib/unistdio/u32-snprintf.c: New file.
49621         * lib/unistdio/u32-sprintf.c: New file.
49622         * lib/unistdio/u32-vasnprintf.c: New file.
49623         * lib/unistdio/u32-vasprintf.c: New file.
49624         * lib/unistdio/u32-vsnprintf.c: New file.
49625         * lib/unistdio/u32-vsprintf.c: New file.
49626         * lib/unistdio/u32-u32-asnprintf.c: New file.
49627         * lib/unistdio/u32-u32-asprintf.c: New file.
49628         * lib/unistdio/u32-u32-snprintf.c: New file.
49629         * lib/unistdio/u32-u32-sprintf.c: New file.
49630         * lib/unistdio/u32-u32-vasnprintf.c: New file.
49631         * lib/unistdio/u32-u32-vasprintf.c: New file.
49632         * lib/unistdio/u32-u32-vsnprintf.c: New file.
49633         * lib/unistdio/u32-u32-vsprintf.c: New file.
49634         * tests/unistdio/test-ulc-asnprintf1.c: New file.
49635         * tests/unistdio/test-ulc-asnprintf1.h: New file.
49636         * tests/unistdio/test-ulc-printf1.h: New file.
49637         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
49638         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
49639         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
49640         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
49641         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
49642         * tests/unistdio/test-ulc-vasprintf1.c: New file.
49643         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49644         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49645         * tests/unistdio/test-u8-asnprintf1.c: New file.
49646         * tests/unistdio/test-u8-asnprintf1.h: New file.
49647         * tests/unistdio/test-u8-printf1.h: New file.
49648         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49649         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49650         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49651         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49652         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49653         * tests/unistdio/test-u8-vasprintf1.c: New file.
49654         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49655         * tests/unistdio/test-u8-vsprintf1.c: New file.
49656         * tests/unistdio/test-u16-asnprintf1.c: New file.
49657         * tests/unistdio/test-u16-asnprintf1.h: New file.
49658         * tests/unistdio/test-u16-printf1.h: New file.
49659         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49660         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49661         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49662         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49663         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49664         * tests/unistdio/test-u16-vasprintf1.c: New file.
49665         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49666         * tests/unistdio/test-u16-vsprintf1.c: New file.
49667         * tests/unistdio/test-u32-asnprintf1.c: New file.
49668         * tests/unistdio/test-u32-asnprintf1.h: New file.
49669         * tests/unistdio/test-u32-printf1.h: New file.
49670         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49671         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49672         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49673         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49674         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49675         * tests/unistdio/test-u32-vasprintf1.c: New file.
49676         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49677         * tests/unistdio/test-u32-vsprintf1.c: New file.
49678         * modules/unistdio/base: New file.
49679         * modules/unistdio/u-printf-args: New file.
49680         * modules/unistdio/ulc-asnprintf: New file.
49681         * modules/unistdio/ulc-asprintf: New file.
49682         * modules/unistdio/ulc-fprintf: New file.
49683         * modules/unistdio/ulc-printf-parse: New file.
49684         * modules/unistdio/ulc-snprintf: New file.
49685         * modules/unistdio/ulc-sprintf: New file.
49686         * modules/unistdio/ulc-vasnprintf: New file.
49687         * modules/unistdio/ulc-vasprintf: New file.
49688         * modules/unistdio/ulc-vfprintf: New file.
49689         * modules/unistdio/ulc-vsnprintf: New file.
49690         * modules/unistdio/ulc-vsprintf: New file.
49691         * modules/unistdio/u8-asnprintf: New file.
49692         * modules/unistdio/u8-asprintf: New file.
49693         * modules/unistdio/u8-printf-parse: New file.
49694         * modules/unistdio/u8-snprintf: New file.
49695         * modules/unistdio/u8-sprintf: New file.
49696         * modules/unistdio/u8-vasnprintf: New file.
49697         * modules/unistdio/u8-vasprintf: New file.
49698         * modules/unistdio/u8-vsnprintf: New file.
49699         * modules/unistdio/u8-vsprintf: New file.
49700         * modules/unistdio/u8-u8-asnprintf: New file.
49701         * modules/unistdio/u8-u8-asprintf: New file.
49702         * modules/unistdio/u8-u8-snprintf: New file.
49703         * modules/unistdio/u8-u8-sprintf: New file.
49704         * modules/unistdio/u8-u8-vasnprintf: New file.
49705         * modules/unistdio/u8-u8-vasprintf: New file.
49706         * modules/unistdio/u8-u8-vsnprintf: New file.
49707         * modules/unistdio/u8-u8-vsprintf: New file.
49708         * modules/unistdio/u16-asnprintf: New file.
49709         * modules/unistdio/u16-asprintf: New file.
49710         * modules/unistdio/u16-printf-parse: New file.
49711         * modules/unistdio/u16-snprintf: New file.
49712         * modules/unistdio/u16-sprintf: New file.
49713         * modules/unistdio/u16-vasnprintf: New file.
49714         * modules/unistdio/u16-vasprintf: New file.
49715         * modules/unistdio/u16-vsnprintf: New file.
49716         * modules/unistdio/u16-vsprintf: New file.
49717         * modules/unistdio/u16-u16-asnprintf: New file.
49718         * modules/unistdio/u16-u16-asprintf: New file.
49719         * modules/unistdio/u16-u16-snprintf: New file.
49720         * modules/unistdio/u16-u16-sprintf: New file.
49721         * modules/unistdio/u16-u16-vasnprintf: New file.
49722         * modules/unistdio/u16-u16-vasprintf: New file.
49723         * modules/unistdio/u16-u16-vsnprintf: New file.
49724         * modules/unistdio/u16-u16-vsprintf: New file.
49725         * modules/unistdio/u32-asnprintf: New file.
49726         * modules/unistdio/u32-asprintf: New file.
49727         * modules/unistdio/u32-printf-parse: New file.
49728         * modules/unistdio/u32-snprintf: New file.
49729         * modules/unistdio/u32-sprintf: New file.
49730         * modules/unistdio/u32-vasnprintf: New file.
49731         * modules/unistdio/u32-vasprintf: New file.
49732         * modules/unistdio/u32-vsnprintf: New file.
49733         * modules/unistdio/u32-vsprintf: New file.
49734         * modules/unistdio/u32-u32-asnprintf: New file.
49735         * modules/unistdio/u32-u32-asprintf: New file.
49736         * modules/unistdio/u32-u32-snprintf: New file.
49737         * modules/unistdio/u32-u32-sprintf: New file.
49738         * modules/unistdio/u32-u32-vasnprintf: New file.
49739         * modules/unistdio/u32-u32-vasprintf: New file.
49740         * modules/unistdio/u32-u32-vsnprintf: New file.
49741         * modules/unistdio/u32-u32-vsprintf: New file.
49742         * modules/unistdio/ulc-asnprintf-tests: New file.
49743         * modules/unistdio/ulc-vasnprintf-tests: New file.
49744         * modules/unistdio/ulc-vasprintf-tests: New file.
49745         * modules/unistdio/ulc-vsnprintf-tests: New file.
49746         * modules/unistdio/ulc-vsprintf-tests: New file.
49747         * modules/unistdio/u8-asnprintf-tests: New file.
49748         * modules/unistdio/u8-vasnprintf-tests: New file.
49749         * modules/unistdio/u8-vasprintf-tests: New file.
49750         * modules/unistdio/u8-vsnprintf-tests: New file.
49751         * modules/unistdio/u8-vsprintf-tests: New file.
49752         * modules/unistdio/u16-asnprintf-tests: New file.
49753         * modules/unistdio/u16-vasnprintf-tests: New file.
49754         * modules/unistdio/u16-vasprintf-tests: New file.
49755         * modules/unistdio/u16-vsnprintf-tests: New file.
49756         * modules/unistdio/u16-vsprintf-tests: New file.
49757         * modules/unistdio/u32-asnprintf-tests: New file.
49758         * modules/unistdio/u32-vasnprintf-tests: New file.
49759         * modules/unistdio/u32-vasprintf-tests: New file.
49760         * modules/unistdio/u32-vsnprintf-tests: New file.
49761         * modules/unistdio/u32-vsprintf-tests: New file.
49762         * MODULES.html.sh (Unicode string functions): Add the new modules.
49763
49764 2007-07-01  Bruno Haible  <bruno@clisp.org>
49765
49766         * lib/sprintf.c (sprintf): Limit the available length estimation,
49767         to avoid address wraparound.
49768         * lib/vsprintf.c (vsprintf): Likewise.
49769         * modules/sprintf-posix (Dependencies): Add stdint.
49770         * modules/vsprintf-posix (Dependencies): Likewise.
49771
49772 2007-07-01  Bruno Haible  <bruno@clisp.org>
49773
49774         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49775         Windows PATH as well. Conservative double-quoting. Comments.
49776
49777 2007-07-01  Bruno Haible  <bruno@clisp.org>
49778             Eric Blake  <ebb9@byu.net>
49779             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49780
49781         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49782         empty components in $PATH, denoting '.'.
49783
49784 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49785
49786         * gnulib-tool: Fix indentation.
49787         (func_create_megatestdir): Likewise.
49788         Report by Bruno Haible.
49789
49790 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49791
49792         Sync from Automake.
49793         * build-aux/gnupload: Fix shell portability issues with for loops.
49794         Report by Karl Berry.
49795
49796 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49797
49798         * build-aux/maint.mk (POURL): Use translationproject.org.
49799
49800 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49801             Bruno Haible  <bruno@clisp.org>
49802
49803         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49804         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49805         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49806         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49807         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49808
49809 2007-06-27  Bruno Haible  <bruno@clisp.org>
49810
49811         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49812         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49813
49814 2007-06-26  Karl Berry  <karl@gnu.org>
49815
49816         * MODULES.html.sh: remove xreadlink-with-size.
49817
49818 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49819
49820         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49821         method that I hope also handles the double-include problem noted
49822         by Bruno Haible in
49823         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49824
49825 2007-06-23  Bruno Haible  <bruno@clisp.org>
49826
49827         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49828         Don't let the 'mostlyclean' target fail if the last subdirectory could
49829         not be removed.
49830         Reported by Karl Berry.
49831
49832 2007-06-23  Bruno Haible  <bruno@clisp.org>
49833
49834         * gnulib-tool (echo): Add a speedier workaround for ksh.
49835         * tests/test-echo.sh: Likewise.
49836
49837 2007-06-23  Bruno Haible  <bruno@clisp.org>
49838
49839         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49840         * tests/test-echo.sh: Likewise.
49841
49842 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49843
49844         * gnulib-tool (IFS): Initialize early, so we don't set it to
49845         empty later.
49846         (self_abspathname): Rewrite algorithm to set it, reindent.
49847         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49848         (func_create_megatestdir): Merge some sed scripts.
49849
49850 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49851
49852         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49853         exposed by Sun Studio 11 cc on Solaris 8.
49854
49855 2007-06-22  Bruno Haible  <bruno@clisp.org>
49856
49857         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49858         backslashes.
49859         * tests/test-echo.sh: New file.
49860
49861 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49862
49863         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49864         simplify `sed_replace_build_aux' scripts, they are portable but
49865         echoing them with `echo' is not.
49866         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49867
49868 2007-06-21  Karl Berry  <karl@gnu.org>
49869
49870         * config/srclist.txt: guess we can't handle the licenses via
49871         srclist at the moment.
49872
49873 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49874
49875         * MODULES.html.sh: Add include_next.
49876         * modules/include_next: New file.
49877
49878 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49879
49880         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49881         INCLUDE_NEXT.
49882         (gl_CHECK_NEXT_HEADERS): New macro.
49883         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49884         the obsolescent gl_ABSOLUTE_HEADER.
49885         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49886         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49887         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49888         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49889         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49890         * m4/math_h.m4 (gl_MATH_H): Likewise.
49891         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49892         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49893         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49894         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49895         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49896         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49897         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49898         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49899         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49900         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49901         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49902         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49903         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49904         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49905         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49906         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49907         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49908         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49909         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49910         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49911         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49912         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49913         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49914         * lib/float_.h: Likewise.
49915         * lib/inttypes_.h: Likewise.
49916         * lib/math_.h: Likewise.
49917         * lib/search_.h: Likewise.
49918         * lib/signal_.h: Likewise.
49919         * lib/stdint_.h: Likewise.
49920         * lib/stdio_.h: Likewise.
49921         * lib/stdlib_.h: Likewise.
49922         * lib/string_.h: Likewise.
49923         * lib/sys_stat_.h: Likewise.
49924         * lib/sys_time_.h: Likewise.
49925         * lib/time_.h: Likewise.
49926         * lib/unistd_.h: Likewise.
49927         * lib/wchar_.h: Likewise.
49928         * lib/wctype_.h: Likewise.
49929         * lib/dirent_.h: Likewise.
49930         * lib/iconv_.h: Likewise.
49931         * lib/locale_.h: Likewise.
49932         * lib/netinet_in_.h: Likewise.
49933         * lib/sys_select_.h: Likewise.
49934         * lib/sys_socket_.h: Likewise.
49935         * lib/sysexits_.h: Likewise.
49936         * modules/fcntl (Depends-on): Depend on include_next, not
49937         absolute_header.
49938         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49939         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49940         * modules/fchdir: Likewise.
49941         * modules/float: Likewise.
49942         * modules/iconv_open: Likewise.
49943         * modules/inttypes: Likewise.
49944         * modules/locale: Likewise.
49945         * modules/math: Likewise.
49946         * modules/netinet_in: Likewise.
49947         * modules/search: Likewise.
49948         * modules/signal: Likewise.
49949         * modules/stdint: Likewise.
49950         * modules/stdio: Likewise.
49951         * modules/stdlib: Likewise.
49952         * modules/string: Likewise.
49953         * modules/sys_select: Likewise.
49954         * modules/sys_socket: Likewise.
49955         * modules/sys_stat: Likewise.
49956         * modules/sys_time: Likewise.
49957         * modules/sysexits: Likewise.
49958         * modules/time: Likewise.
49959         * modules/unistd: Likewise.
49960         * modules/wchar: Likewise.
49961         * modules/wctype: Likewise.
49962         * modules/sys_stat: Change maintainer to "all".
49963         * modules/unistd: Likewise.
49964
49965 2007-06-20  Karl Berry  <karl@gnu.org>
49966
49967         * config/srclist.txt: track www changes in license files.
49968
49969 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49970
49971         * build-aux/bootstrap: Remove stray dot.
49972         Make sure build_aux settings are honored when linking
49973         gnulib_extra_files.
49974
49975 2007-06-19  Eric Blake  <ebb9@byu.net>
49976
49977         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49978         Allow compilation on cygwin.
49979
49980 2007-06-19  Jim Meyering  <jim@meyering.net>
49981
49982         xreadlink-with-size: Remove module.  No longer used.
49983         Ex-callers now use xreadlink or mreadlink-with-size.
49984         * modules/xreadlink-with-size: Remove module.
49985         * lib/xreadlink-with-size.c: Remove file.
49986         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49987         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49988         just before the function definition *is* accurate.
49989
49990         Eliminate one way canonicalize_filename_mode could exit.
49991         * lib/canonicalize.c (canonicalize_filename_mode):
49992         Use mreadlink_with_size, not xreadlink_with_size.
49993
49994 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49995
49996         Detect porting problems to FreeBSD/arm, which has time_t wider than
49997         long int.  Original problem reported for GNU diff by Xin Li in
49998         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49999         * modules/getdate (Depends-on): Add intprops, verify.
50000         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
50001         is an integer type no wider than long int.
50002
50003 2007-06-18  Jim Meyering  <jim@meyering.net>
50004
50005         New module: mreadlink-with-size.
50006         * MODULES.html.sh: Add mreadlink-with-size.
50007         * modules/mreadlink-with-size: New module
50008         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
50009         not xreadlink-with-size.
50010         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
50011
50012 2007-06-16  Bruno Haible  <bruno@clisp.org>
50013
50014         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
50015         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
50016         Reported by Gary V. Vaughan <gary@gnu.org>.
50017
50018 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50019
50020         Revamp lchown so that it lives in unistd.h where it belongs.
50021         * lib/lchown.h: Remove.
50022         * lib/dirchownmod.c: Don't include lib/lchown.h.
50023         * lib/fchownat.c: Likewise.
50024         * lib/openat.c: Likewise.
50025         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
50026         does not follow symlinks.
50027         (EOPNOTSUPP): Define if not defined.
50028         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
50029         is defined to 0.
50030         (lchown): New decl.
50031         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
50032         Do not check for lchown decl.
50033         Set REPLACE_LCHOWN.
50034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
50035         REPLACE_LCHOWN.
50036         * modules/chown: Make it clear it follows symlinks.
50037         * modules/lchown: Make it clear it doesn't follow symlinks.
50038         (Files): Remove lib/lchown.h
50039         (Depends-on): Add unistd.
50040         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
50041         (Include): Include <unistd.h>, not "lchown.h".
50042         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
50043         REPLACE_LCHOWN.
50044
50045 2007-06-15  Jim Meyering  <jim@meyering.net>
50046
50047         Change license (GPL to LGPL) of fsusage and dependents.
50048         * modules/fsusage (License): Change to LGPL.
50049         * modules/full-read (License): Likewise.
50050         * modules/full-write (License): Likewise.
50051         * modules/safe-read (License): Likewise.
50052         * modules/safe-write (License): Likewise.
50053
50054 2007-06-14  Ben Pfaff  <blp@gnu.org>
50055
50056         Missing part of allocsa -> malloca transition.
50057         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
50058         gl_MALLOCA.
50059
50060 2007-06-12  Bruno Haible  <bruno@clisp.org>
50061
50062         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
50063         to ia64, x86_64, i386.
50064         Reported by Eric Blake.
50065
50066 2007-06-12  Bruno Haible  <bruno@clisp.org>
50067
50068         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
50069         cross-compiling to x86_64.
50070
50071 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
50072
50073         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
50074         glitch reported by Ralf Wildenhues in
50075         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
50076
50077         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
50078         Vin Shelton.
50079
50080 2007-06-11  Bruno Haible  <bruno@clisp.org>
50081
50082         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
50083         replacement string.
50084         Reported by Eric Blake.
50085
50086 2007-06-10  Bruno Haible  <bruno@clisp.org>
50087
50088         Prepare vasnprintf code for use with Unicode strings.
50089         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
50090         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
50091         TYPE_U32_STRING.
50092         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
50093         a_u32_string variants.
50094         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50095         * lib/printf-args.c: Don't include config.h and the specification
50096         header if PRINTF_FETCHARGS is already defined.
50097         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50098         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
50099         TYPE_U16_STRING, TYPE_U32_STRING.
50100         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
50101         u16_directive, u16_directives, u32_directive, u32_directives): New
50102         types.
50103         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
50104         New declarations.
50105         * lib/printf-parse.c: Don't include config.h and the specification
50106         header if PRINTF_PARSE is already defined. Eliminate the set of
50107         parameters for WIDE_CHAR_VERSION; the user of this file must provide
50108         them now. Include c-ctype.h.
50109         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
50110         directive and CHAR_T_ONLY_ASCII.
50111         * lib/vasnprintf.c: Don't include config.h and the specification header
50112         if VASNPRINTF is already defined.
50113         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
50114         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
50115         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
50116         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
50117         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
50118         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
50119         code accordingly.
50120         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
50121         pad_ourselves also in this case, with the 'c' and 's' directives, and
50122         with a different notion of "width".
50123         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
50124
50125 2007-06-10  Bruno Haible  <bruno@clisp.org>
50126
50127         * modules/unistr/u32-mbsnlen: New file.
50128         * lib/unistr/u32-mbsnlen.c: New file.
50129
50130         * modules/unistr/u16-mbsnlen: New file.
50131         * lib/unistr/u16-mbsnlen.c: New file.
50132
50133         * modules/unistr/u8-mbsnlen: New file.
50134         * lib/unistr/u8-mbsnlen.c: New file.
50135
50136         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
50137         declarations.
50138
50139 2007-06-10  Bruno Haible  <bruno@clisp.org>
50140
50141         * lib/string_.h (mbsnlen): New declaration.
50142         * lib/mbsnlen.c: New file.
50143         * m4/mbsnlen.m4: New file.
50144         * modules/mbsnlen: New file.
50145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
50146         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
50147         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
50148
50149 2007-06-10  Bruno Haible  <bruno@clisp.org>
50150
50151         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
50152
50153 2007-06-10  Bruno Haible  <bruno@clisp.org>
50154
50155         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
50156         * lib/mbuiter.h: Likewise.
50157
50158 2007-06-10  Bruno Haible  <bruno@clisp.org>
50159
50160         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
50161         declaration.
50162
50163 2007-06-10  Karl Berry  <karl@gnu.org>
50164
50165         * config/srclist.txt: remove gettext entries, Bruno prefers
50166         to update individually.
50167
50168 2007-06-10  Bruno Haible  <bruno@clisp.org>
50169
50170         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
50171         'maxlen'. Ensure only length + width bytes are allocated, not
50172         length + 1 + width.
50173
50174 2007-06-09  Bruno Haible  <bruno@clisp.org>
50175
50176         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
50177         (CHAR_T): Remove macro.
50178         (VASNPRINTF): Update.
50179
50180 2007-06-09  Bruno Haible  <bruno@clisp.org>
50181
50182         * MODULES.html.sh (Unicode string functions): Add the new modules.
50183
50184         * modules/uniconv/u32-conv-to-enc: New file.
50185         * lib/uniconv/u32-conv-to-enc.c: New file.
50186         * modules/uniconv/u32-conv-to-enc-tests: New file.
50187         * tests/uniconv/test-u32-conv-to-enc.c: New file.
50188
50189         * modules/uniconv/u16-conv-to-enc: New file.
50190         * lib/uniconv/u16-conv-to-enc.c: New file.
50191         * lib/uniconv/u-conv-to-enc.h: New file.
50192         * modules/uniconv/u16-conv-to-enc-tests: New file.
50193         * tests/uniconv/test-u16-conv-to-enc.c: New file.
50194
50195         * modules/uniconv/u8-conv-to-enc: New file.
50196         * lib/uniconv/u8-conv-to-enc.c: New file.
50197         * modules/uniconv/u8-conv-to-enc-tests: New file.
50198         * tests/uniconv/test-u8-conv-to-enc.c: New file.
50199
50200         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50201         u32_conv_to_encoding): New declarations.
50202
50203 2007-06-09  Bruno Haible  <bruno@clisp.org>
50204
50205         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
50206
50207 2007-06-09  Bruno Haible  <bruno@clisp.org>
50208
50209         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
50210         * modules/malloca: Renamed from modules/allocsa, updated.
50211         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
50212         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
50213         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
50214         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
50215         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
50216         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
50217         * modules/xmalloca: Renamed from modules/xallocsa, updated.
50218         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
50219         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
50220         * modules/c-strcasestr (Depends-on): Update.
50221         * lib/c-strcasestr.c: Update.
50222         * modules/c-strstr (Depends-on): Update.
50223         * lib/c-strstr.c: Update.
50224         * modules/canonicalize-lgpl (Depends-on): Update.
50225         * lib/canonicalize-lgpl.c: Update.
50226         * modules/clean-temp (Depends-on): Update.
50227         * lib/clean-temp.c: Update.
50228         * modules/csharpcomp (Depends-on): Update.
50229         * lib/csharpcomp.c: Update.
50230         * modules/csharpexec (Depends-on): Update.
50231         * lib/csharpexec.c: Update.
50232         * modules/javacomp (Depends-on): Update.
50233         * lib/javacomp.c: Update.
50234         * modules/javaexec (Depends-on): Update.
50235         * lib/javaexec.c: Update.
50236         * modules/mbscasestr (Depends-on): Update.
50237         * lib/mbscasestr.c: Update.
50238         * modules/mbsstr (Depends-on): Update.
50239         * lib/mbsstr.c: Update.
50240         * modules/setenv (Depends-on): Update.
50241         * lib/setenv.c: Update.
50242         * modules/strcasestr (Depends-on): Update.
50243         * lib/strcasestr.c: Update.
50244         * modules/striconveha (Depends-on): Update.
50245         * lib/striconveha.c: Update.
50246         * modules/relocatable-prog-wrapper (Files): Update.
50247         * lib/relocwrapper.c: Update.
50248         * build-aux/install-reloc: Update.
50249         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
50250
50251 2007-06-08  Bruno Haible  <bruno@clisp.org>
50252
50253         Port to uClibc.
50254         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
50255         * lib/fpurge.c (fpurge): Likewise.
50256         * lib/freading.c (freading): Likewise.
50257         * lib/fseeko.c (rpl_fseeko): Likewise.
50258         * lib/fseterr.c (fseterr): Likewise.
50259         * lib/fwriting.c (fwriting): Likewise.
50260         * tests/test-fflush.c (main): Avoid a failure on uClibc.
50261
50262 2007-06-08  Bruno Haible  <bruno@clisp.org>
50263
50264         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
50265         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
50266         * modules/gettext (Files): Add m4/intlmacosx.m4.
50267
50268 2007-06-07  Bruno Haible  <bruno@clisp.org>
50269
50270         * modules/localename-tests: New file.
50271         * tests/test-localename.c: New file.
50272
50273         New module 'localename'.
50274         * lib/localename.h: New file.
50275         * lib/localename.c: New file, from GNU gettext.
50276         * m4/localename.m4: New file.
50277         * modules/localename: New file.
50278
50279 2007-06-07  Bruno Haible  <bruno@clisp.org>
50280
50281         Work around the lack of <wchar.h> on some builds of uClibc.
50282         * doc/headers/wchar.texi: Update.
50283         * lib/wchar_.h: Include <wchar.h> only if it exists.
50284         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
50285         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
50286         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
50287         doesn't exist.
50288         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
50289         * modules/mbfile (Depends-on): Add wchar.
50290         * modules/mbiter (Depends-on): Likewise.
50291         * modules/mbuiter (Depends-on): Likewise.
50292         Reported by Simon Josefsson.
50293
50294 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
50295
50296         Work around problem reported by Steven M. Schweda in
50297         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
50298         Tru64 5.1B with the Compaq compiler environment installed declares
50299         an 'isblank' function but does not define it in the C library.
50300         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
50301         * lib/regex_internal.h (isblank): Likewise.
50302         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
50303         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50304
50305 2007-06-05  Bruno Haible  <bruno@clisp.org>
50306
50307         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
50308         ia64.
50309         * modules/printf-safe: New file.
50310         * modules/fprintf-posix (Depends-on): Add printf-safe.
50311         * modules/printf-posix (Depends-on): Likewise.
50312         * modules/snprintf-posix (Depends-on): Likewise.
50313         * modules/sprintf-posix (Depends-on): Likewise.
50314         * modules/vasnprintf-posix (Depends-on): Likewise.
50315         * modules/vasprintf-posix (Depends-on): Likewise.
50316         * modules/vfprintf-posix (Depends-on): Likewise.
50317         * modules/vprintf-posix (Depends-on): Likewise.
50318         * modules/vsnprintf-posix (Depends-on): Likewise.
50319         * modules/vsprintf-posix (Depends-on): Likewise.
50320         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
50321         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
50322         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
50323         "no" on i386, x86_64, ia64.
50324         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
50325         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50326         on i386, x86_64, ia64.
50327         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
50328         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50329         on i386, x86_64, ia64.
50330         * tests/test-vasnprintf-posix.c: Include float.h.
50331         (LDBL80_WORDS): New macro.
50332         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50333         on i386, x86_64, ia64.
50334         * tests/test-vasprintf-posix.c: Include float.h.
50335         (LDBL80_WORDS): New macro.
50336         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50337         on i386, x86_64, ia64.
50338         * tests/test-snprintf-posix.c: Include float.h.
50339         * tests/test-sprintf-posix.c: Likewise.
50340         * tests/test-vsnprintf-posix.c: Likewise.
50341         * tests/test-vsprintf-posix.c: Likewise.
50342
50343 2007-06-05  Bruno Haible  <bruno@clisp.org>
50344
50345         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
50346         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
50347         non-IEEE numbers on i386, x86_64, ia64.
50348         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
50349         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
50350         * tests/test-isnanl.h: Include float.h.
50351         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
50352
50353 2007-06-05  Bruno Haible  <bruno@clisp.org>
50354
50355         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
50356         also the %a / %A. Handle the %a / %A code before this extra handling.
50357
50358 2007-06-05  Bruno Haible  <bruno@clisp.org>
50359
50360         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
50361         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
50362
50363 2007-06-05  Bruno Haible  <bruno@clisp.org>
50364
50365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
50366         typo in variable name.
50367
50368 2007-06-05  Eric Blake  <ebb9@byu.net>
50369
50370         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
50371         Reported by Simon Josefsson.
50372
50373 2007-06-04  Bruno Haible  <bruno@clisp.org>
50374
50375         Avoid test failures on some PowerPC platforms.
50376         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
50377         Define differently for PowerPC.
50378         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
50379         Reported by Gary V. Vaughan <gary@gnu.org>.
50380
50381 2007-06-02  Bruno Haible  <bruno@clisp.org>
50382
50383         Fix test-stdint failure on FreeBSD/ia64.
50384         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
50385         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
50386         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
50387         * doc/headers/stdint.texi: Update.
50388
50389 2007-06-01  Bruno Haible  <bruno@clisp.org>
50390
50391         * tests/test-binary-io.c (main): Pass a third argument to open().
50392         Reported by Gary V. Vaughan <gary@gnu.org>.
50393
50394 2007-06-01  Bruno Haible  <bruno@clisp.org>
50395
50396         * doc/functions/frexpl.texi: Update for mingw.
50397
50398 2007-06-01  Bruno Haible  <bruno@clisp.org>
50399
50400         * tests/test-lseek.c (main): Disable test of errno for invalid third
50401         argument.
50402         * doc/functions/lseek.texi: Update.
50403         Reported by Gary V. Vaughan <gary@gnu.org>.
50404
50405 2007-05-28  Bruno Haible  <bruno@clisp.org>
50406
50407         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
50408
50409 2007-05-31  Eric Blake  <ebb9@byu.net>
50410
50411         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
50412         cross compiling.
50413
50414 2007-05-30  Eric Blake  <ebb9@byu.net>
50415         and Bruno Haible  <bruno@clisp.org>
50416
50417         Work around mingw test failures exposed by m4-1.4.9b.
50418         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
50419         * tests/test-unistd.c: Disable uid_t and git_t tests for the
50420         moment.
50421
50422 2007-05-30  Bruno Haible  <bruno@clisp.org>
50423
50424         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
50425         assuming that they are closed. Needed on HP-UX 11.
50426
50427 2007-05-29  Bruno Haible  <bruno@clisp.org>
50428
50429         Fix a problem with #include_next.
50430         * lib/dirent_.h: Split the double-inclusion guard.
50431         * lib/fcntl_.h: Likewise.
50432         * lib/float_.h: Likewise.
50433         * lib/iconv_.h: Likewise.
50434         * lib/inttypes_.h: Likewise.
50435         * lib/locale_.h: Likewise.
50436         * lib/math_.h: Likewise.
50437         * lib/netinet_in_.h: Likewise.
50438         * lib/search_.h: Likewise.
50439         * lib/signal_.h: Likewise.
50440         * lib/stdint_.h: Likewise.
50441         * lib/stdio_.h: Likewise.
50442         * lib/stdlib_.h: Likewise.
50443         * lib/string_.h: Likewise.
50444         * lib/sys_select_.h: Likewise.
50445         * lib/sys_socket_.h: Likewise.
50446         * lib/sys_stat_.h: Likewise.
50447         * lib/sys_time_.h: Likewise.
50448         * lib/sysexits_.h: Likewise.
50449         * lib/time_.h: Likewise.
50450         * lib/unistd_.h: Likewise.
50451         * lib/wchar_.h: Likewise.
50452         * lib/wctype_.h: Likewise.
50453
50454 2007-05-29  Bruno Haible  <bruno@clisp.org>
50455
50456         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
50457         for the moment.
50458
50459 2007-05-29  Bruno Haible  <bruno@clisp.org>
50460
50461         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
50462         invocation.
50463         Reported by Eric Blake.
50464
50465 2007-05-29  Bruno Haible  <bruno@clisp.org>
50466
50467         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
50468         compiling case.
50469
50470 2007-05-29  Eric Blake  <ebb9@byu.net>
50471             Bruno Haible  <bruno@clisp.org>
50472
50473         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
50474         cross compiles.
50475
50476 2007-05-28  Eric Blake  <ebb9@byu.net>
50477
50478         * modules/closein-tests (test_closein_LDADD): Support test on
50479         cygwin with libtool.
50480
50481 2007-05-28  Bruno Haible  <bruno@clisp.org>
50482
50483         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
50484         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50485         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50486         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50487         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50488         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50489         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50490         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50491         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50492
50493 2007-05-28  Eric Blake  <ebb9@byu.net>
50494
50495         Unconditionally include <config.h> in unit tests.
50496         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
50497         * tests/test-allocsa.c, tests/test-arcfour.c,
50498         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
50499         tests/test-array_list.c, tests/test-array_oset.c,
50500         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
50501         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
50502         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
50503         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
50504         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
50505         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
50506         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
50507         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
50508         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
50509         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
50510         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
50511         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
50512         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
50513         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
50514         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
50515         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
50516         test-md5.c, test-memmem.c, test-printf-posix.c,
50517         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
50518         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
50519         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
50520         test-strcasestr.c, test-striconv.c, test-striconveh.c,
50521         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
50522         test-vasnprintf-posix2.c, test-vasnprintf.c,
50523         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
50524         test-vfprintf-posix.c, test-vprintf-posix.c,
50525         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
50526         test-xvasprintf.c: Likewise.
50527
50528 2007-05-28  Bruno Haible  <bruno@clisp.org>
50529
50530         * gnulib-tool (func_import): Remember the --with-tests command-line
50531         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
50532         Reported by Eric Blake.
50533
50534 2007-05-28  Bruno Haible  <bruno@clisp.org>
50535
50536         * modules/ftell-tests: New file.
50537         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
50538         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
50539
50540         * lib/ftell.c: New file.
50541         * modules/ftell: New file.
50542         * m4/ftell.m4: New file.
50543         * doc/functions/ftell.texi: Update.
50544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
50545         REPLACE_FTELL.
50546         * lib/stdio_.h (rpl_ftell): New declaration.
50547         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
50548         REPLACE_FTELL.
50549
50550 2007-05-28  Eric Blake  <ebb9@byu.net>
50551
50552         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
50553
50554 2007-05-28  Bruno Haible  <bruno@clisp.org>
50555
50556         * modules/fseek-tests: New file.
50557         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
50558         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
50559
50560         * lib/fseek.c: New file.
50561         * modules/fseek: New file.
50562         * m4/fseek.m4: New file.
50563         * doc/functions/fseek.texi: Update.
50564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
50565         REPLACE_FSEEK.
50566         * lib/stdio_.h (rpl_fseek): New declaration.
50567         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
50568         REPLACE_FSEEK.
50569
50570 2007-05-28  Bruno Haible  <bruno@clisp.org>
50571
50572         * lib/stdio_.h (fflush): More comments.
50573
50574 2007-05-28  Bruno Haible  <bruno@clisp.org>
50575
50576         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
50577         runtime test.
50578
50579 2007-05-28  Eric Blake  <ebb9@byu.net>
50580
50581         Improve lseek module.
50582         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
50583         * lib/unistd_.h (lseek): Scale back link warning message.
50584         * tests/test-lseek.c: Beef up test.
50585         * tests/test-lseek.sh: Exercise more facets of lseek.
50586         Reported by Bruno Haible.
50587
50588 2007-05-28  Bruno Haible  <bruno@clisp.org>
50589
50590         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
50591         to define.
50592
50593 2007-05-27  Bruno Haible  <bruno@clisp.org>
50594
50595         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
50596
50597 2007-05-27  Bruno Haible  <bruno@clisp.org>
50598
50599         * modules/openmp: New file.
50600         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
50601         Noah Misch.
50602
50603 2007-05-26  Bruno Haible  <bruno@clisp.org>
50604
50605         * modules/chdir-long (Depends-on): Add fchdir.
50606         * modules/chdir-safer (Depends-on): Likewise.
50607         * modules/fts (Depends-on): Likewise.
50608         * modules/fts-lgpl (Depends-on): Likewise.
50609         * modules/openat (Depends-on): Likewise.
50610         * modules/savewd (Depends-on): Likewise.
50611
50612 2007-05-24  Eric Blake  <ebb9@byu.net>
50613
50614         Fix lseek on mingw.
50615         * modules/lseek: New module.
50616         * m4/lseek.m4: New file.
50617         * lib/lseek.c: New file.
50618         * modules/lseek-tests: New file.
50619         * tests/test-lseek.c: New file.
50620         * tests/test-lseek.sh: New file.
50621         * MODULES.html.sh: Document lseek module.
50622         * modules/fflush (Depends-on): Add lseek, fseeko.
50623         * modules/fseeko (Depends-on): Likewise.
50624         * modules/ftello (Depends-on): Likewise.
50625         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
50626         broken.
50627         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
50628         broken.
50629         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
50630         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
50631         * lib/ftello.c (rpl_ftello): Likewise.
50632         * tests/test-fseeko.c (main): Test this.
50633         * tests/test-fseeko.sh: Likewise.
50634         * tests/test-ftello.c (main): Likewise.
50635         * tests/test-ftello.sh: Likewise.
50636         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
50637         implies replacing fseek.
50638         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
50639         HAVE_FTELLO.
50640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
50641         * modules/unistd (Makefile.am): Likewise.
50642         * lib/unistd_.h (lseek): Declare a replacement.
50643         * doc/functions/lseek.texi (lseek): Document this fix.
50644         * doc/functions/fseek.texi (fseek): Likewise.
50645         * doc/functions/ftell.texi (ftell): Likewise.
50646
50647 2007-05-24  Bruno Haible  <bruno@clisp.org>
50648
50649         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50650         in the printed representation of a NaN.
50651         * tests/test-vasprintf-posix.c (test_function): Likewise.
50652         * tests/test-snprintf-posix.h (test_function): Likewise.
50653         * tests/test-sprintf-posix.h (test_function): Likewise.
50654         Reported by Eric Blake.
50655
50656 2007-05-23  Eric Blake  <ebb9@byu.net>
50657
50658         Fix fseeko/ftello on cygwin 1.5.24.
50659         * doc/functions/fseeko.texi (fseeko): Document the fix.
50660         * doc/functions/ftello.texi (ftello): Document the fix.
50661         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50662         * doc/functions/stdout.text (stdout): New file.
50663         * doc/functions/stderr.text (stderr): New file.
50664         * doc/gnulib.texi (Function Substitutes): Use new files.
50665         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50666         prior to 1.7.0.
50667         * tests/test-ftello.c (main): Likewise for ftello.
50668         * tests/test-fseeko.sh: New file.
50669         * tests/test-ftello.sh: New file.
50670         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50671         with seekable stdin.
50672         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50673         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50674         (gl_REPLACE_FSEEKO): New macro.
50675         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50676         * modules/fseeko (Files): Distribute fseeko.c.
50677         * modules/ftello (Files): Distribute ftello.c.
50678         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50679         mode.
50680         * lib/ftello.c (rpl_ftello): New file.
50681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50682         fseeko, ftello.
50683         (gl_STDIN_LARGE_OFFSET): New macro.
50684         * modules/stdio (Makefile.am): Perform the replacement.
50685         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50686
50687 2007-05-23  Bruno Haible  <bruno@clisp.org>
50688
50689         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50690         GNULIB_POSIXCHECK is defined.
50691
50692 2007-05-21  Bruno Haible  <bruno@clisp.org>
50693
50694         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50695         Check also the output for NaN arguments. When cross-compiling, guess
50696         no on IRIX.
50697         * lib/vasnprintf.c: Update comments.
50698         * tests/test-vasnprintf-posix.c (strisnan): New function.
50699         (test_function): Use it.
50700         * tests/test-vasprintf-posix.c (strisnan): New function.
50701         (test_function): Use it.
50702         * tests/test-snprintf-posix.h (strisnan): New function.
50703         (test_function): Use it.
50704         * tests/test-sprintf-posix.h (strisnan): New function.
50705         (test_function): Use it.
50706         Reported by Eric Blake.
50707
50708 2007-05-20  Bruno Haible  <bruno@clisp.org>
50709
50710         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50711         numbers that fails on BeOS.
50712         * doc/functions/frexpl.texi: Update.
50713
50714 2007-05-20  Jim Meyering  <jim@meyering.net>
50715
50716         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50717         forced upon us by glibc-2.6.
50718
50719 2007-05-20  Bruno Haible  <bruno@clisp.org>
50720
50721         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50722         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50723         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50724         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50725         NEED_PRINTF_INFINITE.
50726         (is_infinitel): New function.
50727         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50728         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50729         gl_PREREQ_VASNPRINTF_INFINITE.
50730         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50731         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50732         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50733         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50734         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50735         gl_PREREQ_VASNPRINTF_INFINITE.
50736         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50737         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50738         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50739         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50740         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50741         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50742         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50743         * doc/functions/fprintf.texi: Update.
50744         * doc/functions/printf.texi: Update.
50745         * doc/functions/snprintf.texi: Update.
50746         * doc/functions/sprintf.texi: Update.
50747         * doc/functions/vfprintf.texi: Update.
50748         * doc/functions/vprintf.texi: Update.
50749         * doc/functions/vsnprintf.texi: Update.
50750         * doc/functions/vsprintf.texi: Update.
50751
50752 2007-05-20  Bruno Haible  <bruno@clisp.org>
50753
50754         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50755         was not found in libc.
50756         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50757
50758 2007-05-20  Bruno Haible  <bruno@clisp.org>
50759
50760         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50761         printed as "-nan" instead of "nan".
50762         * tests/test-vasprintf-posix.c (test_function): Likewise.
50763         * tests/test-snprintf-posix.h (test_function): Likewise.
50764         * tests/test-sprintf-posix.h (test_function): Likewise.
50765         Needed for HP-UX 11.
50766
50767 2007-05-20  Jim Meyering  <jim@meyering.net>
50768
50769         Fix buggy test for the fchownat-deref bug.
50770         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50771         symlink required for the run-test.  Without it, this test would
50772         always declare that fchownat doesn't work, and client code would
50773         unnecessarily use the replacement function with fixed libc.
50774         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50775         Reported by Greg Schafer.
50776
50777 2007-05-19  Bruno Haible  <bruno@clisp.org>
50778
50779         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50780         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50781         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50782         Needed for IRIX 6.5 and Solaris 2.5.1.
50783
50784 2007-05-19  Bruno Haible  <bruno@clisp.org>
50785
50786         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50787         (test_function): Skip tests involving -0.0 on platforms where
50788         -0.0 = 0.0.
50789         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50790         (test_function): Skip tests involving -0.0 on platforms where
50791         -0.0 = 0.0.
50792         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50793         (test_function): Skip tests involving -0.0 on platforms where
50794         -0.0 = 0.0.
50795         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50796         (test_function): Skip tests involving -0.0 on platforms where
50797         -0.0 = 0.0.
50798         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50799         tests.
50800         * tests/test-printf-posix.h (test_function): Likewise.
50801         * tests/test-printf-posix.output: Remove all -0.0 related results.
50802         Needed for IRIX 6.5.
50803
50804 2007-05-19  Bruno Haible  <bruno@clisp.org>
50805
50806         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50807         printed as "nan0x7fffffff" instead of "nan".
50808         * tests/test-vasprintf-posix.c (test_function): Likewise.
50809         * tests/test-snprintf-posix.h (test_function): Likewise.
50810         * tests/test-sprintf-posix.h (test_function): Likewise.
50811         * tests/test-fprintf-posix.h (NaN): Remove macro.
50812         (test_function): Remove all NaN related tests.
50813         * tests/test-printf-posix.h (NaN): Remove macro.
50814         (test_function): Remove all NaN related tests.
50815         * tests/test-printf-posix.output: Remove all NaN related results.
50816         Needed for IRIX 6.5.
50817
50818 2007-05-19  Bruno Haible  <bruno@clisp.org>
50819
50820         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50821         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50822
50823 2007-05-19  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/float_.h: New file.
50826         * m4/float_h.m4: New file.
50827         * modules/float: New file.
50828         * modules/isnanl (Dependencies): Add float.
50829         * modules/isnanl-nolibm (Dependencies): Likewise.
50830         * modules/mathl (Dependencies): Likewise.
50831         * modules/printf-frexpl (Dependencies): Likewise.
50832         * modules/signbit (Dependencies): Likewise.
50833         * modules/vasnprintf (Dependencies): Likewise.
50834         * doc/headers/float.texi: Update.
50835
50836 2007-05-19  Jim Meyering  <jim@meyering.net>
50837
50838         * lib/utimens.c (gl_futimens): Rename from futimens,
50839         now that glibc-2.6 declares futimens.
50840         * lib/utimens.h: Likewise.
50841
50842 2007-05-19  Bruno Haible  <bruno@clisp.org>
50843
50844         Avoid test failures on mingw.
50845         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50846         * tests/test-printf-posix.sh: Likewise.
50847         * tests/test-vfprintf-posix.sh: Likewise.
50848         * tests/test-vprintf-posix.sh: Likewise.
50849
50850 2007-05-19  Bruno Haible  <bruno@clisp.org>
50851
50852         Fix *printf result for NaN, Inf, -0.0 on mingw.
50853         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50854         * lib/vasnprintf.c: Include math.h and isnan.h.
50855         (is_infinite_or_zero): New function.
50856         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50857         values in the %f, %F, %e, %E, %g, %G directives.
50858         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50859         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50860         gl_PRINTF_INFINITE and test its result. Invoke
50861         gl_PREREQ_VASNPRINTF_INFINITE.
50862         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50863         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50864         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50865         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50866         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50867         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50868         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50869         * doc/functions/fprintf.texi: Update.
50870         * doc/functions/printf.texi: Update.
50871         * doc/functions/snprintf.texi: Update.
50872         * doc/functions/sprintf.texi: Update.
50873         * doc/functions/vfprintf.texi: Update.
50874         * doc/functions/vprintf.texi: Update.
50875         * doc/functions/vsnprintf.texi: Update.
50876         * doc/functions/vsprintf.texi: Update.
50877
50878 2007-05-19  Bruno Haible  <bruno@clisp.org>
50879
50880         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50881         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50882         Instead of multiplying with 10^k, set extra_zeroes to k.
50883         (scale10_round_long_double): Remove function.
50884
50885 2007-05-18  Bruno Haible  <bruno@clisp.org>
50886
50887         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50888         introduced on 2007-05-06.
50889
50890 2007-05-18  Bruno Haible  <bruno@clisp.org>
50891
50892         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50893         %g directives.
50894         * tests/test-vasprintf-posix.c (test_function): Likewise.
50895         * tests/test-snprintf-posix.h (test_function): Likewise.
50896         * tests/test-sprintf-posix.h (test_function): Likewise.
50897
50898 2007-05-18  Bruno Haible  <bruno@clisp.org>
50899
50900         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50901         (strmatch): New function.
50902         (test_function): Test the %f directive on numbers of various exponents.
50903         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50904         (strmatch): New function.
50905         (test_function): Test the %f directive on numbers of various exponents.
50906         * tests/test-snprintf-posix.h (strmatch): New function.
50907         (test_function): Test the %f directive on numbers of various exponents.
50908         * tests/test-sprintf-posix.h (strmatch): New function.
50909         (test_function): Test the %f directive on numbers of various exponents.
50910         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50911         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50912         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50913         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50914
50915 2007-05-18  Bruno Haible  <bruno@clisp.org>
50916
50917         Add support for 'long double' number output.
50918         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50919         * lib/vasnprintf.c: Include math.h and float+.h.
50920         (mp_limb_t): New type.
50921         (GMP_LIMB_BITS): New macro.
50922         (mp_twolimb_t): New type.
50923         (GMP_TWOLIMB_BITS): New macro.
50924         (mpn_t): New type.
50925         (multiply, divide, convert_to_decimal, decode_long_double,
50926         scale10_round_long_double, scale10_round_decimal_long_double,
50927         floorlog10l): New functions.
50928         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50929         for the %f, %F, %e, %E, %g, %G directives.
50930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50931         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50932         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50933         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50934         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50935         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50936         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50937         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50938         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50939         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50940         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50941         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50942         * modules/snprintf-posix (Depends-on): Likewise.
50943         * modules/sprintf-posix (Depends-on): Likewise.
50944         * modules/vasnprintf-posix (Depends-on): Likewise.
50945         * modules/vasprintf-posix (Depends-on): Likewise.
50946         * modules/vfprintf-posix (Depends-on): Likewise.
50947         * modules/vsnprintf-posix (Depends-on): Likewise.
50948         * modules/vsprintf-posix (Depends-on): Likewise.
50949         * modules/vasnprintf (Files): Add lib/float+.h.
50950         * doc/functions/fprintf.texi: Update.
50951         * doc/functions/printf.texi: Update.
50952         * doc/functions/snprintf.texi: Update.
50953         * doc/functions/sprintf.texi: Update.
50954         * doc/functions/vfprintf.texi: Update.
50955         * doc/functions/vprintf.texi: Update.
50956         * doc/functions/vsnprintf.texi: Update.
50957         * doc/functions/vsprintf.texi: Update.
50958
50959 2007-05-18  Bruno Haible  <bruno@clisp.org>
50960
50961         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50962
50963 2007-05-18  Bruno Haible  <bruno@clisp.org>
50964
50965         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50966         for printing 64-bit integers. Needed for mingw.
50967
50968 2007-05-18  Bruno Haible  <bruno@clisp.org>
50969
50970         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50971         gl_FUNC_FREXPL_WORKS.
50972         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50973
50974 2007-05-18  Bruno Haible  <bruno@clisp.org>
50975
50976         * modules/frexpl-nolibm-tests: New file.
50977
50978         * modules/frexpl-nolibm: New file.
50979         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50980
50981 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50982
50983         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50984         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50985         GCC 4.2, which otherwise issues a lot of warnings.
50986         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50987         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50988         Likewise.
50989         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50990         * modules/iconv_open (iconv.h): Likewise.
50991         * modules/locale (locale.h): Likewise.
50992         * modules/netinet_in (netinet/in.h): Likewise.
50993         * modules/sys_select (sys_select.h): Likewise.
50994         * modules/sys_socket (sys/socket.h): Likewise.
50995         * modules/sys_stat (sys/stat.h): Likewise.
50996         * modules/sysexits (sysexits.h): Likewise.
50997         * modules/unistd (unistd.h): Likewise.
50998
50999 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51000
51001         * modules/closein-tests (Makefile.am): Distribute
51002         `test-closein.sh'.
51003
51004 2007-05-17  Bruno Haible  <bruno@clisp.org>
51005
51006         * tests/test-printf-posix.output: Renamed from
51007         tests/test-fprintf-posix.out.
51008         * modules/fprintf-posix-tests: Update.
51009         * modules/printf-posix-tests: Update.
51010         * modules/vfprintf-posix-tests: Update.
51011         * modules/vprintf-posix-tests: Update.
51012         * tests/test-fprintf-posix.sh: Update.
51013         * tests/test-printf-posix.sh: Update.
51014         * tests/test-vfprintf-posix.sh: Update.
51015         * tests/test-vprintf-posix.sh: Update.
51016         Reported by Ralf Wildenhues.
51017
51018 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51019
51020         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
51021         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51022         GCC 4.2, which otherwise issues a lot of warnings.
51023         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
51024         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
51025         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
51026         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
51027         it should no longer be needed.
51028         * lib/string_.h: Likewise.
51029         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
51030         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
51031         * modules/inttypes (inttypes.h): Likewise.
51032         * modules/math (math.h): Likewise.
51033         * modules/search (search.h): Likewise.
51034         * modules/signal (signal.h): Likewise.
51035         * modules/stdint (stdint.h): Likewise.
51036         * modules/stdio (stdio.h): Likewise.
51037         * modules/stdlib (stdlib.h): Likewise.
51038         * modules/string (string.h): Likewise.
51039         * modules/sys_time (sys/time.h): Likewise.
51040         * modules/time (time.h): Likewise.
51041         * modules/wchar (wchar.h): Likewise.
51042         * modules/wctype (wtype.h): Likewise.
51043
51044 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51045
51046         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
51047
51048 2007-05-13  Bruno Haible  <bruno@clisp.org>
51049
51050         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
51051         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51052         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
51053         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51054         (gl_PREREQ_STRTOK_R): Don't require it here.
51055
51056 2007-05-13  Bruno Haible  <bruno@clisp.org>
51057
51058         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
51059         when used in C++ mode.
51060
51061 2007-05-12  Bruno Haible  <bruno@clisp.org>
51062
51063         * lib/linebuffer.h: Tweak doc.
51064         * lib/linebuffer.c: Likewise.
51065
51066 2007-05-12  James Youngman  <jay@gnu.org>
51067
51068         * lib/linebuffer.c (readlinebuffer_delim): New function,
51069         like readlinebuffer, but use a caller-specified delimiter.
51070         (readlinebuffer): Just call readlinebuffer_delim with '\n'
51071         as the delimiter.
51072         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
51073
51074 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51075
51076         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
51077         * modules/openat (Files): Remove openat-die.c.
51078         (Depends-on): Add openat-die.
51079         * modules/openat-die: New module.
51080
51081 2007-05-06  Bruno Haible  <bruno@clisp.org>
51082
51083         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
51084         Update with info about Cygwin.
51085         * doc/functions/fprintf.texi: Update.
51086         * doc/functions/printf.texi: Update.
51087         * doc/functions/snprintf.texi: Update.
51088         * doc/functions/sprintf.texi: Update.
51089         * doc/functions/vfprintf.texi: Update.
51090         * doc/functions/vprintf.texi: Update.
51091         * doc/functions/vsnprintf.texi: Update.
51092         * doc/functions/vsprintf.texi: Update.
51093         Reported by Eric Blake.
51094
51095 2007-05-06  Bruno Haible  <bruno@clisp.org>
51096
51097         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
51098         padding ourselves for the floating-point directives.
51099         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
51100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
51101         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51102         gl_PRINTF_FLAG_ZERO and test its result. Invoke
51103         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
51104         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51105         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51108         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51111         * tests/test-snprintf-posix.h (test_function): Also check the width
51112         and some flags in the %f directive.
51113         * tests/test-sprintf-posix.h (test_function): Likewise.
51114         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51115         * tests/test-vasprintf-posix.c (test_function): Likewise.
51116         * doc/functions/fprintf.texi: Update.
51117         * doc/functions/printf.texi: Update.
51118         * doc/functions/snprintf.texi: Update.
51119         * doc/functions/sprintf.texi: Update.
51120         * doc/functions/vfprintf.texi: Update.
51121         * doc/functions/vprintf.texi: Update.
51122         * doc/functions/vsnprintf.texi: Update.
51123         * doc/functions/vsprintf.texi: Update.
51124
51125 2007-05-06  Bruno Haible  <bruno@clisp.org>
51126
51127         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
51128         pass the ' flag character to sprintf or snprintf.
51129         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
51130         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
51131         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51132         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
51133         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
51134         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51135         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51136         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51137         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51138         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51139         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51140         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51141         * tests/test-snprintf-posix.h (test_function): Also check the grouping
51142         flag.
51143         * tests/test-sprintf-posix.h (test_function): Likewise.
51144         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51145         * tests/test-vasprintf-posix.c (test_function): Likewise.
51146         * doc/functions/fprintf.texi: Update.
51147         * doc/functions/printf.texi: Update.
51148         * doc/functions/snprintf.texi: Update.
51149         * doc/functions/sprintf.texi: Update.
51150         * doc/functions/vfprintf.texi: Update.
51151         * doc/functions/vprintf.texi: Update.
51152         * doc/functions/vsnprintf.texi: Update.
51153         * doc/functions/vsprintf.texi: Update.
51154
51155 2007-05-01  Bruno Haible  <bruno@clisp.org>
51156
51157         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
51158
51159 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
51160
51161         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
51162         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
51163
51164 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51165
51166         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
51167         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
51168         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
51169
51170 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
51171
51172         * lib/argp-help.c (struct hol_entry): New member `ord'.
51173         (HOL_ENTRY_PTRCMP): Use ord for comparison
51174         (hol_sort): Initialize ord.
51175
51176 2007-05-01  Bruno Haible  <bruno@clisp.org>
51177
51178         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
51179         Reported by Eric Blake.
51180         * doc/gnulib.texi (Function Substitutes): Update.
51181
51182 2007-05-01  Bruno Haible  <bruno@clisp.org>
51183
51184         * doc/functions.texi: Remove file, now redundant through
51185         doc/functions/*.texi.
51186
51187 2007-05-01  Bruno Haible  <bruno@clisp.org>
51188
51189         * modules/argp (Depends-on): Add sleep.
51190
51191 2007-05-01  Bruno Haible  <bruno@clisp.org>
51192
51193         * modules/sleep-tests: New file.
51194         * tests/test-sleep.c: New file.
51195
51196         * modules/sleep: New file.
51197         * lib/sleep.c: New file.
51198         * m4/sleep.m4: New file.
51199         * lib/unistd_.h (sleep): New declaration.
51200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
51201         HAVE_SLEEP.
51202         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
51203         * doc/functions/sleep.texi: Document the sleep module.
51204
51205 2007-05-01  Bruno Haible  <bruno@clisp.org>
51206
51207         * lib/sigprocmask.h: Remove file.
51208         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
51209         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
51210         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
51211         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
51212         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51213         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
51214         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
51215         HAVE_SIGSET_T as a shell variable.
51216         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
51217         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
51218         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
51219         (Depends-on): Add signal. Remove verify.
51220         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
51221         (Include): Mention <signal.h> instead of sigprocmask.h.
51222         * NEWS: Mention the change.
51223         * lib/fatal-signal.c: Don't include sigprocmask.h.
51224
51225 2007-05-01  Bruno Haible  <bruno@clisp.org>
51226
51227         * modules/signal: New file.
51228         * lib/signal_.h: New file.
51229         * m4/signal_h.m4: New file.
51230
51231 2007-05-01  Bruno Haible  <bruno@clisp.org>
51232
51233         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
51234         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
51235         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
51236         HAVE_WCTYPE_CTMP_BUG into wctype.h.
51237
51238 2007-05-01  Bruno Haible  <bruno@clisp.org>
51239
51240         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
51241         configure time.
51242         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
51243         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
51244         * modules/sys_stat (Makefile.am): Substitute their values into
51245         sys/stat.h.
51246
51247 2007-05-01  Bruno Haible  <bruno@clisp.org>
51248
51249         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
51250         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
51251         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
51252
51253 2007-05-01  Bruno Haible  <bruno@clisp.org>
51254
51255         * doc/header/assert.texi: Undo last change: don't mention the gnulib
51256         'assert' module here.
51257
51258 2007-05-01  Bruno Haible  <bruno@clisp.org>
51259
51260         * doc/functions/*.texi: New files.
51261         * doc/functions/google-ranking.txt: New file.
51262         * doc/gnulib.texi (Function Substitutes): New chapter.
51263         (ctime, inet_ntoa): Remove sections.
51264         * doc/ctime.texi: Remove file.
51265         * doc/inet_ntoa.texi: Remove file.
51266         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
51267         dependencies.
51268         (%.info): New rule, specifying a --reference-limit.
51269
51270 2007-05-01  Bruno Haible  <bruno@clisp.org>
51271
51272         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
51273
51274 2007-05-01  Bruno Haible  <bruno@clisp.org>
51275
51276         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
51277         the portability of 'mkdir' to mingw systems.
51278
51279 2007-05-01  Bruno Haible  <bruno@clisp.org>
51280
51281         * doc/headers/google-ranking.txt: New file.
51282
51283 2007-04-30  Eric Blake  <ebb9@byu.net>
51284
51285         Prefer fseeko to fseek.
51286         * modules/getpass (Depends-on): Add fseeko.
51287         * lib/getpass.c (getpass): Use fseeko, not fseek.
51288
51289 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
51290
51291         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
51292         assumes the sorting is stable, while most qsort implementations
51293         are not.  Use argument addresses to ensure they never compare as
51294         equal.
51295
51296         * tests/test-argp-2.sh (usage-indent test): Fix output
51297         (func_compare): Restore diff options
51298         * tests/test-argp.c: Restore #include "progname.h"
51299
51300 2007-04-29  Bruno Haible  <bruno@clisp.org>
51301
51302         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
51303         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51304         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
51305         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51306         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
51307         (configure.ac): Define CHECK_SNPRINTF_POSIX.
51308         (TESTS, check_PROGRAMS): Add test-snprintf.
51309         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
51310         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
51311         (TESTS, check_PROGRAMS): Add test-vsnprintf.
51312         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
51313         assertions that fail on HP-UX, OSF/1, or IRIX.
51314         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
51315
51316 2007-04-29  Bruno Haible  <bruno@clisp.org>
51317
51318         * MODULES.html.sh (posix_functions): Remove 'contents'.
51319
51320 2007-04-29  Karl Berry  <karl@gnu.org>
51321
51322         * config/srclist.txt (gendocs_template_min): new entry.
51323
51324 2007-04-29  Bruno Haible  <bruno@clisp.org>
51325
51326         Work around fpurge bug on BSD systems.
51327         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
51328         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
51329         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
51330         fpurge to rpl_fpurge if the system already has this function.
51331         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
51332         the case where the system already has this function. Correct invariants
51333         on BSD systems.
51334         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
51335         BSD systems.
51336
51337 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51338
51339         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
51340         proposed by Sven Verdoolaege.
51341
51342         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
51343         options.
51344         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
51345         (usage and help tests): Update
51346
51347 2007-04-29  Bruno Haible  <bruno@clisp.org>
51348
51349         * tests/test-fflush.c (main): Use a file of size 17, not 10.
51350         Print more information in case of failure. Disable a test on BeOS.
51351
51352 2007-04-29  Bruno Haible  <bruno@clisp.org>
51353
51354         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
51355         This helps debugging on systems on which no gdb is available.
51356
51357 2007-04-29  Bruno Haible  <bruno@clisp.org>
51358
51359         * lib/freading.h: Improve comments.
51360         * lib/fwriting.h: Likewise.
51361         * tests/test-freading.c (main): Don't check freading immediately after
51362         repositioning. Needed for glibc.
51363
51364 2007-04-29  Bruno Haible  <bruno@clisp.org>
51365
51366         * lib/freading.c (freading): Trivial simplification.
51367
51368 2007-04-28  Bruno Haible  <bruno@clisp.org>
51369
51370         * tests/test-fwriting.c (main): Also test the interaction between
51371         fflush and fwriting.
51372         * modules/fwriting-tests (Depends-on): Add fflush.
51373
51374         * tests/test-freading.c (main): Also test the interaction between
51375         fflush and freading.
51376         * modules/freading-tests (Depends-on): Add fflush.
51377
51378 2007-04-28  Bruno Haible  <bruno@clisp.org>
51379
51380         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
51381         fseeko and ftello.
51382         Suggested by Eric Blake.
51383
51384 2007-04-28  Jim Meyering  <jim@meyering.net>
51385
51386         Avoid false-negative in gl_STDINT_H's C99 conformance test.
51387         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
51388         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
51389
51390 2007-04-27  Eric Blake  <ebb9@byu.net>
51391
51392         * doc/headers/assert.texi (assert.h): Document assert module use.
51393
51394 2007-04-27  Bruno Haible  <bruno@clisp.org>
51395
51396         * doc/headers/*.texi: New files.
51397         * doc/gnulib.texi (Header File Substitutes): New chapter.
51398         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
51399         dependencies.
51400         (standards.info ,standards.html, standards.dvi): Update dependencies.
51401         (mostlyclean, clean): New targets.
51402
51403 2007-04-27  Bruno Haible  <bruno@clisp.org>
51404
51405         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
51406         * modules/sysexits (Files, Makefile.am): Update.
51407
51408         * lib/sys_socket_.h: Renamed from lib/socket_.h.
51409         * modules/sys_socket (Files, Makefile.am): Update.
51410
51411         * lib/sys_stat_.h: Renamed from lib/stat_.h.
51412         * modules/sys_stat (Files, Makefile.am): Update.
51413
51414 2007-04-27  Eric Blake  <ebb9@byu.net>
51415
51416         * lib/freading.h: Improve comments.
51417         * lib/fwriting.h: Likewise.
51418         * lib/fflush.c: Likewise.
51419
51420         Fix closein for mingw.
51421         * modules/closein-tests: Add tests for closein.
51422         * tests/test-closein.c: New file.
51423         * tests/test-closein.sh: Likewise.
51424         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
51425         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
51426
51427 2007-04-27  Bruno Haible  <bruno@clisp.org>
51428
51429         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
51430         version is < 6.
51431         * lib/math_.h [__DECC]: Likewise.
51432         * lib/stdio_.h [__DECC]: Likewise.
51433         * lib/stdlib_.h [__DECC]: Likewise.
51434         * lib/string_.h [__DECC]: Likewise.
51435         * lib/time_.h [__DECC]: Likewise.
51436         * lib/wchar_.h [__DECC]: Likewise.
51437         * lib/wctype_.h [__DECC]: Likewise.
51438
51439 2007-04-27  Bruno Haible  <bruno@clisp.org>
51440
51441         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
51442
51443 2007-04-27  Bruno Haible  <bruno@clisp.org>
51444
51445         * lib/fflush.c: Add comments.
51446         * modules/fpurge-tests (Depends-on): Add fflush.
51447         * modules/freadable-tests (Depends-on): Likewise.
51448         * modules/fwritable-tests (Depends-on): Likewise.
51449
51450 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
51451
51452         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
51453         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
51454         Report by Bruno Haible <bruno@clisp.org>.
51455
51456 2007-04-26  Eric Blake  <ebb9@byu.net>
51457
51458         Fix fflush on mingw.
51459         * modules/fflush (Depends-on): Add freading.
51460         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
51461         but unread data.
51462
51463 2007-04-26  Eric Blake  <ebb9@byu.net>
51464         and Bruno Haible  <bruno@clisp.org>
51465
51466         Implement freading and fwriting.
51467         * lib/freading.c: New file.
51468         * lib/freading.h: Likewise.
51469         * m4/freading.m4: Likewise.
51470         * modules/freading: Likewise.
51471         * modules/freading-tests: Likewise.
51472         * tests/test-freading.c: Likewise.
51473         * lib/fwriting.c: New file.
51474         * lib/fwriting.h: Likewise.
51475         * m4/fwriting.m4: Likewise.
51476         * modules/fwriting: Likewise.
51477         * modules/fwriting-tests: Likewise.
51478         * tests/test-fwriting.c: Likewise.
51479         * MODULES.html.sh (File stream based Input/Output): Mention them.
51480
51481 2007-04-26  Bruno Haible  <bruno@clisp.org>
51482
51483         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
51484         'long' when we assume it.
51485         Suggested by Eric Blake.
51486
51487 2007-04-26  Bruno Haible  <bruno@clisp.org>
51488
51489         Ensure fseeko, ftello are declared on glibc systems.
51490         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
51491         * modules/fseeko (configure.ac-early): Likewise.
51492         * modules/ftello (configure.ac-early): Likewise.
51493         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
51494         AC_FUNC_FSEEKO for this.
51495         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
51496         (gl_CHECK_FSEEKO): Remove macro.
51497
51498 2007-04-26  Bruno Haible  <bruno@clisp.org>
51499
51500         * tests/test-fflush.c (main): Also check the ftell result after
51501         fflush and fseek/fseeko.
51502         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
51503         file descriptor position cache in the stream.
51504         * lib/fseeko.c (rpl_fseeko): Likewise.
51505
51506 2007-04-26  Bruno Haible  <bruno@clisp.org>
51507
51508         * modules/fflush-tests (Depends-on): Add fseeko.
51509
51510 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
51511             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51512
51513         * lib/argz_.h: ensure error_t definition is obtained in same
51514         mechanism system argz.h would have.
51515         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
51516         argz facilities are known bad.  Err on the side of caution if
51517         cross-compiling.
51518
51519 2007-04-25  Eric Blake  <ebb9@byu.net>
51520
51521         * lib/fpurge.c (includes): Use stdlib.h for free.
51522         * tests/test-fflush.c (main): Also test fflush-fseeko.
51523
51524 2007-04-25  Bruno Haible  <bruno@clisp.org>
51525
51526         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
51527         * lib/fseeko.c: New file.
51528         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
51529         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
51530         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
51531         gl_FUNC_FSEEKO.
51532         (gl_FUNC_FSEEKO): Invoke it.
51533         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
51534         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
51535         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
51536
51537 2007-04-25  Bruno Haible  <bruno@clisp.org>
51538
51539         * modules/fflush (Depends-on): Add ftello.
51540
51541 2007-04-25  Bruno Haible  <bruno@clisp.org>
51542
51543         * modules/ftello-tests: New file.
51544         * tests/test-ftello.c: New file.
51545
51546         * modules/ftello: New file.
51547         * m4/ftello.m4: New file.
51548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
51549         HAVE_FTELLO.
51550         * lib/stdio_.h (ftello): New declaration.
51551         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
51552         HAVE_FTELLO.
51553
51554 2007-04-25  Bruno Haible  <bruno@clisp.org>
51555
51556         * modules/fseeko-tests: New file.
51557         * tests/test-fseeko.c: New file.
51558
51559         * modules/fseeko: New file.
51560         * m4/fseeko.m4: New file.
51561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
51562         HAVE_FSEEKO.
51563         * lib/stdio_.h (fseeko): New declaration.
51564         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
51565         HAVE_FSEEKO.
51566
51567 2007-04-25  Bruno Haible  <bruno@clisp.org>
51568
51569         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
51570
51571 2007-04-25  Bruno Haible  <bruno@clisp.org>
51572
51573         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
51574         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
51575         * tests/test-unistd.c: Likewise.
51576         * tests/test-fcntl.c: Likewise.
51577
51578 2007-04-23  Eric Blake  <ebb9@byu.net>
51579
51580         * lib/fflush.c: Fix missing include.
51581         Reported by Bruno Haible.
51582
51583 2007-04-23  Bruno Haible  <bruno@clisp.org>
51584
51585         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
51586         Reported by Eric Blake.
51587
51588 2007-04-23  Bruno Haible  <bruno@clisp.org>
51589
51590         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
51591
51592 2007-04-23  Bruno Haible  <bruno@clisp.org>
51593
51594         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
51595
51596 2007-04-23  Bruno Haible  <bruno@clisp.org>
51597
51598         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
51599         Needed on HP-UX 11.
51600
51601 2007-04-16  Eric Blake  <ebb9@byu.net>
51602
51603         Make fflush rely on fpurge.
51604         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
51605         open coding all variants.
51606         * modules/fflush (Depends-on): Add fpurge and unistd.
51607         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
51608         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
51609
51610         Fix --with-tests compilation on cygwin.
51611         * modules/argmatch-tests (Makefile.am): List gnulib library first
51612         in LDADD.
51613         * modules/argp-tests (Makefile.am): Likewise.
51614         * modules/array-list-tests (Makefile.am): Likewise.
51615         * modules/array-oset-tests (Makefile.am): Likewise.
51616         * modules/avltree-list-tests (Makefile.am): Likewise.
51617         * modules/avltree-oset-tests (Makefile.am): Likewise.
51618         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51619         * modules/carray-list-tests (Makefile.am): Likewise.
51620         * modules/dirname-tests (Makefile.am): Likewise.
51621         * modules/frexp-tests (Makefile.am): Likewise.
51622         * modules/isnanl-tests (Makefile.am): Likewise.
51623         * modules/linked-list-tests (Makefile.am): Likewise.
51624         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51625         * modules/lock-tests (Makefile.am): Likewise.
51626         * modules/rbtree-list-tests (Makefile.am): Likewise.
51627         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51628         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51629         * modules/tls-tests (Makefile.am): Likewise.
51630         * modules/tsearch-tests (Makefile.am): Likewise.
51631         * modules/xvasprintf-tests (Makefile.am): Likewise.
51632
51633         Fix fpurge for cygwin.
51634         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
51635         value.
51636         * modules/fpurge-tests (Depends-on): Clean up trash.
51637
51638 2007-04-16  Simon Josefsson  <simon@josefsson.org>
51639
51640         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
51641
51642         * m4/autobuild.m4: Re-indent.
51643
51644 2007-04-13  Bruno Haible  <bruno@clisp.org>
51645
51646         * modules/fpurge-tests: New file.
51647         * tests/test-fpurge.c: New file.
51648
51649         * modules/fpurge: New file.
51650         * lib/fpurge.h: New file.
51651         * lib/fpurge.c: New file.
51652         * m4/fpurge.m4: New file.
51653
51654 2007-04-13  Bruno Haible  <bruno@clisp.org>
51655
51656         * modules/fbufmode-tests: New file.
51657         * tests/test-fbufmode.c: New file.
51658
51659         * modules/fbufmode: New file.
51660         * lib/fbufmode.h: New file.
51661         * lib/fbufmode.c: New file.
51662         * m4/fbufmode.m4: New file.
51663
51664 2007-04-13  Bruno Haible  <bruno@clisp.org>
51665
51666         * modules/fwritable-tests: New file.
51667         * tests/test-fwritable.c: New file.
51668
51669         * modules/fwritable: New file.
51670         * lib/fwritable.h: New file.
51671         * lib/fwritable.c: New file.
51672         * m4/fwritable.m4: New file.
51673
51674 2007-04-13  Bruno Haible  <bruno@clisp.org>
51675
51676         * modules/freadable-tests: New file.
51677         * tests/test-freadable.c: New file.
51678
51679         * modules/freadable: New file.
51680         * lib/freadable.h: New file.
51681         * lib/freadable.c: New file.
51682         * m4/freadable.m4: New file.
51683
51684 2007-04-13  Bruno Haible  <bruno@clisp.org>
51685
51686         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51687         MOSTLYCLEANFILES.
51688
51689 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51690
51691         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51692         gzip bootstrap.conf to avoid dragging in i18n machinery.
51693         (gnulib_tool_option): Use it.
51694
51695 2007-04-13  Bruno Haible  <bruno@clisp.org>
51696
51697         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51698         %F directives.
51699         * tests/test-vasprintf-posix.c (test_function): Likewise.
51700         * tests/test-snprintf-posix.h (test_function): Likewise.
51701         * tests/test-sprintf-posix.h (test_function): Likewise.
51702         * tests/test-fprintf-posix.h (test_function): Likewise.
51703         * tests/test-printf-posix.h (test_function): Likewise.
51704         * tests/test-fprintf-posix.out: Likewise.
51705
51706 2007-04-13  Bruno Haible  <bruno@clisp.org>
51707
51708         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51709         * modules/tls-tests (configure.ac): Likewise.
51710         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51711
51712 2007-04-13  Bruno Haible  <bruno@clisp.org>
51713
51714         * lib/tls.c (glthread_tls_get): Fix return type.
51715         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51716
51717 2007-04-12  Eric Blake  <ebb9@byu.net>
51718
51719         * modules/gettime (Depends-on): Remove gettime.
51720         Reported by Dmitry V. Levin.
51721
51722 2007-04-12  Bruno Haible  <bruno@clisp.org>
51723
51724         * modules/fflush (Include): Mention <stdio.h>.
51725         * modules/strtoimax (Include): Mention <inttypes.h>.
51726         * modules/strtoumax (Include): Likewise.
51727
51728 2007-04-12  Eric Blake  <ebb9@byu.net>
51729
51730         * .cvsignore: New file.
51731         * .gitignore: Likewise.
51732
51733 2007-04-12  Bruno Haible  <bruno@clisp.org>
51734
51735         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51736         not before, since $(LDADD) often contains libgnu.a.
51737         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51738         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51739         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51740         Needed on Cygwin.
51741
51742 2007-04-12  Eric Blake  <ebb9@byu.net>
51743
51744         Work around glibc's failure to flush stdin on fclose.
51745         * lib/closein.c (close_stdin): Flush stdin before closing.
51746
51747         Work around glibc's failure to reset seekable stdin on exit.
51748         * modules/closein: New module.
51749         * lib/closein.c: New file.
51750         * lib/closein.h: Likewise.
51751         * m4/closein.m4: Likewise.
51752         * MODULES.html.sh (File stream based Input/Output): Document it.
51753
51754 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51755
51756         * gnulib-tool: Rename generated 'autobuild' script to
51757         'do-autobuild' in --create-megatestdir output.
51758
51759         * doc/gnulib.texi (Build robot for gnulib): Fix.
51760
51761 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51762
51763         * modules/sysexits (Depends-on): Add absolute-header.
51764
51765 2007-04-12  Eric Blake  <ebb9@byu.net>
51766
51767         No need to preserve errno on success.
51768         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51769         Reported by Bruno Haible.
51770
51771 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51772
51773         * MODULES.html.sh (Support for maintaining and releasing
51774         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51775
51776 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51777
51778         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51779
51780 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51781
51782         * modules/autobuild: New module.
51783
51784         * m4/autobuild.m4: New file.
51785
51786 2007-04-11  Bruno Haible  <bruno@clisp.org>
51787
51788         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51789         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51790         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51792         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51793         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51794         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51795         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51796         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51797         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51798         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51799         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51800         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51801         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51802         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51803         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51804         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51805         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51806         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51807         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51808         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51809         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51810         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51811         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51812         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51813         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51814         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51815         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51816         Reported by Eric Blake.
51817
51818 2007-04-11  Bruno Haible  <bruno@clisp.org>
51819
51820         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51821
51822 2007-04-10  Bruno Haible  <bruno@clisp.org>
51823
51824         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51825         for NaN and Infinity. Needed on FreeBSD 6.1.
51826         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51827         regarding results for "%010a" of Infinity and NaN.
51828         * tests/test-vasprintf-posix.c (test_function): Likewise.
51829         * tests/test-snprintf-posix.h (test_function): Likewise.
51830         * tests/test-sprintf-posix.h (test_function): Likewise.
51831         * tests/test-fprintf-posix.h (test_function): Likewise.
51832         * tests/test-printf-posix.h (test_function): Likewise.
51833         * tests/test-fprintf-posix.out: Likewise.
51834
51835 2007-04-10  Bruno Haible  <bruno@clisp.org>
51836
51837         * modules/locale-tests: New file.
51838         * tests/test-locale.c: New file.
51839
51840         * modules/locale: New file.
51841         * lib/locale_.h: New file.
51842         * m4/locale_h.m4: New file.
51843
51844 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51845             Bruno Haible  <bruno@clisp.org>
51846
51847         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51848         be determined, test for availability of the copysignf, copysign,
51849         copysignl functions.
51850         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51851         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51852         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51853
51854 2007-04-09  Eric Blake  <ebb9@byu.net>
51855
51856         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51857         * modules/stdio (Makefile.am): Support fflush.
51858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51859         * modules/fflush: New file.
51860         * lib/fflush.c: Likewise.
51861         * m4/fflush.m4: Likewise.
51862         * modules/fflush-tests: New test.
51863         * tests/test-fflush.c: Likewise.
51864         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51865
51866 2007-04-06  Bruno Haible  <bruno@clisp.org>
51867
51868         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51869         (VASNPRINTF): Use signbit for faster determination whether to print a
51870         minus sign.
51871         * modules/vasnprintf (Files): Remove lib/float+.h.
51872         * modules/fprintf-posix (Depends-on): Add signbit.
51873         * modules/snprintf-posix (Depends-on): Likewise.
51874         * modules/sprintf-posix (Depends-on): Likewise.
51875         * modules/vasnprintf-posix (Depends-on): Likewise.
51876         * modules/vasprintf-posix (Depends-on): Likewise.
51877         * modules/vfprintf-posix (Depends-on): Likewise.
51878         * modules/vsnprintf-posix (Depends-on): Likewise.
51879         * modules/vsprintf-posix (Depends-on): Likewise.
51880
51881 2007-04-06  Bruno Haible  <bruno@clisp.org>
51882
51883         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51884         * tests/test-frexpl.c (main): Likewise.
51885         * tests/test-ldexpl.c (main): Likewise.
51886         * modules/frexp-tests (Depends-on): Add signbit.
51887         * modules/frexpl-tests (Depdends-on): Likewise.
51888         * modules/ldexpl-tests (Depdends-on): Likewise.
51889
51890 2007-04-06  Bruno Haible  <bruno@clisp.org>
51891
51892         * modules/signbit-tests: New file.
51893         * tests/test-signbit.c: New file.
51894
51895         * modules/signbit: New file.
51896         * lib/signbitf.c: New file.
51897         * lib/signbitd.c: New file.
51898         * lib/signbitl.c: New file.
51899         * m4/signbit.m4: New file.
51900         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51901         (signbit): New macro.
51902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51903         REPLACE_SIGNBIT.
51904         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51905         REPLACE_FREXPL into math.h.
51906
51907 2007-04-06  Bruno Haible  <bruno@clisp.org>
51908
51909         * modules/isnanf-nolibm-tests: New file.
51910         * tests/test-isnanf.c: New file.
51911
51912         * modules/isnanf-nolibm: New file.
51913         * lib/isnanf.h: New file.
51914         * lib/isnanf.c: New file.
51915         * lib/isnan.c: Consider the USE_FLOAT macro.
51916         * m4/isnanf.m4: New file.
51917
51918 2007-04-06  Bruno Haible  <bruno@clisp.org>
51919
51920         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51921         (Link): New section.
51922
51923         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51924
51925 2007-04-06  Bruno Haible  <bruno@clisp.org>
51926
51927         Assume the 'long double' type.
51928         * m4/longdouble.m4: Remove file.
51929         * config/srclist.txt: Don't mention longdouble.m4.
51930         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51931         * lib/float+.h: Likewise.
51932         * lib/frexp.c: Likewise.
51933         * lib/printf-args.h: Likewise.
51934         * lib/printf-args.c: Likewise.
51935         * lib/printf-frexp.c: Likewise.
51936         * lib/printf-parse.c: Likewise.
51937         * lib/vasnprintf.c: Likewise.
51938         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51939         * m4/intl.m4: Likewise.
51940         * m4/isnanl.m4: Likewise.
51941         * m4/printf.m4: Likewise.
51942         * m4/printf-frexpl.m4: Likewise.
51943         * m4/vasnprintf.m4: Likewise.
51944         * modules/allocsa (Files): Remove m4/longdouble.m4.
51945         * modules/gettext (Files): Likewise.
51946         * modules/relocatable-prog-wrapper (Files): Likewise.
51947         * modules/vasnprintf (Files): Likewise.
51948         * modules/isnanl (Files): Likewise.
51949         (Include): Simplify.
51950         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51951         (Include): Simplify.
51952         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51953         (Include): Simplify.
51954         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51955         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51956         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51957         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51958         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51959         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51960         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51961         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51962         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51963         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51964         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51965         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51966         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51967         * tests/test-isnanl.c: Likewise.
51968         * tests/test-snprintf-posix.h: Likewise.
51969         * tests/test-sprintf-posix.h: Likewise.
51970         * tests/test-vasnprintf-posix.c: Likewise.
51971         * tests/test-vasnprintf-posix2.c: Likewise.
51972         * tests/test-vasprintf-posix.c: Likewise.
51973
51974 2007-04-06  Bruno Haible  <bruno@clisp.org>
51975
51976         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51977         * lib/math_.h [__DECC]: Include the overridden include file through
51978         #include_next, outside the double-inclusion guard.
51979         * lib/stdio_.h [__DECC]: Likewise.
51980         * lib/stdlib_.h [__DECC]: Likewise.
51981         * lib/string_.h [__DECC]: Likewise.
51982         * lib/time_.h [__DECC]: Likewise.
51983         * lib/wchar_.h [__DECC]: Likewise.
51984         * lib/wctype_.h [__DECC]: Likewise.
51985         * lib/inttypes_.h [__DECC]: Likewise.
51986         Reported by Albert Chin <china@thewrittenword.com> in
51987         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51988
51989 2007-04-04  Eric Blake  <ebb9@byu.net>
51990
51991         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51992         1.5.x.
51993
51994 2007-04-04  Bruno Haible  <bruno@clisp.org>
51995
51996         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51997         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51998
51999 2007-04-04  Bruno Haible  <bruno@clisp.org>
52000
52001         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
52002         results for "%010a" of Infinity and NaN.
52003         * tests/test-vasprintf-posix.c (test_function): Likewise.
52004         * tests/test-snprintf-posix.h (test_function): Likewise.
52005         * tests/test-sprintf-posix.h (test_function): Likewise.
52006         * tests/test-fprintf-posix.h (test_function): Remove these tests.
52007         * tests/test-printf-posix.h (test_function): Likewise.
52008         * tests/test-fprintf-posix.out: Update.
52009         Needed for FreeBSD 6.1.
52010
52011 2007-04-04  Bruno Haible  <bruno@clisp.org>
52012
52013         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
52014         directly used by the gnulib modules nor by gnulib-tool.
52015
52016 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52017
52018         * DEPENDENCIES: Give overall description of version dependency
52019         desirability.  Use more-typical names for apps.
52020         Add shell, coreutils, diffutils, grep, tar, gzip.
52021
52022 2007-04-04  Simon Josefsson  <simon@josefsson.org>
52023
52024         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
52025
52026 2007-04-04  Karl Berry  <karl@gnu.org>
52027
52028         * MODULES.html.sh (func_module): missing '.
52029
52030 2007-04-03  Bruno Haible  <bruno@clisp.org>
52031
52032         * modules/argmatch-tests (Makefile.am): New variable
52033         test_argmatch_LDADD.
52034         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
52035         * modules/array-list-tests (Makefile.am): New variable
52036         test_array_list_LDADD.
52037         * modules/array-oset-tests (Makefile.am): New variable
52038         test_array_oset_LDADD.
52039         * modules/avltree-list-tests (Makefile.am): New variable
52040         test_avltree_list_LDADD.
52041         * modules/avltree-oset-tests (Makefile.am): New variable
52042         test_avltree_oset_LDADD.
52043         * modules/avltreehash-list-tests (Makefile.am): New variable
52044         test_avltreehash_list_LDADD.
52045         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
52046         test_canonicalize_lgpl_LDADD.
52047         * modules/carray-list-tests (Makefile.am): New variable
52048         test_carray_list_LDADD.
52049         * modules/dirname-tests (Makefile.am): New variable
52050         test_dirname_LDADD.
52051         * modules/linked-list-tests (Makefile.am): New variable
52052         test_linked_list_LDADD.
52053         * modules/linkedhash-list-tests (Makefile.am): New variable
52054         test_linkedhash_list_LDADD.
52055         * modules/rbtree-list-tests (Makefile.am): New variable
52056         test_rbtree_list_LDADD.
52057         * modules/rbtree-oset-tests (Makefile.am): New variable
52058         test_rbtree_oset_LDADD.
52059         * modules/rbtreehash-list-tests (Makefile.am): New variable
52060         test_rbtreehash_list_LDADD.
52061         * modules/xvasprintf-tests (Makefile.am): New variable
52062         test_xvasprintf_LDADD.
52063         Reported by Eric Blake.
52064
52065 2007-04-03  Eric Blake  <ebb9@byu.net>
52066
52067         * DEPENDENCIES: Weaken m4 requirements.
52068
52069 2007-04-03  Bruno Haible  <bruno@clisp.org>
52070
52071         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
52072         * modules/isnanl-tests (configure.ac): Likewise.
52073
52074 2007-04-03  Ben Pfaff  <blp@gnu.org>
52075
52076         * modules/iconv_open: Add $(srcdir)/ to source directory
52077         references in Makefile fragments that call gperf, to fix VPATH
52078         builds.
52079
52080 2007-04-03  Bruno Haible  <bruno@clisp.org>
52081
52082         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
52083         * lib/ldexpl.c: Undo last change.
52084
52085 2007-04-03  Bruno Haible  <bruno@clisp.org>
52086
52087         * modules/printf-frexpl (Depends-on): Undo last change.
52088         (Files): Add m4/ldexpl.m4.
52089
52090 2007-04-03  Bruno Haible  <bruno@clisp.org>
52091
52092         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
52093         * modules/isnanl (Link): New section.
52094
52095         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
52096         * modules/frexp (Link): New section.
52097
52098         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
52099         * modules/frexpl (Link): New section.
52100
52101         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
52102         * modules/ldexpl (Link): New section.
52103
52104 2007-04-03  Bruno Haible  <bruno@clisp.org>
52105
52106         * modules/TEMPLATE-EXTENDED: New file.
52107         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
52108
52109 2007-04-03  Bruno Haible  <bruno@clisp.org>
52110
52111         * DEPENDENCIES: New file.
52112         Suggested by Simon Josefsson.
52113
52114 2007-04-03  Bruno Haible  <bruno@clisp.org>
52115
52116         * doc/gnulib.texi: Escape @.
52117
52118 2007-04-03  James Youngman  <jay@gnu.org>
52119         and Paul Eggert  <eggert@cs.ucla.edu>
52120
52121         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
52122         birthtime on all systems that have birthtime, not just those which
52123         use st_birthtimensec rather than st_birthtim.  Putting zero in
52124         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
52125         that the birth time is not available for files on an NFS mount.
52126
52127 2007-04-03  Simon Josefsson  <simon@josefsson.org>
52128
52129         * modules/memxor: Move back from crypto/, suggested by Bruno.
52130         * modules/crypto/hmac-sha1: Fix memxor dependency.
52131
52132         * modules/crypto/gc: Moved from ../.
52133
52134 2007-04-02  Eric Blake  <ebb9@byu.net>
52135
52136         * lib/ldexpl.c (includes): Avoid libm.
52137
52138         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
52139
52140 2007-04-02  Bruno Haible  <bruno@clisp.org>
52141
52142         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
52143         on IRIX.
52144
52145 2007-04-02  Bruno Haible  <bruno@clisp.org>
52146
52147         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
52148         x86 or x86_64 platforms running MacOS X.
52149         Reported by Ryan Schmidt <@ryandesign.com>.
52150
52151 2007-04-02  Bruno Haible  <bruno@clisp.org>
52152
52153         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
52154         i386.
52155
52156 2007-04-01  Simon Josefsson  <simon@josefsson.org>
52157
52158         * modules/crypto/arcfour: Moved from ../.
52159         * modules/crypto/arcfour-tests: Moved from ../.
52160         * modules/crypto/arctwo: Moved from ../.
52161         * modules/crypto/arctwo-tests: Moved from ../.
52162         * modules/crypto/des: Moved from ../.
52163         * modules/crypto/des-tests: Moved from ../.
52164         * modules/crypto/gc-arcfour: Moved from ../.
52165         * modules/crypto/gc-arcfour-tests: Moved from ../.
52166         * modules/crypto/gc-arctwo: Moved from ../.
52167         * modules/crypto/gc-arctwo-tests: Moved from ../.
52168         * modules/crypto/gc-des: Moved from ../.
52169         * modules/crypto/gc-des-tests: Moved from ../.
52170         * modules/crypto/gc-hmac-md5: Moved from ../.
52171         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
52172         * modules/crypto/gc-hmac-sha1: Moved from ../.
52173         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
52174         * modules/crypto/gc-md2: Moved from ../.
52175         * modules/crypto/gc-md2-tests: Moved from ../.
52176         * modules/crypto/gc-md4: Moved from ../.
52177         * modules/crypto/gc-md4-tests: Moved from ../.
52178         * modules/crypto/gc-md5: Moved from ../.
52179         * modules/crypto/gc-md5-tests: Moved from ../.
52180         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
52181         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
52182         * modules/crypto/gc-random: Moved from ../.
52183         * modules/crypto/gc-rijndael: Moved from ../.
52184         * modules/crypto/gc-rijndael-tests: Moved from ../.
52185         * modules/crypto/gc-sha1: Moved from ../.
52186         * modules/crypto/gc-sha1-tests: Moved from ../.
52187         * modules/crypto/gc-tests: Moved from ../.
52188         * modules/crypto/hmac-md5: Moved from ../.
52189         * modules/crypto/hmac-md5-tests: Moved from ../.
52190         * modules/crypto/hmac-sha1: Moved from ../.
52191         * modules/crypto/hmac-sha1-tests: Moved from ../.
52192         * modules/crypto/md2: Moved from ../.
52193         * modules/crypto/md2-tests: Moved from ../.
52194         * modules/crypto/md4: Moved from ../.
52195         * modules/crypto/md4-tests: Moved from ../.
52196         * modules/crypto/md5: Moved from ../.
52197         * modules/crypto/md5-tests: Moved from ../.
52198         * modules/crypto/memxor: Moved from ../.
52199         * modules/crypto/rijndael: Moved from ../.
52200         * modules/crypto/rijndael-tests: Moved from ../.
52201         * modules/crypto/sha1: Moved from ../.
52202
52203 2007-03-30  James Youngman  <jay@gnu.org>
52204
52205         * tests/test-stat-time.c (prepare_test): use chmod() rather than
52206         rename() to change the ctime of a file (because ctime is unaffected
52207         by rename on jfs2 on AIX 5.1).
52208         (main): Start by doing cleanup, in case a previous run failed leaving
52209         test files behind.
52210
52211 2007-03-31  Bruno Haible  <bruno@clisp.org>
52212
52213         Support old proprietary implementations of iconv.
52214         * modules/iconv_open: New file.
52215         * lib/iconv_.h: New file.
52216         * m4/iconv_h.m4: New file.
52217         * lib/iconv_open.c: New file.
52218         * lib/iconv_open-aix.gperf: New file.
52219         * lib/iconv_open-hpux.gperf: New file.
52220         * lib/iconv_open-irix.gperf: New file.
52221         * lib/iconv_open-osf.gperf: New file.
52222         * m4/iconv_open.m4: New file.
52223         * modules/linebreak (Depends-on): Add iconv_open.
52224         * modules/striconv (Depends-on): Likewise.
52225         * modules/striconveh (Depends-on): Likewise.
52226         * modules/unicodeio (Depends-on): Likewise.
52227         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
52228         (iconv_t)(-1).
52229         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
52230         conversion if cd is (iconv_t)(-1).
52231         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
52232         is not possible.
52233
52234 2007-03-31  Bruno Haible  <bruno@clisp.org>
52235
52236         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52237         work on Solaris either. Protect also second use of "autodetect_jp".
52238
52239 2007-03-31  Bruno Haible  <bruno@clisp.org>
52240
52241         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
52242         the function is not present.
52243
52244 2007-03-31  Bruno Haible  <bruno@clisp.org>
52245
52246         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
52247         the function is not present.
52248
52249 2007-03-31  Bruno Haible  <bruno@clisp.org>
52250
52251         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
52252         a bug in HP-UX iconv_open().
52253
52254 2007-03-31  Bruno Haible  <bruno@clisp.org>
52255
52256         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
52257         (Mathematics <math.h>): New section, add fpieee.
52258         (Input/output <stdio.h>): Add fseterr.
52259         (Mathematics <math.h>): New section, add printf-frexp.
52260         (Container data structures): Add sublist.
52261         (Core language properties): Add fpucw, inline.
52262         (Functions for greatest-width integer types <inttypes.h>): Add
52263         imaxabs, imaxdiv, inttypes.
52264         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
52265         isnanl-nolibm, ldexp.
52266         (Mathematics <math.h>): New section, add printf-frexpl.
52267         (Support for systems lacking POSIX:2001): Add fprintf-posix,
52268         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
52269         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
52270         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
52271         (Unicode string functions): Add unistr/u*-mbtoucr.
52272         (Java): Add javacomp-script, javaexec-script.
52273         (C#): Add csharpcomp-script, csharpexec-script.
52274         (Support for building libraries and executables): Add havelib,
52275         relocatable-*.
52276         (Support for maintaining and releasing projects): Renamed from
52277         'Support for maintaining and release projects'. Add announce-gen.
52278
52279 2007-03-31  Bruno Haible  <bruno@clisp.org>
52280
52281         * README: Talk primarily about git.
52282         (git and CVS): Renamed from CVS.
52283         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
52284         gnulib is available through git.
52285         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
52286
52287 2007-03-30  Bruno Haible  <bruno@clisp.org>
52288
52289         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
52290         * lib/poll_.h: Likewise.
52291         * lib/stat_.h: Likewise.
52292         * lib/sys_time_.h: Likewise.
52293         * lib/sysexit_.h: Likewise.
52294         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
52295         * lib/stdbool_.h: Likewise.
52296         * lib/byteswap_.h: Add double-inclusion guard.
52297
52298 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
52299
52300         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
52301
52302 2007-03-30  Karl Berry  <karl@gnu.org>
52303
52304         * config/srclist-update: double space after USA in the license
52305         substitution, since that's how it's usually (?) written.
52306
52307 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52308
52309         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
52310         reported by Bruno Haible.
52311
52312 2007-03-29  Bruno Haible  <bruno@clisp.org>
52313
52314         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
52315         a bug in AIX iconv().
52316
52317 2007-03-29  Bruno Haible  <bruno@clisp.org>
52318
52319         * modules/ldexpl-tests: New file.
52320         * tests/test-ldexpl.c: New file.
52321
52322 2007-03-29  Bruno Haible  <bruno@clisp.org>
52323
52324         * lib/ldexpl.c: Include fpucw.h.
52325         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
52326         multiplication.
52327         * modules/ldexpl (Depends-on): Add fpucw.
52328
52329 2007-03-29  Bruno Haible  <bruno@clisp.org>
52330
52331         * modules/ldexpl: New file.
52332         * m4/ldexpl.m4: New file.
52333         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
52334         set.
52335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
52336         REPLACE_LDEXPL.
52337         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
52338         REPLACE_LDEXPL.
52339         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52340         gl_FUNC_LDEXPL_WORKS.
52341         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
52342         * modules/mathl (Files): Remove lib/ldexpl.c.
52343         (Depends-on): Add ldexpl.
52344
52345 2007-03-29  Bruno Haible  <bruno@clisp.org>
52346
52347         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
52348
52349 2007-03-29  Bruno Haible  <bruno@clisp.org>
52350
52351         * tests/test-striconveh.c (main): Don't assume that a direct conversion
52352         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
52353         and possibly also HP-UX.
52354         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52355         work on AIX, IRIX, HP-UX, OSF/1.
52356         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
52357         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
52358         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
52359         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
52360         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
52361         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
52362
52363 2007-03-29  Bruno Haible  <bruno@clisp.org>
52364
52365         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
52366
52367 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52368
52369         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
52370         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
52371
52372 2007-03-29  Eric Blake  <ebb9@byu.net>
52373
52374         * lib/acl-internal.h: Remove redundant include.
52375         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
52376         Cygwin when a file is locked.
52377
52378 2007-03-29  Bruno Haible  <bruno@clisp.org>
52379
52380         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
52381         file.
52382         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
52383
52384 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52385
52386         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
52387         try to remove a parent directory if the child couldn't be removed
52388         (except for the first rmdir, which could fail because the child
52389         doesn't exist).  Problem reported by Jeff Blaine in
52390         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
52391
52392 2007-03-28  Bruno Haible  <bruno@clisp.org>
52393
52394         * lib/striconveh.c (utf8conv_carefully): New function.
52395         (mem_cd_iconveh_internal): Invoke it.
52396
52397 2007-03-28  Bruno Haible  <bruno@clisp.org>
52398
52399         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
52400         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
52401         input.
52402         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
52403         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
52404         unistr/u8-uctomb.
52405
52406 2007-03-28  Bruno Haible  <bruno@clisp.org>
52407
52408         * modules/unistr/u8-mbtoucr: New file.
52409         * lib/unistr/u8-mbtoucr.c: New file.
52410         * modules/unistr/u16-mbtoucr: New file.
52411         * lib/unistr/u16-mbtoucr.c: New file.
52412         * modules/unistr/u16-mbtoucr: New file.
52413         * lib/unistr/u16-mbtoucr.c: New file.
52414         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
52415
52416 2007-03-27  Simon Josefsson  <simon@josefsson.org>
52417             Bruno Haible  <bruno@clisp.org>
52418
52419         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
52420         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
52421         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
52422
52423         * m4/stdio_h.m4: Add stubs for vasprintf too.
52424
52425         * modules/stdio: Support vasprintf in sed command.
52426
52427         * modules/vasprintf: Depend on stdio for prototypes.  Remove
52428         vasprintf.h.  Add stdio module indicator.
52429
52430         * lib/stdio_.h: Declare asprintf and vasprintf, based on
52431         vasprintf.h.
52432
52433         * lib/vasprintf.h: File removed.
52434
52435         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
52436         * lib/vasprintf.c: Ditto.
52437         * lib/xvasprintf.c: Ditto.
52438         * tests/test-vasprintf-posix.c: Ditto.
52439         * tests/test-vasprintf.c: Ditto.
52440
52441 2007-03-27  Bruno Haible  <bruno@clisp.org>
52442
52443         Make vasnprintf multithread-safe.
52444         * lib/vasnprintf.c (decimal_point_char): New function.
52445         (VASNPRINTF): Use it.
52446         Suggested by Simon Josefsson.
52447
52448 2007-03-27  Eric Blake  <ebb9@byu.net>
52449
52450         Support sub-second birthtime on cygwin.
52451         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
52452         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
52453         (get_stat_birthtime): Also work with st_birthtim.
52454
52455 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
52456
52457         * lib/stat-time.h (USE_BIRTHTIME): Remove.
52458         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
52459         (get_stat_birthtime_ns): Do not try to use "spare" fields.
52460         (get_stat_birthtime_ns): Simplify compile-time tests.
52461         (get_stat_birthtime): Change the API to look like
52462         get_stat_mtime etc., except return a negative tv_nsec on error.
52463         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
52464         Don't check for "spare" fields.
52465         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
52466         or for struct stat.st_birthtime, as these tests aren't used.
52467         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
52468
52469 2007-03-27  Bruno Haible  <bruno@clisp.org>
52470
52471         * lib/stat-time.h: Include <sys/stat.h>.
52472
52473 2007-03-27  James Youngman  <jay@gnu.org>
52474
52475         * lib/stat-time.h (get_stat_birthtime): New function for
52476           retrieving st_birthtime as provided by UFS2 (hence *BSD).
52477         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
52478           and its variants.
52479         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
52480         * modules/stat-time-test: New file.
52481         * tests/test-stat-time.c: New test, devised by Bruno Haible.
52482
52483 2007-03-26  Bruno Haible  <bruno@clisp.org>
52484
52485         Better support of signalling NaNs.
52486         * lib/atanl.c: Include isnanl.h.
52487         (atanl): Perform test for NaN at the beginning of the function and
52488         through a call to isnanl.
52489         * lib/cosl.c: Include isnanl.h.
52490         (cosl): Perform test for NaN at the beginning of the function and
52491         through a call to isnanl.
52492         * lib/ldexpl.c: Include isnanl.h.
52493         (ldexpl): Perform test for NaN through a call to isnanl.
52494         * lib/logl.c: Include isnanl.h.
52495         (logl): Perform test for NaN at the beginning of the function and
52496         through a call to isnanl.
52497         * lib/sinl.c: Include isnanl.h.
52498         (sinl): Perform test for NaN at the beginning of the function and
52499         through a call to isnanl.
52500         * lib/sqrtl.c: Include isnanl.h.
52501         (sqrtl): Perform test for NaN at the beginning of the function and
52502         through a call to isnanl.
52503         * lib/tanl.c: Include isnanl.h.
52504         (tanl): Perform test for NaN at the beginning of the function and
52505         through a call to isnanl.
52506         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
52507         * modules/mathl (Depends-on): Add isnanl.
52508
52509 2007-03-26  Eric Blake  <ebb9@byu.net>
52510
52511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
52512         regression in logic sense of previous patch.
52513
52514 2007-03-26  Bruno Haible  <bruno@clisp.org>
52515
52516         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
52517         unportable shell command "if ! ...".
52518         Reported by Ralf Wildenhues.
52519
52520 2007-03-25  Bruno Haible  <bruno@clisp.org>
52521
52522         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
52523         <sysexits.h> file, and only add EX_CONFIG.
52524         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
52525         absolute file name and whether it is sufficient. Substitute also
52526         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
52527         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
52528         ABSOLUTE_SYSEXITS_H into sysexits.h.
52529
52530 2007-03-25  Bruno Haible  <bruno@clisp.org>
52531
52532         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
52533         hints is NULL.
52534
52535 2007-03-25  Bruno Haible  <bruno@clisp.org>
52536
52537         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
52538         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
52539
52540 2007-03-25  Bruno Haible  <bruno@clisp.org>
52541
52542         * lib/vasnprintf.c: Include langinfo.h.
52543         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
52544         multithread-safe.
52545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
52546         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
52547         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52548         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52549         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52550         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52551         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52552         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
52553         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52554         Reported by Simon Josefsson.
52555
52556 2007-03-25  Bruno Haible  <bruno@clisp.org>
52557
52558         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
52559         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
52560         * modules/vasnprintf (Depends-on): Add stdint.
52561
52562 2007-03-25  Bruno Haible  <bruno@clisp.org>
52563
52564         * modules/fpieee: New file.
52565         * m4/fpieee.m4: New file.
52566         * modules/isnan-nolibm (Depends-on): Add fpieee.
52567         * modules/isnanl-nolibm (Depends-on): Add fpieee.
52568         * modules/isnanl (Depends-on): Add fpieee.
52569
52570 2007-03-25  Bruno Haible  <bruno@clisp.org>
52571
52572         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
52573
52574 2007-03-25  Bruno Haible  <bruno@clisp.org>
52575
52576         Avoid test failures on IRIX 6.5.
52577         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
52578         (main): Use it.
52579         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
52580         macros.
52581         (main): Use them.
52582
52583 2007-03-25  Bruno Haible  <bruno@clisp.org>
52584
52585         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
52586         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
52587         exists but doesn't work.
52588         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
52589         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
52590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
52591         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
52592         math.h.
52593
52594 2007-03-25  Bruno Haible  <bruno@clisp.org>
52595
52596         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
52597         returns inf. Needed on IRIX 6.5.
52598
52599 2007-03-25  Bruno Haible  <bruno@clisp.org>
52600
52601         * tests/test-frexpl.c: Include isnanl-nolibm.h.
52602         (main): Use isnanl instead of x != x idiom.
52603         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
52604
52605         * tests/test-frexp.c: Include isnan.h.
52606         (main): Use isnan instead of x != x idiom.
52607         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
52608
52609 2007-03-25  Bruno Haible  <bruno@clisp.org>
52610
52611         * tests/test-frexp.c (NaN): New function/macro.
52612         (main): Use it instead of 0.0 / 0.0.
52613         * tests/test-isnan.c (NaN): New function/macro.
52614         (main): Use it instead of 0.0 / 0.0.
52615         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
52616         (test_function): Use it instead of 0.0 / 0.0.
52617         * tests/test-vasprintf-posix.c (NaN): New function/macro.
52618         (test_function): Use it instead of 0.0 / 0.0.
52619         * tests/test-snprintf-posix.h (NaN): New function/macro.
52620         (test_function): Use it instead of 0.0 / 0.0.
52621         * tests/test-sprintf-posix.h (NaN): New function/macro.
52622         (test_function): Use it instead of 0.0 / 0.0.
52623         * tests/test-fprintf-posix.h (NaN): New function/macro.
52624         (test_function): Use it instead of 0.0 / 0.0.
52625         * tests/test-printf-posix.h (NaN): New function/macro.
52626         (test_function): Use it instead of 0.0 / 0.0.
52627
52628         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
52629
52630 2007-03-25  Bruno Haible  <bruno@clisp.org>
52631
52632         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
52633
52634 2007-03-25  Bruno Haible  <bruno@clisp.org>
52635
52636         * lib/regexec.c (merge_state_with_log): Make static.
52637
52638 2007-03-25  Bruno Haible  <bruno@clisp.org>
52639
52640         * lib/trigl.c (kernel_rem_pio2): Make static.
52641
52642 2007-03-25  Bruno Haible  <bruno@clisp.org>
52643
52644         * lib/sincosl.c (sincosl_table): Make static.
52645
52646 2007-03-25  Bruno Haible  <bruno@clisp.org>
52647
52648         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52649         if the compiler does not support C99.
52650
52651 2007-03-25  Bruno Haible  <bruno@clisp.org>
52652
52653         * modules/time (Makefile.am): Ensure all rule action lines start with a
52654         tab.
52655
52656 2007-03-24  Bruno Haible  <bruno@clisp.org>
52657
52658         * modules/tsearch-tests: New file.
52659         * tests/test-tsearch.sh: New file.
52660         * tests/test-tsearch.c: New file, mostly copied from glibc.
52661
52662         * modules/search-tests: New file.
52663         * tests/test-search.c: New file.
52664
52665         * modules/search: New file.
52666         * lib/search_.h: New file, incorporating lib/tsearch.h.
52667         * m4/search_h.m4: New file.
52668         * lib/tsearch.h: Remove file.
52669         * lib/tsearch.c: Include search.h instead of tsearch.h.
52670         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52671         HAVE_TSEARCH.
52672         * modules/tsearch (Files): Remove lib/tsearch.h.
52673         (Depends-on): Add search.
52674         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52675         (Include): Change tsearch.h into search.h.
52676
52677 2007-03-24  Bruno Haible  <bruno@clisp.org>
52678
52679         * modules/fpucw: New file.
52680         * lib/fpucw.h: New file.
52681         * lib/frexp.c: Include fpucw.h.
52682         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52683         (FUNC): Use them.
52684         * lib/printf-frexp.c: Include fpucw.h.
52685         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52686         (FUNC): Use them.
52687         * lib/vasnprintf.c: Include fpucw.h.
52688         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52689         'long double' calculations.
52690         * tests/test-frexpl.c: Include fpucw.h.
52691         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52692         * tests/test-printf-frexpl.c: Include fpucw.h.
52693         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52694         * modules/frexpl (Depends-on): Add fpucw.
52695         * modules/printf-frexpl (Depends-on): Likewise.
52696         * modules/fprintf-posix (Depends-on): Likewise.
52697         * modules/snprintf-posix (Depends-on): Likewise.
52698         * modules/sprintf-posix (Depends-on): Likewise.
52699         * modules/vasnprintf-posix (Depends-on): Likewise.
52700         * modules/vasprintf-posix (Depends-on): Likewise.
52701         * modules/vfprintf-posix (Depends-on): Likewise.
52702         * modules/vsnprintf-posix (Depends-on): Likewise.
52703         * modules/vsprintf-posix (Depends-on): Likewise.
52704         * modules/frexpl-tests (Depends-on): Likewise.
52705         * modules/printf-frexpl-tests (Depends-on): Likewise.
52706
52707 2007-03-24  Bruno Haible  <bruno@clisp.org>
52708
52709         * lib/float+.h: New file.
52710         * lib/isnan.c: Include float+.h.
52711         (SIZE): New macro.
52712         (FUNC): Compare only SIZE bytes of the value.
52713         * lib/vasnprintf.c: Include float+.h.
52714         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52715         SIZEOF_LDBL or SIZEOF_DBL bytes.
52716         * modules/isnan-nolibm (Files): Add lib/float+.h.
52717         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52718         * modules/isnanl (Files): Add lib/float+.h.
52719         * modules/vasnprintf (Files): Add lib/float+.h.
52720
52721 2007-03-24  Bruno Haible  <bruno@clisp.org>
52722
52723         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52724         include isnanl-nolibm.h.
52725
52726 2007-03-24  Bruno Haible  <bruno@clisp.org>
52727
52728         * tests/test-read-file.c (main): Don't produce spurious output for
52729         expected situations. Make the test fail if it encountered unexpected
52730         results.
52731
52732 2007-03-24  Bruno Haible  <bruno@clisp.org>
52733
52734         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52735         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52736
52737 2007-03-24  Bruno Haible  <bruno@clisp.org>
52738
52739         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52740
52741 2007-03-24  Bruno Haible  <bruno@clisp.org>
52742
52743         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52744         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52745
52746         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52747         * modules/utf8-ucs4: Turn into a symbolic link to module
52748         unistr/u8-mbtouc.
52749
52750         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52751         utf8-ucs4-unsafe.
52752         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52753         unistr/u8-mbtouc-unsafe.
52754
52755         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52756         * modules/utf16-ucs4: Turn into a symbolic link to module
52757         unistr/u16-mbtouc.
52758
52759         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52760         utf16-ucs4-unsafe.
52761         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52762         unistr/u16-mbtouc-unsafe.
52763
52764         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52765         * modules/ucs4-utf8: Turn into a symbolic link to module
52766         unistr/u8-ubtomb.
52767
52768         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52769         * modules/ucs4-utf16: Turn into a symbolic link to module
52770         unistr/u16-ubtomb.
52771
52772 2007-03-24  Bruno Haible  <bruno@clisp.org>
52773
52774         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52775         Enable the function only if HAVE_INLINE.
52776         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52777         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52778         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52779         Enable the function only if HAVE_INLINE.
52780         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52781         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52782         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52783         Enable the function only if HAVE_INLINE.
52784         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52785         Enable the function only if HAVE_INLINE.
52786         * modules/utf8-ucs4: Update.
52787         * modules/utf8-ucs4-unsafe: Update.
52788         * modules/utf16-ucs4: Update.
52789         * modules/utf16-ucs4-unsafe: Update.
52790         * modules/ucs4-utf8: Update.
52791         * modules/ucs4-utf16: Update.
52792
52793 2007-03-24  Bruno Haible  <bruno@clisp.org>
52794
52795         * lib/utf8-ucs4.h: Remove file.
52796         * lib/utf8-ucs4-unsafe.h: Remove file.
52797         * lib/utf16-ucs4.h: Remove file.
52798         * lib/utf16-ucs4-unsafe.h: Remove file.
52799         * lib/ucs4-utf8.h: Remove file.
52800         * lib/ucs4-utf16.h: Remove file.
52801         * lib/unistr.h: Include their previous contents.
52802         * m4/utf-ucs4.m4: Remove file.
52803         * m4/ucs4-utf.m4: Remove file.
52804         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52805         (Depends-on): Add unistr/base.
52806         (configure.ac): Remove gl_UTF_UCS4.
52807         (Makefile.am): Update.
52808         (Include): Change to unistr.h.
52809         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52810         (Depends-on): Add unistr/base.
52811         (configure.ac): Remove gl_UTF_UCS4.
52812         (Makefile.am): Update.
52813         (Include): Change to unistr.h.
52814         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52815         (Depends-on): Add unistr/base.
52816         (configure.ac): Remove gl_UTF_UCS4.
52817         (Makefile.am): Update.
52818         (Include): Change to unistr.h.
52819         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52820         (Depends-on): Add unistr/base.
52821         (configure.ac): Remove gl_UTF_UCS4.
52822         (Makefile.am): Update.
52823         (Include): Change to unistr.h.
52824         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52825         (Depends-on): Add unistr/base.
52826         (configure.ac): Remove gl_UCS4_UTF.
52827         (Makefile.am): Update.
52828         (Include): Change to unistr.h.
52829         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52830         (Depends-on): Add unistr/base.
52831         (configure.ac): Remove gl_UCS4_UTF.
52832         (Makefile.am): Update.
52833         (Include): Change to unistr.h.
52834         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52835         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52836         utf8-ucs4-unsafe.h.
52837         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52838         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52839         utf16-ucs4-unsafe.h.
52840         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52841         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52842         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52843         * lib/unistr/u8-strchr.c: Likewise.
52844         * lib/unistr/u8-strrchr.c: Likewise.
52845         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52846         * lib/unistr/u16-strchr.c: Likewise.
52847         * lib/unistr/u16-strrchr.c: Likewise.
52848         * lib/striconveh.c: Update.
52849         * lib/linebreak.c: Update.
52850
52851 2007-03-24  Bruno Haible  <bruno@clisp.org>
52852
52853         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52854         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52855
52856 2007-03-22  Bruno Haible  <bruno@clisp.org>
52857
52858         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52859
52860 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52861
52862         * MODULES.html.sh (File system functions): New module write-any-file.
52863         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52864         * m4/write-any-file.m4: New files.
52865
52866 2007-03-23  Eric Blake  <ebb9@byu.net>
52867
52868         * gnulib-tool: Rearrange space-tab sequences, since some editors
52869         like to eat them.
52870
52871 2007-03-23  Eric Blake  <ebb9@byu.net>
52872
52873         * lib/version-etc.c (version_etc_va): Update license wording to
52874         be more concise.  Recommended by Richard Stallman.
52875
52876 2007-03-22  Bruno Haible  <bruno@clisp.org>
52877
52878         * lib/poll.c (MSG_PEEK): New fallback definition.
52879
52880 2007-03-22  Bruno Haible  <bruno@clisp.org>
52881
52882         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52883         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52884         (main): Update.
52885         Fixes a compilation error on BeOS.
52886
52887 2007-03-22  Bruno Haible  <bruno@clisp.org>
52888
52889         * modules/frexpl-tests: New file.
52890         * tests/test-frexpl.c: New file.
52891
52892         * modules/frexpl: New file.
52893         * m4/frexpl.m4: New file.
52894         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52895         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52897         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52898         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52899         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52900
52901 2007-03-22  Bruno Haible  <bruno@clisp.org>
52902
52903         * lib/frexpl.c: Share code with lib/frexp.c.
52904         * modules/mathl (Files): Add lib/frexp.c.
52905         (Depends-on): Add isnanl-nolibm.
52906
52907 2007-03-22  Bruno Haible  <bruno@clisp.org>
52908
52909         * modules/printf-frexp (Files): Add m4/frexp.m4.
52910         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52911         only if the found frexp function actually works.
52912
52913 2007-03-22  Bruno Haible  <bruno@clisp.org>
52914
52915         * lib/frexp.c: Remove older implementation that uses divisions.
52916
52917 2007-03-21  Bruno Haible  <bruno@clisp.org>
52918
52919         * modules/frexp-tests: New file.
52920         * tests/test-frexp.c: New file.
52921
52922         * modules/frexp: New file.
52923         * lib/frexp.c: New file.
52924         * m4/frexp.m4: New file.
52925         * lib/math_.h (frexp): New declaration.
52926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52927         REPLACE_FREXP.
52928         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52929
52930 2007-03-21  Bruno Haible  <bruno@clisp.org>
52931
52932         * modules/isnanl-tests: New file.
52933         * tests/test-isnanl.c: New file.
52934
52935         * modules/isnanl: New file.
52936         * lib/isnanl.h: New file.
52937         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52938         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52939         gl_FUNC_ISNANL_WORKS.
52940         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52941         New macros.
52942
52943 2007-03-21  Bruno Haible  <bruno@clisp.org>
52944
52945         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52946         lib/isnanl.h.
52947         (Include): Update.
52948         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52949         * lib/vasnprintf.c: Update.
52950         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52951         tests/test-isnanl.h, remove tests/test-isnanl.c.
52952         (Makefile.am): Update.
52953         * tests/test-isnanl-nolibm.c: New file.
52954         * tests/test-isnanl.h: New file.
52955         * tests/test-isnanl.c: Remove file.
52956
52957 2007-03-21  Jim Meyering  <jim@meyering.net>
52958
52959         When trying to open ".", treat ESTALE like EACCES.
52960         * lib/savewd.c (savewd_save): Resort to forking not just upon
52961         failure with EACCES, but also when errno is ESTALE.
52962
52963 2007-03-20  Bruno Haible  <bruno@clisp.org>
52964
52965         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52966         Needed on AIX 5.1. Reported by Matthew Woehlke.
52967
52968 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52969
52970         Suggestions by Bruno Haible:
52971         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52972         our own.
52973         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52974         * modules/acl (Depends-on): Add gettext.
52975
52976 2007-03-19  Bruno Haible  <bruno@clisp.org>
52977
52978         * modules/iconvme: Remove file.
52979         * lib/iconvme.h: Remove file.
52980         * lib/iconvme.c: Remove file.
52981         * m4/iconvme.m4: Remove file.
52982
52983 2007-03-19  Bruno Haible  <bruno@clisp.org>
52984
52985         * doc/relocatable-maint.texi: Break long shell script line.
52986         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52987
52988 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52989
52990         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52991         handle file_has_acl.
52992         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52993         * lib/acl.c: Move header inclusions and related macro defns into
52994         lib/acl-internal.h.
52995         (S_ISLNK): Remove defn, since that's now done for us.
52996         (file_has_acl): Move to lib/file-has-acl.c.
52997         Call acl_trivial if available.  This is the crucial part of the fix.
52998         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52999         shared within the library.  Rewrite a bit, partly to make it compatible
53000         with the GNU coding style.
53001         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
53002         Remove unnecessary double-quotes.
53003         Don't test for acl_to_text; the build will catch that.
53004         Replace acl_entries if it doesn't exist and it is needed.
53005         Check for -lsec and acl_trivial (as used on Solaris 10).
53006         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
53007         lib/file-has-acl.c.
53008         (Depends-on): Add sys_stat, for S_ISLNK.
53009
53010 2007-03-19  Ben Pfaff  <blp@gnu.org>
53011
53012         * doc/gnulib.texi: Fix typos.
53013         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53014
53015 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53016
53017         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
53018         If size is zero here, buf must be zero.
53019
53020 2007-03-19  Simon Josefsson  <simon@josefsson.org>
53021
53022         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
53023         <bruno@clisp.org>.
53024
53025 2007-03-18  Bruno Haible  <bruno@clisp.org>
53026
53027         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
53028         Suggested by Eric Blake.
53029
53030 2007-03-18  Ben Pfaff  <blp@gnu.org>
53031
53032         * doc/relocatable.texi: Recommend using as prefix a directory
53033         that does not exist and will never be created.  Based on
53034         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
53035         and others.
53036
53037 2007-03-17  Bruno Haible  <bruno@clisp.org>
53038
53039         * lib/fchownat.c: Include lchown.h.
53040
53041 2007-03-17  Bruno Haible  <bruno@clisp.org>
53042
53043         Fix endless loop when the given allocated size was > INT_MAX.
53044         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
53045         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
53046         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
53047         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
53048         * lib/sprintf.c (sprintf): Likewise.
53049
53050 2007-03-17  Bruno Haible  <bruno@clisp.org>
53051
53052         * tests/test-argp-2.sh (func_compare): Output a context diff.
53053
53054 2007-03-17  Bruno Haible  <bruno@clisp.org>
53055
53056         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
53057         locale's decimal-point character.
53058
53059 2007-03-17  Bruno Haible  <bruno@clisp.org>
53060
53061         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
53062         before comparing it. Needed because on some platforms (e.g. x86) a
53063         'long double' occupies less bytes than sizeof (long double).
53064
53065 2007-03-17  Bruno Haible  <bruno@clisp.org>
53066
53067         * tests/test-crc.c (main): Make printf statements 64-bit clean.
53068         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
53069         * tests/test-getaddrinfo.c (simple): Likewise.
53070         * tests/test-read-file.c (main): Likewise.
53071
53072 2007-03-17  Bruno Haible  <bruno@clisp.org>
53073
53074         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
53075
53076 2007-03-17  Bruno Haible  <bruno@clisp.org>
53077
53078         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
53079         unused variable.
53080
53081 2007-03-17  Bruno Haible  <bruno@clisp.org>
53082
53083         * tests/test-c-strcasecmp.c: Include c-strcase.h.
53084         * tests/test-c-strncasecmp.c: Likewise.
53085
53086 2007-03-17  Bruno Haible  <bruno@clisp.org>
53087
53088         * modules/stdlib (Depends-on): Add unistd.
53089         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
53090         Needed for MacOS X 10.3.
53091
53092 2007-03-17  Bruno Haible  <bruno@clisp.org>
53093
53094         * lib/unistr/u-strdup.h: Include <stdlib.h>.
53095
53096 2007-03-17  Bruno Haible  <bruno@clisp.org>
53097
53098         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
53099
53100 2007-03-17  Bruno Haible  <bruno@clisp.org>
53101
53102         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
53103         to reflect files copied from gnulib (with or without modifications).
53104         Suggested by Jim Meyering.
53105
53106 2007-03-17  Eric Blake  <ebb9@byu.net>
53107
53108         * NEWS: Document stdlib change from 2007-02-18.
53109
53110 2007-03-17  Jim Meyering  <jim@meyering.net>
53111
53112         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
53113         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
53114         someone uses a name containing shell meta-characters.
53115         Reported by Alfred M. Szmidt.
53116
53117         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
53118
53119 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53120
53121         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
53122         and copy gettext configuration files only if configure.ac contains
53123         a use of AM_GNU_GETTEXT_VERSION.
53124
53125 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53126
53127         * build-aux/bootstrap (gnulib_name): New variable.
53128         (gnulib_tool_options): Use it.
53129
53130 2007-03-13  Simon Josefsson  <simon@josefsson.org>
53131
53132         * tests/test-des.c: Use new namespace.
53133
53134 2007-03-15  Bruno Haible  <bruno@clisp.org>
53135
53136         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
53137         Reported by James Youngman <jay@gnu.org>.
53138
53139 2007-03-15  Bruno Haible  <bruno@clisp.org>
53140
53141         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
53142         declared prototype. Needed with cc on OSF/1 5.1.
53143
53144 2007-03-15  Bruno Haible  <bruno@clisp.org>
53145
53146         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
53147         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
53148         (struct gl_list_implementation): Add dispose_fn argument to the
53149         'create_empty', 'create' methods.
53150         (struct gl_list_impl_base): Add field 'dispose_fn'.
53151         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
53152         argument.
53153         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
53154         dispose_fn argument.
53155         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
53156         dispose_fn on the dropped values.
53157         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
53158         dispose_fn argument.
53159         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
53160         dropped values.
53161         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
53162         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53163         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
53164         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53165         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
53166         argument.
53167         (gl_tree_list_free): Call dispose_fn on the dropped values.
53168         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
53169         the dropped values.
53170         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53171         Add dispose_fn argument.
53172         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
53173         Call dispose_fn on the dropped values.
53174         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
53175         Add dispose_fn argument.
53176         (gl_sublist_create): Initialize the 'dispose_fn' field.
53177         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
53178         * tests/test-array_list.c (main): Update.
53179         * tests/test-carray_list.c (main): Update.
53180         * tests/test-avltree_list.c (main): Update.
53181         * tests/test-rbtree_list.c (main): Update.
53182         * tests/test-avltreehash_list.c (main): Update.
53183         * tests/test-rbtreehash_list.c (main): Update.
53184         * tests/test-linked_list.c (main): Update.
53185         * tests/test-linkedhash_list.c (main): Update.
53186         * tests/test-array_oset.c (main): Update.
53187
53188 2007-03-15  Bruno Haible  <bruno@clisp.org>
53189
53190         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
53191         (gl_oset_create_empty): Add dispose_fn argument.
53192         (struct gl_oset_implementation): Add dispose_fn argument to
53193         'create_empty' method.
53194         (struct gl_oset_impl_base): Add dispose_fn field.
53195         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
53196         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
53197         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
53198         values.
53199         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
53200         (gl_tree_oset_free): Call dispose_fn on the dropped values.
53201         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53202         dropped value.
53203         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53204         dropped value.
53205         * tests/test-array_oset.c (main): Update.
53206         * tests/test-avltree_oset.c (main): Update.
53207         * tests/test-rbtree_oset.c (main): Update.
53208         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
53209
53210 2007-03-13  Bruno Haible  <bruno@clisp.org>
53211
53212         * tests/test-stdbool.c (i): Update after last patch.
53213
53214 2007-03-12  Bruno Haible  <bruno@clisp.org>
53215
53216         * lib/quotearg.c: Include <wctype.h> early, before the definition of
53217         the iswprint macro. Needed on Solaris 2.5.1.
53218
53219 2007-03-12  Bruno Haible  <bruno@clisp.org>
53220
53221         * tests/test-printf-frexp.c (main): Declare x as volatile.
53222
53223 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53224
53225         * doc/gnulib.texi (Build robot for gnulib): New section.
53226
53227 2007-03-12  Jim Meyering  <jim@meyering.net>
53228
53229         * build-aux/bootstrap: New file.
53230         * build-aux/bootstrap.conf: New file, from coreutils.
53231
53232 2007-03-11  Bruno Haible  <bruno@clisp.org>
53233
53234         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
53235
53236 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53237
53238         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
53239         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
53240         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
53241
53242 2007-03-11  Bruno Haible  <bruno@clisp.org>
53243
53244         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
53245         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
53246
53247 2007-03-11  Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
53250         formula. Needed for SunPRO C 5.0.
53251
53252 2007-03-11  Bruno Haible  <bruno@clisp.org>
53253
53254         * modules/long-options (Depends-on): Add getopt.
53255
53256 2007-03-11  Bruno Haible  <bruno@clisp.org>
53257
53258         * modules/modechange (Depends-on): Add stdbool.
53259
53260 2007-03-11  Bruno Haible  <bruno@clisp.org>
53261
53262         * modules/i-ring (Depends-on): Add stdbool.
53263
53264 2007-03-11  Bruno Haible  <bruno@clisp.org>
53265
53266         * modules/gc-des (Depends-on): Add stdbool.
53267
53268 2007-03-11  Bruno Haible  <bruno@clisp.org>
53269
53270         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
53271
53272 2007-03-11  Bruno Haible  <bruno@clisp.org>
53273
53274         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
53275
53276 2007-03-11  Bruno Haible  <bruno@clisp.org>
53277
53278         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
53279
53280 2007-03-11  Bruno Haible  <bruno@clisp.org>
53281
53282         * lib/vasnprintf.c (sprintf): Undefine.
53283
53284 2007-03-11  Bruno Haible  <bruno@clisp.org>
53285
53286         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
53287         initializers in SunPRO C and Compaq C compilers.
53288
53289 2007-03-11  Bruno Haible  <bruno@clisp.org>
53290
53291         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
53292         decrementing code ANSI C compliant.
53293
53294 2007-03-11  Bruno Haible  <bruno@clisp.org>
53295
53296         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
53297         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
53298
53299 2007-03-11  Bruno Haible  <bruno@clisp.org>
53300
53301         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
53302         <stdbool.h> substitute doesn't pass.
53303
53304 2007-03-11  Bruno Haible  <bruno@clisp.org>
53305
53306         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
53307
53308 2007-03-11  Bruno Haible  <bruno@clisp.org>
53309
53310         * gnulib-tool (func_create_megatestdir): Create also an autobuild
53311         script, for submission to autobuild.josefsson.org.
53312
53313 2007-03-10  Bruno Haible  <bruno@clisp.org>
53314
53315         * modules/canonicalize-lgpl-tests: New file.
53316         * tests/test-canonicalize-lgpl.sh: New file.
53317         * tests/test-canonicalize-lgpl.c: New file.
53318
53319         * modules/c-strcase-tests: New file.
53320         * tests/test-c-strcase.sh: New file.
53321         * tests/test-c-strcasecmp.c: New file.
53322         * tests/test-c-strncasecmp.c: New file.
53323
53324         * modules/atexit-tests: New file.
53325         * tests/test-atexit.sh: New file.
53326         * tests/test-atexit.c: New file.
53327
53328 2007-03-10  Bruno Haible  <bruno@clisp.org>
53329
53330         * tests/test-binary-io.sh: Use temporary filenames that are not so
53331         likely to clash with those of other tests (in a parallel make).
53332         * tests/test-binary-io.c: Likewise.
53333
53334 2007-03-10  Bruno Haible  <bruno@clisp.org>
53335
53336         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
53337         fallback; use #error instead.
53338         Suggested by Simon Josefsson.
53339
53340 2007-03-10  Bruno Haible  <bruno@clisp.org>
53341
53342         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
53343         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
53344         first and the last.
53345
53346 2007-03-10  Bruno Haible  <bruno@clisp.org>
53347
53348         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
53349
53350 2007-03-10  Bruno Haible  <bruno@clisp.org>
53351
53352         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
53353         "make distcheck".
53354         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
53355         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
53356         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
53357
53358 2007-03-10  Bruno Haible  <bruno@clisp.org>
53359
53360         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
53361         variable.
53362         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
53363         variable.
53364
53365 2007-03-09  Eric Blake  <ebb9@byu.net>
53366         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
53367
53368         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
53369         types are not being provided by gnulib.
53370         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
53371         types are supported.
53372
53373 2007-03-10  Bruno Haible  <bruno@clisp.org>
53374
53375         * lib/stdio_.h (__attribute__): New macro.
53376         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
53377         vsprintf): Specify __attribute__ __format__ for GCC.
53378         Suggested by Eric Blake.
53379
53380 2007-03-09  Bruno Haible  <bruno@clisp.org>
53381
53382         * modules/printf-posix-tests: New file.
53383         * tests/test-printf-posix.sh: New file.
53384         * tests/test-printf-posix.c: New file.
53385
53386         * modules/printf-posix: New file.
53387         * lib/printf.c: New file.
53388         * m4/printf-posix-rpl.m4: New file.
53389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
53390         REPLACE_PRINTF.
53391         * lib/stdio_.h (printf): New declaration.
53392         (format, __format__, ____printf____, ____scanf____, ____strftime____,
53393         ____strfmon____): New macros.
53394         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
53395         REPLACE_PRINTF.
53396
53397 2007-03-09  Bruno Haible  <bruno@clisp.org>
53398
53399         * tests/test-vasnprintf-posix2.sh: New file.
53400         * tests/test-vasnprintf-posix2.c: New file.
53401         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
53402         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
53403         (Makefile.am): Activate test-vasnprintf-posix2.sh.
53404
53405         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
53406         a locale dependent decimal point, rather than always '.'.
53407
53408 2007-03-09  Eric Blake  <ebb9@byu.net>
53409
53410         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
53411         spite of platforms like Tandem/NSK that define it to -1.
53412
53413 2007-03-08  Bruno Haible  <bruno@clisp.org>
53414
53415         * modules/vprintf-posix-tests: New file.
53416         * tests/test-vprintf-posix.sh: New file.
53417         * tests/test-vprintf-posix.c: New file.
53418         * tests/test-printf-posix.h: New file.
53419
53420         * modules/vprintf-posix: New file.
53421         * lib/vprintf.c: New file.
53422         * m4/vprintf-posix.m4: New file.
53423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
53424         REPLACE_VPRINTF.
53425         * lib/stdio_.h (vprintf): New declaration.
53426         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
53427         REPLACE_VPRINTF.
53428
53429 2007-03-08  Bruno Haible  <bruno@clisp.org>
53430
53431         * modules/fprintf-posix-tests: New file.
53432         * tests/test-fprintf-posix.sh: New file.
53433         * tests/test-fprintf-posix.c: New file.
53434
53435         * modules/fprintf-posix: New file.
53436         * lib/fprintf.c: New file.
53437         * m4/fprintf-posix.m4: New file.
53438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
53439         REPLACE_FPRINTF.
53440         * lib/stdio_.h (fprintf): New declaration.
53441         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
53442         REPLACE_FPRINTF.
53443
53444 2007-03-08  Bruno Haible  <bruno@clisp.org>
53445
53446         * modules/vfprintf-posix-tests: New file.
53447         * tests/test-vfprintf-posix.sh: New file.
53448         * tests/test-vfprintf-posix.c: New file.
53449         * tests/test-fprintf-posix.h: New file.
53450         * tests/test-fprintf-posix.out: New file.
53451
53452         * modules/vfprintf-posix: New file.
53453         * lib/vfprintf.c: New file.
53454         * m4/vfprintf-posix.m4: New file.
53455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
53456         REPLACE_VFPRINTF.
53457         * lib/stdio_.h (vfprintf): New declaration.
53458         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
53459         REPLACE_VFPRINTF.
53460
53461 2007-03-08  Bruno Haible  <bruno@clisp.org>
53462
53463         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
53464
53465 2007-03-08  Bruno Haible  <bruno@clisp.org>
53466
53467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
53468         instead of 'expr' invocations.
53469         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53470         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53471         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53472         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53473         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53474         Suggested by Paul Eggert.
53475
53476 2007-03-08  Bruno Haible  <bruno@clisp.org>
53477
53478         * modules/fseterr-tests: New file.
53479         * tests/test-fseterr.c: New file.
53480
53481         * modules/fseterr: New file.
53482         * lib/fseterr.h: New file.
53483         * lib/fseterr.c: New file.
53484
53485 2007-03-08  Bruno Haible  <bruno@clisp.org>
53486
53487         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
53488         * lib/getopt_.h: Likewise.
53489         * lib/mbswidth.h: Likewise.
53490         * lib/setenv.h: Likewise.
53491         * lib/vasnprintf.h: Likewise.
53492         * lib/vasprintf.h: Likewise.
53493         * lib/verror.h: Likewise.
53494         * lib/xsetenv.h: Likewise.
53495         * lib/xvasprintf.h: Likewise.
53496
53497 2007-03-08  Jim Meyering  <jim@meyering.net>
53498
53499         * users.txt: Add parted.
53500
53501         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
53502
53503 2007-03-07  Bruno Haible  <bruno@clisp.org>
53504
53505         * m4/printf.m4: Make the shell script snippets copy&pastable.
53506
53507 2007-03-02  Bruno Haible  <bruno@clisp.org>
53508
53509         * lib/netinet_in_.h: New file.
53510         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
53511         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
53512         * modules/netinet_in (Files): Add lib/netinet_in_.h.
53513         (Depends-on): Add absolute-header.
53514         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
53515         into netinet/in.h.
53516
53517 2007-03-03  Bruno Haible  <bruno@clisp.org>
53518
53519         * lib/sys_select_.h: New file.
53520         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
53521         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
53522         * modules/sys_select (Files): Add lib/sys_select_.h.
53523         (Depends-on): Add absolute-header.
53524         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
53525         into sys/select.h.
53526
53527 2007-03-02  Bruno Haible  <bruno@clisp.org>
53528
53529         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
53530         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
53531         values.
53532         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
53533         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
53534         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
53535         * modules/sys_socket (Depends-on): Add absolute-header.
53536         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
53537         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
53538         (Include): Remove requirement of inclusion of <sys/types.h>.
53539
53540 2007-03-02  Bruno Haible  <bruno@clisp.org>
53541
53542         * lib/byteswap_.h (bswap_32): Fix formula.
53543
53544 2007-03-06  Bruno Haible  <bruno@clisp.org>
53545
53546         * modules/sprintf-posix-tests: New file.
53547         * tests/test-sprintf-posix.c: New file.
53548
53549         * modules/sprintf-posix: New file.
53550         * lib/sprintf.c: New file.
53551         * m4/sprintf-posix.m4: New file.
53552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
53553         REPLACE_SPRINTF.
53554         * lib/stdio_.h (sprintf): New declaration.
53555         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
53556         REPLACE_SPRINTF.
53557
53558 2007-03-06  Bruno Haible  <bruno@clisp.org>
53559
53560         * modules/vsprintf-posix-tests: New file.
53561         * tests/test-vsprintf-posix.c: New file.
53562         * tests/test-sprintf-posix.h: New file.
53563
53564         * modules/vsprintf-posix: New file.
53565         * lib/vsprintf.c: New file.
53566         * m4/vsprintf-posix.m4: New file.
53567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
53568         REPLACE_VSPRINTF.
53569         * lib/stdio_.h (vsprintf): New declaration.
53570         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
53571         REPLACE_VSPRINTF.
53572
53573 2007-03-06  Bruno Haible  <bruno@clisp.org>
53574
53575         * modules/vsnprintf (Depend-on): Remove minmax.
53576
53577 2007-03-06  Bruno Haible  <bruno@clisp.org>
53578
53579         * modules/snprintf-posix-tests: New file.
53580         * tests/test-snprintf-posix.c: New file.
53581
53582         * modules/snprintf-posix: New file.
53583         * m4/snprintf-posix.m4: New file.
53584         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
53585         gl_FUNC_SNPRINTF.
53586         (gl_FUNC_SNPRINTF): Invoke it.
53587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
53588         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
53589         is set.
53590         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
53591
53592 2007-03-06  Bruno Haible  <bruno@clisp.org>
53593
53594         * modules/vsnprintf-posix-tests: New file.
53595         * tests/test-vsnprintf-posix.c: New file.
53596         * tests/test-snprintf-posix.h: New file.
53597
53598         * modules/vsnprintf-posix: New file.
53599         * m4/vsnprintf-posix.m4: New file.
53600         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
53601         gl_FUNC_VSNPRINTF.
53602         (gl_FUNC_VSNPRINTF): Invoke it.
53603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
53604         * lib/stdio_.h (vsnprintf): Define as a replacement if
53605         REPLACE_VSNPRINTF is set.
53606         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
53607
53608 2007-03-06  Bruno Haible  <bruno@clisp.org>
53609
53610         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
53611         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
53612
53613 2007-03-06  Bruno Haible  <bruno@clisp.org>
53614
53615         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
53616         (asinl): Declare also if HAVE_DECL_ASINL is set.
53617         (atanl): Declare also if HAVE_DECL_ATANL is set.
53618         (ceill): Declare also if HAVE_DECL_CEILL is set.
53619         (cosl): Declare also if HAVE_DECL_COSL is set.
53620         (expl): Declare also if HAVE_DECL_EXPL is set.
53621         (floorl): Declare also if HAVE_DECL_FLOORL is set.
53622         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
53623         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
53624         (logl): Declare also if HAVE_DECL_LOGL is set.
53625         (sinl): Declare also if HAVE_DECL_SINL is set.
53626         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
53627         (tanl): Declare also if HAVE_DECL_TANL is set.
53628         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
53629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
53630         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
53631         declaration of frexpl, ldexpl.
53632         * modules/printf-frexpl (Depends-on): Add math.
53633         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
53634
53635 2007-03-05  Bruno Haible  <bruno@clisp.org>
53636
53637         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
53638         frexpl and ldexpl are declared.
53639         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
53640
53641 2007-03-05  Bruno Haible  <bruno@clisp.org>
53642
53643         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53644         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53645
53646 2007-03-05  Bruno Haible  <bruno@clisp.org>
53647
53648         * lib/stdio_.h: Include <stddef.h>.
53649
53650 2007-03-05  Bruno Haible  <bruno@clisp.org>
53651
53652         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53653
53654 2007-03-05  Bruno Haible  <bruno@clisp.org>
53655
53656         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53657         NetBSD 4, from Ralf Wildenhues.
53658
53659 2007-03-04  Bruno Haible  <bruno@clisp.org>
53660
53661         * lib/vasprintf.h: Update #if logic for the case when the functions
53662         exist but are overridden.
53663
53664 2007-03-04  Bruno Haible  <bruno@clisp.org>
53665
53666         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53667         implementations: glibc-2.4 and MacOS X 10.3.
53668         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53669         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53670         * tests/test-vasprintf-posix.c (test_function): Likewise.
53671
53672 2007-03-04  Bruno Haible  <bruno@clisp.org>
53673
53674         * modules/vasprintf-posix-tests: New file.
53675         * tests/test-vasprintf-posix.c: New file.
53676
53677         * modules/vasprintf-posix: New file.
53678         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53679         defined.
53680         * m4/vasprintf-posix.m4: New file.
53681         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53682         gl_FUNC_VASPRINTF.
53683         (gl_FUNC_VASPRINTF): Invoke it.
53684         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53685         here.
53686         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53687
53688 2007-03-04  Bruno Haible  <bruno@clisp.org>
53689
53690         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53691         REPLACE_GETTIMEOFDAY.
53692         * modules/sys_time (Makefile.am): Likewise.
53693         * m4/sys_time_h.m4: Likewise.
53694         * m4/gettimeofday.m4: Likewise.
53695
53696 2007-03-04  Bruno Haible  <bruno@clisp.org>
53697
53698         * modules/vasnprintf-posix-tests: New file.
53699         * tests/test-vasnprintf-posix.c: New file.
53700
53701         * modules/vasnprintf-posix: New file.
53702         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53703         printf-frexpl.h.
53704         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53705         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53706         REPLACE_VASNPRINTF is defined.
53707         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53708         gl_FUNC_VASNPRINTF.
53709         (gl_FUNC_VASNPRINTF): Invoke it.
53710         * m4/vasnprintf-posix.m4: New file.
53711         * m4/printf.m4: New file.
53712
53713 2007-03-04  Bruno Haible  <bruno@clisp.org>
53714
53715         Compile progreloc.c only if --enable-relocatable is specified.
53716         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53717         if --enable-relocatable was specified.
53718         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53719         lib_SOURCES.
53720
53721 2007-03-04  Jim Meyering  <jim@meyering.net>
53722
53723         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53724         Use it consistently, rather than enumerating errno constants.
53725
53726 2007-03-04  Bruno Haible  <bruno@clisp.org>
53727
53728         * modules/xvasprintf-tests: New file.
53729         * tests/test-xvasprintf.c: New file.
53730
53731         * modules/vasprintf-tests: New file.
53732         * tests/test-vasprintf.c: New file.
53733
53734         * modules/vasnprintf-tests: New file.
53735         * tests/test-vasnprintf.c: New file.
53736
53737         * modules/vsnprintf-tests: New file.
53738         * tests/test-vsnprintf.c: New file.
53739
53740         * modules/snprintf-tests: New file.
53741         * tests/test-snprintf.c: New file.
53742
53743 2007-03-04  Bruno Haible  <bruno@clisp.org>
53744
53745         Compile relocatable.c only if --enable-relocatable is specified.
53746         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53747         gl_RELOCATABLE_LIBRARY.
53748         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53749         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53750         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53751         gl_RELOCATABLE_LIBRARY.
53752         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53753         (Makefile.am): Remove lib_SOURCES.
53754         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53755         gl_RELOCATABLE_LIBRARY.
53756         (Makefile.am): Remove lib_SOURCES.
53757         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53758         always.
53759         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53760         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53761
53762 2007-03-04  Bruno Haible  <bruno@clisp.org>
53763
53764         * modules/argmatch-tests: New file.
53765         * tests/test-argmatch.c: New file.
53766
53767         * tests/test-allocsa.c (main): Halve the number of loop runs.
53768
53769         * modules/alloca-opt-tests: New file.
53770         * tests/test-alloca-opt.c: New file.
53771
53772 2007-03-04  Jim Meyering  <jim@meyering.net>
53773
53774         Work around difference between Linux ACLs and Solaris 10 ZFS.
53775         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53776         for EINVAL.
53777
53778 2007-03-03  Bruno Haible  <bruno@clisp.org>
53779
53780         * modules/relocatable-prog (Depends-on): Add back progreloc's
53781         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53782
53783 2007-03-03  Bruno Haible  <bruno@clisp.org>
53784
53785         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53786         * modules/relocatable-lib: New file.
53787
53788 2007-03-03  Bruno Haible  <bruno@clisp.org>
53789
53790         * modules/relocatable-prog: Renamed from modules/relocatable.
53791         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53792
53793 2007-03-03  Bruno Haible  <bruno@clisp.org>
53794
53795         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53796         m4/relocatable-lib.m4.
53797         (Depends-on): Remove 'relocatable'.
53798         (configure.ac): Add gl_RELOCATABLE_NOP.
53799
53800 2007-03-03  Bruno Haible  <bruno@clisp.org>
53801
53802         * modules/relocatable-prog-wrapper: New file.
53803         * modules/relocatable (Depends-on): Add it. Remove all other
53804         dependencies except progname.
53805         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53806
53807         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53808         (gl_FUNC_STRERROR): Nop.
53809         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53810
53811         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53812         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53813
53814         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53815         (gl_FUNC_READLINK): Update.
53816
53817         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53818
53819 2007-03-03  Bruno Haible  <bruno@clisp.org>
53820
53821         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53822         * modules/xreadlink (Depends-on): Add unistd.
53823         * modules/xreadlink-with-size (Depends-on): Likewise.
53824
53825 2007-03-03  Bruno Haible  <bruno@clisp.org>
53826
53827         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53828         extracted from gt_FUNC_SETENV.
53829         (gt_FUNC_SETENV): Remove macro.
53830         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53831         remove gt_FUNC_SETENV.
53832
53833 2007-03-03  Bruno Haible  <bruno@clisp.org>
53834
53835         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53836         ENABLE_RELOCATABLE here.
53837         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53838
53839 2007-03-03  Bruno Haible  <bruno@clisp.org>
53840
53841         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53842         * tests/test-rbtreehash_list.c: Include progname.h.
53843         (main): Call set_program_name.
53844
53845         * modules/rbtree-oset-tests (Depends-on): Add progname.
53846         * tests/test-rbtree_oset.c: Include progname.h.
53847         (main): Call set_program_name.
53848
53849         * modules/rbtree-list-tests (Depends-on): Add progname.
53850         * tests/test-rbtree_list.c: Include progname.h.
53851         (main): Call set_program_name.
53852
53853         * modules/linked-list-tests (Depends-on): Add progname.
53854         * tests/test-linked_list.c: Include progname.h.
53855         (main): Call set_program_name.
53856
53857 2007-03-03  Bruno Haible  <bruno@clisp.org>
53858
53859         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53860         All uses of __restrict changed to _Restrict_.
53861         * lib/glob_.h (__restrict): Remove macro.
53862
53863 2007-03-02  Bruno Haible  <bruno@clisp.org>
53864
53865         * modules/gettext (configure.ac): Require gettext infrastructure
53866         from version 0.16.1.
53867
53868 2007-03-02  Bruno Haible  <bruno@clisp.org>
53869
53870         * modules/linkedhash-list-tests (Depends-on): Add progname.
53871         * tests/test-linkedhash_list.c: Include progname.h.
53872         (main): Call set_program_name.
53873
53874         * modules/carray-list-tests (Depends-on): Add progname.
53875         * tests/test-carray_list.c: Include progname.h.
53876         (main): Call set_program_name.
53877
53878         * modules/avltreehash-list-tests (Depends-on): Add progname.
53879         * tests/test-avltreehash_list.c: Include progname.h.
53880         (main): Call set_program_name.
53881
53882         * modules/avltree-oset-tests (Depends-on): Add progname.
53883         * tests/test-avltree_oset.c: Include progname.h.
53884         (main): Call set_program_name.
53885
53886         * modules/avltree-list-tests (Depends-on): Add progname.
53887         * tests/test-avltree_list.c: Include progname.h.
53888         (main): Call set_program_name.
53889
53890         * modules/array-oset-tests (Depends-on): Add progname.
53891         * tests/test-array_oset.c: Include progname.h.
53892         (main): Call set_program_name.
53893
53894         * modules/array-list-tests (Depends-on): Add progname.
53895         * tests/test-array_list.c: Include progname.h.
53896         (main): Call set_program_name.
53897
53898         * modules/argp-tests (Depends-on): Add progname.
53899         * tests/test-argp.c: Include argp.h first. Include progname.h.
53900         (main): Call set_program_name.
53901
53902 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53903
53904         * doc/gnulib-tool.texi (Initial import): Reword description of
53905         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53906         limited effect even if defined after the first system include.
53907
53908 2007-03-01  Bruno Haible  <bruno@clisp.org>
53909
53910         * build-aux/config.libpath: Update to libtool-1.5.22.
53911         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53912
53913 2007-03-01  Bruno Haible  <bruno@clisp.org>
53914
53915         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53916         foo_CFLAGS.
53917         Reported by Ralf Wildenhues.
53918
53919 2007-03-01  Bruno Haible  <bruno@clisp.org>
53920
53921         * build-aux/install-reloc: Remove object files left over by some
53922         compilers.
53923         Reported by Ralf Wildenhues.
53924
53925 2007-03-01  Bruno Haible  <bruno@clisp.org>
53926
53927         * build-aux/install-reloc: Break long lines.
53928
53929 2007-03-01  Bruno Haible  <bruno@clisp.org>
53930
53931         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53932         Reported by Ralf Wildenhues.
53933
53934 2007-03-01  Bruno Haible  <bruno@clisp.org>
53935
53936         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53937         include ordering constraints.
53938
53939 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53940
53941         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53942         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53943         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53944         as another example.
53945         * lib/time_.h: Fix misspelling.
53946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53947         Require gl_HEADER_TIME_H_DEFAULTS.
53948         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53949         * m4/time_r.m4 (gl_TIME_R): Likewise.
53950         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53951
53952 2007-03-01  Bruno Haible  <bruno@clisp.org>
53953
53954         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53955         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53956
53957 2007-03-01  Jim Meyering  <jim@meyering.net>
53958
53959         * modules/xreadlink (Maintainer): Add my name.
53960         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53961
53962 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53963             Bruno Haible  <bruno@clisp.org>
53964
53965         * build-aux/install-reloc: Compile also c-ctype.c.
53966         * build-aux/relocatable.sh.in: New file.
53967         * doc/relocatable.texi: New file.
53968         * doc/relocatable-maint.texi: New file.
53969         * doc/gnulib.texi: Include relocatable-maint.texi.
53970         * lib/progreloc.c: Include unistd.h unconditionally.
53971         * lib/relocwrapper.c: Include unistd.h unconditionally.
53972         Include c-ctype.h.
53973         (add_dotbin): Use c_tolower.
53974         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53975         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53976         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53977         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53978         to m4/relocatable-lib.m4.
53979         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53980         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53981         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53982         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53983         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53984         * modules/relocatable: New file.
53985         * modules/relocatable-lib: New file.
53986         * modules/relocatable-script: New file.
53987
53988 2007-02-28  Bruno Haible  <bruno@clisp.org>
53989
53990         Import --enable-relocatable infrastructure.
53991         * build-aux/config.libpath: New file, from GNU gettext.
53992         * build-aux/install-reloc: New file, from GNU gettext.
53993         * build-aux/reloc-ldflags: New file, from GNU gettext.
53994         * lib/relocatable.h: New file, from GNU gettext.
53995         * lib/relocatable.c: New file, from GNU gettext.
53996         * lib/relocwrapper.c: New file, from GNU gettext.
53997         * m4/relocatable.m4: New file, from GNU gettext.
53998
53999 2007-02-28  Bruno Haible  <bruno@clisp.org>
54000
54001         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
54002
54003         * modules/xreadlink: New file, from GNU gettext with modifications.
54004         * lib/xreadlink.c: New file, from GNU gettext.
54005         * lib/xreadlink.h: Add comments.
54006         (xreadlink): New declaration.
54007
54008         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
54009         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
54010         lib/xreadlink-with-size.c.
54011         (configure.ac): Remove gl_XREADLINK invocation.
54012         (Makefile.am): Augment lib_SOURCES.
54013         * m4/xreadlink.m4: Remove file.
54014         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
54015         (xreadlink_with_size): Renamed from xreadink.
54016         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
54017         * modules/canonicalize (Depends-on): Replace xreadlink with
54018         xreadlink-with-size.
54019         * lib/canonicalize.c (canonicalize_filename_mode): Update.
54020
54021 2007-02-25  Jim Meyering  <jim@meyering.net>
54022
54023         * build-aux/announce-gen: When complaining about excess arguments,
54024         list them.
54025
54026 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54027
54028         * README: Document signed integer overflow situation more
54029         accurately.
54030
54031 2007-02-25  Bruno Haible  <bruno@clisp.org>
54032
54033         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
54034         'a' or 'A' conversion.
54035
54036 2007-02-25  Bruno Haible  <bruno@clisp.org>
54037
54038         * modules/filename: Renamed from modules/pathname.
54039         (Files): Replace lib/pathname.h with lib/filename.h. Replace
54040         lib/concatpath.c with lib/concat-filename.c.
54041         (Makefile.am): Update.
54042         (Include): Replace pathname.h with filename.h.
54043         * lib/filename.h: Renamed from lib/pathname.h.
54044         (concatenated_filename): Renamed from concatenated_pathname.
54045         * lib/concat-filename.c: Renamed from lib/concatpath.c.
54046         (concatenated_filename): Renamed from concatenated_pathname.
54047         * lib/findprog.c: Include filename.h instead of pathname.h.
54048         (find_in_path): Update.
54049         * lib/javacomp.c: Include filename.h instead of pathname.h.
54050         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54051         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54052         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54053         is_oldgcj_14_13_usable, is_javac_usable): Update.
54054         * lib/javaexec.c: Include filename.h instead of pathname.h.
54055         (execute_java_class): Update.
54056         * modules/findprog: Update.
54057         * modules/javacomp: Update.
54058         * modules/javaexec: Update.
54059         * MODULES.html.sh (File system functions): Add 'filename', remove
54060         'pathname'.
54061
54062 2007-02-25  Bruno Haible  <bruno@clisp.org>
54063
54064         * modules/printf-frexpl-tests: New file.
54065         * tests/test-printf-frexpl.c: New file.
54066
54067         * modules/printf-frexpl: New file.
54068         * lib/printf-frexpl.h: New file.
54069         * lib/printf-frexpl.c: New file.
54070         * m4/printf-frexpl.m4: New file.
54071
54072 2007-02-25  Bruno Haible  <bruno@clisp.org>
54073
54074         * modules/printf-frexp-tests: New file.
54075         * tests/test-printf-frexp.c: New file.
54076
54077         * modules/printf-frexp: New file.
54078         * lib/printf-frexp.h: New file.
54079         * lib/printf-frexp.c: New file.
54080         * m4/printf-frexp.m4: New file.
54081
54082 2007-02-25  Bruno Haible  <bruno@clisp.org>
54083
54084         Assume automake >= 1.10 for the tests.
54085         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
54086         * modules/arctwo-tests: Likewise.
54087         * modules/argp-tests: Likewise.
54088         * modules/avltree-list-tests: Likewise.
54089         * modules/avltree-oset-tests: Likewise.
54090         * modules/avltreehash-list-tests: Likewise.
54091         * modules/carray-list-tests: Likewise.
54092         * modules/crc-tests: Likewise.
54093         * modules/des-tests: Likewise.
54094         * modules/gc-arcfour-tests: Likewise.
54095         * modules/gc-arctwo-tests: Likewise.
54096         * modules/gc-des-tests: Likewise.
54097         * modules/gc-hmac-md5-tests: Likewise.
54098         * modules/gc-hmac-sha1-tests: Likewise.
54099         * modules/gc-md2-tests: Likewise.
54100         * modules/gc-md4-tests: Likewise.
54101         * modules/gc-md5-tests: Likewise.
54102         * modules/gc-pbkdf2-sha1-tests: Likewise.
54103         * modules/gc-rijndael-tests: Likewise.
54104         * modules/gc-sha1-tests: Likewise.
54105         * modules/gc-tests: Likewise.
54106         * modules/getaddrinfo-tests: Likewise.
54107         * modules/hmac-md5-tests: Likewise.
54108         * modules/hmac-sha1-tests: Likewise.
54109         * modules/linked-list-tests: Likewise.
54110         * modules/linkedhash-list-tests: Likewise.
54111         * modules/lock-tests: Likewise.
54112         * modules/md2-tests: Likewise.
54113         * modules/md4-tests: Likewise.
54114         * modules/md5-tests: Likewise.
54115         * modules/rbtree-list-tests: Likewise.
54116         * modules/rbtree-oset-tests: Likewise.
54117         * modules/rbtreehash-list-tests: Likewise.
54118         * modules/read-file-tests: Likewise.
54119         * modules/rijndael-tests: Likewise.
54120         * modules/stdint-tests: Likewise.
54121         * modules/tls-tests: Likewise.
54122
54123 2007-02-24  Bruno Haible  <bruno@clisp.org>
54124
54125         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
54126         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
54127         function; instead check whether isnan with a double argument links.
54128         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
54129         function; instead check whether isnan with a 'long double' argument
54130         links.
54131         Reported by Eric Blake <ebb9@byu.net>.
54132
54133 2007-02-24  Bruno Haible  <bruno@clisp.org>
54134
54135         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
54136         defined.
54137         * lib/isnanl.c: Remove all code. Just include isnan.c.
54138         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
54139
54140 2007-02-25  Jim Meyering  <jim@meyering.net>
54141
54142         Avoid conflicting types for 'unsetenv' on FreeBSD.
54143         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
54144         conflicting with FreeBSD's (5.0 and 6.1) function declaration
54145         in stdlib.h.
54146
54147 2007-02-24  Bruno Haible  <bruno@clisp.org>
54148
54149         * modules/isnanl-nolibm-tests: New file.
54150         * tests/test-isnanl.c: New file.
54151
54152         * modules/isnanl-nolibm: New file.
54153         * lib/isnanl.h: New file.
54154         * lib/isnanl.c: New file.
54155         * m4/isnanl.m4: New file.
54156
54157 2007-02-24  Bruno Haible  <bruno@clisp.org>
54158
54159         * modules/isnan-nolibm-tests: New file.
54160         * tests/test-isnan.c: New file.
54161
54162         * modules/isnan-nolibm: New file.
54163         * lib/isnan.h: New file.
54164         * lib/isnan.c: New file.
54165         * m4/isnan.m4: New file.
54166
54167 2007-02-24  Bruno Haible  <bruno@clisp.org>
54168
54169         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
54170         assume that an exponent fits in 20 bits.
54171
54172 2007-02-24  Jim Meyering  <jim@meyering.net>
54173
54174         * m4/regex.m4: Update the description of the configure-time option,
54175         --without-included-regex, to state accurately what the defaults are,
54176         and perhaps to give people an idea why using this option is risky.
54177
54178 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54179
54180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
54181         loops on small arguments.  This attempts to avoid the problem
54182         Bruno Haible reported for AIX 4.3.2 in
54183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
54184
54185 2007-02-23  Bruno Haible  <bruno@clisp.org>
54186
54187         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
54188         Needed for help2man.
54189
54190 2007-02-23  Karl Berry  <karl@gnu.org>
54191
54192         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
54193         exists, foo.h should be cvs-ignored, not committed.
54194
54195 2007-02-23  Eric Blake  <ebb9@byu.net>
54196
54197         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
54198         * lib/stat-time.h (includes): Likewise.
54199         * lib/utimecmp.c (includes): Likewise.
54200         * lib/utimens.h (includes): Likewise.
54201         * lib/getdate.y (includes): Also include "timespec.h" for use
54202         internal to the module.
54203         * modules/utimens (Depends-on): Revert yesterday's patch.
54204         * modules/nanosleep (Depends-on): Add missing dependency.
54205
54206 2007-02-22  Bruno Haible  <bruno@clisp.org>
54207
54208         * lib/glob.c: Don't include getlogin_r.h.
54209
54210 2007-02-22  Jim Meyering  <jim@meyering.net>
54211
54212         * modules/utimens (Depends-on): Add timespec, required for
54213         utimens.h's inclusion of timespec.h.
54214
54215 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
54216
54217         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
54218         long unreadable paths in GNU/Linux.  Problem reported by Andreas
54219         Schwab in
54220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
54221         I'll try to think of a better way to fix the Solaris problem.
54222
54223         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
54224         like glibc; on Solaris 10, it fails with errno == EINVAL.
54225         POSIX says the behavior is unspecified if the first argument is NULL,
54226         so play it safe and never pass NULL to the system getcwd.
54227
54228 2007-02-21  Jim Meyering  <jim@meyering.net>
54229
54230         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
54231         of gettimeofday.  It would conflict with the one now always
54232         provided via sys_time_.h.  Reported by Matthew Woehlke, as
54233         an IRIX 6.5 build failure.
54234
54235 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54236
54237         Minor fixups to port to Solaris 10 with Sun C 5.8.
54238         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
54239         * modules/getcwd (Depends-on): Add dirfd.
54240         * lib/putenv.c (putenv): #undef it.
54241         (rpl_putenv): New decl.
54242         (malloc, free): Include <stdlib.h> rather than prototyping separately.
54243
54244 2007-02-20  Bruno Haible  <bruno@clisp.org>
54245
54246         * modules/stdio-tests: New file.
54247         * tests/test-stdio.c: New file.
54248
54249         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
54250         (Depends-on): Add stdio.
54251         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54252         (Include): Use <stdio.h> instead of vsnprintf.h.
54253         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54254         HAVE_DECL_VSNPRINTF.
54255         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
54256
54257         * modules/snprintf (Files): Remove lib/snprintf.h.
54258         (Depends-on): Add stdio.
54259         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54260         (Include): Use <stdio.h> instead of snprintf.h.
54261         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54262         HAVE_DECL_SNPRINTF.
54263         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
54264         * lib/getaddrinfo.c: Likewise.
54265
54266         * modules/stdio: New file.
54267         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
54268         * lib/snprintf.h: Remove file.
54269         * lib/vsnprintf.h: Remove file.
54270         * lib/.cppi-disable: Remove snprintf.h.
54271         * m4/stdio_h.m4: New file.
54272         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
54273
54274 2007-02-20  Jim Meyering  <jim@meyering.net>
54275
54276         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
54277         used by e.g., mingw.  From Bruno Haible.
54278
54279 2007-02-19  Bruno Haible  <bruno@clisp.org>
54280
54281         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
54282         warnings.
54283         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54284
54285 2007-02-19  Bruno Haible  <bruno@clisp.org>
54286
54287         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
54288         from mingw users.
54289
54290 2007-02-19  Bruno Haible  <bruno@clisp.org>
54291
54292         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
54293         warnings.
54294         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
54295
54296 2007-02-19  Jim Meyering  <jim@meyering.net>
54297
54298         Don't use FD after a successful "fdopendir (fd)".
54299         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
54300         Reset it by calling dirfd on the just-obtained DIR*.
54301
54302         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
54303         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
54304
54305 2007-02-18  Bruno Haible  <bruno@clisp.org>
54306
54307         * lib/readlink.c: Include <unistd.h>.
54308         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
54309         HAVE_READLINK.
54310         * modules/readlink (Depends-on): Add unistd.
54311         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54312         (Include): Add <unistd.h>.
54313
54314         * lib/getlogin_r.h: Remove file.
54315         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
54316         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
54317         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
54318         HAVE_DECL_GETLOGIN_R.
54319         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
54320         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54321         (Include): Use <unistd.h> instead of getlogin_r.h.
54322
54323         * lib/getcwd.h: Remove file.
54324         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
54325         * lib/xgetcwd.c: Likewise.
54326         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
54327         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
54328         * modules/getcwd (Files): Remove lib/getcwd.h.
54329         (Depends-on): Add unistd.
54330         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54331         (Include): Use <unistd.h> instad of getcwd.h.
54332
54333         * lib/ftruncate.c: Include <unistd.h> first.
54334         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
54335         Set HAVE_FTRUNCATE.
54336         * modules/ftruncate (Depends-on): Add unistd.
54337         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54338
54339         * lib/fchdir.c: Include <unistd.h> first.
54340         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
54341         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
54342         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
54343         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54344         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
54345
54346         * lib/dup2.c: Include <unistd.h> first.
54347         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
54348         HAVE_DUP2.
54349         * modules/dup2 (Depends-on): Add unistd.
54350         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54351
54352         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
54353         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
54354         REPLACE_CHOWN. Don't define chown as a macro here.
54355         * modules/chown (Depends-on): Add unistd.
54356         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54357
54358         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
54359         Add definition for GL_LINK_WARNING.
54360         (chown, dup2): New declarations.
54361         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
54362         link warning.
54363         (ftruncate): New declaration.
54364         (getcwd): New declaration, taken from old getcwd.h.
54365         (getlogin_r): New declaration, taken from old getlogin_r.h.
54366         (readlink): New declaration.
54367         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
54368         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
54369         (gl_PREREQ_UNISTD): Remove macro.
54370         (gl_UNISTD_MODULE_INDICATOR): New macro.
54371         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
54372         many new variables. Don't set UNISTD_H.
54373         * modules/unistd (Description): Change.
54374         (Depends-on): Add link-warning.
54375         (configure.ac): Update.
54376         (Makefile.am): Create unistd.h always. Substitute many new variables
54377         into it.
54378
54379 2007-02-18  Bruno Haible  <bruno@clisp.org>
54380
54381         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
54382         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
54383         HAVE_GETSUBOPT.
54384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
54385         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
54386         * lib/getsubopt.h: Remove file.
54387         * modules/getsubopt (Files): Remove lib/getsubopt.h.
54388         (Depends-on): Add stdlib.
54389         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54390         (Includes): Use <stdlib.h> instead of getsubopt.h.
54391         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
54392         Set HAVE_GETSUBOPT.
54393         * lib/getsubopt.c: Don't include getsubopt.h.
54394
54395 2007-02-18  Bruno Haible  <bruno@clisp.org>
54396
54397         * modules/fchdir (Depends-on): Add dup2.
54398
54399 2007-02-18  Bruno Haible  <bruno@clisp.org>
54400
54401         * lib/stdlib_.h: Handle glibc's special invocation convention
54402         specially.
54403
54404 2007-02-18  Bruno Haible  <bruno@clisp.org>
54405
54406         * modules/stdlib-tests: New file.
54407         * tests/test-stdlib.c: New file.
54408
54409         * modules/mkstemp (Files): Remove lib/mkstemp.h.
54410         (Depends-on): Add stdlib.
54411         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54412         (Includes): Use <stdlib.h> instead of mkstemp.h.
54413         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54414         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
54415         * lib/mkstemp.c: Don't include mkstemp.h.
54416         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
54417         * lib/stdlib--.h: Don't include mkstemp.h.
54418
54419         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
54420         (Depends-on): Add stdlib.
54421         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54422         (Includes): Use <stdlib.h> instead of mkdtemp.h.
54423         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54424         HAVE_MKDTEMP.
54425         * lib/mkdtemp.c: Don't include mkdtemp.h.
54426         * lib/clean-temp.c: Don't include mkdtemp.h.
54427
54428         * modules/exit (Files): Remove lib/exit.h.
54429         (Depends-on): Add stdlib.
54430         (Makefile.am): Remove lib_SOURCES.
54431         (Include): Use <stdlib.h> instead of exit.h.
54432         * lib/argmatch.c: Don't include exit.h.
54433         * lib/execute.c: Likewise.
54434         * lib/pagealign_alloc.c: Likewise.
54435         * lib/pipe.c: Likewise.
54436         * lib/wait-process.c: Likewise.
54437         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
54438         * lib/exitfail.c: Likewise.
54439         * lib/savewd.c: Likewise.
54440         * lib/xsetenv.c: Likewise.
54441
54442         * modules/stdlib: New file.
54443         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
54444         and extra comments about mkstemp().
54445         * lib/exit.h: Remove file.
54446         * lib/mkdtemp.h: Remove file.
54447         * lib/mkstemp.h: Remove file.
54448         * m4/stdlib_h.m4: New file.
54449         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
54450
54451 2007-02-18  Bruno Haible  <bruno@clisp.org>
54452
54453         * modules/math-tests: New file.
54454         * tests/test-math.c: New file.
54455
54456         * modules/math: New file.
54457         * modules/mathl (Files): Remove lib/mathl.h.
54458         (Depends-on): Add math.
54459         (Makefile.am): Don't mention mathl.h.
54460         (Include): Use <math.h> instead of mathl.h.
54461         * lib/math_.h: New file.
54462         * lib/mathl.h: Remove file.
54463         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
54464         mathl.h.
54465         * lib/asinl.c: Likewise.
54466         * lib/atanl.c: Likewise.
54467         * lib/ceill.c: Likewise.
54468         * lib/cosl.c: Likewise.
54469         * lib/expl.c: Likewise.
54470         * lib/floorl.c: Likewise.
54471         * lib/frexpl.c: Likewise.
54472         * lib/ldexpl.c: Likewise.
54473         * lib/logl.c: Likewise.
54474         * lib/sincosl.c: Likewise.
54475         * lib/sinl.c: Likewise.
54476         * lib/sqrtl.c: Likewise.
54477         * lib/tanl.c: Likewise.
54478         * lib/trigl.c: Likewise.
54479         * m4/math_h.m4: New file.
54480         * MODULES.html.sh (Mathematics): Add math.
54481
54482 2007-02-17  Bruno Haible  <bruno@clisp.org>
54483
54484         * modules/wctype-tests: New file.
54485         * tests/test-wctype.c: New file.
54486
54487         * modules/wchar-tests: New file.
54488         * tests/test-wchar.c: New file.
54489
54490         * modules/unistd-tests: New file.
54491         * tests/test-unistd.c: New file.
54492
54493         * modules/time-tests: New file.
54494         * tests/test-time.c: New file.
54495
54496         * modules/sysexits-tests: New file.
54497         * tests/test-sysexits.c: New file.
54498
54499         * modules/sys_time-tests: New file.
54500         * tests/test-sys_time.c: New file.
54501
54502         * modules/sys_stat-tests: New file.
54503         * tests/test-sys_stat.c: New file.
54504
54505         * modules/sys_socket-tests: New file.
54506         * tests/test-sys_socket.c: New file.
54507
54508         * modules/sys_select-tests: New file.
54509         * tests/test-sys_select.c: New file.
54510
54511         * modules/string-tests: New file.
54512         * tests/test-string.c: New file.
54513
54514         * modules/stdbool-tests: New file.
54515         * tests/test-stdbool.c: New file.
54516
54517         * modules/netinet_in-tests: New file.
54518         * tests/test-netinet_in.c: New file.
54519
54520         * modules/inttypes-tests: New file.
54521         * tests/test-inttypes.c: New file.
54522
54523         * modules/fcntl-tests: New file.
54524         * tests/test-fcntl.c: New file.
54525
54526         * modules/byteswap-tests: New file.
54527         * tests/test-byteswap.c: New file.
54528
54529         * modules/arpa_inet-tests: New file.
54530         * tests/test-arpa_inet.c: New file.
54531
54532 2007-02-17  Bruno Haible  <bruno@clisp.org>
54533
54534         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
54535         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
54536         if the corresponding module is not enabled. Emit link warnings if
54537         the function is used nevertheless.
54538         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
54539         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
54540         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
54541         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
54542         * modules/inttypes (Depends-on): Add link-warning.
54543         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54544         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
54545         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
54546         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
54547         * modules/imaxdiv (configure.ac): Likewise.
54548         * modules/strtoimax (configure.ac): Likewise.
54549         * modules/strtoumax (configure.ac): Likewise.
54550
54551 2007-02-17  Bruno Haible  <bruno@clisp.org>
54552
54553         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
54554         gl_STRING_MODULE_INDICATOR_DEFAULTS.
54555         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
54556         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
54557
54558 2007-02-17  Bruno Haible  <bruno@clisp.org>
54559
54560         * modules/link-warning: New file.
54561         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
54562         * lib/string_.h (GL_LINK_WARNING): Remove definition.
54563         * modules/string (Depends-on): Add link-warning.
54564         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54565         string.h.
54566         * MODULES.html.sh (Support for building libraries and executables): Add
54567         link-warning.
54568
54569 2007-02-17  Bruno Haible  <bruno@clisp.org>
54570
54571         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
54572         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
54573         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
54574         long lines.
54575
54576 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
54577             Bruno Haible  <bruno@clisp.org>
54578
54579         * modules/tmpfile: New file.
54580         * lib/tmpfile.c: New file.
54581         * m4/tmpfile.m4: New file.
54582         * MODULES.html.sh (func_all_modules): New section "Input/output".
54583
54584 2007-02-15  Bruno Haible  <bruno@clisp.org>
54585
54586         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
54587         (supports_delete_on_close): New function.
54588         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
54589
54590 2007-02-14  Bruno Haible  <bruno@clisp.org>
54591
54592         * modules/mbspcasecmp-tests: New file.
54593         * tests/test-mbspcasecmp.sh: New file.
54594         * tests/test-mbspcasecmp.c: New file.
54595
54596         New module mbspcasecmp.
54597         * modules/mbspcasecmp: New file.
54598         * lib/mbspcasecmp.c: New file.
54599         * lib/string_.h (strncasecmp): Change warning message.
54600         (mbspcasecmp): New declaration.
54601         * m4/mbspcasecmp.m4: New file.
54602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54603         GNULIB_MBSPCASECMP.
54604         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
54605         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
54606
54607 2007-02-14  Bruno Haible  <bruno@clisp.org>
54608
54609         * modules/mbsncasecmp-tests: New file.
54610         * tests/test-mbsncasecmp.sh: New file.
54611         * tests/test-mbsncasecmp.c: New file.
54612
54613         New module mbsncasecmp.
54614         * modules/mbsncasecmp: New file.
54615         * lib/mbsncasecmp.c: New file.
54616         * lib/string_.h (mbsncasecmp): New declaration.
54617         * m4/mbsncasecmp.m4: New file.
54618         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54619         GNULIB_MBSNCASECMP.
54620         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
54621         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
54622
54623 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54624
54625         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
54626         Verify that it doesn't overlap with our flags.
54627         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
54628         do not have the desired effect in multibyte locales; instead, use
54629         mbscasecmp.
54630         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
54631         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
54632         we don't require GNU fnmatch ourselves (if our users require it, they
54633         should do so explicitly).
54634
54635         Fix regex code so it doesn't rely on strcasecmp.
54636         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
54637         Otherwise, include gnulib's langinfo.h.
54638         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
54639         undesirable behavior in non-C locales.  Instead, rely on localecharset.
54640         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
54641         * modules/regex (FILES): Remove m4/codeset.m4.
54642         (Depends-on): Add localcharset.  Remove strcase.
54643
54644 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54645
54646         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54647         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54648
54649 2007-02-13  Bruno Haible  <bruno@clisp.org>
54650
54651         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54652         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54653
54654 2007-02-12  Bruno Haible  <bruno@clisp.org>
54655
54656         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54657         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54658         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54659         time warning rather than a link error.
54660
54661 2007-02-12  Bruno Haible  <bruno@clisp.org>
54662
54663         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54664         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54665         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54666
54667 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54668
54669         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54670         args, not 2.
54671
54672 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54673
54674         New module 'time', so that apps can include <time.h> as per
54675         POSIX and GNU instead of separate include files like time_r.h
54676         and timegm.h.  This implementation tries out a simpler approach
54677         for replacing decls in standard include files (as compared to
54678         the string module), somewhat as an experiment.
54679
54680         * config/srclist.txt: Comment out mktime.c for now.
54681         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54682         since it doesn't apply any more.  Use generic wording instead.
54683         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54684         'time'.
54685         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54686         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54687         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54688         Don't include <sys/types.h>; no longer needed since we assume C89.
54689         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54690         * lib/strftime.c: Likewise.
54691         * lib/time_r.c: Likewise.
54692         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54693         * lib/nanosleep.c: Include <time.h> first, to check interface.
54694         * lib/strptime.c: Likewise.
54695         * lib/time_r.c: Likewise.
54696         * lib/timegm.c: Likewise.
54697         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54698         needed.
54699         * lib/timegm.c: Don't include timegm.h; no longer needed.
54700         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54701         time.h now handles any problems in that area.
54702         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54703         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54704         that time.h defines struct timespec.
54705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54706         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54707         handles that.
54708         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54709         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54710         needed.  Set REPLACE_LOCALTIME.
54711         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54712         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54713         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54714         nanosleep; time_h.m4 now does that.  Don't require
54715         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54716         module handles this now.
54717         * modules/getdate (Depends-on): Remove timespec.  Add time.
54718         * modules/nanosleep (Depends-on): Likewise.
54719         * modules/stat-time (Depends-on): Likewise.
54720         * modules/nanosleep (Include): Include time.h, not timespec.h.
54721         * modules/strptime (Files): Remove lib/strptime.h.
54722         (Depends-on): Add extensions, time.
54723         (Include): Include time.h, not strptime.h.
54724         * modules/time_r (Files): Remove lib/time_r.h.
54725         (Depends-on): Add time.
54726         (Include): Include time.h, not time_r.h.
54727         * modules/timegm: Likewise.
54728         * modules/timespec (Description): Now does timespec-related decls
54729         of our own, instead of struct timespec itself.
54730         (Depends-on): Add time; remove extensions.
54731         (Maintainer): Add self.
54732         * modules/utimecmp (Depends-on): Add time; remove timespec.
54733         * modules/utimens (Depends-on): Likewise.
54734         * modules/xnanosleep (Depends-on): Likewise.
54735
54736 2007-02-11  Bruno Haible  <bruno@clisp.org>
54737
54738         * lib/c-strstr.c: Include allocsa.h.
54739         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54740         * lib/c-strcasestr.c: Include allocsa.h.
54741         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54742         * lib/strcasestr.c: Include allocsa.h.
54743         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54744         * lib/mbsstr.c: Include allocsa.h.
54745         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54746         allocsa/freesa instead of malloc/free.
54747         * lib/mbscasestr.c: Include allocsa.h.
54748         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54749         allocsa/freesa instead of malloc/free.
54750         * modules/c-strstr (Depends-on): Add allocsa.
54751         * modules/c-strcasestr (Depends-on): Likewise.
54752         * modules/strcasestr (Depends-on): Likewise.
54753         * modules/mbsstr (Depends-on): Likewise.
54754         * modules/mbscasestr (Depends-on): Likewise.
54755
54756 2007-02-11  Bruno Haible  <bruno@clisp.org>
54757
54758         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54759
54760         * modules/mbsspn-tests: New file.
54761         * tests/test-mbsspn.sh: New file.
54762         * tests/test-mbsspn.c: New file.
54763
54764 2007-02-11  Bruno Haible  <bruno@clisp.org>
54765
54766         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54767
54768         * modules/mbspbrk-tests: New file.
54769         * tests/test-mbspbrk.sh: New file.
54770         * tests/test-mbspbrk.c: New file.
54771
54772 2007-02-11  Bruno Haible  <bruno@clisp.org>
54773
54774         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54775         unneeded cast.
54776
54777         * modules/mbscspn-tests: New file.
54778         * tests/test-mbscspn.sh: New file.
54779         * tests/test-mbscspn.c: New file.
54780
54781 2007-02-11  Bruno Haible  <bruno@clisp.org>
54782
54783         * modules/mbscasecmp-tests: New file.
54784         * tests/test-mbscasecmp.sh: New file.
54785         * tests/test-mbscasecmp.c: New file.
54786
54787 2007-02-11  Bruno Haible  <bruno@clisp.org>
54788
54789         Ensure O(n) worst-case complexity of mbscasestr.
54790         * lib/mbscasestr.c: Include stdbool.h.
54791         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54792         functions.
54793         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54794         the bookkeeping indicates that it's worth it.
54795         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54796
54797         * modules/mbscasestr-tests: New file.
54798         * tests/test-mbscasestr1.c: New file.
54799         * tests/test-mbscasestr2.sh: New file.
54800         * tests/test-mbscasestr2.c: New file.
54801         * tests/test-mbscasestr3.sh: New file.
54802         * tests/test-mbscasestr3.c: New file.
54803         * tests/test-mbscasestr4.sh: New file.
54804         * tests/test-mbscasestr4.c: New file.
54805         * m4/locale-tr.m4: New file.
54806
54807 2007-02-11  Bruno Haible  <bruno@clisp.org>
54808
54809         Ensure O(n) worst-case complexity of mbsstr.
54810         * lib/mbsstr.c: Include stdbool.h.
54811         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54812         functions.
54813         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54814         bookkeeping indicates that it's worth it.
54815         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54816
54817         * modules/mbsstr-tests: New file.
54818         * tests/test-mbsstr1.c: New file.
54819         * tests/test-mbsstr2.sh: New file.
54820         * tests/test-mbsstr2.c: New file.
54821         * tests/test-mbsstr3.sh: New file.
54822         * tests/test-mbsstr3.c: New file.
54823         * m4/locale-fr.m4: New file.
54824
54825 2007-02-11  Bruno Haible  <bruno@clisp.org>
54826
54827         * lib/mbsrchr.c (mbsrchr): Fix bug.
54828
54829         * modules/mbsrchr-tests: New file.
54830         * tests/test-mbsrchr.sh: New file.
54831         * tests/test-mbsrchr.c: New file.
54832
54833 2007-02-11  Bruno Haible  <bruno@clisp.org>
54834
54835         * lib/mbschr.c (mbschr): Fix bug.
54836
54837         * modules/mbschr-tests: New file.
54838         * tests/test-mbschr.sh: New file.
54839         * tests/test-mbschr.c: New file.
54840         * m4/locale-zh.m4: New file.
54841
54842 2007-02-11  Bruno Haible  <bruno@clisp.org>
54843
54844         Support for copying multibyte string iterators.
54845         * lib/mbiter.h: Include <string.h>.
54846         (mbiter_multi_copy): New function.
54847         (mbi_copy): New macro.
54848         * lib/mbuiter.h: Include <string.h>.
54849         (mbuiter_multi_copy): New function.
54850         (mbui_copy): New macro.
54851
54852 2007-02-11  Bruno Haible  <bruno@clisp.org>
54853
54854         New module mbslen.
54855         * modules/mbslen: New file.
54856         * lib/mbslen.c: New file.
54857         * lib/string_.h (mbslen): New declaration.
54858         * m4/mbslen.m4: New file.
54859         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54860         GNULIB_MBSLEN.
54861         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54862         * MODULES.html.sh (Internationalization functions): Add mbslen.
54863
54864 2007-02-11  Bruno Haible  <bruno@clisp.org>
54865
54866         Ensure O(n) worst-case complexity of strcasestr substitute.
54867         * lib/strcasestr.c: Include stdbool.h.
54868         (knuth_morris_pratt): New function.
54869         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54870         bookkeeping indicates that it's worth it.
54871         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54872
54873         * modules/strcasestr-tests: New file.
54874         * tests/test-strcasestr.c: New file.
54875
54876 2007-02-11  Bruno Haible  <bruno@clisp.org>
54877
54878         Ensure O(n) worst-case complexity of c_strcasestr.
54879         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54880         (knuth_morris_pratt): New function.
54881         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54882         the bookkeeping indicates that it's worth it.
54883         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54884
54885         * modules/c-strcasestr-tests: New file.
54886         * tests/test-c-strcasestr.c: New file.
54887
54888 2007-02-11  Bruno Haible  <bruno@clisp.org>
54889
54890         Ensure O(n) worst-case complexity of c_strstr.
54891         * lib/c-strstr.c: Include stdbool.h, string.h.
54892         (knuth_morris_pratt): New function.
54893         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54894         bookkeeping indicates that it's worth it.
54895         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54896
54897         * lib/c-strstr.c: Complete rewrite for maintainability.
54898
54899         * modules/c-strstr-tests: New file.
54900         * tests/test-c-strstr.c: New file.
54901
54902 2007-02-11  Bruno Haible  <bruno@clisp.org>
54903
54904         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54905         5.2.1 and earlier, whereby \055 was treated just like the range
54906         delimiter '-'.
54907         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54908
54909 2007-02-08  Bruno Haible  <bruno@clisp.org>
54910
54911         * modules/regex (Depends-on): Add stdbool.
54912         Reported by Dalibor Topic <robilad@kaffe.org>.
54913
54914 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54915
54916         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54917         Prefer returning from main to exiting from it.
54918         Remove unnecessary parens after sizeof.
54919
54920 2007-02-05  Bruno Haible  <bruno@clisp.org>
54921
54922         New module mbssep.
54923         * modules/mbssep: New file.
54924         * lib/mbssep.c: New file.
54925         * lib/string_.h (strsep): Add a conditional link warning.
54926         (mbssep): New declaration.
54927         * m4/mbssep.m4: New file.
54928         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54929         GNULIB_MBSSEP.
54930         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54931         * MODULES.html.sh (Internationalization functions): Add mbssep.
54932
54933 2007-02-05  Bruno Haible  <bruno@clisp.org>
54934
54935         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54936         Optimize search in case of 1 delimiter.
54937
54938 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54939
54940         * lib/acl.h: Include sys/types.h before sys/acl.h.
54941
54942 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54943
54944         Merge upstream fix for glibc bugzilla #3957:
54945
54946         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54947
54948         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54949         bit for RE_HAT_LISTS_NOT_NEWLINE.
54950         (build_charclass_op): Remove bogus comment.
54951
54952 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54953
54954         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54955
54956 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54957
54958         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54959         * lib/memmem.c [!defined _LIBC]: Include config.h.
54960
54961 2007-02-04  Bruno Haible  <bruno@clisp.org>
54962
54963         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54964         warning message.
54965
54966 2007-02-04  Bruno Haible  <bruno@clisp.org>
54967
54968         New module mbstok_r.
54969         * modules/mbstok_r: New file.
54970         * lib/mbstok_r.c: New file.
54971         * lib/string_.h (strtok_r): Change argument names to match the
54972         comments. Add a conditional link warning.
54973         (mbstok_r): New declaration.
54974         * m4/mbstok_r.m4: New file.
54975         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54976         GNULIB_MBSTOK_R.
54977         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54978         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54979
54980 2007-02-04  Bruno Haible  <bruno@clisp.org>
54981
54982         New module mbsspn.
54983         * modules/mbsspn: New file.
54984         * lib/mbsspn.c: New file.
54985         * lib/string_.h (strspn): Add a conditional link warning.
54986         (mbsspn): New declaration.
54987         * m4/mbsspn.m4: New file.
54988         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54989         GNULIB_MBSSPN.
54990         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54991         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54992
54993 2007-02-04  Bruno Haible  <bruno@clisp.org>
54994
54995         New module mbspbrk.
54996         * modules/mbspbrk: New file.
54997         * lib/mbspbrk.c: New file.
54998         * lib/string_.h (strpbrk): Add a conditional link warning.
54999         (mbspbrk): New declaration.
55000         * m4/mbspbrk.m4: New file.
55001         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55002         GNULIB_MBSPBRK.
55003         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
55004         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
55005
55006 2007-02-04  Bruno Haible  <bruno@clisp.org>
55007
55008         New module mbscspn.
55009         * modules/mbscspn: New file.
55010         * lib/mbscspn.c: New file.
55011         * lib/string_.h (strcspn): Add a conditional link warning.
55012         (mbscspn): New declaration.
55013         * m4/mbscspn.m4: New file.
55014         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55015         GNULIB_MBSCSPN.
55016         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
55017         * MODULES.html.sh (Internationalization functions): Add mbscspn.
55018
55019 2007-02-04  Bruno Haible  <bruno@clisp.org>
55020
55021         New module mbscasestr, reduced goal of strcasestr.
55022         * modules/mbscasestr: New file.
55023         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
55024         (mbscasestr): Renamed from strcasestr.
55025         * lib/strcasestr.c: Don't include mbuiter.h.
55026         (strcasestr): Remove support for multibyte locales.
55027         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
55028         Change the conditional link warning.
55029         (mbscasestr): New declaration.
55030         * m4/mbscasestr.m4: New file.
55031         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
55032         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
55033         REPLACE_STRCASESTR.
55034         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
55035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55036         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55037         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
55038         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
55039         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55040         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
55041         (Depends-on): Remove mbuiter.
55042         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
55043
55044 2007-02-04  Bruno Haible  <bruno@clisp.org>
55045
55046         Simplify handling of strncasecmp.
55047         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
55048         the conditional link warning.
55049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55050         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
55051         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
55052         * modules/strcase (configure.ac): Don't invoke
55053         gl_STRING_MODULE_INDICATOR.
55054         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
55055
55056 2007-02-04  Bruno Haible  <bruno@clisp.org>
55057
55058         New module mbscasecmp, reduced goal of strcasecmp.
55059         * modules/mbscasecmp: New file.
55060         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
55061         (mbscasecmp): Renamed from strcasecmp.
55062         * lib/strcasecmp.c: Don't include mbuiter.h.
55063         (strcasecmp): Remove support for multibyte locales.
55064         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
55065         Change the conditional link warning.
55066         (mbscasecmp): New declaration.
55067         * m4/mbscasecmp.m4: New file.
55068         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
55069         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
55070         REPLACE_STRCASECMP.
55071         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
55072         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55073         GNULIB_MBSCASECMP.
55074         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
55075         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
55076         * modules/strcase (Files): Remove m4/mbrtowc.m4.
55077         (Depends-on): Remove mbuiter.
55078         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
55079
55080 2007-02-04  Bruno Haible  <bruno@clisp.org>
55081
55082         New module mbsstr. Remove module strstr.
55083         * modules/mbsstr: New file.
55084         * modules/strstr: Remove file.
55085         * lib/mbsstr.c: Renamed from lib/strstr.c.
55086         (mbsstr): Renamed from strstr.
55087         * lib/string_.h (strstr): Remove declaration. Change the conditional
55088         link warning.
55089         (mbsstr): New declaration.
55090         * m4/mbsstr.m4: New file.
55091         * m4/strstr.m4: Remove file.
55092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
55093         REPLACE_STRSTR.
55094         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
55095         Don't initialize GNULIB_STRSTR.
55096         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
55097         substitute GNULIB_STRSTR and REPLACE_STRSTR.
55098         * MODULES.html.sh (Internationalization functions): Add mbsstr.
55099         (Support for systems lacking ANSI C 89): Remove strstr.
55100
55101 2007-02-04  Bruno Haible  <bruno@clisp.org>
55102
55103         New module mbsrchr.
55104         * modules/mbsrchr: New file.
55105         * lib/mbsrchr.c: New file.
55106         * lib/string_.h (strrchr): Add a conditional link warning.
55107         (mbsrchr): New declaration.
55108         * m4/mbsrchr.m4: New file.
55109         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55110         GNULIB_MBSRCHR.
55111         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
55112         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
55113
55114 2007-02-04  Bruno Haible  <bruno@clisp.org>
55115
55116         New module mbschr.
55117         * modules/mbschr: New file.
55118         * lib/mbschr.c: New file.
55119         * lib/string_.h (strchr): Add a conditional link warning.
55120         (mbschr): New declaration.
55121         * m4/mbschr.m4: New file.
55122         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55123         GNULIB_MBSCHR.
55124         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
55125         * MODULES.html.sh (Internationalization functions): Add mbschr.
55126
55127 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55128
55129         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
55130
55131         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
55132
55133 2007-02-04  Bruno Haible  <bruno@clisp.org>
55134
55135         New module description section 'configure.ac-early'.
55136         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
55137         (func_get_autoconf_early_snippet): New function.
55138         (func_import, func_create_testdir): Use it. Remove special cases for
55139         modules 'extensions' and 'lock'.
55140         * modules/extensions (configure.ac-early): Require
55141         gl_USE_SYSTEM_EXTENSIONS.
55142         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
55143
55144 2007-02-04  Bruno Haible  <bruno@clisp.org>
55145
55146         Make use of gcj-4.3's -fsource and -ftarget option.
55147         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
55148         and if so try the options -fsource and -ftarget.
55149         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
55150         source_version, ftarget_option, target_version arguments.
55151         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
55152         (is_envjavac_oldgcj_14_14_usable): Renamed from
55153         is_envjavac_gcj_14_14_usable.
55154         (is_envjavac_oldgcj_14_13_usable): Renamed from
55155         is_envjavac_gcj_14_13_usable.
55156         (is_gcj_present): Update.
55157         (is_gcj_43, is_gcj43_usable): New functions.
55158         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
55159         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
55160         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
55161         try the options -fsource and -ftarget.
55162
55163 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55164
55165         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
55166         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
55167         larger value.
55168
55169 2007-02-03  Jim Meyering  <jim@meyering.net>
55170
55171         Give tools a better chance to allocate space for very large buffers.
55172         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
55173
55174         Make pwd and readlink work also when run with an unreadable parent dir
55175         on systems with openat support.
55176         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
55177         provided getcwd function, even when we have openat support.
55178         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
55179
55180 2007-02-02  Bruno Haible  <bruno@clisp.org>
55181
55182         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55183         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
55184         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
55185         portability problems if one of these functions is only used on specific
55186         platforms.
55187         Reported by Paul Eggert.
55188
55189 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
55190
55191         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
55192         is causing more trouble than it's curing.
55193         * lib/regex_internal.h (__mempcpy): Remove.
55194         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
55195         (and make the code a tad smaller to boot).
55196         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
55197
55198 2007-02-02  Jim Meyering  <jim@meyering.net>
55199
55200         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
55201         section, not in the Makefile.am: one.
55202
55203 2007-02-02  Eric Blake  <ebb9@byu.net>
55204
55205         * lib/strchrnul.c: Always include config.h first.
55206
55207         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
55208         gnulib strstr is not necessary here.
55209
55210 2007-02-02  Simon Josefsson  <simon@josefsson.org>
55211
55212         * m4/socklen.m4: Fix typo.
55213
55214 2007-02-02  Eric Blake  <ebb9@byu.net>
55215
55216         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
55217         * modules/netinet_in (Makefile.am): Likewise.
55218
55219 2007-02-01  Bruno Haible  <bruno@clisp.org>
55220
55221         * lib/string_.h (GL_LINK_WARNING): New macro.
55222         (strcasecmp, strstr, strcasestr): If provided by the system,
55223         conditionally define as a macro that leads to a warning instead of to
55224         an error.
55225         (strncasecmp): Conditionally define as a macro that leads to a warning.
55226
55227 2007-02-01  Karl Berry  <karl@gnu.org>
55228
55229         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
55230
55231 2007-02-01  Bruno Haible  <bruno@clisp.org>
55232
55233         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
55234         renamings.
55235
55236 2007-02-01  Eric Blake  <ebb9@byu.net>
55237
55238         * modules/regex (Depends-on): Revert dependence on mempcpy.
55239         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
55240         module's definition of mempcpy.
55241         Reported by Paul Eggert.
55242
55243 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55244
55245         * lib/string_.h: If the gnulib module XYZ is not present, undefine
55246         the symbol XYZ before redefining it.  This fixes a problem with
55247         programs that don't use XYZ, when compiled on systems that define
55248         XYZ to something else.
55249
55250 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
55251
55252         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
55253         occurs when "mkdir -m foo" creates a setgid directory that is (1)
55254         writeable to group or other and (2) is intended to have a special
55255         mode bit that is set or cleared.  In such a case, the directory
55256         should be neither group- nor other-writeable until the special
55257         mode bits are right.
55258
55259 2007-01-31  Eric Blake  <ebb9@byu.net>
55260
55261         * modules/mountlist (Depends-on): Add strstr.
55262
55263         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
55264         bug.
55265         * modules/string (Makefile.am): Remove redundant replacement.
55266         * modules/regex (Depends-on): Add mempcpy.
55267
55268 2007-01-31  Bruno Haible  <bruno@clisp.org>
55269
55270         New module description field 'Link'.
55271         * gnulib-tool (func_usage): Document --extract-link-directive.
55272         (sed_extract_prog): Recognize 'Link' directive.
55273         (func_get_link_directive): New function.
55274         (func_import): Show summary of link directives.
55275         Handle --extract-link-directive option.
55276         * modules/acl (Link): New section.
55277         * modules/clock-time (Link): New section.
55278         * modules/euidaccess (Link): New section.
55279         * modules/gettext (Link): New section.
55280         * modules/iconv (Link): New section.
55281         * modules/lock (Link): New section.
55282         * modules/nanosleep (Link): New section.
55283         * modules/readline (Link): New section.
55284
55285 2007-01-27  Bruno Haible  <bruno@clisp.org>
55286
55287         Enforce the use of gnulib modules for unportable <string.h> functions.
55288         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
55289         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
55290         (gl_HEADER_STRING_H_BODY): Require it.
55291         * lib/string_.h: If the gnulib module XYZ is not present, redefine
55292         the symbol XYZ to one that gives a link error.
55293         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
55294         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
55295         * modules/mempcpy (configure.ac): Likewise.
55296         * modules/memrchr (configure.ac): Likewise.
55297         * modules/stpcpy (configure.ac): Likewise.
55298         * modules/stpncpy (configure.ac): Likewise.
55299         * modules/strcase (configure.ac): Likewise.
55300         * modules/strcasestr (configure.ac): Likewise.
55301         * modules/strchrnul (configure.ac): Likewise.
55302         * modules/strdup (configure.ac): Likewise.
55303         * modules/strndup (configure.ac): Likewise.
55304         * modules/strnlen (configure.ac): Likewise.
55305         * modules/strpbrk (configure.ac): Likewise.
55306         * modules/strsep (configure.ac): Likewise.
55307         * modules/strstr (configure.ac): Likewise.
55308         * modules/strtok_r (configure.ac): Likewise.
55309
55310 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
55311
55312         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
55313
55314 2007-01-30  Jim Meyering  <jim@meyering.net>
55315
55316         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
55317
55318 2007-01-29  Bruno Haible  <bruno@clisp.org>
55319
55320         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
55321         * lib/execute.c: Likewise.
55322         * lib/pipe.c: Likewise.
55323         * lib/printf-args.h: Likewise.
55324         * lib/printf-args.c: Likewise.
55325         * lib/printf-parse.c: Likewise.
55326         * lib/vasnprintf.c: Likewise.
55327
55328 2007-01-29  Eric Blake  <ebb9@byu.net>
55329
55330         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
55331         declaration.
55332
55333 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55334
55335         * lib/strptime.h (strptime): Use 'restrict' for args where
55336         POSIX requires this.
55337         * lib/strptime.c (strptime): Likewise.
55338         Change license notice from LGPL to GPL, since gnulib-tool will
55339         change this as needed.
55340         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
55341         defined.
55342         Include "strptime.h" first, to check interface.
55343         Do not #undef _LIBC and _NL_CURRENT.
55344         Do not include <stdlib.h>; no longer needed.
55345         Include "time_r.h" and declare ptime_locale_status
55346         only if _LIBC is not defined.
55347         (__P): Remove unused macro.
55348         (match_string): Bring back glibc version, but use it only if _LIBC
55349         is defined.
55350         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
55351         Remove unnecessary assertion and abort() call.
55352         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
55353         * m4/strptime.m4: Fix serial number comment.
55354         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
55355         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
55356         (Depends-on): Add time_r.
55357
55358 2007-01-29  Bruno Haible  <bruno@clisp.org>
55359
55360         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55361         strptime.
55362         * modules/strptime (Depends-on): Add stdbool.
55363         * lib/strptime.h: Include <time.h> always. Add comments.
55364
55365 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55366
55367         * modules/strptime: New file.
55368         * lib/strptime.h: New file.
55369         * lib/strptime.c: New file.
55370         * m4/strptime.m4: New file.
55371
55372 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55373
55374         * MODULES.html.sh: New module mpsort.
55375         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
55376
55377         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
55378         a circularity problem with HP-UX ia64 reported by Bob Proulx in
55379         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
55380         All uses changed.
55381         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
55382         All uses changed.
55383         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
55384         to _Restrict_.
55385         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
55386         the parameter matches the prototype.
55387
55388 2007-01-28  Jim Meyering  <jim@meyering.net>
55389
55390         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
55391         sys/time.h here, reverting that part of the previous patch:
55392         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
55393
55394 2007-01-28  Bruno Haible  <bruno@clisp.org>
55395
55396         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
55397         value of $(SYS_TIME_H).
55398         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
55399         remove it conditionally, too. [added by Jim Meyering]
55400         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
55401         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55402         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
55403         GETTIMEOFDAY_REPLACEMENT to 1.
55404
55405 2007-01-28  Bruno Haible  <bruno@clisp.org>
55406
55407         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
55408         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
55409         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
55410         Set UNISTD_H instead of UNISTD_H2.
55411         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
55412
55413 2007-01-28  Bruno Haible  <bruno@clisp.org>
55414
55415         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
55416         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
55417
55418 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55419
55420         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
55421         (func_create_testdir): Ensure C locale for `grep' and `tr'
55422         character ranges.
55423         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
55424         ACLOCAL_AMFLAGS parsing state machine.
55425
55426 2007-01-27  Bruno Haible  <bruno@clisp.org>
55427
55428         * modules/unistr/base: Update.
55429
55430 2007-01-27  Bruno Haible  <bruno@clisp.org>
55431
55432         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
55433         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
55434         * modules/unistr/u32-mbtouc-unsafe: Renamed from
55435         modules/unistr/u32-mbtouc.
55436         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
55437         * lib/unistr.h: Update.
55438         * lib/linebreak.c: Update.
55439         * modules/unistr/u32-mbtouc: Renamed from
55440         modules/unistr/u32-mbtouc-safe.
55441         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
55442         * lib/unistr.h: Update.
55443         * lib/unistr/u32-to-u8.c: Update.
55444         * lib/unistr/u32-to-u16.c: Update.
55445
55446 2007-01-27  Bruno Haible  <bruno@clisp.org>
55447
55448         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
55449         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
55450         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
55451         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
55452         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
55453         * modules/unistr/u16-mbtouc-unsafe: Renamed from
55454         modules/unistr/u16-mbtouc.
55455         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
55456         * lib/unistr.h: Update.
55457         * lib/linebreak.c: Update.
55458         * modules/linebreak: Update.
55459         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
55460         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
55461         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
55462         * modules/unistr/u16-mbtouc: Renamed from
55463         modules/unistr/u16-mbtouc-safe.
55464         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
55465         * lib/unistr.h: Update.
55466         * lib/unistr/u16-to-u8.c: Update.
55467         * modules/unistr/u16-to-u8: Update.
55468         * lib/unistr/u16-to-u32.c: Update.
55469         * modules/unistr/u16-to-u32: Update.
55470
55471 2007-01-27  Bruno Haible  <bruno@clisp.org>
55472
55473         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
55474         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
55475         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
55476         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
55477         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
55478         * modules/unistr/u8-mbtouc-unsafe: Renamed from
55479         modules/unistr/u8-mbtouc.
55480         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
55481         * lib/unistr.h: Update.
55482         * lib/striconveh.c: Update.
55483         * modules/striconveh: Update.
55484         * lib/linebreak.c: Update.
55485         * modules/linebreak: Update.
55486         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
55487         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
55488         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
55489         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
55490         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
55491         * lib/unistr.h: Update.
55492         * lib/striconveh.c: Update.
55493         * modules/striconveh: Update.
55494         * lib/unistr/u8-to-u16.c: Update.
55495         * modules/unistr/u8-to-u16: Update.
55496         * lib/unistr/u8-to-u32.c: Update.
55497         * modules/unistr/u8-to-u32: Update.
55498
55499 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55500
55501         Sync from Libtool.
55502         * lib/argz.c: Do not include strings.h nor memory.h, include
55503         string.h unconditionally.  Patch by Simon Josefsson.
55504
55505 2007-01-27  Bruno Haible  <bruno@clisp.org>
55506
55507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
55508         from gl_HEADER_STRING_H_BODY.
55509         (gl_HEADER_STRING_H_BODY): Require it.
55510         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
55511         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55512         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55513         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55514         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55515         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
55516         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55517         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55518         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
55519         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55520         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55521         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
55522         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55523         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55524         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55525
55526 2007-01-27  Bruno Haible  <bruno@clisp.org>
55527
55528         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
55529         check_PROGRAMS into noinst_PROGRAMS.
55530         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
55531         check_PROGRAMS in this case.
55532         (func_import): Set for_test to false.
55533         (func_create_testdir): Set for_test to true.
55534
55535 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55536             Bruno Haible  <bruno@clisp.org>
55537
55538         * modules/strcasestr (Files): Remove lib/strcasestr.h.
55539         (Depends-on): Add string.
55540         (Includes): Use <string.h> instead of strcasestr.h.
55541         * modules/string (Makefile.am): Also substitute the value of
55542         REPLACE_STRCASESTR.
55543         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
55544         assume strcasestr is declared in <string.h> not <strings.h>. Also
55545         set REPLACE_STRCASESTR.
55546         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
55547         REPLACE_STRCASESTR.
55548         * lib/strcasestr.h: Remove file.
55549         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
55550         * lib/string_.h (strcasestr): New declaration.
55551
55552 2007-01-27  Bruno Haible  <bruno@clisp.org>
55553
55554         * lib/string_.h: Use 'extern'.
55555
55556 2007-01-27  Jim Meyering  <jim@meyering.net>
55557
55558         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
55559         of set-but-not-used local, "q".
55560
55561         * lib/mempcpy.c: Include <config.h> before <string.h>.
55562         This fixes a compilation error on HP-UX, due to the system's
55563         "restrict"-using mempcpy prototype.
55564
55565 2007-01-26  Bruno Haible  <bruno@clisp.org>
55566
55567         Small optimization.
55568         * lib/javacomp.c: Include c-strstr.h.
55569          (is_envjavac_gcj): Use c_strstr instead of strstr.
55570         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
55571
55572 2007-01-26  Bruno Haible  <bruno@clisp.org>
55573
55574         * MODULES.html.sh (Unicode string functions): Add the new modules.
55575
55576         * modules/uniconv/u32-strconv-to-locale: New file.
55577         * lib/uniconv/u32-strconv-to-locale.c: New file.
55578
55579         * modules/uniconv/u16-strconv-to-locale: New file.
55580         * lib/uniconv/u16-strconv-to-locale.c: New file.
55581
55582         * modules/uniconv/u8-strconv-to-locale: New file.
55583         * lib/uniconv/u8-strconv-to-locale.c: New file.
55584
55585         * modules/uniconv/u32-strconv-from-locale: New file.
55586         * lib/uniconv/u32-strconv-from-locale.c: New file.
55587
55588         * modules/uniconv/u16-strconv-from-locale: New file.
55589         * lib/uniconv/u16-strconv-from-locale.c: New file.
55590
55591         * modules/uniconv/u8-strconv-from-locale: New file.
55592         * lib/uniconv/u8-strconv-from-locale.c: New file.
55593
55594         * modules/uniconv/u32-strconv-to-enc: New file.
55595         * lib/uniconv/u32-strconv-to-enc.c: New file.
55596         * modules/uniconv/u32-strconv-to-enc-tests: New file.
55597         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
55598
55599         * modules/uniconv/u16-strconv-to-enc: New file.
55600         * lib/uniconv/u16-strconv-to-enc.c: New file.
55601         * lib/uniconv/u-strconv-to-enc.h: New file.
55602         * modules/uniconv/u16-strconv-to-enc-tests: New file.
55603         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
55604
55605         * modules/uniconv/u8-strconv-to-enc: New file.
55606         * lib/uniconv/u8-strconv-to-enc.c: New file.
55607         * modules/uniconv/u8-strconv-to-enc-tests: New file.
55608         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
55609
55610         * modules/uniconv/u32-strconv-from-enc: New file.
55611         * lib/uniconv/u32-strconv-from-enc.c: New file.
55612         * modules/uniconv/u32-strconv-from-enc-tests: New file.
55613         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
55614
55615         * modules/uniconv/u16-strconv-from-enc: New file.
55616         * lib/uniconv/u16-strconv-from-enc.c: New file.
55617         * modules/uniconv/u16-strconv-from-enc-tests: New file.
55618         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
55619
55620         * modules/uniconv/u8-strconv-from-enc: New file.
55621         * lib/uniconv/u8-strconv-from-enc.c: New file.
55622         * lib/uniconv/u-strconv-from-enc.h: New file.
55623         * modules/uniconv/u8-strconv-from-enc-tests: New file.
55624         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
55625
55626         * modules/uniconv/u32-conv-from-enc: New file.
55627         * lib/uniconv/u32-conv-from-enc.c: New file.
55628         * modules/uniconv/u32-conv-from-enc-tests: New file.
55629         * tests/uniconv/test-u32-conv-from-enc.c: New file.
55630
55631         * modules/uniconv/u16-conv-from-enc: New file.
55632         * lib/uniconv/u16-conv-from-enc.c: New file.
55633         * lib/uniconv/u-conv-from-enc.h: New file.
55634         * modules/uniconv/u16-conv-from-enc-tests: New file.
55635         * tests/uniconv/test-u16-conv-from-enc.c: New file.
55636
55637         * modules/uniconv/u8-conv-from-enc: New file.
55638         * lib/uniconv/u8-conv-from-enc.c: New file.
55639         * modules/uniconv/u8-conv-from-enc-tests: New file.
55640         * tests/uniconv/test-u8-conv-from-enc.c: New file.
55641
55642         * modules/uniconv/base: New file.
55643         * lib/uniconv.h: New file.
55644
55645 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55646
55647         * doc/gnulib-tool.texi (Initial import): Update to match current
55648         behavior with strdup module.
55649         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55650         * lib/memmem.h: Remove; all uses removed.  This is now done
55651         by <string.h>.
55652         * lib/mempcpy.h: Likewise.
55653         * lib/memrchr.h: Likewise.
55654         * lib/stpcpy.h: Likewise.
55655         * lib/stpncpy.h: Likewise.
55656         * lib/strcase.h: Likewise.
55657         * lib/strchrnul.h: Likewise.
55658         * lib/strdup.h: Likewise.
55659         * lib/strndup.h: Likewise.
55660         * lib/strnlen.h: Likewise.
55661         * lib/strpbrk.h: Likewise.
55662         * lib/strsep.h: Likewise.
55663         * lib/strstr.h: Likewise.
55664         * lib/strtok_r.h: Likewise.
55665         * lib/string_.h: New file.
55666         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55667         Rely on <string.h> instead.
55668         * lib/canon-host.c: Likewise.
55669         * lib/chdir-long.c: Likewise.
55670         * lib/concatpath.c: Likewise.
55671         * lib/exclude.c: Likewise.
55672         * lib/fchdir.c: Likewise.
55673         * lib/getaddrinfo.c: Likewise.
55674         * lib/getcwd.c: Likewise.
55675         * lib/getsubopt.c: Likewise.
55676         * lib/glob.c: Likewise.
55677         * lib/hard-locale.c: Likewise.
55678         * lib/iconvme.c: Likewise.
55679         * lib/javacomp.c: Likewise.
55680         * lib/mempcpy.c: Likewise.
55681         * lib/memrchr.c: Likewise.
55682         * lib/regex_internal.h: Likewise.
55683         * lib/stpncpy.c: Likewise.
55684         * lib/strcasecmp.c: Likewise.
55685         * lib/strchrnul.c: Likewise.
55686         * lib/strdup.c: Likewise.
55687         * lib/striconv.c: Likewise.
55688         * lib/striconveh.c: Likewise.
55689         * lib/striconveha.c: Likewise.
55690         * lib/strncasecmp.c: Likewise.
55691         * lib/strndup.c: Likewise.
55692         * lib/strnlen.c: Likewise.
55693         * lib/strsep.c: Likewise.
55694         * lib/strstr.c: Likewise.
55695         * lib/strtok_r.c: Likewise.
55696         * lib/userspec.c: Likewise.
55697         * lib/w32spawn.h: Likewise.
55698         * lib/xstrndup.c: Likewise.
55699         * lib/mountlist.c (strstr): Remove decl.
55700         * m4/string_h.m4: New file.
55701         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55702         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55703         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55704         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55705         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55706         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55707         Set REPLACE_STRCASECMP if necessary.
55708         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55709         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55710         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55711         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55712         HAVE_DECL_STRDUP if necessary.
55713         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55714         since gl_FUNC_STRNDUP does that now.
55715         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55716         Check for decl here...
55717         (gl_PREREQ_STRNLEN): ... not here.
55718         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55719         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55720         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55721         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55722         necessary.
55723         * modules/string: New file.
55724         * modules/memmem (Files): Remove special-purpose include file.
55725         (Depends-on): Add string.
55726         (Include): Include <string.h>, not the removed file.
55727         * modules/mempcpy: Likewise.
55728         * modules/memrchr: Likewise.
55729         * modules/stpcpy: Likewise.
55730         * modules/stpncpy: Likewise.
55731         * modules/strcase: Likewise.
55732         * modules/strchrnul: Likewise.
55733         * modules/strdup: Likewise.
55734         * modules/strndup: Likewise.
55735         * modules/strnlen: Likewise.
55736         * modules/strpbrk: Likewise.
55737         * modules/strsep: Likewise.
55738         * modules/strstr: Likewise.
55739         * modules/strtok_r: Likewise.
55740         * tests/test-dirname.c: Don't include "strdup.h", since
55741         <string.h> now suffices.
55742         * tests/test-memmem.c: Don't include "memmem.h", since
55743         <string.h> now suffices.
55744
55745 2007-01-25  Bruno Haible  <bruno@clisp.org>
55746
55747         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55748         *resultp is 0.
55749
55750         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55751         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55752         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55753         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55754
55755         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55756         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55757         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55758         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55759         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55760         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55761
55762 2007-01-24  Bruno Haible  <bruno@clisp.org>
55763
55764         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55765         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55766         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55767         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55768         gl_FUNC_FTS_CORE.
55769         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55770         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55771         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55772         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55773         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55774         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55775         gl_FUNC_FCHOWNAT.
55776         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55777         gl_FUNC_STRFTIME.
55778         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55779         Reported by Ralf Wildenhues.
55780
55781 2007-01-24  Bruno Haible  <bruno@clisp.org>
55782
55783         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55784         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55785         gl_GETADDRINFO.
55786         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55787         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55788         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55789
55790 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55791
55792         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55793         Don't use 'exit'; just return from 'main'.
55794         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55795
55796         * lib/fnmatch_.h: Readjust white space and comments to match
55797         glibc, to avoid spurious diffs.
55798
55799 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55800
55801         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55802         2004-12-01 change by Jakub Jelinek, since this code won't compile
55803         if !LIBC.  Problem reported by Bob Proulx.
55804
55805 2007-01-23  Bruno Haible  <bruno@clisp.org>
55806
55807         * lib/striconveh.c: Include c-strcaseeq.h.
55808         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55809         * modules/striconveh (Depends-on): Add c-strcaseeq.
55810
55811 2007-01-23  Bruno Haible  <bruno@clisp.org>
55812
55813         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55814
55815         * modules/c-strcaseeq: New file.
55816         * lib/c-strcaseeq.h: New file.
55817
55818         * modules/streq: New file.
55819         * lib/streq.h: New file.
55820
55821 2007-01-23  Bruno Haible  <bruno@clisp.org>
55822
55823         * modules/striconveha-tests: New file.
55824         * tests/test-striconveha.c: New file.
55825
55826         * lib/striconveha.h: Include <stdbool.h>.
55827         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55828         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55829         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55830         (mem_iconveha): New function.
55831         (str_iconveha_notranslit): Renamed from str_iconveha.
55832         (str_iconveha): New function.
55833         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55834         c-strcase.
55835
55836 2007-01-23  Bruno Haible  <bruno@clisp.org>
55837
55838         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55839         encodings without forgiving before trying any encoding with handler.
55840         (str_iconveha): Try all encodings without forgiving before trying any
55841         encoding with handler.
55842
55843 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55844
55845         Import the following changes from libc.
55846
55847         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55848
55849         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55850
55851         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55852
55853         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55854         normal_bracket label.
55855
55856         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55857
55858         [BZ #361]
55859         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55860         to normal_bracket after fetching the next character.
55861
55862 2007-01-22  Bruno Haible  <bruno@clisp.org>
55863
55864         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55865         argument.
55866         * lib/striconveh.c (iconv_carefully_1): New function.
55867         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55868         argument.
55869         (str_cd_iconveh): Update.
55870         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55871         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55872         * tests/test-striconveh.c (MAGIC): New macro.
55873         (new_offsets): New function.
55874         (main): Test call with and without offsets.
55875
55876 2007-01-22  Bruno Haible  <bruno@clisp.org>
55877
55878         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55879         * modules/sys_select (Makefile.am): Likewise.
55880         * modules/sys_socket (Makefile.am): Likewise.
55881         * modules/sys_time (Makefile.am): Likewise.
55882
55883 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55884
55885         * modules/gettimeofday (License): Change from GPL to LGPL, since
55886         gettimeofday is a library function.
55887
55888 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55889
55890         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55891
55892 2007-01-21  Bruno Haible  <bruno@clisp.org>
55893
55894         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55895
55896 2007-01-21  Bruno Haible  <bruno@clisp.org>
55897
55898         * modules/striconveha: New file.
55899         * lib/striconveha.h: New file.
55900         * lib/striconveha.c: New file.
55901         * MODULES.html.sh (Internationalization functions): Add striconveha.
55902         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55903         string.
55904         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55905
55906 2007-01-21  Bruno Haible  <bruno@clisp.org>
55907
55908         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55909         * lib/striconveh.c (str_iconveh): Likewise.
55910
55911 2007-01-21  Bruno Haible  <bruno@clisp.org>
55912
55913         * lib/striconveh.h (mem_iconveh): New declaration.
55914         * lib/striconveh.c (mem_iconveh): New function.
55915         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55916
55917 2007-01-21  Bruno Haible  <bruno@clisp.org>
55918
55919         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55920
55921         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55922         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55923         original result buffer.
55924         (str_cd_iconveh): Update.
55925         * tests/test-striconveh.c (main): Update.
55926
55927         * lib/striconv.h (mem_cd_iconv): Change specification.
55928         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55929         result buffer.
55930         (str_cd_iconv): Update.
55931         * tests/test-striconv.c (main): Update.
55932
55933 2007-01-21  Bruno Haible  <bruno@clisp.org>
55934
55935         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55936
55937 2007-01-20  Jim Meyering  <jim@meyering.net>
55938
55939         * lib/userspec.c (parse_with_separator): If a user or group string
55940         starts with "+", skip the corresponding name-to-ID look-up, since
55941         such a look-up must fail: user and group names may not include "+".
55942
55943 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55944
55945         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55946         since we now assume the sys_time module.
55947         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55948         check for sys/time.h; no longer needed.
55949         * modules/poll (Depends-on): Depend on sys_time.
55950
55951 2007-01-18  Bruno Haible  <bruno@clisp.org>
55952
55953         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55954         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55955
55956         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55957         gettimeofday.
55958
55959         * tests/test-gettimeofday.c: Include <time.h>.
55960         (dummy): Remove variable.
55961
55962         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55963         gl_HEADER_SYS_TIME_H.
55964         (gl_HEADER_SYS_TIME_H): New macro.
55965
55966         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55967         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55968         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55969         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55970         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55971         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55972         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55973         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55974         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55975         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55976         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55977
55978         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55979         last change; it caused a compilation error when cross-compiling to
55980         Cygwin.
55981
55982 2007-01-18  Jim Meyering  <jim@meyering.net>
55983
55984         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55985         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55986         than the race-prone "test -d sys || mkdir sys".
55987         (configure.ac): Use AC_PROG_MKDIR_P.
55988         * modules/sys_select: Likewise.
55989         * modules/sys_socket: Likewise.
55990         * modules/sys_time: Likewise.
55991
55992 2007-01-18  Eric Blake  <ebb9@byu.net>
55993
55994         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55995         replace gettimeofday.
55996         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55997         name, to avoid infinite recursion.
55998
55999 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
56000
56001         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
56002         module sys_time.
56003         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
56004         assume timespec.h defines struct timeval.
56005         * lib/settime.c: Likewise.
56006         * lib/utimens.c: Likewise.
56007         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
56008         since we now assume the gettimeofday module.
56009         * lib/tempname.c (__gen_tempname): Likewise.
56010         * lib/gettimeofday.h: Remove.
56011         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
56012         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
56013         Include <time.h>, for 'time()'.
56014         (localtime_buffer_addr): Also use this workaround if
56015         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
56016         to simplify the uses.  All uses changed.
56017         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
56018         that #undef is inside {}, and 'const' follows type name consistently.
56019         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
56020         (gettimeofday): Do not use the maximum possible value for
56021         tv->tv_usec, since that might break usages other than ls.c.
56022         Instead, we'll leave ls.c alone.  This undoes today's patch
56023         by Bruno.  Add a compile-time warning for 1s-clock resolution;
56024         we've never observed the problem but might as well keep the
56025         canary.
56026         * lib/nanosleep.c: Include timespec.h first, for interface check.
56027         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
56028         now assume the sys_time module.
56029         * lib/tempname.c: Likewise.
56030         * lib/timespec.h: Likewise.
56031         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
56032         needed.
56033         * lib/strftime.c: Likewise.
56034         * lib/timespec.h: Likewise.
56035         * lib/posixtm.c: Include posixtm.h first, for interface check.
56036         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
56037         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
56038         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
56039         * lib/sys_time_.h: New file.
56040         * lib/timespec.h (struct timespec): Use long int, not long.
56041         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56042         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
56043         Remove obsolescent call to AC_HEADER_TIME.
56044         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56046         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56047         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
56048         Likewise.
56049         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
56050         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
56051         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
56052         into the sys_time module.  Check for gettimeofday just once.
56053         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
56054         for gettimeofday signature to just check the signature.  Merely
56055         compile it, since linking doesn't test signature.  Improve test for
56056         whether gettimeofday.o is actually needed.
56057         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
56058         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
56059         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
56060         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56061         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
56062         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
56063         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
56064         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
56065         than worrying about sys/time.h.
56066         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56067         Don't bother worrying about TIME_WITH_SYS_TIME.
56068         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
56069         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
56070         * m4/sys_time_h.m4: New file.
56071         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
56072         Don't include sys/time.h.  Return from main rather than exiting.
56073         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
56074         all uses changed.
56075         * modules/gethrxtime (Depends-on): Add sys_time.
56076         * modules/gettime (Depends-on): Likewise.
56077         * modules/gettimeofday (Depends-on): Likewise.
56078         * modules/nanosleep (Depends-on): Likewise.
56079         * modules/settime (Depends-on): Likewise.
56080         * modules/tempname (Depends-on): Likewise.
56081         * modules/utimens (Depends-on): Likewise.
56082         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
56083         (Include): Change back to <sys/time.h>.
56084         (Maintainer): Add self.
56085         * modules/sys_time: New file.
56086         * modules/tempname (Depends-on): Add gettimeofday.
56087         * tests/test-gettimeofday.c: Include <sys/time.h>
56088         rather than gettimeofday.h.
56089
56090 2007-01-17  Bruno Haible  <bruno@clisp.org>
56091
56092         * gnulib-tool (func_get_license): Revert last patch. Instead, let
56093         the license default to GPL.
56094         (func_create_testdir): Don't complain if a module is LGPL and its
56095         tests module depends on GPLed modules.
56096
56097 2007-01-17  Bruno Haible  <bruno@clisp.org>
56098
56099         * lib/gettimeofday.c (gettimeofday): Add code for the case
56100         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
56101         maximum possible value for tv->tv_usec, rather than the minimum one.
56102
56103 2005-10-08  Martin Lambers  <marlam@marlam.de>
56104 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56105 2007-01-16  Bruno Haible  <bruno@clisp.org>
56106
56107         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
56108         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
56109         gl_FUNC_GETTIMEOFDAY.
56110         (Include): Add gettimeofday.h.
56111         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
56112         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
56113         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
56114         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
56115         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
56116         * lib/gettimeofday.h: New file.
56117         * lib/gettimeofday.c: Include <sys/timeb.h>.
56118         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
56119         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56120         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
56121         fall back on time().
56122
56123         * tests/test-gettimeofday.c: New file.
56124         * modules/gettimeofday-tests: New file.
56125
56126 2007-01-16  Eric Blake  <ebb9@byu.net>
56127
56128         * modules/fnmatch (Depends-on): Depend on wchar.
56129         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
56130         * m4/fnmatch.m4: Likewise.
56131         * modules/mbchar (Makefile.am): Assume <wchar.h>.
56132         * m4/mbchar.m4: Likewise.
56133         * modules/mbswidth (Depends-on): Depend on wchar.
56134         * lib/mbswidth.c: Assume <wchar.h>.
56135         * m4/mbswidth.m4: Likewise.
56136         * modules/quotearg (Depends-on): Depend on wchar.
56137         * lib/quotearg.c: Assume <wchar.h>.
56138         * m4/quotearg.m4: Likewise.
56139         * modules/regex (Depends-on): Depend on wchar.
56140         * lib/regex_internal.h: Assume <wchar.h>.
56141         * m4/regex.m4: Likewise.
56142         * modules/stdint (Depends-on): Depend on wchar.
56143         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
56144         * m4/stdint.m4: Likewise.
56145         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
56146         * modules/strftime (Depends-on): Depend on wchar.
56147         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
56148         * modules/strtol (Depends-on): Depend on wchar.
56149         * lib/strtol.c: Assume <wchar.h>.
56150         * modules/wcwidth (Depends-on): Depend on wchar.
56151         * lib/wcwidth.h: Assume <wchar.h>.
56152         * m4/wcwidth.m4: Likewise.
56153
56154 2007-01-16  Bruno Haible  <bruno@clisp.org>
56155
56156         * modules/csharpexec-script: New, created from...
56157         * modules/csharpexec: ... this.
56158
56159 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56160
56161         * modules/javaexec-script: New, created from...
56162         * modules/javaexec: ... this.
56163
56164 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56165
56166         * modules/poll (Dependencies): Add sys_select.
56167
56168 2007-01-15  Jim Meyering  <jim@meyering.net>
56169
56170         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
56171         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
56172         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
56173         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
56174
56175 2007-01-15  Bruno Haible  <bruno@clisp.org>
56176
56177         * modules/striconveh: New file.
56178         * lib/striconveh.h: New file.
56179         * lib/striconveh.c: New file.
56180         * MODULES.html.sh (Internationalization functions): Add striconveh.
56181
56182         * modules/striconveh-tests: New file.
56183         * tests/test-striconveh.c: New file.
56184
56185 2007-01-15  Bruno Haible  <bruno@clisp.org>
56186
56187         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
56188         not from GNU libiconv or GNU libc.
56189
56190 2007-01-15  Bruno Haible  <bruno@clisp.org>
56191
56192         * doc/gnulib-intro.texi (Copyright): Explain the different license
56193         terms for module descriptions, autoconf macros, tests, documentation.
56194
56195 2007-01-14  Bruno Haible  <bruno@clisp.org>
56196
56197         * modules/striconv-tests: New file.
56198         * tests/test-striconv.c: New file.
56199
56200 2007-01-14  Bruno Haible  <bruno@clisp.org>
56201
56202         * modules/iconv-tests: New file.
56203         * tests/test-iconv.c: New file.
56204
56205 2007-01-14  Bruno Haible  <bruno@clisp.org>
56206
56207         * gnulib-tool (func_get_license): For test modules, use the license of
56208         the main module.
56209
56210 2007-01-14  Bruno Haible  <bruno@clisp.org>
56211
56212         * modules/iconv (Include): Clarify that <iconv.h> can only be included
56213         if iconv is found to exist.
56214
56215 2007-01-14  Bruno Haible  <bruno@clisp.org>
56216
56217         * modules/c-ctype-tests: New file.
56218         * tests/test-c-ctype.c: New file.
56219
56220 2007-01-14  Bruno Haible  <bruno@clisp.org>
56221
56222         * modules/binary-io-tests: New file.
56223         * tests/test-binary-io.sh: New file.
56224         * tests/test-binary-io.c: New file.
56225
56226 2007-01-14  Bruno Haible  <bruno@clisp.org>
56227
56228         * modules/array-oset-tests: New file.
56229         * tests/test-array_oset.c: New file.
56230
56231 2007-01-14  Bruno Haible  <bruno@clisp.org>
56232
56233         * modules/array-list-tests: New file.
56234         * tests/test-array_list.c: New file.
56235
56236 2007-01-14  Bruno Haible  <bruno@clisp.org>
56237
56238         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
56239         and make.
56240         Reported by Simon Josefsson in
56241         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
56242
56243 2007-01-14  Bruno Haible  <bruno@clisp.org>
56244
56245         * modules/allocsa-tests: New file.
56246         * tests/test-allocsa.c: New file.
56247
56248 2007-01-14  Bruno Haible  <bruno@clisp.org>
56249
56250         * modules/fchdir (Depends-on): Add absolute-header.
56251         * modules/unistd (Depends-on): Likewise.
56252
56253 2006-12-30  Bruno Haible  <bruno@clisp.org>
56254
56255         * modules/fchdir: New file.
56256         * modules/unistd (Files): Add lib/unistd_.h.
56257         (Makefile.am): Generate unistd.h from unistd_.h.
56258         * lib/fchdir.c: New file.
56259         * lib/dirent_.h: New file.
56260         * lib/unistd_.h: New file.
56261         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
56262         * m4/fchdir.m4: New file.
56263         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
56264         (gl_HEADER_UNISTD): Invoke it.
56265         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
56266         function.
56267         * lib/backupfile.c (opendir, closedir): Undefine.
56268         * lib/chown.c (open, close): Undefine.
56269         * lib/clean-temp.c (open, close): Undefine.
56270         * lib/copy-file.c (open, close): Undefine.
56271         * lib/execute.c (open, close): Undefine.
56272         * lib/fsusage.c (open, close): Undefine.
56273         * lib/gc-gnulib.c (open, close): Undefine.
56274         * lib/getcwd.c (opendir, closedir): Undefine.
56275         * lib/glob.c (opendir, closedir): Undefine.
56276         * lib/javacomp.c (open, close): Undefine.
56277         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
56278         * lib/openat-proc.c (open, close): Undefine.
56279         * lib/pagealign_alloc.c (open, close): Undefine.
56280         * lib/pipe.c (open, close): Undefine.
56281         * lib/progreloc.c (open, close): Undefine.
56282         * lib/savedir.c (opendir, closedir): Undefine.
56283         * lib/utime.c (open, close): Undefine.
56284         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
56285
56286 2007-01-10  Bruno Haible  <bruno@clisp.org>
56287
56288         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
56289
56290 2007-01-12  Eric Blake  <ebb9@byu.net>
56291
56292         Provide a robust <wchar.h>.  Further simplifications are now
56293         possible in other modules, but not included here.
56294         * modules/wchar: New module.
56295         * m4/wchar.m4: New file.
56296         * lib/wchar_.h: Likewise.
56297         * modules/mbchar (Depends-on): Depend on wchar, as the first use
56298         of the new module.
56299         * MODULES.html.sh (Extended multibyte and wide character utilities):
56300         New section.
56301
56302 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
56303
56304         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
56305         to a reasonable default for memory allocation.
56306         (xreadlink): Don't allocate a huge buffer, to work around a buggy
56307         file system that reports garbage st_size values for symlinks.
56308         Problem reported by Liyang Hu.
56309
56310 2007-01-11  Simon Josefsson  <simon@josefsson.org>
56311
56312         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
56313         Emacs .#* auto-save files).
56314
56315 2007-01-11  Bruno Haible  <bruno@clisp.org>
56316
56317         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
56318         directory.
56319
56320 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56321
56322         Use @...@ consistently in lib/wctype_.h.
56323         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
56324         on it being set to 1 or 0.
56325         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
56326         go back to AC_SUBSTing it.
56327         * modules/wctype (Makefile.am): Undo previous change.
56328
56329 2007-01-10  Eric Blake  <ebb9@byu.net>
56330
56331         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
56332         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
56333         * modules/wctype (Makefile.am): Likewise.
56334         Reported by Chris McGuire.
56335
56336 2007-01-10  Jim Meyering  <jim@meyering.net>
56337
56338         fts.c: a small readability/maintainability improvement
56339         * lib/fts.c (fts_read): Make this code slightly more readable and
56340         maintainable by hoisting the "sp->fts_cur = p" assignments to
56341         immediately follow the statements that set P.  Derived from
56342         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
56343
56344 2007-01-10  Eric Blake  <ebb9@byu.net>
56345
56346         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
56347         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
56348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56349         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
56350         Reported by Chris McGuire.
56351
56352 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56353
56354         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
56355         in sed script.
56356
56357 2007-01-09  Bruno Haible  <bruno@clisp.org>
56358
56359         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
56360         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
56361         variables.
56362         (func_module): Use them.
56363
56364 2007-01-09  Bruno Haible  <bruno@clisp.org>
56365
56366         * modules/unistr/base: New file.
56367         * lib/unistr.h: New file.
56368
56369         * modules/unistr/u8-to-u16: New file.
56370         * lib/unistr/u8-to-u16.c: New file.
56371
56372         * modules/unistr/u8-to-u32: New file.
56373         * lib/unistr/u8-to-u32.c: New file.
56374
56375         * modules/unistr/u16-to-u8: New file.
56376         * lib/unistr/u16-to-u8.c: New file.
56377
56378         * modules/unistr/u16-to-u32: New file.
56379         * lib/unistr/u16-to-u32.c: New file.
56380
56381         * modules/unistr/u32-to-u8: New file.
56382         * lib/unistr/u32-to-u8.c: New file.
56383
56384         * modules/unistr/u32-to-u16: New file.
56385         * lib/unistr/u32-to-u16.c: New file.
56386
56387         * modules/unistr/u8-check: New file.
56388         * modules/unistr/u16-check: New file.
56389         * modules/unistr/u32-check: New file.
56390         * lib/unistr/u8-check.c: New file.
56391         * lib/unistr/u16-check.c: New file.
56392         * lib/unistr/u32-check.c: New file.
56393
56394         * modules/unistr/u8-chr: New file.
56395         * modules/unistr/u16-chr: New file.
56396         * modules/unistr/u32-chr: New file.
56397         * lib/unistr/u8-chr.c: New file.
56398         * lib/unistr/u16-chr.c: New file.
56399         * lib/unistr/u32-chr.c: New file.
56400
56401         * modules/unistr/u8-cmp: New file.
56402         * modules/unistr/u16-cmp: New file.
56403         * modules/unistr/u32-cmp: New file.
56404         * lib/unistr/u8-cmp.c: New file.
56405         * lib/unistr/u16-cmp.c: New file.
56406         * lib/unistr/u32-cmp.c: New file.
56407
56408         * modules/unistr/u8-cpy: New file.
56409         * modules/unistr/u16-cpy: New file.
56410         * modules/unistr/u32-cpy: New file.
56411         * lib/unistr/u8-cpy.c: New file.
56412         * lib/unistr/u16-cpy.c: New file.
56413         * lib/unistr/u32-cpy.c: New file.
56414         * lib/unistr/u-cpy.h: New file.
56415
56416         * modules/unistr/u8-cpy-alloc: New file.
56417         * modules/unistr/u16-cpy-alloc: New file.
56418         * modules/unistr/u32-cpy-alloc: New file.
56419         * lib/unistr/u8-cpy-alloc.c: New file.
56420         * lib/unistr/u16-cpy-alloc.c: New file.
56421         * lib/unistr/u32-cpy-alloc.c: New file.
56422         * lib/unistr/u-cpy-alloc.h: New file.
56423
56424         * modules/unistr/u8-endswith: New file.
56425         * modules/unistr/u16-endswith: New file.
56426         * modules/unistr/u32-endswith: New file.
56427         * lib/unistr/u8-endswith.c: New file.
56428         * lib/unistr/u16-endswith.c: New file.
56429         * lib/unistr/u32-endswith.c: New file.
56430         * lib/unistr/u-endswith.h: New file.
56431
56432         * modules/unistr/u8-mblen: New file.
56433         * modules/unistr/u16-mblen: New file.
56434         * modules/unistr/u32-mblen: New file.
56435         * lib/unistr/u8-mblen.c: New file.
56436         * lib/unistr/u16-mblen.c: New file.
56437         * lib/unistr/u32-mblen.c: New file.
56438
56439         * modules/unistr/u8-mbtouc: New file.
56440         * modules/unistr/u16-mbtouc: New file.
56441         * modules/unistr/u32-mbtouc: New file.
56442         * lib/unistr/u8-mbtouc.c: New file.
56443         * lib/unistr/u16-mbtouc.c: New file.
56444         * lib/unistr/u32-mbtouc.c: New file.
56445
56446         * modules/unistr/u8-mbtouc-safe: New file.
56447         * modules/unistr/u16-mbtouc-safe: New file.
56448         * modules/unistr/u32-mbtouc-safe: New file.
56449         * lib/unistr/u8-mbtouc-safe.c: New file.
56450         * lib/unistr/u16-mbtouc-safe.c: New file.
56451         * lib/unistr/u32-mbtouc-safe.c: New file.
56452
56453         * modules/unistr/u8-move: New file.
56454         * modules/unistr/u16-move: New file.
56455         * modules/unistr/u32-move: New file.
56456         * lib/unistr/u8-move.c: New file.
56457         * lib/unistr/u16-move.c: New file.
56458         * lib/unistr/u32-move.c: New file.
56459         * lib/unistr/u-move.h: New file.
56460
56461         * modules/unistr/u8-next: New file.
56462         * modules/unistr/u16-next: New file.
56463         * modules/unistr/u32-next: New file.
56464         * lib/unistr/u8-next.c: New file.
56465         * lib/unistr/u16-next.c: New file.
56466         * lib/unistr/u32-next.c: New file.
56467
56468         * modules/unistr/u8-prev: New file.
56469         * modules/unistr/u16-prev: New file.
56470         * modules/unistr/u32-prev: New file.
56471         * lib/unistr/u8-prev.c: New file.
56472         * lib/unistr/u16-prev.c: New file.
56473         * lib/unistr/u32-prev.c: New file.
56474
56475         * modules/unistr/u8-set: New file.
56476         * modules/unistr/u16-set: New file.
56477         * modules/unistr/u32-set: New file.
56478         * lib/unistr/u8-set.c: New file.
56479         * lib/unistr/u16-set.c: New file.
56480         * lib/unistr/u32-set.c: New file.
56481         * lib/unistr/u-set.h: New file.
56482
56483         * modules/unistr/u8-startswith: New file.
56484         * modules/unistr/u16-startswith: New file.
56485         * modules/unistr/u32-startswith: New file.
56486         * lib/unistr/u8-startswith.c: New file.
56487         * lib/unistr/u16-startswith.c: New file.
56488         * lib/unistr/u32-startswith.c: New file.
56489         * lib/unistr/u-startswith.h: New file.
56490
56491         * modules/unistr/u8-stpcpy: New file.
56492         * modules/unistr/u16-stpcpy: New file.
56493         * modules/unistr/u32-stpcpy: New file.
56494         * lib/unistr/u8-stpcpy.c: New file.
56495         * lib/unistr/u16-stpcpy.c: New file.
56496         * lib/unistr/u32-stpcpy.c: New file.
56497         * lib/unistr/u-stpcpy.h: New file.
56498
56499         * modules/unistr/u8-stpncpy: New file.
56500         * modules/unistr/u16-stpncpy: New file.
56501         * modules/unistr/u32-stpncpy: New file.
56502         * lib/unistr/u8-stpncpy.c: New file.
56503         * lib/unistr/u16-stpncpy.c: New file.
56504         * lib/unistr/u32-stpncpy.c: New file.
56505         * lib/unistr/u-stpncpy.h: New file.
56506
56507         * modules/unistr/u8-strcat: New file.
56508         * modules/unistr/u16-strcat: New file.
56509         * modules/unistr/u32-strcat: New file.
56510         * lib/unistr/u8-strcat.c: New file.
56511         * lib/unistr/u16-strcat.c: New file.
56512         * lib/unistr/u32-strcat.c: New file.
56513         * lib/unistr/u-strcat.h: New file.
56514
56515         * modules/unistr/u8-strchr: New file.
56516         * modules/unistr/u16-strchr: New file.
56517         * modules/unistr/u32-strchr: New file.
56518         * lib/unistr/u8-strchr.c: New file.
56519         * lib/unistr/u16-strchr.c: New file.
56520         * lib/unistr/u32-strchr.c: New file.
56521
56522         * modules/unistr/u8-strcmp: New file.
56523         * modules/unistr/u16-strcmp: New file.
56524         * modules/unistr/u32-strcmp: New file.
56525         * lib/unistr/u8-strcmp.c: New file.
56526         * lib/unistr/u16-strcmp.c: New file.
56527         * lib/unistr/u32-strcmp.c: New file.
56528
56529         * modules/unistr/u8-strcpy: New file.
56530         * modules/unistr/u16-strcpy: New file.
56531         * modules/unistr/u32-strcpy: New file.
56532         * lib/unistr/u8-strcpy.c: New file.
56533         * lib/unistr/u16-strcpy.c: New file.
56534         * lib/unistr/u32-strcpy.c: New file.
56535         * lib/unistr/u-strcpy.h: New file.
56536
56537         * modules/unistr/u8-strcspn: New file.
56538         * modules/unistr/u16-strcspn: New file.
56539         * modules/unistr/u32-strcspn: New file.
56540         * lib/unistr/u8-strcspn.c: New file.
56541         * lib/unistr/u16-strcspn.c: New file.
56542         * lib/unistr/u32-strcspn.c: New file.
56543         * lib/unistr/u-strcspn.h: New file.
56544
56545         * modules/unistr/u8-strdup: New file.
56546         * modules/unistr/u16-strdup: New file.
56547         * modules/unistr/u32-strdup: New file.
56548         * lib/unistr/u8-strdup.c: New file.
56549         * lib/unistr/u16-strdup.c: New file.
56550         * lib/unistr/u32-strdup.c: New file.
56551         * lib/unistr/u-strdup.h: New file.
56552
56553         * modules/unistr/u8-strlen: New file.
56554         * modules/unistr/u16-strlen: New file.
56555         * modules/unistr/u32-strlen: New file.
56556         * lib/unistr/u8-strlen.c: New file.
56557         * lib/unistr/u16-strlen.c: New file.
56558         * lib/unistr/u32-strlen.c: New file.
56559         * lib/unistr/u-strlen.h: New file.
56560
56561         * modules/unistr/u8-strmblen: New file.
56562         * modules/unistr/u16-strmblen: New file.
56563         * modules/unistr/u32-strmblen: New file.
56564         * lib/unistr/u8-strmblen.c: New file.
56565         * lib/unistr/u16-strmblen.c: New file.
56566         * lib/unistr/u32-strmblen.c: New file.
56567
56568         * modules/unistr/u8-strmbtouc: New file.
56569         * modules/unistr/u16-strmbtouc: New file.
56570         * modules/unistr/u32-strmbtouc: New file.
56571         * lib/unistr/u8-strmbtouc.c: New file.
56572         * lib/unistr/u16-strmbtouc.c: New file.
56573         * lib/unistr/u32-strmbtouc.c: New file.
56574
56575         * modules/unistr/u8-strncat: New file.
56576         * modules/unistr/u16-strncat: New file.
56577         * modules/unistr/u32-strncat: New file.
56578         * lib/unistr/u8-strncat.c: New file.
56579         * lib/unistr/u16-strncat.c: New file.
56580         * lib/unistr/u32-strncat.c: New file.
56581         * lib/unistr/u-strncat.h: New file.
56582
56583         * modules/unistr/u8-strncmp: New file.
56584         * modules/unistr/u16-strncmp: New file.
56585         * modules/unistr/u32-strncmp: New file.
56586         * lib/unistr/u8-strncmp.c: New file.
56587         * lib/unistr/u16-strncmp.c: New file.
56588         * lib/unistr/u32-strncmp.c: New file.
56589
56590         * modules/unistr/u8-strncpy: New file.
56591         * modules/unistr/u16-strncpy: New file.
56592         * modules/unistr/u32-strncpy: New file.
56593         * lib/unistr/u8-strncpy.c: New file.
56594         * lib/unistr/u16-strncpy.c: New file.
56595         * lib/unistr/u32-strncpy.c: New file.
56596         * lib/unistr/u-strncpy.h: New file.
56597
56598         * modules/unistr/u8-strnlen: New file.
56599         * modules/unistr/u16-strnlen: New file.
56600         * modules/unistr/u32-strnlen: New file.
56601         * lib/unistr/u8-strnlen.c: New file.
56602         * lib/unistr/u16-strnlen.c: New file.
56603         * lib/unistr/u32-strnlen.c: New file.
56604         * lib/unistr/u-strnlen.h: New file.
56605
56606         * modules/unistr/u8-strpbrk: New file.
56607         * modules/unistr/u16-strpbrk: New file.
56608         * modules/unistr/u32-strpbrk: New file.
56609         * lib/unistr/u8-strpbrk.c: New file.
56610         * lib/unistr/u16-strpbrk.c: New file.
56611         * lib/unistr/u32-strpbrk.c: New file.
56612         * lib/unistr/u-strpbrk.h: New file.
56613
56614         * modules/unistr/u8-strrchr: New file.
56615         * modules/unistr/u16-strrchr: New file.
56616         * modules/unistr/u32-strrchr: New file.
56617         * lib/unistr/u8-strrchr.c: New file.
56618         * lib/unistr/u16-strrchr.c: New file.
56619         * lib/unistr/u32-strrchr.c: New file.
56620
56621         * modules/unistr/u8-strspn: New file.
56622         * modules/unistr/u16-strspn: New file.
56623         * modules/unistr/u32-strspn: New file.
56624         * lib/unistr/u8-strspn.c: New file.
56625         * lib/unistr/u16-strspn.c: New file.
56626         * lib/unistr/u32-strspn.c: New file.
56627         * lib/unistr/u-strspn.h: New file.
56628
56629         * modules/unistr/u8-strstr: New file.
56630         * modules/unistr/u16-strstr: New file.
56631         * modules/unistr/u32-strstr: New file.
56632         * lib/unistr/u8-strstr.c: New file.
56633         * lib/unistr/u16-strstr.c: New file.
56634         * lib/unistr/u32-strstr.c: New file.
56635         * lib/unistr/u-strstr.h: New file.
56636
56637         * modules/unistr/u8-strtok: New file.
56638         * modules/unistr/u16-strtok: New file.
56639         * modules/unistr/u32-strtok: New file.
56640         * lib/unistr/u8-strtok.c: New file.
56641         * lib/unistr/u16-strtok.c: New file.
56642         * lib/unistr/u32-strtok.c: New file.
56643         * lib/unistr/u-strtok.h: New file.
56644
56645         * modules/unistr/u8-uctomb: New file.
56646         * modules/unistr/u16-uctomb: New file.
56647         * modules/unistr/u32-uctomb: New file.
56648         * lib/unistr/u8-uctomb.c: New file.
56649         * lib/unistr/u16-uctomb.c: New file.
56650         * lib/unistr/u32-uctomb.c: New file.
56651
56652         * MODULES.html.sh (Unicode string functions): Add the new modules.
56653
56654 2007-01-08  Bruno Haible  <bruno@clisp.org>
56655
56656         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56657         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56658         subdirectories.
56659
56660 2007-01-08  Karl Berry  <karl@gnu.org>
56661
56662         * doc/error.texi: mention that main() fns must set program_name
56663         when progname is used.
56664
56665 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56666
56667         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56668         WCTYPE_H is empty, for the benefit of builds from non-distclean
56669         directories.  Problem reported by Eric Blake in
56670         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56671
56672 2007-01-08  Bruno Haible  <bruno@clisp.org>
56673
56674         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56675         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56676         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56677         PROVIDE_CANONICALIZE_FILENAME_MODE.
56678         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56679
56680 2007-01-08  Bruno Haible  <bruno@clisp.org>
56681
56682         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56683         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56684         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56685         * lib/fts.c: Likewise.
56686         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56687
56688 2006-12-25  Bruno Haible  <bruno@clisp.org>
56689
56690         * modules/utf8-ucs4-safe: New file.
56691         * lib/utf8-ucs4-safe.h: New file.
56692         * lib/unistr/utf8-ucs4-safe.c: New file.
56693
56694         * modules/utf16-ucs4-safe: New file.
56695         * lib/utf16-ucs4-safe.h: New file.
56696         * lib/unistr/utf16-ucs4-safe.c: New file.
56697
56698         * MODULES.html.sh (Unicode string functions): Add the new modules.
56699
56700 2007-01-08  Bruno Haible  <bruno@clisp.org>
56701
56702         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56703         (Depends-on): Add unitypes.
56704         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56705         (u8_mbtouc_aux): Move out to separate file.
56706         (u8_mbtouc): Use ucs4_t, uint8_t types.
56707         * lib/unistr/utf8-ucs4.c: New file.
56708
56709         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56710         (Depends-on): Add unitypes.
56711         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56712         (u16_mbtouc_aux): Move out to separate file.
56713         (u16_mbtouc): Use ucs4_t, uint16_t types.
56714         * lib/unistr/utf16-ucs4.c: New file.
56715
56716         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56717         (Depends-on): Add unitypes.
56718         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56719         (u8_uctomb_aux): Move out to separate file.
56720         (u8_uctomb): Use ucs4_t, uint8_t types.
56721         * lib/unistr/ucs4-utf8.c: New file.
56722
56723         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56724         (Depends-on): Add unitypes.
56725         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56726         (u16_uctomb_aux): Move out to separate file.
56727         (u16_uctomb): Use ucs4_t, uint16_t types.
56728         * lib/unistr/ucs4-utf16.c: New file.
56729
56730 2006-12-25  Bruno Haible  <bruno@clisp.org>
56731
56732         * modules/unitypes: New file.
56733         * lib/unitypes.h: New file.
56734         * MODULES.html.sh (func_all_modules): New section "Unicode string
56735         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56736         this section. Add unitypes.
56737
56738 2007-01-08  Bruno Haible  <bruno@clisp.org>
56739
56740         Avoid variable names that conflict with those from libtool.
56741         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56742         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56743         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56744         library_names_spec to acl_library_names_spec, hardcode_* to
56745         acl_hardcode_*.
56746         Reported by Ralf Wildenhues.
56747
56748 2007-01-08  Bruno Haible  <bruno@clisp.org>
56749
56750         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56751         definition.
56752         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56753         definition.
56754         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56755         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56756         definition.
56757         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56758         definition.
56759         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56760         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56761         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56762         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56763         definition.
56764         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56765         definition.
56766         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56767         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56768         GC_USE_<algorithm>.
56769         * lib/gc-libgcrypt.c: Likewise.
56770         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56771         * modules/gc-arctwo (configure.ac): Likewise.
56772         * modules/gc-des (configure.ac): Likewise.
56773         * modules/gc-hmac-md5 (configure.ac): Likewise.
56774         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56775         * modules/gc-md2 (configure.ac): Likewise.
56776         * modules/gc-md4 (configure.ac): Likewise.
56777         * modules/gc-md5 (configure.ac): Likewise.
56778         * modules/gc-random (configure.ac): Likewise.
56779         * modules/gc-rijndael (configure.ac): Likewise.
56780         * modules/gc-sha1 (configure.ac): Likewise.
56781
56782 2007-01-08  Bruno Haible  <bruno@clisp.org>
56783
56784         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56785         macro definition.
56786         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56787         definition.
56788         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56789         definition.
56790         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56791         * modules/fcntl-safer (configure.ac): Likewise.
56792         * modules/fopen-safer (configure.ac): Likewise.
56793         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56794         GNULIB_FWRITEERROR macro definition.
56795
56796 2007-01-08  Bruno Haible  <bruno@clisp.org>
56797
56798         * m4/gnulib-common.m4: New file.
56799         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56800         (func_get_filelist): Add m4/gnulib-common.m4.
56801
56802 2007-01-08  Bruno Haible  <bruno@clisp.org>
56803
56804         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56805         command.
56806
56807 2007-01-08  Jim Meyering  <jim@meyering.net>
56808
56809         Use a more robust test for a "can't happen" condition.
56810         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56811         narrowed the st_size value.  Presuming the "can't happen" condition
56812         is true, that narrowing could conceivably convert an invalid st_size
56813         value into a valid one.  Instead, use a change based on Matthew
56814         Woehlke's original patch.
56815
56816         Slight readability improvement: use an assert-like macro
56817         in place of literal "abort ()" uses.
56818         * lib/fts.c (fts_assert): Define.
56819         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56820         Use this macro instead of a bare 'abort'.
56821
56822 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56823
56824         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56825         simply work around them.
56826         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56827         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56828         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56829         declaring.
56830         Don't bother to define as macros, since the standard doesn't require it.
56831         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56832         longer worry about IRIX 5.3.
56833         (HAVE_WCTYPE_CTMP_BUG): Remove.
56834
56835 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56836
56837         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56838         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56839         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56840         Problems reported by Georg Schwarz for IRIX 5.3.
56841
56842         * gnulib-tool (autoconf_minversion): Take the maximum version number
56843         found, not the minimum.  Problem reported by James Youngman.
56844
56845 2007-01-03  Karl Berry  <karl@gnu.org>
56846
56847         * doc/error.texi: new file, explaining interaction with progname.
56848         * doc/gnulib.texi: include it.  Update copyright.
56849
56850 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56851
56852         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56853         AC_CANONICAL_HOST, to improve autobuild outputs.
56854
56855 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56856             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56857
56858         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56859         sockets, server sockets, and other file descriptors.  Count errors
56860         to compute the return value.  Reorder the code a bit to be easier
56861         to follow.  Don't set event bits that were not requested (except
56862         POLLERR and POLLHUP).
56863
56864 2007-01-01  Bruno Haible  <bruno@clisp.org>
56865
56866         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56867
56868 2007-01-03  Jim Meyering  <jim@meyering.net>
56869
56870         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56871
56872 2007-01-02  Bruno Haible  <bruno@clisp.org>
56873
56874         * modules/settime (Include): Require timespec.h.
56875         * modules/nanosleep (Include): Likewise.
56876
56877 2007-01-01  Bruno Haible  <bruno@clisp.org>
56878
56879         * gnulib-tool (func_emit_copyright_notice): Bump year.
56880         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56881
56882 2007-01-01  Bruno Haible  <bruno@clisp.org>
56883
56884         Improve support for OpenBSD.
56885         * build-aux/config.rpath (libname_spec): Export.
56886         (library_names_spec): New variable. Export.
56887         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56888         library_names_spec from the config.rpath output. Locate shared library
56889         through the name pattern in library_names_spec.
56890
56891 2007-01-01  Eric Blake  <ebb9@byu.net>
56892
56893         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56894
56895 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56896
56897         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56898         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56899         assume the C locale, and avoid an "eval" that could cause trouble.
56900         Problem with SORT reported by Bob Proulx.
56901
56902         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56903         Define.  Trivial patch from Henning Nielsen Lund, originally
56904         sent to bug-grep@gnu.org today.
56905
56906 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56907
56908         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56909         struct stat.  Problem reported by Henning Nielsen Lund.
56910         * lib/acl.c: Include acl.h first, to check interface.  Don't
56911         bother to include sys/types.h and sys/stat.h again.
56912
56913 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56914
56915         Import the following change from libc; problem reported by
56916         Sven Verdoolaege.
56917
56918         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56919
56920         [BZ #1373]
56921         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56922
56923 2006-12-28  Jim Meyering  <jim@meyering.net>
56924
56925         * build-aux/announce-gen: Do not assume that the package
56926         builds any of tar.gz, tar.bz2, and .xdelta files.
56927         Suggestion from Simon Josefsson.
56928
56929 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56930
56931         * modules/announce-gen: New file.
56932
56933 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56934
56935         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56936         handles its gotchas now.
56937         * lib/mbswidth.c: Likewise.
56938         * lib/wcwidth.h: Likewise.
56939         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56940         and iswcntrl; the wctype module does this stuff now.
56941         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56943         * modules/mbchar (Depends-on): Add wctype.
56944         * modules/mbswidth (Depends-on): Likewise.
56945         * modules/wcwidth (Depends-on): Likewise.
56946
56947 2006-12-27  Eric Blake  <ebb9@byu.net>
56948
56949         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56950         module uses more than what <wctype.h> is required to provide.
56951
56952 2006-12-26  Eric Blake  <ebb9@byu.net>
56953
56954         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56955
56956 2006-12-26  Eric Blake  <ebb9@byu.net>
56957
56958         * modules/absolute-header: New module.
56959         * modules/fcntl (Depends-on): Depend on it.
56960         * modules/inttypes (Depends-on): Likewise.
56961         * modules/stdint (Depends-on): Likewise.
56962         * modules/sys_stat (Depends-on): Likewise.
56963         * modules/wctype (Depends-on): Likewise.
56964         * MODULES.html.sh (Support for building libraries and
56965         executables): Document it.
56966
56967 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56968
56969         * gnulib-tool (SED): Remove, undoing previous change.
56970         The problem was that it broke coreutils on Solaris, because
56971         "sed --posix" leaked into a makefile.
56972         (sed): New alias, if 'alias' and GNU sed.
56973
56974 2006-12-24  Jim Meyering  <jim@meyering.net>
56975
56976         Work around an fchownat bug in glibc-2.4:
56977         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56978         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56979         in spite of the -P option.
56980         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56981         New macros.
56982         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56983         * modules/openat (Files): Add lib/fchownat.c.
56984         * lib/openat.c (fchownat): Don't define here.  Move to...
56985         * lib/fchownat.c: ...this new file.
56986
56987 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56988
56989         Fix bug reported by Bruno Haible in
56990         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56991         where quotearg.c didn't compile on Mac OS X 10.2 because it
56992         lacks <wchar.h> and wint_t.
56993         * lib/wctype_.h (__wctype_wint_t): New type.
56994         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56995         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56996         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56997         Arg is now of type __wctype_wint_t, not wint_t.
56998         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56999         substitute HAVE_WINT_T.
57000         * modules/wctype (Files): Add m4/wint_t.m4.
57001         (wctype.h): Substitute HAVE_WINT_T.
57002
57003 2006-12-23  Bruno Haible  <bruno@clisp.org>
57004
57005         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
57006
57007 2006-12-23  Bruno Haible  <bruno@clisp.org>
57008
57009         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
57010         S_ISLNK.
57011         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
57012         mingw.
57013
57014 2006-12-22  Bruno Haible  <bruno@clisp.org>
57015
57016         * lib/copy-file.c: Include acl.h.
57017         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
57018         Close the file descriptors only after being done with copy_acl.
57019         * modules/copy-file (Depends-on): Add acl.
57020
57021 2006-12-22  Bruno Haible  <bruno@clisp.org>
57022
57023         * gnulib-tool (SED): New variable.
57024         Use $SED instead of sed everywhere.
57025
57026 2006-12-22  Bruno Haible  <bruno@clisp.org>
57027
57028         * modules/no-c++: New file.
57029         * m4/no-c++.m4: New file.
57030         * MODULES.html.sh (Support for building libraries and executables):
57031         Add no-c++.
57032
57033 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
57034
57035         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57036         Include <limits.h>, and use its INT_MAX to rewrite the
57037         j loop so that it does not overflow 'int'.  Problem reported by
57038         Ralf Wildenhues in
57039         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
57040         Play it safe by shifting left by 1 rather than multiplying by 2,
57041         as GCC is less likely to optimize this away when the value
57042         is signed (when it assumes overflow leads to undefined behavior).
57043         Also, don't assume time_t uses two's complement.
57044
57045 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
57046
57047         * MODULES.html.sh: New module wctype.
57048         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
57049         * lib/fnmatch.c: Don't bother to include <wchar.h> before
57050         <wctype.h>, since the new wctype module should fix this.
57051         * lib/quotearg.c: Include <wctype.h> unconditionally, since
57052         the wctype module should arrange for it.
57053         * lib/regex_internal.h: Likewise.
57054         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
57055         since the wctype module should handle this now.
57056         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
57057         * modules/fnmatch (Depends-on): Add wctype.
57058         * modules/quotearg (Depends-on): Likewise.
57059         * modules/regex (Depends-on): Likewise.
57060
57061 2006-12-19  Bruno Haible  <bruno@clisp.org>
57062
57063         * lib/strdup.h [C++]: Wrap definitions in extern "C".
57064         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
57065
57066 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57067
57068         * modules/savewd (Depends-on): Fix dependency on fcntl.
57069
57070 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57071
57072         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
57073         conforms to C99, rather than relying on the user's environment
57074         setting of STDINT_H.
57075
57076 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57077         and Eric Blake  <ebb9@byu.net>
57078
57079         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
57080         This is more consistent with the other defines here.
57081         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
57082         Port to z/OS.  Problem reported by Paul Gilmartin.
57083         Change local vars to use gl_ prefix rather than ac_.
57084         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
57085         with other defines.
57086         * modules/double-slash-root: New module.
57087         * modules/dirname (Files): Remove m4/double-slash-root.m4.
57088         (Depends-on): Add double-slash-root.
57089         * MODULES.html.sh (File system functions): Mention new module.
57090
57091 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
57092
57093         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
57094         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
57095         This is for the benefit of gzip, which doesn't do i18n.
57096
57097 2006-12-12  Jim Meyering  <jim@meyering.net>
57098
57099         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
57100         Reported by Andreas Schwab <schwab@suse.de>.
57101
57102 2006-12-12  Bruno Haible  <bruno@clisp.org>
57103
57104         Merge these changes.
57105         2006-09-05  Bruno Haible  <bruno@clisp.org>
57106         * lib/iconvme.c (iconv_string): No need to save and restore errno when
57107         iconv_alloc succeeded.
57108         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
57109         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
57110         test for " && dest " at the end - dest is always != NULL there. Call
57111         iconv with 4xNULL arguments initially, to reset the state. Call iconv
57112         with 2xNULL arguments, also to flush the state storage. Handle the
57113         IRIX iconv behaviour. Realloc the final result, to throw away unused
57114         memory.
57115
57116 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
57117
57118         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
57119         and fchmodat unconditionally, since glibc 2.4 has them.
57120         Problem reported by Arkadiusz Miskiewicz.
57121
57122 2006-12-10  Bruno Haible  <bruno@clisp.org>
57123
57124         * gnulib-tool (func_import): Show the include files only for those
57125         modules that are copied and specified.
57126         Reported by Karl Berry.
57127
57128 2006-12-08  Jim Meyering  <jim@meyering.net>
57129
57130         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
57131         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
57132
57133         * build-aux/announce-gen: Add two new options, both optional:
57134         --bootstrap-tools=TOOL_LIST
57135               a comma-separated list of tools, e.g.,
57136               autoconf,automake,bison,gnulib
57137         --gnulib-snapshot-date=DATE
57138               if gnulib is in the bootstrap tool list,
57139               then report this as the snapshot date.
57140               If not specified, use the current date/time.
57141               If you specify a date here, be sure it's UTC.
57142
57143 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57144
57145         * tests/test-argp-2.sh: Fix test to match actual output.
57146         (func_compare): Fix sed script to be portable.
57147
57148 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
57149
57150         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
57151         workaround for this case.  It is not autoconfigured now; offhand
57152         it's hard to see how to autoconfigure it.
57153
57154 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57155
57156         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
57157         a directory that is about to be chowned.  Such a directory's
57158         initial file permissions should permit the owner only and this
57159         should not be changed until after the chown, since the group and
57160         other bits would be incorrect if they granted permission before
57161         the chown.
57162
57163         Fix porting problem for iswctype reported by Georg Schwarz in:
57164         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
57165         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
57166         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
57167         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
57168         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57169
57170 2006-12-03  Jim Meyering  <jim@meyering.net>
57171
57172         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
57173         p->fts_statp may not yet be defined.
57174         (fts_read): Instead, set it in the caller, once p->fts_statp is
57175         sure to be defined, and corresponds to a top-level directory.
57176         This bug made du -x fail.  Here's the coreutils test case:
57177         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
57178         Reported by Mike Frysinger.
57179
57180 2006-12-01  Jim Meyering  <jim@meyering.net>
57181
57182         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
57183         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
57184         Reported by Simon Josefsson.
57185
57186 2006-11-30  Jim Meyering  <jim@meyering.net>
57187
57188         * m4/warning.m4: Use the all-permissive copyright notice
57189         recommended by RMS (rather than LGPL).
57190         * m4/vararrays.m4: Likewise.
57191         * m4/flexmember.m4: Likewise.
57192
57193 2006-11-29  Bruno Haible  <bruno@clisp.org>
57194
57195         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57196         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
57197         using +=.
57198         Reported by Simon Josefsson <simon@josefsson.org>.
57199
57200 2006-11-28  James Youngman <jay@gnu.org>
57201
57202         * README: Advise users that they might find the bug-gnulib@gnu.org
57203         and autotools-announce@gnu.org mailing lists useful.
57204
57205 2006-11-28  Bruno Haible  <bruno@clisp.org>
57206
57207         * m4/ptrdiff_max.m4: Remove file.
57208
57209 2006-11-21  Bruno Haible  <bruno@clisp.org>
57210
57211         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
57212         _AC_COMPUTE_INT.
57213         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57214         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
57215         _AC_COMPUTE_INT.
57216         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57217         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
57218         _AC_COMPUTE_INT.
57219         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57220
57221 2006-11-28  Jim Meyering  <jim@meyering.net>
57222
57223         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
57224         warning from "gcc -Wshadow" about shadowing the builtin.
57225
57226 2006-11-27  Bruno Haible  <bruno@clisp.org>
57227
57228         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
57229         _AC_COMPUTE_INT.
57230         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57231
57232 2006-11-27  Bruno Haible  <bruno@clisp.org>
57233             Paul Eggert  <eggert@cs.ucla.edu>
57234
57235         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
57236
57237 2006-11-26  Bruno Haible  <bruno@clisp.org>
57238
57239         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57240         noinst_LTLIBRARIES.
57241
57242 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57243             Bruno Haible  <bruno@clisp.org>
57244
57245         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
57246         if compiling with "gcc -ansi".
57247
57248 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57249
57250         Fix some incompatibilities with gcc -ansi -pedantic.
57251         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
57252         if compiling pedantically with GCC, unless it's C99 or later.
57253         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
57254         it mishandles gcc -ansi -pedantic as well.
57255         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
57256         if gcc -pedantic.
57257         * lib/regexec.c (check_node_accept_bytes): Don't use auto
57258         initializers for struct if -pedantic, unless it's C99 or later.
57259
57260 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
57261
57262         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
57263         Don't close an fd more than once. Identical atimes indicate
57264         success, not failure.
57265
57266 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
57267
57268         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
57269
57270 2006-11-23  Jim Meyering  <jim@meyering.net>
57271
57272         * build-aux/announce-gen: New file.  From coreutils.
57273
57274 2006-11-22  Jim Meyering  <jim@meyering.net>
57275
57276         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
57277         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
57278         (fts_read): Use a temporary to narrow the overused st_size member
57279         before using it in a switch statement.  Reported by Matthew Woehlke.
57280
57281         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
57282         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57283
57284 2006-11-20  Bruno Haible  <bruno@clisp.org>
57285
57286         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
57287         changequote instead of pairs of brackets.
57288         Reported by Andreas Schwab <schwab@suse.de>.
57289
57290 2006-11-21  Jim Meyering  <jim@meyering.net>
57291
57292         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
57293         so as to remain compatible with older compilers.
57294         Patch from Michael Deutschmann.
57295
57296 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57297
57298         * MODULES.html.sh (File system functions): Add openat.
57299
57300         * lib/openat.h (rpl_fstatat): New macro, if
57301         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
57302         (fstatat): Define to rpl_fstatat under the same conditions,
57303         unless COMPILING_FSTATAT.
57304         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
57305         seems to have the bug.
57306         * lib/fstatat.c: New file.
57307         * modules/openat (Files): Add it.
57308
57309 2006-11-20  Bruno Haible  <bruno@clisp.org>
57310
57311         * Makefile: New file.
57312
57313 2006-11-20  Jim Meyering  <jim@meyering.net>
57314
57315         The beginnings of syntax-related checks for gnulib.
57316         * lib/Makefile: New file.
57317         * lib/t-idcache: New script.  Ensure that the two halves of
57318         idcache.c stay in sync.
57319
57320         * lib/idcache.c: Adjust comments in user- and group- portions to
57321         be more accurate, and to be consistent with one another.
57322
57323 2006-11-20  Jim Meyering  <jim@meyering.net>
57324
57325         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
57326         continue using the flexible array member (thus, this module performs
57327         half as many malloc calls), with the addition that...
57328         (getgroup, getuser): Consistently record a non-match via an empty
57329         "name" string, and map an empty string match to a NULL return value.
57330         * modules/idcache (Depends-on): Re-add flexmember.
57331
57332         * lib/idcache.c (getuser): Remove all uses of the register keyword.
57333         (getuidbyname, getgroup, getgidbyname): Likewise.
57334
57335         Use cleaner syntax: NULL rather than 0.
57336         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
57337
57338 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57339
57340         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
57341         It mishandled the case where the group was missing.
57342         Problem reported by Greg Schafer.
57343         * modules/idcache: Likewise.
57344
57345 2006-11-18  Jim Meyering  <jim@meyering.net>
57346
57347         * check-module (%exempt_header): Add exception for some
57348         conditionally-included headers.
57349
57350         * modules/i-ring (Depends-on): Add verify.
57351         (License): Change to LGPL.
57352
57353 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57354
57355         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
57356         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
57357         and inttostr.h.  Use snprintf rather than uinttostr, so that
57358         LGPLed code doesn't depend on GPLed.
57359
57360 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57361
57362         * modules/inline (License): Change from GPL to LGPL.
57363
57364 2006-11-17  Jim Meyering  <jim@meyering.net>
57365
57366         * modules/d-type (License): Switch to LGPL.
57367
57368 2006-11-15  Bruno Haible  <bruno@clisp.org>
57369
57370         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
57371
57372 2006-11-15  Eric Blake  <ebb9@byu.net>
57373
57374         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
57375         the module dependency.
57376
57377 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57378             Bruno Haible  <bruno@clisp.org>
57379
57380         * gnulib-tool (func_create_testdir): Add license consistency check.
57381
57382 2006-11-15  Eric Blake  <ebb9@byu.net>
57383
57384         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
57385         random "(cached)" in configure output.
57386
57387 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57388
57389         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
57390         test for conforming inttypes.h is both announced and cached.
57391
57392         * MODULES.html.sh (seen_modules, seen_files): New variables.
57393         (func_module): Rewrite to use a few less gnulib-tool and sed
57394         invocations.  Avoid a couple of quadratic algorithms for ...
57395         (missed_modules, missed_files): ... these, with ...
57396         (func_append, func_tmpdir): ... these new functions, from
57397         gnulib-tool.  Analogously, install traps for cleanup.
57398
57399         * tests/test-gc.c (main): Remove unused variables.
57400         * tests/test-read-file.c: Include stdlib.h, for 'free'.
57401
57402 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
57403
57404         * modules/inttostr (License): Change to LGPL.
57405
57406 2006-11-14  Eric Blake  <ebb9@byu.net>
57407
57408         * modules/tempname (License): Change to LGPL.
57409
57410 2006-11-14  Eric Blake  <ebb9@byu.net>
57411
57412         * doc/functions.texi (Function Portability): *printf functions on
57413         Cygwin now understand all POSIX size specifiers.
57414
57415 2006-11-14  Bruno Haible  <bruno@clisp.org>
57416
57417         * modules/c-ctype (License): Change to LGPL.
57418
57419 2006-11-12  Bruno Haible  <bruno@clisp.org>
57420
57421         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57422         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
57423         for GNOME libraries, for which the include files are installed in
57424         subdirectories of $prefix/include.
57425
57426 2006-11-12  Bruno Haible  <bruno@clisp.org>
57427
57428         * m4/lib-link.m4: Require at least autoconf-2.54.
57429         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
57430         name to underscores for the --with option.
57431
57432 2006-11-13  Bruno Haible  <bruno@clisp.org>
57433
57434         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
57435         the tests directory.
57436         Reported by Ralf Wildenhues.
57437
57438 2006-11-13  Bruno Haible  <bruno@clisp.org>
57439
57440         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
57441         (func_emit_initmacro_end): Undo the override here.
57442         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
57443         Works around the famous automake error in coreutils.
57444
57445 2006-11-13  Eric Blake  <ebb9@byu.net>
57446
57447         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
57448         element, not its node.
57449
57450 2006-11-12  Bruno Haible  <bruno@clisp.org>
57451
57452         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
57453         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
57454
57455 2006-11-12  Bruno Haible  <bruno@clisp.org>
57456
57457         * gnulib-tool: New option --local-symlink.
57458         (func_usage): Document it.
57459         (lsymbolic): New variable.
57460         (func_import, func_create_testdir): If --symlink was not specified,
57461         test whether --local-symlink was specified and the file comes from
57462         the local_gnulib_dir.
57463
57464 2006-11-12  Bruno Haible  <bruno@clisp.org>
57465
57466         * gnulib-tool (func_ln): New function.
57467         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
57468
57469 2006-11-12  Bruno Haible  <bruno@clisp.org>
57470
57471         Finish support for source files in subdirectories.
57472         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
57473         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
57474         AUTOMAKE_OPTIONS.
57475         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
57476
57477 2006-11-12  Bruno Haible  <bruno@clisp.org>
57478
57479         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57480         EXTRA_lib_SOURCES augmentation.
57481         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
57482
57483 2006-11-12  Jim Meyering  <jim@meyering.net>
57484
57485         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
57486         file descriptors.  This also averts a failure on systems with
57487         native openat support when a traversed directory lacks "x" access.
57488         * lib/fts_.h: Include "i-ring.h"
57489         (struct FTS) [fts_fd_ring]: New member.
57490         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
57491         (FCHDIR): Add parentheses.
57492         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
57493         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
57494         When descending, rather than simply closing the previous
57495         fts_cwd_fd value, push that file descriptor onto the ring.
57496         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
57497         (fts_open): Initialize the new fd_ring member.
57498         (fts_close): Clear the ring.
57499         (fts_safe_changedir): When possible, use our new fd_ring to skip
57500         the diropen and fstat and dev/ino comparison that would normally
57501         accompany a virtual `chdir ("..")'.
57502
57503         * modules/fts (Depends-on): Add i-ring.
57504         * modules/i-ring: New module.
57505         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
57506         * m4/i-ring.m4: New file.
57507
57508 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57509
57510         * gnulib-tool (func_create_testdir): Fix replacement of
57511         `build-aux' in configure.ac.  Run autotools in gltests
57512         subdirectory.
57513         (func_create_testdir, func_create_megatestdir, test): There is
57514         no need for '--force' in most autotool invocations in a new
57515         tree.  Actually fail the whole test if any of the tools, or the
57516         configure or make stages fail.
57517
57518         Sync from Automake.
57519         * build-aux/gnupload: Revert last change.  Add pointer to upload
57520         instructions of the GNU Maintenance Instructions.
57521         Suggestion by Karl Berry.
57522
57523 2006-11-10  Jim Meyering  <jim@meyering.net>
57524
57525         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
57526
57527 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57528
57529         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
57530         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
57531         (bind_textdomain_codeset) [! ENABLE_NLS]:
57532         Evaluate all the arguments.  That way, callers get compatible behavior
57533         if the arguments have side effects.  Also, it avoids some GCC
57534         diagnostics in some cases; Joel E. Denny reported problems when Bison
57535         was configured with --enable-gcc-warnigs.
57536
57537 2006-11-10  Jim Meyering  <jim@meyering.net>
57538
57539         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
57540         relevant options in CFLAGS (like -O, -fno-inline) are taken into
57541         account.
57542
57543 2006-11-10  Jim Meyering  <jim@meyering.net>
57544
57545         * modules/inline: New file/module.
57546         * modules/xalloc (Files): Remove m4/inline.m4.
57547         (Depends-on): Add inline, instead.
57548         * modules/oset: Likewise.
57549         * modules/list: Likewise.
57550
57551 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57552
57553         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
57554         Problem reported by Matthew Woehlke.
57555
57556 2006-11-09  Bruno Haible  <bruno@clisp.org>
57557
57558         * lib/tempname.c (gen_tempname): Remove variant that invokes
57559         __gen_tempname.
57560         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
57561         __gen_tempname.
57562
57563 2006-11-08  Bruno Haible  <bruno@clisp.org>
57564
57565         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
57566         to 'yes' instead of 'cross-compiling'.
57567
57568 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
57569
57570         * lib/quotearg.h (quotearg_free): New decl.
57571         * lib/quotearg.c (quotearg_free): New function.
57572         (slot0, nslots, slotvec0, slotvec):
57573         Now file-scope so that quotearg_free can get at them.
57574
57575 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57576
57577         Sync from Automake.
57578         * build-aux/gnupload: Add missing 'gnu' to example URL.
57579         Report by Karl Berry.
57580
57581 2006-11-08  Bruno Haible  <bruno@clisp.org>
57582
57583         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
57584         Suggested by Paul Eggert.
57585
57586 2006-11-08  Jim Meyering  <jim@meyering.net>
57587
57588         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
57589         It's already included if !_LIBC.
57590         (fts_safe_changedir): Add a comment.
57591
57592 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57593
57594         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
57595         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
57596         Matthew Woehlke.
57597
57598         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
57599         definitions up, to avoid colliding with change below.
57600         (static_inline) [HAVE_INLINE]: New macro.
57601         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
57602         Provide extern decls when !HAVE_INLINE.  Do not define unless
57603         static_inline is defined, either by us or by xmalloc.c.  Use
57604         static_inline rather than static inline.
57605         (XCALLOC): Optimize sizeof(T) = 1 case.
57606         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
57607
57608 2006-11-07  Bruno Haible  <bruno@clisp.org>
57609
57610         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
57611         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57612         AC_C_INLINE.
57613         * modules/xalloc (Files): Add m4/inline.m4.
57614
57615 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57616
57617         * README: Fix typo.
57618         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
57619         (Miscellanous Notes): ...from this.
57620
57621 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57622
57623         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
57624         Mention that offsetof should be used instead of sizeof.
57625         From Bruno Haible.
57626
57627 2006-11-07  Bruno Haible  <bruno@clisp.org>
57628
57629         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
57630
57631 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57632
57633         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57634         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
57635         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57636         (gl_tree_add_before, gl_tree_add_after):
57637         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
57638         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
57639         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57640         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
57641         (gl_linked_add_after, gl_linked_add_at): Likewise.
57642         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
57643         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57644         (gl_tree_add_before, gl_tree_add_after): Likewise.
57645         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57646         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57647         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57648
57649 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57650
57651         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57652
57653 2006-11-06  Bruno Haible  <bruno@clisp.org>
57654
57655         * m4/inline.m4: New file.
57656         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57657         * modules/list (Files): Add m4/inline.m4.
57658         * modules/oset (Files): Likewise.
57659
57660 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57661
57662         * lib/idcache.c: Include <stddef.h>, for offsetof.
57663         (struct userid.name): Change from char * to a flexible array member.
57664         All uses changed.
57665         * modules/idcache (Depends-on): Add flexmember.
57666
57667         * MODULES.html.sh (Core language properties): New module flexmember.
57668         * modules/flexmember, m4/flexmember.m4: New files.
57669
57670         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57671         inline functions that are identical with the old xnmalloc_inline,
57672         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57673         that we can avoid some unnecessary integer multiplications and
57674         divisions in the common case where the element size is known at
57675         compile time.
57676         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57677         needed.
57678         (xnboundedmalloc): Remove.
57679         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57680         arguments, for consistency with rest of this header.
57681         (xcharalloc): Rewrite using XNMALLOC.
57682         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57683         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57684         versions have been moved to lib/xalloc.h and renamed to be the
57685         non-*_inline versions.
57686         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57687         and xnrealloc functions, since those functions are now inline and
57688         now call us.
57689         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57690         renaming described above.
57691         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57692         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57693         captures the dependency in AC_C_INLINE.
57694
57695         New module canonicalize-lgpl, proposed by Charles Wilson in
57696         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57697         with a few small changes afterwards.
57698         * MODULES.html.sh (File system functions): New module
57699         canonicalize-lgpl.
57700         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57701         and canonicalize_file_name.
57702         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57703         * modules/canonicalize-lgpl: New files.
57704
57705 2006-11-05  Bruno Haible  <bruno@clisp.org>
57706
57707         * gnulib-tool (func_import, func_create_testdir): Create directories
57708         also for files in subdirectories of lib/.
57709
57710 2006-11-05  Bruno Haible  <bruno@clisp.org>
57711
57712         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57713         ANSI C compliant.
57714
57715 2006-11-03  Bruno Haible  <bruno@clisp.org>
57716
57717         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57718         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57719         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57720         (xnboundedmalloc): New inline function.
57721         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57722         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57723         xmalloc.
57724         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57725         xmalloc.
57726         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57727         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57728         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57729         xmalloc.
57730         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57731         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57732         xmalloc.
57733         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57734         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57735         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57736         xmalloc.
57737         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57738         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57739         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57740         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57741         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57742         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57743         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57744
57745 2006-11-03  Bruno Haible  <bruno@clisp.org>
57746
57747         * lib/c-ctype.h [C++]: Define functions without name mangling.
57748         * lib/fwriteerror.h [C++]: Likewise.
57749         * lib/gcd.h [C++]: Likewise.
57750         * lib/linebreak.h [C++]: Likewise.
57751
57752 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57753
57754         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57755         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57756         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57757         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57758         Check for functions and headers just once.
57759         Check for declaration of canonicalize_file_name.
57760         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57761
57762 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57763
57764         * gnulib-tool (func_import): Fix typo in actioncmd.
57765
57766 2006-11-02  Bruno Haible  <bruno@clisp.org>
57767
57768         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57769         newline sequence in the Makefile.am snippet as a space, like "make"
57770         does.
57771         Reported by Roger Persson <perrog@gmail.com>.
57772
57773 2006-11-01  Bruno Haible  <bruno@clisp.org>
57774
57775         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57776         already declared in <string.h>.
57777         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57778
57779 2006-11-01  Bruno Haible  <bruno@clisp.org>
57780
57781         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57782         * lib/strcase.h: Include <string.h>.
57783         (strcasecmp): Define to rpl_strcasecmp here.
57784
57785 2006-11-01  Bruno Haible  <bruno@clisp.org>
57786
57787         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57788
57789 2006-11-01  Eric Blake  <ebb9@byu.net>
57790
57791         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57792
57793         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57794
57795 2006-10-29  Bruno Haible  <bruno@clisp.org>
57796
57797         Make it compile in C++ mode.
57798         * lib/full-write.c (full_rw): Add a cast.
57799
57800 2006-11-01  Bruno Haible  <bruno@clisp.org>
57801
57802         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57803         be POSIX compliant.
57804         Reported by Roger Persson <perrog@gmail.com>.
57805
57806 2006-11-01  Eric Blake  <ebb9@byu.net>
57807
57808         * lib/getopt_.h: Fix comments.
57809
57810 2006-10-31  Eric Blake  <ebb9@byu.net>
57811
57812         * modules/tmpdir (Depends-on): Add sys_stat.
57813         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57814         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57815         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57816         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57817         tempname.
57818
57819 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57820
57821         Avoid some C++ diagnostics reported by Bruno Haible.
57822         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57823         xmalloc.
57824         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57825         (struct slotvec): Move to top level.
57826         (quotearg_n_options): Rewrite to avoid xmalloc.
57827         * lib/xalloc.h (xcharalloc): New function.
57828         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57829         [defined __cplusplus]: Add function template that provides result
57830         type propagation.  This part of the change is from Bruno Haible.
57831
57832 2006-10-29  Bruno Haible  <bruno@clisp.org>
57833
57834         Make it compile in C++ mode.
57835         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57836         * lib/strnlen1.c (strnlen1): Cast memchr result.
57837         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57838         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57839         (create_temp_dir): Rename local variable 'template'.
57840         (compile_csharp_using_sscli): Add cast.
57841         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57842         * lib/findprog.c (find_in_path): Likewise.
57843         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57844         * lib/wait-process.c (register_slave_subprocess): Likewise.
57845
57846 2006-10-22  Bruno Haible  <bruno@clisp.org>
57847
57848         * modules/tsearch: New file.
57849         * lib/tsearch.h: New file.
57850         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57851         * m4/tsearch.m4: New file.
57852         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57853
57854 2006-10-29  Eric Blake  <ebb9@byu.net>
57855
57856         * lib/arcfour.c: Assume config.h.
57857         * lib/arctwo.c: Likewise.
57858         * lib/base64.c: Likewise.
57859         * lib/check-version.c: Likewise.
57860         * lib/crc.c: Likewise.
57861         * lib/des.c: Likewise.
57862         * lib/gc-gnulib.c: Likewise.
57863         * lib/gc-libgcrypt.c: Likewise.
57864         * lib/gc-pbkdf2-sha1.c: Likewise.
57865         * lib/getaddrinfo.c: Likewise.
57866         * lib/getdelim.c: Likewise.
57867         * lib/getline.c: Likewise.
57868         * lib/hmac-md5.c: Likewise.
57869         * lib/hmac-sha1.c: Likewise.
57870         * lib/iconvme.c: Likewise.
57871         * lib/md2.c: Likewise.
57872         * lib/md4.c: Likewise.
57873         * lib/memxor.c: Likewise.
57874         * lib/read-file.c: Likewise.
57875         * lib/readline.c: Likewise.
57876         * lib/rijndael-alg-fst.c: Likewise.
57877         * lib/rijndael-api-fst.c: Likewise.
57878         * lib/xgetdomainname.c: Likewise.
57879
57880 2006-10-28  Eric Blake  <ebb9@byu.net>
57881
57882         * lib/xstrndup.c: Assume config.h.
57883
57884 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57885
57886         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57887         stat-macros.h is now for our own macros, whereas stat_h is for
57888         macros in the <sys/stat.h> name space.
57889         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57890         (STAT_MACROS_H): Remove.
57891         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57892         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57893         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57894         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57895         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57896         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57897         Move these macros to ...
57898         * lib/stat_.h: here.  Don't include stat-macros.h.
57899         * lib/canonicalize.c: Don't include stat-macros.h.
57900         * lib/chown.c: Likewise.
57901         * lib/euidaccess.c: Likewise.
57902         * lib/file-type.c: Likewise.
57903         * lib/filemode.c: Likewise.
57904         * lib/glob.c: Likewise.
57905         * lib/isapipe.c: Likewise.
57906         * lib/lchown.c: Likewise.
57907         * lib/lstat.c: Likewise.
57908         * lib/mkdir-p.c: Likewise.
57909         * lib/rmdir.c: Likewise.
57910         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57911         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57912         unless mkdir isn't declared, to speed up 'configure'.
57913         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57914         would define all the S_* symbols.
57915         * modules/canonicalize (Depends-on):
57916         Depend on sys_stat, not stat-macros.
57917         * modules/chown: Likewise.
57918         * modules/euidaccess: Likewise.
57919         * modules/filemode: Likewise.
57920         * modules/file-type: Likewise.
57921         * modules/glob: Likewise.
57922         * modules/isapipe: Likewise.
57923         * modules/lchown: Likewise.
57924         * modules/lstat: Likewise.
57925         * modules/mkancesdirs: Likewise.
57926         * modules/rmdir: Likewise.
57927         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57928         * modules/modechange: Likewise.
57929         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57930         (configure.ac): Remove gl_STAT_MACROS.
57931         * modules/sys_stat (Depends-on): Remove stat-macros.
57932
57933 2006-10-27  Bruno Haible  <bruno@clisp.org>
57934
57935         * m4/signed.m4: Remove file.
57936         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57937         invocation.
57938         * modules/vasnprintf (Files): Remove m4/signed.m4.
57939
57940 2006-10-27  Bruno Haible  <bruno@clisp.org>
57941
57942         Update to GNU gettext 0.16.
57943         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57944         m4/inttypes-h.m4, m4/signed.m4.
57945         * m4/gettext.m4: Update to GNU gettext 0.16.
57946         * m4/intl.m4: New file, from GNU gettext.
57947         * m4/intldir.m4: New file, from GNU gettext.
57948         * config/srclist.txt: Update
57949
57950 2006-10-27  Eric Blake  <ebb9@byu.net>
57951
57952         * MODULES.html.sh: Document tempname.
57953         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57954         dependencies.
57955         (Files): Move lib/tempname.c...
57956         * modules/tempname: ...to this new module.
57957         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57958         (gl_PREREQ_TEMPNAME): Move...
57959         * m4/tempname.m4: ...to this new file.
57960         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57961         * modules/sys_stat (Depends-on): Add stat-macros.
57962         * lib/stat_.h (includes): Pick up stat macros.
57963         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57964         if stat macros are broken.
57965         * lib/tempname.c (includes): No need to include "stat-macros.h".
57966         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57967         (direxists, __path_search) [!_LIBC]: Don't compile these in
57968         gnulib; the tmpdir module covers that.
57969         * lib/tempname.h: New file.
57970
57971 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57972
57973         * COPYING: Explain how gnulib-tool converts licence headers.
57974         Almost all wording by Eric Blake.
57975
57976 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57977
57978         * lib/mbchar.h (is_basic_table): Make read-only.
57979         * lib/mbchar.c (is_basic_table): Likewise.
57980         Reported by John Darrington.
57981
57982 2006-10-25  Bruno Haible  <bruno@clisp.org>
57983
57984         * lib/progname.h (set_program_name): Undefine before defining.
57985
57986 2006-10-25  Bruno Haible  <bruno@clisp.org>
57987
57988         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57989         false for non-gcc C++ compilers.
57990         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57991
57992 2006-10-24  Bruno Haible  <bruno@clisp.org>
57993
57994         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57995         iconv implementations like Irix iconv.
57996
57997 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57998
57999         * modules/vararrays: New file.
58000         * m4/vararrays.m4: New file, taken from diffutils.
58001         * MODULES.html.sh: New module vararrays.
58002
58003 2006-10-24  Karl Berry  <karl@gnu.org>
58004
58005         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
58006         Don't call GNU Unix.
58007
58008 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58009
58010         * users.txt: Add Libtool.
58011
58012         Sync from Libtool:
58013
58014         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58015
58016         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
58017         to gnulib's policy of including config.h unconditionally.
58018
58019 2006-10-24  Bruno Haible  <bruno@clisp.org>
58020
58021         * modules/wcwidth (Files): Add m4/wint_t.m4.
58022         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
58023         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
58024
58025 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58026
58027         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
58028         to pacify GCC with some -W flags enabled.  Problem reported by
58029         Bruno Haible.
58030
58031 2006-10-24  Jim Meyering  <jim@meyering.net>
58032
58033         * MODULES.html.sh: Remove uinttostr.  It's not a module.
58034         Reported by Karl Berry.
58035
58036 2006-10-23  Bruno Haible  <bruno@clisp.org>
58037
58038         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
58039
58040 2006-10-24  Bruno Haible  <bruno@clisp.org>
58041
58042         * lib/gl_list.h: Use C comment style, not C++ comment style.
58043
58044 2006-10-23  Eric Blake  <ebb9@byu.net>
58045
58046         * lib/getaddrinfo.c (includes): Add missing include.
58047
58048 2006-10-23  Bruno Haible  <bruno@clisp.org>
58049             Paul Eggert  <eggert@cs.ucla.edu>
58050
58051         Ability to rename obstack_free.
58052         * lib/obstack.h (__obstack_free): New macro. Declare instead of
58053         obstack_free.
58054         (obstack_free): Invoke the __obstack_free macro.
58055         * lib/obstack.c (obstack_free): Use __obstack_free macro.
58056
58057 2006-10-23  Bruno Haible  <bruno@clisp.org>
58058             Paul Eggert  <eggert@cs.ucla.edu>
58059
58060         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
58061         __argc, __argv from the declaration. (They are defined as macros on
58062         mingw.)
58063
58064 2006-10-22  Bruno Haible  <bruno@clisp.org>
58065
58066         * doc/gnulib-intro.texi: New file.
58067         * doc/gnulib.texi: Include it.
58068
58069 2006-10-21  Bruno Haible  <bruno@clisp.org>
58070
58071         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
58072         "Introduction", "Miscellanous Notes", "Particular Modules".
58073
58074 2006-10-21  Bruno Haible  <bruno@clisp.org>
58075
58076         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58077         Change mostlyclean-local rule to avoid sh syntax error from bash
58078         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
58079
58080 2006-10-23  Jim Meyering  <jim@meyering.net>
58081
58082         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
58083         in place of snprintf.
58084
58085         * modules/inttostr (Files): Add lib/uinttostr.c.
58086         * lib/uinttostr.c (inttostr): New file/function.
58087         * lib/inttostr.h (uinttostr): Declare.
58088         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
58089         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58090         Add uinttostr.
58091         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
58092
58093 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58094
58095         * lib/canonicalize.c (ELOOP): Define if not already defined.
58096         Problem reported by Bruno Haible in
58097         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
58098
58099 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58100
58101         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
58102         Problem reported by Perry Smith and Ville Laurikari.
58103
58104         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
58105         uses.
58106
58107 2006-10-19  Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
58110         for mingw.
58111
58112 2006-10-19  Bruno Haible  <bruno@clisp.org>
58113
58114         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
58115         Needed for mingw.
58116
58117 2006-10-19  Bruno Haible  <bruno@clisp.org>
58118
58119         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
58120
58121 2006-10-19  Bruno Haible  <bruno@clisp.org>
58122
58123         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
58124         it.
58125
58126 2006-10-19  Bruno Haible  <bruno@clisp.org>
58127
58128         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
58129         invocation.
58130
58131 2006-10-19  Bruno Haible  <bruno@clisp.org>
58132
58133         * gnulib-tool (func_create_testdir): Don't include ftruncate and
58134         mountlist by default.
58135
58136 2006-10-16  Bruno Haible  <bruno@clisp.org>
58137
58138         * lib/c-strstr.c: Include c-strstr.h.
58139
58140 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58141
58142         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
58143         in a slash.
58144
58145 2006-10-18  Bruno Haible  <bruno@clisp.org>
58146
58147         * lib/lock.h [C++]: Wrap definitions in extern "C".
58148
58149 2006-10-18  Bruno Haible  <bruno@clisp.org>
58150
58151         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
58152         gl_LIBOBJS list.
58153
58154 2006-10-18  Bruno Haible  <bruno@clisp.org>
58155
58156         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
58157
58158 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
58159
58160         * lib/xstrtol.h: Include gettext.h.
58161         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
58162         Problem reported by Eric Blake.
58163         * modules/xstrtol (Depends-on): Add gettext-h.
58164
58165 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
58166
58167         * lib/strftime.c (advance): New macro.
58168         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
58169         incomplete type, so you can't add 0 to it.  Problem and patch
58170         reported by Eelco Dolstra for dietlibc.
58171
58172 2006-10-18  Jim Meyering  <jim@meyering.net>
58173
58174         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
58175         type for a local, and rename it: s/up/user_proc/.
58176
58177 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58178
58179         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
58180         READ_UTMP_USER_PROCESS.
58181         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
58182
58183 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58184
58185         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
58186         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
58187
58188 2006-10-17  Eric Blake  <ebb9@byu.net>
58189
58190         * lib/sigprocmask.c (sigprocmask): Fix typo.
58191
58192         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
58193
58194         * modules/clean-temp (Makefile.am): Don't add to make output...
58195         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
58196         config.h.
58197
58198 2006-10-17  Bruno Haible  <bruno@clisp.org>
58199
58200         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
58201         differently if DEFAULT_TEXT_DOMAIN is set.
58202
58203 2006-10-16  Bruno Haible  <bruno@clisp.org>
58204
58205         * lib/clean-temp.c: Include fwriteerror.h.
58206
58207 2006-10-16  Bruno Haible  <bruno@clisp.org>
58208
58209         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
58210
58211 2006-10-16  Bruno Haible  <bruno@clisp.org>
58212
58213         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
58214         * lib/sigprocmask.h: Include <sys/types.h>.
58215         (sigset_t): Use the system's definition if present.
58216
58217 2006-10-17  Eric Blake  <ebb9@byu.net>
58218
58219         * lib/xvasprintf.c (includes): Assume config.h.
58220         * lib/xasprintf.c (includes): Likewise.
58221
58222 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58223
58224         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
58225         at least as wide as intmax_t.
58226
58227 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
58228
58229         (Imported from Automake.)
58230         * build-aux/gnupload: Update to version 1.1 of directive file.
58231
58232 2006-10-16  Eric Blake  <ebb9@byu.net>
58233
58234         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
58235         match Automake 1.10a.
58236
58237 2006-10-14  Bruno Haible  <bruno@clisp.org>
58238
58239         * modules/sigprocmask: New file.
58240         * lib/sigprocmask.h: New file.
58241         * lib/sigprocmask.c: New file.
58242         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
58243         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
58244         request sigprocmask.o.
58245         (gl_PREREQ_SIGPROCMASK): New macro.
58246         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
58247         (Depends-on): Add sigprocmask.
58248         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
58249         gt_SIGNALBLOCKING. Test for 'raise' only once.
58250         * lib/fatal-signal.c: Include sigprocmask.h.
58251         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
58252         unblock_fatal_signals): Define always.
58253         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58254         sigprocmask.
58255
58256 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58257
58258         Sync from Automake.
58259         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
58260         which incorrectly sets the mode of an existing destination
58261         directory.  In some cases the unpatched install-sh could do the
58262         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
58263         system.  We hope this is rare in practice, but it's clearly worth
58264         fixing.  Problem reported by Alex Unleashed in
58265         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
58266         Also, don't bother to check for -m bugs unless we're using -m;
58267         suggested by Stepan Kasal.
58268
58269 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58270
58271         Sync from Automake.
58272         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
58273         `-c' flag, so they appear at the same position as in %FASTDEP%
58274         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
58275         which ignores unknown options only after the first non-option.
58276         Bug report against M4 by Nelson H. F. Beebe.
58277
58278 2006-10-13  Jim Meyering  <jim@meyering.net>
58279
58280         Fix a bug in yesterday's change.
58281         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
58282         p->fts_statp->st_dev would be used uninitialized.
58283         Ensures that we always call fts_stat on the very first entry.
58284         Miklos Szeredi reported that find -xdev stopped working.
58285
58286 2006-10-12  Bruno Haible  <bruno@clisp.org>
58287
58288         * gnulib-tool (func_get_automake_snippet): Append an automatically
58289         computed EXTRA_DIST augmentation.
58290         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
58291         * modules/alloca-opt (Makefile.am): Likewise.
58292         * modules/allocsa (Makefile.am): Likewise.
58293         * modules/arcfour (Makefile.am): Likewise.
58294         * modules/arctwo (Makefile.am): Likewise.
58295         * modules/argmatch (Makefile.am): Likewise.
58296         * modules/argz (Makefile.am): Likewise.
58297         * modules/atexit (Makefile.am): Likewise.
58298         * modules/backupfile (Makefile.am): Likewise.
58299         * modules/byteswap (Makefile.am): Likewise.
58300         * modules/c-strtod (Makefile.am): Likewise.
58301         * modules/c-strtold (Makefile.am): Likewise.
58302         * modules/calloc (Makefile.am): Likewise.
58303         * modules/canon-host (Makefile.am): Likewise.
58304         * modules/canonicalize (Makefile.am): Likewise.
58305         * modules/chdir-long (Makefile.am): Likewise.
58306         * modules/chdir-safer (Makefile.am): Likewise.
58307         * modules/check-version (Makefile.am): Likewise.
58308         * modules/chown (Makefile.am): Likewise.
58309         * modules/cloexec (Makefile.am): Likewise.
58310         * modules/close-stream (Makefile.am): Likewise.
58311         * modules/closeout (Makefile.am): Likewise.
58312         * modules/crc (Makefile.am): Likewise.
58313         * modules/csharpexec (Makefile.am): Likewise.
58314         * modules/cycle-check (Makefile.am): Likewise.
58315         * modules/des (Makefile.am): Likewise.
58316         * modules/dev-ino (Makefile.am): Likewise.
58317         * modules/dirfd (Makefile.am): Likewise.
58318         * modules/dirname (Makefile.am): Likewise.
58319         * modules/dup2 (Makefile.am): Likewise.
58320         * modules/eealloc (Makefile.am): Likewise.
58321         * modules/error (Makefile.am): Likewise.
58322         * modules/euidaccess (Makefile.am): Likewise.
58323         * modules/exclude (Makefile.am): Likewise.
58324         * modules/exitfail (Makefile.am): Likewise.
58325         * modules/fcntl-safer (Makefile.am): Likewise.
58326         * modules/fcntl (Makefile.am): Likewise.
58327         * modules/file-type (Makefile.am): Likewise.
58328         * modules/fileblocks (Makefile.am): Likewise.
58329         * modules/filemode (Makefile.am): Likewise.
58330         * modules/filenamecat (Makefile.am): Likewise.
58331         * modules/fnmatch (Makefile.am): Likewise.
58332         * modules/fopen-safer (Makefile.am): Likewise.
58333         * modules/fpending (Makefile.am): Likewise.
58334         * modules/fprintftime (Makefile.am): Likewise.
58335         * modules/free (Makefile.am): Likewise.
58336         * modules/fsusage (Makefile.am): Likewise.
58337         * modules/ftruncate (Makefile.am): Likewise.
58338         * modules/fts (Makefile.am): Likewise.
58339         * modules/gc-arcfour (Makefile.am): Likewise.
58340         * modules/gc-des (Makefile.am): Likewise.
58341         * modules/gc-hmac-md5 (Makefile.am): Likewise.
58342         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
58343         * modules/gc-md4 (Makefile.am): Likewise.
58344         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58345         * modules/gc-sha1 (Makefile.am): Likewise.
58346         * modules/gc (Makefile.am): Likewise.
58347         * modules/getaddrinfo (Makefile.am): Likewise.
58348         * modules/getcwd (Makefile.am): Likewise.
58349         * modules/getdelim (Makefile.am): Likewise.
58350         * modules/getdomainname (Makefile.am): Likewise.
58351         * modules/getgroups (Makefile.am): Likewise.
58352         * modules/gethostname (Makefile.am): Likewise.
58353         * modules/gethrxtime (Makefile.am): Likewise.
58354         * modules/getline (Makefile.am): Likewise.
58355         * modules/getloadavg (Makefile.am): Likewise.
58356         * modules/getlogin_r (Makefile.am): Likewise.
58357         * modules/getndelim2 (Makefile.am): Likewise.
58358         * modules/getopt (Makefile.am): Likewise.
58359         * modules/getpagesize (Makefile.am): Likewise.
58360         * modules/getpass-gnu (Makefile.am): Likewise.
58361         * modules/getpass (Makefile.am): Likewise.
58362         * modules/getsubopt (Makefile.am): Likewise.
58363         * modules/gettime (Makefile.am): Likewise.
58364         * modules/gettimeofday (Makefile.am): Likewise.
58365         * modules/getugroups (Makefile.am): Likewise.
58366         * modules/getusershell (Makefile.am): Likewise.
58367         * modules/glob (Makefile.am): Likewise.
58368         * modules/group-member (Makefile.am): Likewise.
58369         * modules/hard-locale (Makefile.am): Likewise.
58370         * modules/hash (Makefile.am): Likewise.
58371         * modules/hmac-md5 (Makefile.am): Likewise.
58372         * modules/hmac-sha1 (Makefile.am): Likewise.
58373         * modules/human (Makefile.am): Likewise.
58374         * modules/idcache (Makefile.am): Likewise.
58375         * modules/imaxabs (Makefile.am): Likewise.
58376         * modules/imaxdiv (Makefile.am): Likewise.
58377         * modules/inet_ntop (Makefile.am): Likewise.
58378         * modules/inet_pton (Makefile.am): Likewise.
58379         * modules/intprops (Makefile.am): Likewise.
58380         * modules/inttostr (Makefile.am): Likewise.
58381         * modules/inttypes (Makefile.am): Likewise.
58382         * modules/isapipe (Makefile.am): Likewise.
58383         * modules/javaversion (Makefile.am): Likewise.
58384         * modules/lchmod (Makefile.am): Likewise.
58385         * modules/lchown (Makefile.am): Likewise.
58386         * modules/localcharset (Makefile.am): Likewise.
58387         * modules/long-options (Makefile.am): Likewise.
58388         * modules/lstat (Makefile.am): Likewise.
58389         * modules/malloc (Makefile.am): Likewise.
58390         * modules/mathl (Makefile.am): Likewise.
58391         * modules/mbchar (Makefile.am): Likewise.
58392         * modules/md2 (Makefile.am): Likewise.
58393         * modules/md4 (Makefile.am): Likewise.
58394         * modules/md5 (Makefile.am): Likewise.
58395         * modules/memcasecmp (Makefile.am): Likewise.
58396         * modules/memchr (Makefile.am): Likewise.
58397         * modules/memcmp (Makefile.am): Likewise.
58398         * modules/memcoll (Makefile.am): Likewise.
58399         * modules/memcpy (Makefile.am): Likewise.
58400         * modules/memmem (Makefile.am): Likewise.
58401         * modules/memmove (Makefile.am): Likewise.
58402         * modules/mempcpy (Makefile.am): Likewise.
58403         * modules/memrchr (Makefile.am): Likewise.
58404         * modules/memset (Makefile.am): Likewise.
58405         * modules/memxor (Makefile.am): Likewise.
58406         * modules/mkancesdirs (Makefile.am): Likewise.
58407         * modules/mkdir-p (Makefile.am): Likewise.
58408         * modules/mkdir (Makefile.am): Likewise.
58409         * modules/mkdtemp (Makefile.am): Likewise.
58410         * modules/mkstemp (Makefile.am): Likewise.
58411         * modules/mktime (Makefile.am): Likewise.
58412         * modules/modechange (Makefile.am): Likewise.
58413         * modules/mountlist (Makefile.am): Likewise.
58414         * modules/nanosleep (Makefile.am): Likewise.
58415         * modules/obstack (Makefile.am): Likewise.
58416         * modules/openat (Makefile.am): Likewise.
58417         * modules/pagealign_alloc (Makefile.am): Likewise.
58418         * modules/pathmax (Makefile.am): Likewise.
58419         * modules/physmem (Makefile.am): Likewise.
58420         * modules/poll (Makefile.am): Likewise.
58421         * modules/posixtm (Makefile.am): Likewise.
58422         * modules/posixver (Makefile.am): Likewise.
58423         * modules/putenv (Makefile.am): Likewise.
58424         * modules/quote (Makefile.am): Likewise.
58425         * modules/quotearg (Makefile.am): Likewise.
58426         * modules/raise (Makefile.am): Likewise.
58427         * modules/read-file (Makefile.am): Likewise.
58428         * modules/readline (Makefile.am): Likewise.
58429         * modules/readlink (Makefile.am): Likewise.
58430         * modules/readtokens (Makefile.am): Likewise.
58431         * modules/readutmp (Makefile.am): Likewise.
58432         * modules/realloc (Makefile.am): Likewise.
58433         * modules/regex (Makefile.am): Likewise.
58434         * modules/rename-dest-slash (Makefile.am): Likewise.
58435         * modules/rename (Makefile.am): Likewise.
58436         * modules/rijndael (Makefile.am): Likewise.
58437         * modules/rmdir (Makefile.am): Likewise.
58438         * modules/rpmatch (Makefile.am): Likewise.
58439         * modules/safe-read (Makefile.am): Likewise.
58440         * modules/safe-write (Makefile.am): Likewise.
58441         * modules/same-inode (Makefile.am): Likewise.
58442         * modules/same (Makefile.am): Likewise.
58443         * modules/save-cwd (Makefile.am): Likewise.
58444         * modules/savedir (Makefile.am): Likewise.
58445         * modules/setenv (Makefile.am): Likewise.
58446         * modules/settime (Makefile.am): Likewise.
58447         * modules/sha1 (Makefile.am): Likewise.
58448         * modules/sig2str (Makefile.am): Likewise.
58449         * modules/snprintf (Makefile.am): Likewise.
58450         * modules/stat-macros (Makefile.am): Likewise.
58451         * modules/stat-time (Makefile.am): Likewise.
58452         * modules/stdbool (Makefile.am): Likewise.
58453         * modules/stdint (Makefile.am): Likewise.
58454         * modules/stdlib-safer (Makefile.am): Likewise.
58455         * modules/stpcpy (Makefile.am): Likewise.
58456         * modules/stpncpy (Makefile.am): Likewise.
58457         * modules/strcase (Makefile.am): Likewise.
58458         * modules/strcasestr (Makefile.am): Likewise.
58459         * modules/strchrnul (Makefile.am): Likewise.
58460         * modules/strcspn (Makefile.am): Likewise.
58461         * modules/strdup (Makefile.am): Likewise.
58462         * modules/strerror (Makefile.am): Likewise.
58463         * modules/strftime (Makefile.am): Likewise.
58464         * modules/strndup (Makefile.am): Likewise.
58465         * modules/strnlen (Makefile.am): Likewise.
58466         * modules/strpbrk (Makefile.am): Likewise.
58467         * modules/strsep (Makefile.am): Likewise.
58468         * modules/strstr (Makefile.am): Likewise.
58469         * modules/strtod (Makefile.am): Likewise.
58470         * modules/strtoimax (Makefile.am): Likewise.
58471         * modules/strtok_r (Makefile.am): Likewise.
58472         * modules/strtol (Makefile.am): Likewise.
58473         * modules/strtoll (Makefile.am): Likewise.
58474         * modules/strtoul (Makefile.am): Likewise.
58475         * modules/strtoull (Makefile.am): Likewise.
58476         * modules/strtoumax (Makefile.am): Likewise.
58477         * modules/strverscmp (Makefile.am): Likewise.
58478         * modules/sys_socket (Makefile.am): Likewise.
58479         * modules/sys_stat (Makefile.am): Likewise.
58480         * modules/sysexits (Makefile.am): Likewise.
58481         * modules/time_r (Makefile.am): Likewise.
58482         * modules/timegm (Makefile.am): Likewise.
58483         * modules/timespec (Makefile.am): Likewise.
58484         * modules/tmpfile-safer (Makefile.am): Likewise.
58485         * modules/trim (Makefile.am): Likewise.
58486         * modules/unistd-safer (Makefile.am): Likewise.
58487         * modules/unlinkdir (Makefile.am): Likewise.
58488         * modules/unlocked-io (Makefile.am): Likewise.
58489         * modules/userspec (Makefile.am): Likewise.
58490         * modules/utime (Makefile.am): Likewise.
58491         * modules/utimecmp (Makefile.am): Likewise.
58492         * modules/utimens (Makefile.am): Likewise.
58493         * modules/vasnprintf (Makefile.am): Likewise.
58494         * modules/vasprintf (Makefile.am): Likewise.
58495         * modules/vsnprintf (Makefile.am): Likewise.
58496         * modules/xalloc (Makefile.am): Likewise.
58497         * modules/xgetcwd (Makefile.am): Likewise.
58498         * modules/xnanosleep (Makefile.am): Likewise.
58499         * modules/xreadlink (Makefile.am): Likewise.
58500         * modules/xstrtod (Makefile.am): Likewise.
58501         * modules/xstrtol (Makefile.am): Likewise.
58502         * modules/xstrtold (Makefile.am): Likewise.
58503         * modules/yesno (Makefile.am): Likewise.
58504         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
58505
58506 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58507
58508         * modules/error (Makefile.am): Distribute files through
58509         EXTRA_DIST, not lib_SOURCES.
58510
58511 2006-10-12  Eric Blake  <ebb9@byu.net>
58512
58513         * modules/error (Makefile.am): Distribute files in /lib.
58514         * modules/obstack (Makefile.am): Likewise.
58515
58516 2006-10-12  Bruno Haible  <bruno@clisp.org>
58517
58518         * modules/acl (Makefile.am): Distribute all files in lib/ through
58519         EXTRA_DIST.
58520         * modules/arcfour (Makefile.am): Likewise.
58521         * modules/arctwo (Makefile.am): Likewise.
58522         * modules/argmatch (Makefile.am): Likewise.
58523         * modules/argz (Makefile.am): Likewise.
58524         * modules/atexit (Makefile.am): Likewise.
58525         * modules/backupfile (Makefile.am): Likewise.
58526         * modules/c-strtod (Makefile.am): Likewise.
58527         * modules/c-strtold (Makefile.am): Likewise.
58528         * modules/calloc (Makefile.am): Likewise.
58529         * modules/canon-host (Makefile.am): Likewise.
58530         * modules/canonicalize (Makefile.am): Likewise.
58531         * modules/chdir-long (Makefile.am): Likewise.
58532         * modules/chdir-safer (Makefile.am): Likewise.
58533         * modules/check-version (Makefile.am): Likewise.
58534         * modules/chown (Makefile.am): Likewise.
58535         * modules/cloexec (Makefile.am): Likewise.
58536         * modules/close-stream (Makefile.am): Likewise.
58537         * modules/closeout (Makefile.am): Likewise.
58538         * modules/crc (Makefile.am): Likewise.
58539         * modules/cycle-check (Makefile.am): Likewise.
58540         * modules/des (Makefile.am): Likewise.
58541         * modules/dirfd (Makefile.am): Likewise.
58542         * modules/dirname (Makefile.am): Likewise.
58543         * modules/dup2 (Makefile.am): Likewise.
58544         * modules/euidaccess (Makefile.am): Likewise.
58545         * modules/exclude (Makefile.am): Likewise.
58546         * modules/exitfail (Makefile.am): Likewise.
58547         * modules/fcntl-safer (Makefile.am): Likewise.
58548         * modules/file-type (Makefile.am): Likewise.
58549         * modules/fileblocks (Makefile.am): Likewise.
58550         * modules/filemode (Makefile.am): Likewise.
58551         * modules/filenamecat (Makefile.am): Likewise.
58552         * modules/fnmatch (Makefile.am): Likewise.
58553         * modules/fopen-safer (Makefile.am): Likewise.
58554         * modules/fpending (Makefile.am): Likewise.
58555         * modules/fprintftime (Makefile.am): Likewise.
58556         * modules/free (Makefile.am): Likewise.
58557         * modules/fsusage (Makefile.am): Likewise.
58558         * modules/ftruncate (Makefile.am): Likewise.
58559         * modules/fts (Makefile.am): Likewise.
58560         * modules/gc (Makefile.am): Likewise.
58561         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58562         * modules/getaddrinfo (Makefile.am): Likewise.
58563         * modules/getcwd (Makefile.am): Likewise.
58564         * modules/getdelim (Makefile.am): Likewise.
58565         * modules/getdomainname (Makefile.am): Likewise.
58566         * modules/getgroups (Makefile.am): Likewise.
58567         * modules/gethostname (Makefile.am): Likewise.
58568         * modules/gethrxtime (Makefile.am): Likewise.
58569         * modules/getline (Makefile.am): Likewise.
58570         * modules/getloadavg (Makefile.am): Likewise.
58571         * modules/getlogin_r (Makefile.am): Likewise.
58572         * modules/getopt (Makefile.am): Likewise.
58573         * modules/getpass (Makefile.am): Likewise.
58574         * modules/getpass-gnu (Makefile.am): Likewise.
58575         * modules/getsubopt (Makefile.am): Likewise.
58576         * modules/gettime (Makefile.am): Likewise.
58577         * modules/gettimeofday (Makefile.am): Likewise.
58578         * modules/getugroups (Makefile.am): Likewise.
58579         * modules/getusershell (Makefile.am): Likewise.
58580         * modules/glob (Makefile.am): Likewise.
58581         * modules/group-member (Makefile.am): Likewise.
58582         * modules/hard-locale (Makefile.am): Likewise.
58583         * modules/hash (Makefile.am): Likewise.
58584         * modules/hmac-md5 (Makefile.am): Likewise.
58585         * modules/hmac-sha1 (Makefile.am): Likewise.
58586         * modules/human (Makefile.am): Likewise.
58587         * modules/idcache (Makefile.am): Likewise.
58588         * modules/imaxabs (Makefile.am): Likewise.
58589         * modules/imaxdiv (Makefile.am): Likewise.
58590         * modules/inet_ntop (Makefile.am): Likewise.
58591         * modules/inet_pton (Makefile.am): Likewise.
58592         * modules/inttostr (Makefile.am): Likewise.
58593         * modules/isapipe (Makefile.am): Likewise.
58594         * modules/lchown (Makefile.am): Likewise.
58595         * modules/long-options (Makefile.am): Likewise.
58596         * modules/lstat (Makefile.am): Likewise.
58597         * modules/malloc (Makefile.am): Likewise.
58598         * modules/mathl (Makefile.am): Likewise.
58599         * modules/mbchar (Makefile.am): Likewise.
58600         * modules/md2 (Makefile.am): Likewise.
58601         * modules/md4 (Makefile.am): Likewise.
58602         * modules/md5 (Makefile.am): Likewise.
58603         * modules/memcasecmp (Makefile.am): Likewise.
58604         * modules/memchr (Makefile.am): Likewise.
58605         * modules/memcmp (Makefile.am): Likewise.
58606         * modules/memcoll (Makefile.am): Likewise.
58607         * modules/memcpy (Makefile.am): Likewise.
58608         * modules/memmem (Makefile.am): Likewise.
58609         * modules/memmove (Makefile.am): Likewise.
58610         * modules/mempcpy (Makefile.am): Likewise.
58611         * modules/memrchr (Makefile.am): Likewise.
58612         * modules/memset (Makefile.am): Likewise.
58613         * modules/memxor (Makefile.am): Likewise.
58614         * modules/mkancesdirs (Makefile.am): Likewise.
58615         * modules/mkdir (Makefile.am): Likewise.
58616         * modules/mkdir-p (Makefile.am): Likewise.
58617         * modules/mkdtemp (Makefile.am): Likewise.
58618         * modules/mkstemp (Makefile.am): Likewise.
58619         * modules/mktime (Makefile.am): Likewise.
58620         * modules/modechange (Makefile.am): Likewise.
58621         * modules/mountlist (Makefile.am): Likewise.
58622         * modules/nanosleep (Makefile.am): Likewise.
58623         * modules/openat (Makefile.am): Likewise.
58624         * modules/pagealign_alloc (Makefile.am): Likewise.
58625         * modules/physmem (Makefile.am): Likewise.
58626         * modules/poll (Makefile.am): Likewise.
58627         * modules/posixtm (Makefile.am): Likewise.
58628         * modules/posixver (Makefile.am): Likewise.
58629         * modules/putenv (Makefile.am): Likewise.
58630         * modules/quote (Makefile.am): Likewise.
58631         * modules/quotearg (Makefile.am): Likewise.
58632         * modules/raise (Makefile.am): Likewise.
58633         * modules/read-file (Makefile.am): Likewise.
58634         * modules/readline (Makefile.am): Likewise.
58635         * modules/readlink (Makefile.am): Likewise.
58636         * modules/readtokens (Makefile.am): Likewise.
58637         * modules/readutmp (Makefile.am): Likewise.
58638         * modules/realloc (Makefile.am): Likewise.
58639         * modules/regex (Makefile.am): Likewise.
58640         * modules/rename (Makefile.am): Likewise.
58641         * modules/rename-dest-slash (Makefile.am): Likewise.
58642         * modules/rijndael (Makefile.am): Likewise.
58643         * modules/rmdir (Makefile.am): Likewise.
58644         * modules/rpmatch (Makefile.am): Likewise.
58645         * modules/safe-read (Makefile.am): Likewise.
58646         * modules/safe-write (Makefile.am): Likewise.
58647         * modules/same (Makefile.am): Likewise.
58648         * modules/save-cwd (Makefile.am): Likewise.
58649         * modules/savedir (Makefile.am): Likewise.
58650         * modules/setenv (Makefile.am): Likewise.
58651         * modules/settime (Makefile.am): Likewise.
58652         * modules/sha1 (Makefile.am): Likewise.
58653         * modules/sig2str (Makefile.am): Likewise.
58654         * modules/snprintf (Makefile.am): Likewise.
58655         * modules/stdlib-safer (Makefile.am): Likewise.
58656         * modules/stpcpy (Makefile.am): Likewise.
58657         * modules/stpncpy (Makefile.am): Likewise.
58658         * modules/strcase (Makefile.am): Likewise.
58659         * modules/strcasestr (Makefile.am): Likewise.
58660         * modules/strchrnul (Makefile.am): Likewise.
58661         * modules/strcspn (Makefile.am): Likewise.
58662         * modules/strdup (Makefile.am): Likewise.
58663         * modules/strerror (Makefile.am): Likewise.
58664         * modules/strftime (Makefile.am): Likewise.
58665         * modules/strndup (Makefile.am): Likewise.
58666         * modules/strnlen (Makefile.am): Likewise.
58667         * modules/strpbrk (Makefile.am): Likewise.
58668         * modules/strsep (Makefile.am): Likewise.
58669         * modules/strstr (Makefile.am): Likewise.
58670         * modules/strtod (Makefile.am): Likewise.
58671         * modules/strtoimax (Makefile.am): Likewise.
58672         * modules/strtok_r (Makefile.am): Likewise.
58673         * modules/strtol (Makefile.am): Likewise.
58674         * modules/strtoll (Makefile.am): Likewise.
58675         * modules/strtoul (Makefile.am): Likewise.
58676         * modules/strtoull (Makefile.am): Likewise.
58677         * modules/strtoumax (Makefile.am): Likewise.
58678         * modules/strverscmp (Makefile.am): Likewise.
58679         * modules/time_r (Makefile.am): Likewise.
58680         * modules/timegm (Makefile.am): Likewise.
58681         * modules/tmpfile-safer (Makefile.am): Likewise.
58682         * modules/unistd-safer (Makefile.am): Likewise.
58683         * modules/unlinkdir (Makefile.am): Likewise.
58684         * modules/userspec (Makefile.am): Likewise.
58685         * modules/utime (Makefile.am): Likewise.
58686         * modules/utimecmp (Makefile.am): Likewise.
58687         * modules/utimens (Makefile.am): Likewise.
58688         * modules/vasnprintf (Makefile.am): Likewise.
58689         * modules/vasprintf (Makefile.am): Likewise.
58690         * modules/vsnprintf (Makefile.am): Likewise.
58691         * modules/xalloc (Makefile.am): Likewise.
58692         * modules/xgetcwd (Makefile.am): Likewise.
58693         * modules/xnanosleep (Makefile.am): Likewise.
58694         * modules/xreadlink (Makefile.am): Likewise.
58695         * modules/xstrtod (Makefile.am): Likewise.
58696         * modules/xstrtol (Makefile.am): Likewise.
58697         * modules/xstrtold (Makefile.am): Likewise.
58698         * modules/yesno (Makefile.am): Likewise.
58699
58700 2006-10-12  Jim Meyering  <jim@meyering.net>
58701
58702         * m4/getloadavg.m4: Revert the change below.
58703
58704         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58705         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58706         fail with a symlink, which is what coreutils' ./bootstrap now
58707         creates by default.
58708
58709 2006-10-12  Bruno Haible  <bruno@clisp.org>
58710
58711         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58712         mingw.
58713         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58714         MSVC and mingw explicitly.
58715
58716 2006-10-11  Simon Josefsson  <jas@extundo.com>
58717             Bruno Haible  <bruno@clisp.org>
58718
58719         Add support for multiple gnulib-tool invocations in the scope of a
58720         single configure.ac file.
58721         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58722         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58723         with the same contents as the _LIBADD variable.
58724         (func_emit_initmacro_start, func_emit_initmacro_end,
58725         func_emit_initmacro_done): New functions.
58726         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58727         gl_LIBOBJS and gl_LTLIBOBJS.
58728
58729 2006-10-11  Bruno Haible  <bruno@clisp.org>
58730
58731         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58732         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58733         autoreconf. Instead, invoke autopoint explicitly but move back the
58734         *.m4 files from gnulib.
58735
58736 2006-10-11  Bruno Haible  <bruno@clisp.org>
58737
58738         * gnulib-tool (func_usage): Make module names after --create-testdir
58739         optional.
58740         (func_create_testdir): If no module was specified, use nearly all
58741         modules.
58742
58743 2006-10-12  Jim Meyering  <jim@meyering.net>
58744
58745         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58746         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58747         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58748         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58749         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58750         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58751         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58752         (fts_set_stat_required): New function.
58753         (fts_open): Defer the calls to fts_stat, if possible or requested.
58754         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58755         into fts_stat itself.
58756         (fts_read): Perform any required (deferred) fts_stat call.
58757         (fts_build): Likewise, for the directory we're about to open and read.
58758         In the readdir loop, carefully decide whether each entry will require
58759         an eventual call to fts_stat, using dirent.d_type info if available.
58760         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58761         a command line argument into this function.  Update all callers.
58762         Map a return value of FTS_DOT to FTS_D for a command line argument.
58763         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58764         Thanks to Miklos Szeredi for his tenacity and for the initial
58765         bug report about "find" failing on a FUSE-based file system.
58766
58767         * lib/fts.c (fts_open): Use consistent indentation.
58768
58769 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58770
58771         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58772         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58773         reported by Jim Meyering.  All uses of cache variables renamed
58774         to match Autoconf's.
58775         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58776         the other one.
58777
58778         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58779         Fix misspelling in diagnostic.
58780
58781 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58782
58783         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58784         defined.  Problem reported by Matthew Woehlke.
58785
58786         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58787         Add support for Tandem NonStop R series.
58788         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58789         Use new macro.
58790
58791         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58792         (has_trailing_slash): Omit size arg; all callers changed.
58793         Omit 'inline', since it doesn't help performance and we'd
58794         need to configure it.
58795         Don't count //, ///, etc. as having a trailing slash.
58796         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58797         (rpl_rename_dest_slash): On failure, use rename's errno rather
58798         than (in some cases) an incorrect or junk errno.
58799         Simplify code by removing need to compute length; this does
58800         cause it to make two passes instead of one over the file name,
58801         but it's worth it.
58802
58803         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58804         change, since Autoconf's version may no longer be appropriate now
58805         that we are using CVS Autoconf's version.  Add support for Tandem.
58806
58807 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58808             Bruno Haible  <bruno@clisp.org>
58809
58810         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58811         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58812         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58813         gl_AC_TYPE_LONG_LONG.
58814
58815         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58816         instead of HAVE_LONG_LONG.
58817         * lib/printf-args.c (printf_fetchargs): Likewise.
58818         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58819         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58820         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58821         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58822         gl_AC_TYPE_LONG_LONG.
58823
58824 2006-10-11  Bruno Haible  <bruno@clisp.org>
58825
58826         * m4/longlong.m4: Add comments.
58827         * m4/ulonglong.m4: Likewise.
58828
58829 2006-10-10  Bruno Haible  <bruno@clisp.org>
58830
58831         Make it possible to #define stpcpy, strdup to aliases.
58832         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58833         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58834
58835 2006-10-10  Bruno Haible  <bruno@clisp.org>
58836
58837         Make it possible to #define gcd to an alias.
58838         * lib/gcd.c: Include config.h.
58839
58840 2006-10-10  Bruno Haible  <bruno@clisp.org>
58841
58842         Make it possible to #define c_isascii to an alias.
58843         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58844         defined. Undefine the macros before defining them, to avoid gcc
58845         warnings.
58846         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58847         define NO_C_CTYPE_MACROS early.
58848
58849 2006-10-10  Bruno Haible  <bruno@clisp.org>
58850
58851         Make it possible to #define set_program_name to an alias.
58852         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58853         ENABLE_RELOCATABLE early.
58854
58855 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58856
58857         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58858         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58859         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58860         More generally, don't assume that 64-bit signed int is available
58861         if unsigned int is, and vice versa.
58862         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58863         unsigned symbols, not on their signed counterparts.
58864         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58865         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58866         (UINT64_C, UINTMAX_C):
58867         Likewise.
58868         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58869         unsigned counterparts.
58870         (Have_long_long, Unsigned): New macros.
58871         (Int): Renamed from INT.
58872         (strtoimax): Use the new macros.
58873         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58874         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58875         * modules/inttypes (inttypes.h): Substitute
58876         HAVE_UNSIGNED_LONG_LONG_INT.
58877         * modules/stdint (stdint.h): Likewise.
58878         (Files): Add m4/ulonglong.m4.
58879
58880 2006-10-10  Bruno Haible  <bruno@clisp.org>
58881
58882         Fix a gcc -Wshadow warning.
58883         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58884         to 'bucket'.
58885         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58886         gl_linked_indexof_from_to): Likewise.
58887         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58888         Likewise.
58889         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58890         Likewise.
58891         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58892         Reported by Eric Blake.
58893
58894 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58895
58896         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58897         for NetBSD.  Problem reported by Bruno Haible.
58898
58899 2006-10-09  Jim Meyering  <jim@meyering.net>
58900
58901         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58902         Patch from Bruno Haible.
58903
58904 2006-10-09  Jim Meyering  <jim@meyering.net>
58905
58906         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58907         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58908         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58909
58910 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58911
58912         Don't include <config.h> twice; this doesn't work in some cases,
58913         e.g., when config.h has "#define intmax_t long long int" and
58914         we include <config.h>, <inttypes.h>, <config.h> in that order.
58915         Problem reported by Matthew Woehlke in:
58916         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58917         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58918         * lib/fts-cycle.c: Don't include config.h.
58919         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58920         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58921         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58922         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58923         inttypes.h.
58924         * lib/xstrtoumax.c: Likewise.
58925         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58926         __strtol and the like, so that this module is more like its siblings.
58927         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58928         Remove; no longer needed now that we assume gnulib inttypes.h.
58929
58930 2006-10-08  Bruno Haible  <bruno@clisp.org>
58931
58932         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58933         option.
58934
58935 2006-10-07  Jim Meyering  <jim@meyering.net>
58936
58937         * modules/inttypes (inttypes.h): Revert what seems to have been
58938         an inadvertent part of today's change: use "|", not "/" in the
58939         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58940
58941 2006-10-07  Bruno Haible  <bruno@clisp.org>
58942
58943         * modules/sublist: New file.
58944
58945 2006-10-07  Bruno Haible  <bruno@clisp.org>
58946
58947         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58948         * modules/argz (argz.h): Likewise.
58949         * modules/arpa_inet (arpa/inet.h): Likewise.
58950         * modules/byteswap (byteswap.h): Likewise.
58951         * modules/configmake (configmake.h): Likewise.
58952         * modules/fcntl (fcntl.h): Likewise.
58953         * modules/fnmatch (fnmatch.h): Likewise.
58954         * modules/getopt (getopt.h): Likewise.
58955         * modules/glob (glob.h): Likewise.
58956         * modules/inttypes (inttypes.h): Likewise.
58957         * modules/netinet_in (netinet/in.h): Likewise.
58958         * modules/poll (poll.h): Likewise.
58959         * modules/stdbool (stdbool.h): Likewise.
58960         * modules/stdint (stdint.h): Likewise.
58961         * modules/sys_select (sys/select.h): Likewise.
58962         * modules/sys_socket (sys/socket.h): Likewise.
58963         * modules/sys_stat (sys/stat.h): Likewise.
58964         * modules/sysexits (sysexits.h): Likewise.
58965         * modules/unistd (unistd.h): Likewise.
58966         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58967         Add a "DO NOT EDIT" comment to the generated file.
58968         (func_import): Likewise for gnulib-comp.m4.
58969
58970 2006-10-07  Bruno Haible  <bruno@clisp.org>
58971
58972         * lib/gl_sublist.h: New file.
58973         * lib/gl_sublist.c: New file.
58974
58975 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58976
58977         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58978         name (relative to the original working directory) and the file
58979         name component (relative to the temporary working directory).  All
58980         callers changed.
58981         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58982         * lib/mkdir-p.c (make_dir_parents): Likewise.
58983         * lib/mkdir-p.h (make_dir_parents): Likewise.
58984
58985 2006-10-06  Eric Blake  <ebb9@byu.net>
58986
58987         Define several macros for use by the clean-temp module.
58988         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58989         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58990         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58991
58992         * lib/clean-temp.h (close_stream_temp): New declaration.
58993         * lib/clean-temp.c (includes): Pull in headers according to what
58994         other modules are in use.
58995         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58996
58997 2006-10-06  Bruno Haible  <bruno@clisp.org>
58998
58999         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
59000         instead of fopen, fwriteerror.
59001
59002 2006-10-06  Bruno Haible  <bruno@clisp.org>
59003
59004         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
59005         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
59006         int.
59007         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
59008         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
59009         Return an error indicator.
59010         Suggested by Eric Blake.
59011
59012 2006-10-06  Bruno Haible  <bruno@clisp.org>
59013
59014         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
59015         Reported by Eric Blake.
59016
59017 2006-10-06  Bruno Haible  <bruno@clisp.org>
59018
59019         * modules/closeout (Description): Mention stderr too.
59020
59021 2006-10-06  Bruno Haible  <bruno@clisp.org>
59022         and Paul Eggert  <eggert@cs.ucla.edu>
59023
59024         * lib/closeout.c (close_stdout): Also close stderr.
59025         * lib/closeout.h: Update comment.
59026
59027 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59028
59029         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
59030         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
59031         * lib/dirchownmod.c: Include lchown.h.
59032         * lib/lchown.c: Don't include files that lchown.h now includes.
59033         Don't declare chown, since lchown.h now does that.
59034         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
59035         (lchown): Define to rpl_chown if lchown is declared but
59036         does not exist.  Declare using a prototype if lchown is not
59037         declared.  Add a copyright notice.
59038         * lib/mkstemp.h: Include <unistd.h>.
59039         * lib/openat.c: Include lchown.h.
59040
59041         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
59042         we now test for that separately.
59043         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
59044         rather than O_NOFOLLOW, when testing whether it's possible to
59045         avoid a race condition reliably.
59046         * lib/savewd.c (savewd_chdir): Likewise.
59047
59048         Remove macros that are no longer needed now that stdint.h is
59049         reliable.
59050         * lib/fsusage.c (UINTMAX_MAX): Remove.
59051         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
59052         * lib/utimecmp.c (SIZE_MAX): Remove.
59053
59054         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
59055
59056         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
59057         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
59058         O_NOATIME works.
59059
59060 2006-10-05  Bruno Haible  <bruno@clisp.org>
59061
59062         * lib/gl_list.h (gl_sortedlist_search_from_to,
59063         gl_sortedlist_indexof_from_to): New declarations.
59064         (gl_list_implementation): New fields sortedlist_search_from_to,
59065         sortedlist_indexof_from_to.
59066         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
59067         inline functions.
59068         * lib/gl_list.c (gl_sortedlist_search_from_to,
59069         gl_sortedlist_indexof_from_to): New functions.
59070         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
59071         function.
59072         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
59073         (gl_array_sortedlist_search_from_to): New function.
59074         (gl_array_list_implementation): Update.
59075         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
59076         function.
59077         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
59078         (gl_carray_sortedlist_search_from_to): New function.
59079         (gl_carray_list_implementation): Update.
59080         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
59081         gl_linked_sortedlist_indexof_from_to): New functions.
59082         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59083         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59084         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
59085         gl_tree_sortedlist_indexof_from_to): New functions.
59086         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59087         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59088         Update.
59089         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59090         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
59091         Update.
59092
59093 2006-10-05  Bruno Haible  <bruno@clisp.org>
59094
59095         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
59096         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
59097         (struct gl_list_implementation): Add fields search_from_to,
59098         indexof_from_to. Remove fields search, indexof.
59099         (gl_list_search): Use the search_from_to method.
59100         (gl_list_search_from, gl_list_search_from_to): New functions.
59101         (gl_list_indexof): Use the indexof_from_to method.
59102         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59103         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
59104         (gl_list_search_from, gl_list_search_from_to): New functions.
59105         (gl_list_indexof): Use the indexof_from_to method.
59106         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59107         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
59108         gl_array_indexof. Add start_index, end_index arguments.
59109         (gl_array_search_from_to): Renamed from gl_array_search. Add
59110         start_index, end_index arguments.
59111         (gl_array_remove, gl_array_list_implementation): Update.
59112         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
59113         gl_carray_indexof. Add start_index, end_index arguments.
59114         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
59115         start_index, end_index arguments.
59116         (gl_carray_remove, gl_carray_list_implementation): Update.
59117         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
59118         gl_linked_search. Add start_index, end_index arguments.
59119         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
59120         start_index, end_index arguments.
59121         (gl_linked_remove): Update.
59122         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59123         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59124         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
59125         field to 'size_t'.
59126         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
59127         gl_tree_search. Add start_index, end_index arguments.
59128         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59129         start_index, end_index arguments.
59130         (gl_tree_remove): Update.
59131         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59132         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59133         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
59134         function.
59135         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
59136         gl_tree_search. Add start_index, end_index arguments.
59137         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59138         start_index, end_index arguments.
59139         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59140         Update.
59141         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59142
59143 2006-10-05  Bruno Haible  <bruno@clisp.org>
59144
59145         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
59146
59147         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
59148         fwriteerror_temp): New declarations.
59149         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
59150         (descriptors): New variable.
59151         (cleanup): First, close the descriptors.
59152         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
59153         fclose_temp, fwriteerror_temp): New functions.
59154
59155 2006-10-04  Jim Meyering  <jim@meyering.net>
59156
59157         * lib/fts.c (fts_open): Tiny comment change.
59158
59159 2006-10-04  Bruno Haible  <bruno@clisp.org>
59160
59161         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
59162         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
59163         gl_LOCK_BODY.
59164         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
59165         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
59166         gl_LOCK_EARLY_BODY.
59167         (gl_LOCK): Require gl_LOCK_BODY.
59168
59169 2006-10-04  Bruno Haible  <bruno@clisp.org>
59170
59171         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
59172         (gl_oset_search_atleast): New declaration.
59173         (struct gl_oset_implementation): Add field 'search_atleast'.
59174         (gl_oset_search_atleast): New inline function.
59175         * lib/gl_oset.c (gl_oset_search_atleast): New function.
59176         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
59177         (gl_array_oset_implementation): Update.
59178         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
59179         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
59180         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
59181
59182 2006-10-04  Bruno Haible  <bruno@clisp.org>
59183
59184         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
59185
59186 2006-10-03  Bruno Haible  <bruno@clisp.org>
59187
59188         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
59189         from gl_avltreehash_list_implementation.
59190
59191 2006-10-03  Bruno Haible  <bruno@clisp.org>
59192
59193         * lib/gl_oset.c (gl_oset_add): Fix return type.
59194
59195 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
59196
59197         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
59198
59199 2006-10-02  Eric Blake  <ebb9@byu.net>
59200
59201         * modules/strnlen (Depends-on): Add extensions.
59202
59203 2006-10-02  Eric Blake  <ebb9@byu.net>
59204
59205         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
59206         definition in 2.60+.
59207
59208 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
59209
59210         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
59211         checks.
59212
59213 2006-10-02  Bruno Haible  <bruno@clisp.org>
59214
59215         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
59216         to the AUTOMAKE_OPTIONS.
59217         Reported by Jim Meyering.
59218
59219 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59220
59221         Work around bug in Solaris 10 /proc file system:
59222         /proc/self/fd/NNN/.. isn't the parent directory of
59223         the directory whose file descriptor is NNN.  This needs to
59224         be worked around at run time, not compile time, since a
59225         program might be built on Solaris 8, where things work, and
59226         run on Solaris 10.
59227         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
59228         to use the following interface instead:
59229         (OPENAT_BUFFER_SIZE): New macro.
59230         (openat_proc_name): New function.
59231         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
59232         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
59233         Likewise.
59234         * lib/openat-proc.c: New file.
59235         * modules/openat (Files): Add lib/openat-proc.c.
59236         (Depends-on): Add same-inode, stdbool.
59237         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
59238
59239 2006-09-29  Bruno Haible  <bruno@clisp.org>
59240
59241         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
59242         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
59243         argument. Set stdout_closed before testing for ferror, not after.
59244         (fwriteerror, fwriteerror_no_ebadf): New functions.
59245
59246 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59247
59248         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
59249
59250 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
59251
59252         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
59253         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
59254
59255 2006-09-28  Jim Meyering  <jim@meyering.net>
59256
59257         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
59258         Include <unistd.h>.
59259
59260 2006-09-28  Bruno Haible  <bruno@clisp.org>
59261
59262         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
59263         * modules/linkedhash-list (Depends-on): Likewise.
59264         * modules/rbtreehash-list (Depends-on): Likewise.
59265
59266 2006-09-28  Bruno Haible  <bruno@clisp.org>
59267
59268         * lib/strndup.h: Simplify the redefinition of strndup.
59269         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
59270         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
59271
59272 2006-09-28  Bruno Haible  <bruno@clisp.org>
59273
59274         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
59275         * lib/gl_linkedhash_list.c: Likewise.
59276         * lib/gl_rbtreehash_list.c: Likewise.
59277
59278 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59279
59280         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
59281         getaddrinfo.
59282
59283         * lib/__fpending.h: Don't include <stdio_ext.h> unless
59284         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
59285         it causes <stdio_ext.h> to cause a compile-time error.
59286         Problem reported by Nelson H. F. Beebe.
59287         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
59288         of HAVE_DECL___PENDING.
59289
59290         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
59291         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
59292         declaration.
59293
59294 2006-09-27  Jim Meyering  <jim@meyering.net>
59295
59296         This file could end up with a definition for a function
59297         named __strndup, rather than rpl_strndup on a system with
59298         incomplete weak_alias support.
59299         * lib/strndup.c (strndup): Rename from __strndup.
59300         Remove #defines that used to map __strndup to strndup.
59301         Don't use K&R prototypes.
59302         Remove LIBC-related code, since this file is not sync'd with glibc.
59303         * lib/strndup.h: Revamp, accordingly.
59304         * m4/strndup.m4: Modernize.
59305
59306 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59307
59308         * modules/savewd (Depends-on): Add 'raise'.
59309         * lib/savewd.c: Include <signal.h>, for 'raise'.
59310
59311 2006-09-26  Jim Meyering  <jim@meyering.net>
59312
59313         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
59314         when we detect Darwin 8.7.0's acl_get_file bug.
59315         Rearrange to perform the new (below) run-test while $LIBS
59316         contains any acl-related library.  Set USE_ACL at the end.
59317         (gl_ACL_GET_FILE): New function.
59318
59319 2006-09-26  Eric Blake  <ebb9@byu.net>
59320
59321         * lib/verror.c: Include <config.h> unconditionally.
59322
59323 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
59324
59325         * modules/clock-time (Maintainer): Add self.
59326         * modules/getlogin_r (Depends-on): Add extensions.
59327
59328 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59329
59330         * modules/clock-time: New module.
59331         * modules/nanosleep (Depends-on): Add clock-time.
59332         * modules/gethrxtime (Depends-on): Likewise.
59333         * modules/gettime (Depends-on): Likewise.
59334         * modules/settime (Depends-on): Likewise.
59335
59336         * modules/fts-lgpl: Depend on openat.
59337         * modules/mkancesdirs: Depend on savewd.
59338         * modules/mkdir-p: Likewise.
59339
59340 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59341
59342         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
59343
59344         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
59345         `gl_have_arbitrary_file_name_length_limit' to
59346         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
59347         actually works between configure runs.
59348
59349 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59350             Bruno Haible  <bruno@clisp.org>
59351
59352         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
59353
59354 2006-09-25  Jim Meyering  <jim@meyering.net>
59355
59356         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
59357         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
59358
59359 2006-09-25  Eric Blake  <ebb9@byu.net>
59360
59361         * gnulib-tool (func_import, func_create_testdir): Fix typos in
59362         exec's in 2006-09-18 patch when shuffling fds.
59363
59364 2006-09-25  Bruno Haible  <bruno@clisp.org>
59365
59366         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
59367         Reported by Jim Meyering.
59368
59369 2006-09-24  Jim Meyering  <jim@meyering.net>
59370
59371         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
59372         compare a pointer against a literal "0".  That caused failures with
59373         at least HP-UX's hpcc.
59374
59375 2006-09-22  Simon Josefsson  <jas@extundo.com>
59376
59377         * modules/gc-sha1:
59378         * modules/gc-md4:
59379         * modules/gc-hmac-sha1:
59380         * modules/gc-hmac-md5:
59381         * modules/gc-des:
59382         * modules/gc-arcfour: Distribute more files.
59383
59384 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59385
59386         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
59387         (gl_linked_iterator_from_to): Initialize struct completely.
59388         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
59389         (gl_tree_iterator_from_to): Likewise
59390         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
59391         * lib/gl_array_list.c [lint] (gl_array_iterator)
59392         (gl_array_iterator_from_to): Likewise.
59393         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
59394         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
59395         (gl_carray_iterator_from_to): Likewise.
59396
59397         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
59398         * lib/md4.c (md4_process_block): Remove unused variable.
59399         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
59400         parentheses for clarity.
59401
59402 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59403
59404         * modules/bison-i18n (Depends-on): Add gettext.
59405
59406 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59407
59408         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
59409         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
59410         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
59411         also add missing comma that caused broken test.
59412         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
59413         stdlib.h, for `abort'.
59414         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
59415         variables.
59416         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
59417         include unistd.h if present, for `rmdir'.
59418         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
59419         variables.
59420         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
59421         in the process include standard headers for prototypes.
59422         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
59423         gets declared on GNU/Linux.
59424         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
59425         unistd.h, for `rmdir'.
59426         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
59427
59428         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
59429         always true.
59430         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
59431
59432         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
59433
59434 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59435
59436         * gnulib-tool (func_version): Create output all at once.  This
59437         may help avoid triggering unnecessary SIGPIPEs, and at any
59438         rate it doesn't hurt.
59439
59440 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59441             Bruno Haible  <bruno@clisp.org>
59442
59443         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
59444         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59445         * m4/signed.m4 (bh_C_SIGNED): Likewise.
59446
59447         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
59448         (gl_FUNC_VASPRINTF): Invoke it.
59449
59450 2006-09-22  Bruno Haible  <bruno@clisp.org>
59451
59452         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
59453         getloadavg.c as first argument.
59454
59455 2006-09-22  Bruno Haible  <bruno@clisp.org>
59456
59457         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
59458         at the beginning of the gl_INIT macro.
59459         * modules/getloadavg (configure.ac): Pass $gl_source_base to
59460         gl_GETLOADAVG.
59461
59462 2006-09-22  Bruno Haible  <bruno@clisp.org>
59463
59464         * gnulib-tool (func_create_megatestdir): Don't include the config-h
59465         module.
59466         Suggested by Ralf Wildenhues.
59467
59468 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59469
59470         Import this patch from libc:
59471
59472         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
59473
59474         * lib/regex_internal.c (re_string_reconstruct): Handle
59475         offset < pstr->valid_raw_len && pstr->offsets_needed case.
59476         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
59477         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
59478         re_string_context_at.
59479
59480         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
59481         now requires it.
59482         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
59483         gl_REGEX now does it for us.
59484         (gl_REGEX): Add test taken from
59485         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
59486
59487         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
59488         Check that large offsets work.  Modernize Autoconf usages.
59489         Prefer "yes" to mean a good thing rather than a bad.
59490         Don't put "#define mkstemp" in config.h, as this might interfere
59491         with standard system headers that "#define mkstemp mkstemp64".
59492
59493         * modules/mkstemp (Depends-on): Add extensions, so that
59494         mkstemp is visible on some platforms.
59495         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
59496         (Include): Change to "mkstemp.h" from <stdlib.h>.
59497         (Files): Add mkstemp.h.
59498
59499         * lib/mkstemp.h: New file, since some standard headers
59500         #define mkstemp.
59501         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
59502         Include "mkstemp.h".
59503         Make the _LIBC code resemble glibc original more,
59504         e.g., use K&R style.
59505         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
59506         (mkstemp): Remove, since mkstemp.h does this for us.
59507         * lib/stdlib--.h: Include mkstemp.h.
59508
59509         Import this patch from libc:
59510
59511         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59512
59513         * lib/tempname.c (__gen_tempname): Change attempts_min
59514         into a macro.  Use preprocessor to decide how to initialize
59515         attempts [Coverity CID 67].
59516
59517 2006-09-20  Bruno Haible  <bruno@clisp.org>
59518
59519         * lib/mkdtemp.c: Import from libc.
59520         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59521                 * sysdeps/posix/tempname.c (__gen_tempname): Change
59522                 attempts_min into a macro.  Use preprocessor to decide how to
59523                 initialize attempts [Coverity CID 67].
59524         2001-11-27  Paul Eggert  <eggert@twinsun.com>
59525                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
59526                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
59527
59528 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59529
59530         * gnulib-tool (func_exit): New function, to allow to pass the
59531         exit status portably through the trap.  Use everywhere.
59532         (--help, --version): Signal a write error.
59533         (trap): catch SIGPIPE, for write errors.
59534         Exit at the end of the trap, with the correct exit status.
59535
59536 2006-09-19  Karl Berry  <karl@gnu.org>
59537
59538         * doc/gnulib.texi: note about the license texinfo files.
59539
59540 2006-09-19  Eric Blake  <ebb9@byu.net>
59541
59542         * gnulib-tool: Avoid space-tab.
59543
59544 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59545
59546         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
59547         that prevented coreutils 6.1 from building.  Problem reported
59548         by Petter Reinholdtsen.
59549
59550 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59551
59552         * gnulib-tool (avoidlist): Fix typo that broke options like
59553         --avoid=lock that are used by coreutils bootstrap.
59554
59555 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
59556
59557         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
59558         more systematically.
59559
59560 2006-09-18  Jim Meyering  <jim@meyering.net>
59561
59562         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
59563
59564 2006-09-18  Bruno Haible  <bruno@clisp.org>
59565
59566         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
59567
59568 2006-09-18  Bruno Haible  <bruno@clisp.org>
59569
59570         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
59571         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
59572         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
59573         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
59574         * m4/gettext.m4: Require autoconf >= 2.52.
59575         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
59576         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
59577         of gl_cv_header_inttypes_h.
59578
59579 2006-09-18  Bruno Haible  <bruno@clisp.org>
59580
59581         * lib/javaversion.c: Include configmake.h.
59582
59583 2006-09-18  Bruno Haible  <bruno@clisp.org>
59584
59585         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
59586         avoid that the while loops be executed in a subshell.
59587
59588 2006-09-18  Bruno Haible  <bruno@clisp.org>
59589
59590         * MODULES.html.sh (func_module): Break long lines.
59591         Suggested by Bruce Korb <bkorb@gnu.org>.
59592
59593 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59594
59595         Speed up by a factor of 1.12.
59596         * gnulib-tool (nl): New variable.
59597         (func_import): Rewrite include directive extraction to only read each
59598         directive once.
59599
59600 2006-09-17  Bruno Haible  <bruno@clisp.org>
59601
59602         * modules/javaversion (Makefile.am): Remove DEFS setting.
59603         (Depends-on): Add configmake, for PKGDATADIR definition.
59604
59605 2006-09-17  Bruno Haible  <bruno@clisp.org>
59606
59607         * gnulib-tool (func_create_testdir): Rewrite all files at once.
59608
59609 2006-09-17  Bruno Haible  <bruno@clisp.org>
59610
59611         * gnulib-tool (func_append): New function, stolen from libtool.m4.
59612         (func_modules_transitive_closure, func_modules_add_dummy,
59613         func_modules_to_filelist, func_import, func_create_testdir,
59614         func_create_megatestdir, ...): Use it wherever possible.
59615         Suggested by Ralf Wildenhues.
59616
59617 2006-09-16  Karl Berry  <karl@gnu.org>
59618
59619         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
59620         to avoid sectioning errors.
59621         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
59622         [ifinfo]: blank line after @center-ed titles.
59623         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
59624         Spell FSF address consistently with others.
59625         (These changes approved by rms.)
59626
59627 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59628
59629         Speed up by a factor of 1.61.
59630         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
59631         already checked module names again.
59632
59633 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59634
59635         Speed up by a factor of 1.13.
59636         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
59637         for new_files, and the input to func_add_or_update.
59638
59639 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59640
59641         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
59642         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
59643
59644 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59645
59646         * modules/mkancesdirs (Depends-on): Add fcntl.
59647         * modules/savewd: New file.
59648         * MODULES.html.sh (File system functions): Add savewd.
59649
59650         * modules/configmake (Makefile.am): Add support for the
59651         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59652
59653 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59654
59655         * m4/savewd.m4: New file.
59656
59657 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59658
59659         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59660         (dirchownmod): New arg FD.  All callers changed.
59661         Use FD rather than opening the directory ourself, as opening is
59662         now the caller's responsibility.
59663         * lib/dirchownmod.h: Likewise.
59664         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59665         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59666         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59667         (test_dir): Remove.
59668         (mkancesdirs): Return length of prefix of FILE that has already
59669         been made, or -2 if there is a child doing the work.  Redo
59670         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59671         ".", and treat ".." specially since it might stray back into
59672         already-created areas.  Use a subprocess if necessary.  New arg
59673         WD; all users changed.  MAKE_DIR function should now return 1
59674         if it creates a directory that is not readable.  Return -2 if
59675         a child process is spun off.
59676         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59677         Adjust signature to match code.
59678         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59679         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59680         all users changed.
59681         * lib/savewd.c, lib/savewd.h: New files.
59682
59683 2006-09-15  Jim Meyering  <jim@meyering.net>
59684
59685         * modules/rename-dest-slash: New module.
59686         * MODULES.html.sh (posix_compat): Add it here.
59687
59688         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59689
59690 2006-09-15  Jim Meyering  <jim@meyering.net>
59691
59692         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59693         file.
59694
59695         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59696
59697 2006-09-15  Jim Meyering  <jim@meyering.net>
59698
59699         * lib/rename-dest-slash.c (has_trailing_slash): Use
59700         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59701         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59702         test before testing whether SRC is a directory.
59703         Suggestions from Bruno Haible.
59704
59705         Avoid a warning about an unused variable.
59706         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59707         into the #ifdef block where it's used.
59708
59709         * lib/rename-dest-slash.c: New file.
59710
59711 2006-09-14  Bruno Haible  <bruno@clisp.org>
59712
59713         * lib/allocsa.c: Include <config.h> unconditionally.
59714         * lib/asnprintf.c: Likewise.
59715         * lib/asprintf.c: Likewise.
59716         * lib/c-strcasecmp.c: Likewise.
59717         * lib/c-strcasestr.c: Likewise.
59718         * lib/c-strncasecmp.c: Likewise.
59719         * lib/c-strstr.c: Likewise.
59720         * lib/classpath.c: Likewise.
59721         * lib/clean-temp.c: Likewise.
59722         * lib/concatpath.c: Likewise.
59723         * lib/copy-file.c: Likewise.
59724         * lib/csharpcomp.c: Likewise.
59725         * lib/csharpexec.c: Likewise.
59726         * lib/execute.c: Likewise.
59727         * lib/fatal-signal.c: Likewise.
59728         * lib/findprog.c: Likewise.
59729         * lib/fwriteerror.c: Likewise.
59730         * lib/gl_array_list.c: Likewise.
59731         * lib/gl_array_oset.c: Likewise.
59732         * lib/gl_avltree_list.c: Likewise.
59733         * lib/gl_avltree_oset.c: Likewise.
59734         * lib/gl_avltreehash_list.c: Likewise.
59735         * lib/gl_carray_list.c: Likewise.
59736         * lib/gl_linked_list.c: Likewise.
59737         * lib/gl_linkedhash_list.c: Likewise.
59738         * lib/gl_list.c: Likewise.
59739         * lib/gl_oset.c: Likewise.
59740         * lib/gl_rbtree_list.c: Likewise.
59741         * lib/gl_rbtree_oset.c: Likewise.
59742         * lib/gl_rbtreehash_list.c: Likewise.
59743         * lib/imaxabs.c: Likewise.
59744         * lib/imaxdiv.c: Likewise.
59745         * lib/javacomp.c: Likewise.
59746         * lib/javaexec.c: Likewise.
59747         * lib/javaversion.c: Likewise.
59748         * lib/linebreak.c: Likewise.
59749         * lib/localcharset.c: Likewise.
59750         * lib/lock.c: Likewise.
59751         * lib/mbchar.c: Likewise.
59752         * lib/mbswidth.c: Likewise.
59753         * lib/mkdtemp.c: Likewise.
59754         * lib/pipe.c: Likewise.
59755         * lib/printf-args.c: Likewise.
59756         * lib/printf-parse.c: Likewise.
59757         * lib/progname.c: Likewise.
59758         * lib/progreloc.c: Likewise.
59759         * lib/readlink.c: Likewise.
59760         * lib/sh-quote.c: Likewise.
59761         * lib/stpcpy.c: Likewise.
59762         * lib/stpncpy.c: Likewise.
59763         * lib/strcasecmp.c: Likewise.
59764         * lib/strcasestr.c: Likewise.
59765         * lib/strcspn.c: Likewise.
59766         * lib/striconv.c: Likewise.
59767         * lib/strncasecmp.c: Likewise.
59768         * lib/strnlen1.c: Likewise.
59769         * lib/strstr.c: Likewise.
59770         * lib/strtok_r.c: Likewise.
59771         * lib/tls.c: Likewise.
59772         * lib/tmpdir.c: Likewise.
59773         * lib/unicodeio.c: Likewise.
59774         * lib/unsetenv.c: Likewise.
59775         * lib/vasnprintf.c: Likewise.
59776         * lib/vasprintf.c: Likewise.
59777         * lib/wait-process.c: Likewise.
59778         * lib/xallocsa.c: Likewise.
59779         * lib/xsetenv.c: Likewise.
59780         * lib/xstriconv.c: Likewise.
59781
59782 2006-09-13  Simon Josefsson  <jas@extundo.com>
59783
59784         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59785         that internally, suggested by Ralf Wildenhues
59786         <Ralf.Wildenhues@gmx.de>.
59787
59788 2006-09-13  Simon Josefsson  <jas@extundo.com>
59789
59790         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59791         @LIBOBJS@.
59792         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59793
59794 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59795
59796         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59797         longer worry about uses that don't define HAVE_CONFIG_H.
59798         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59799         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59800         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59801         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59802         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59803         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59804         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59805         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59806         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59807         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59808         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59809         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59810         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59811         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59812         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59813         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59814         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59815         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59816         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59817         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59818         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59819         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59820         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59821         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59822         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59823         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59824         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59825         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59826         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59827         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59828         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59829         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59830         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59831         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59832         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59833         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59834         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59835         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59836         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59837         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59838         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59839         Likewise.
59840
59841 2006-09-13  Eric Blake  <ebb9@byu.net>
59842
59843         * lib/getopt.c: Fix typo in last commit.
59844
59845 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59846
59847         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59848         dgettext.
59849
59850 2006-09-12  Jim Meyering  <jim@meyering.net>
59851
59852         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59853         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59854         Reported by Nelson H. F. Beebe.
59855
59856 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59857
59858         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59859         program_invocation_name and program_invocation_short_name are
59860         initialized.
59861         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59862         and program_invocation_short_name to argp.h, so they are visible
59863         to user programs.
59864         * lib/argp.h: Likewise
59865
59866 2006-09-10  Bruno Haible  <bruno@clisp.org>
59867
59868         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59869         m4/inttypes_h.m4, m4/uintmax_t.m4.
59870
59871 2006-09-10  Bruno Haible  <bruno@clisp.org>
59872
59873         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59874         gl_AC_TYPE_UINTMAX_T.
59875
59876 2006-09-10  Bruno Haible  <bruno@clisp.org>
59877
59878         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59879
59880 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59881
59882         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59883         convention.  Text proposed by Bruno Haible.
59884         (struct argp_option): Document the use of N_() wrappers.
59885
59886         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59887         '\v', and translate the two parts separately, instead of feeding
59888         the whole string to gettext.  This allows to exclude
59889         '\v' from the strings visible to the translator by writing doc
59890         strings as N_("..") "\v" N_("..").
59891
59892 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59893
59894         * config/srclist.txt: Undo latest change; the bug was fixed.
59895
59896 2006-09-09  Bruno Haible  <bruno@clisp.org>
59897
59898         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59899         assignments if building a library without libtool.
59900         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59901         in func_emit_lib_Makefile_am.
59902         (func_import): When building a static library libfoo.a, arrange to
59903         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59904         (func_create_testdir): Likewise.
59905         * modules/gc (configure.ac, Makefile.am): If building statically,
59906         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59907         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59908         * modules/striconv (configure.ac, Makefile.am): Likewise.
59909         Based on a suggestion by Ralf Wildenhues.
59910
59911 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59912
59913         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59914         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59915         Also:
59916
59917         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59918         Add year_2050_test to catch glibc bug 2821
59919         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59920
59921         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59922         Prefer #ifdef to #if.
59923
59924         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59925         Return from 'main' instead of calling 'exit'.
59926
59927 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59928
59929         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59930         returned the maximum time_t value rather than (time_t) -1.
59931         Problem originally reported by William Bardwell
59932         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59933
59934         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59935         Moved to here ...
59936         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59937         ... from here.
59938
59939 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59940
59941         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59942         2821 is fixed.
59943
59944 2006-09-08  Jim Meyering  <jim@meyering.net>
59945
59946         Don't make generated files read-only.  That would bother too many
59947         people.  However, do retain the ability to work when targets are
59948         read-only: remove the destination and temporary files before writing
59949         them (when generated via sed or echo), or by using the -f option for
59950         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59951         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59952         * modules/byteswap, modules/configmake, modules/fcntl:
59953         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59954         * modules/localcharset, modules/netinet_in, modules/poll:
59955         * modules/stdbool, modules/stdint, modules/sys_select:
59956         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59957
59958 2006-09-08  Jim Meyering  <jim@meyering.net>
59959
59960         Avoid new build failure on FreeBSD 6.0.
59961         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59962         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59963         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59964
59965 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59966
59967         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59968
59969 2006-09-07  Jim Meyering  <jim@meyering.net>
59970
59971         Fix global typo in last change: use chmod u-w, not chmod u-x.
59972         Spotted by Paul Eggert and Bruce Korb.
59973         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59974         * modules/byteswap, modules/configmake, modules/fcntl:
59975         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59976         * modules/localcharset, modules/netinet_in, modules/poll:
59977         * modules/stdbool, modules/stdint, modules/sys_select:
59978         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59979
59980 2006-09-06  Jim Meyering  <jim@meyering.net>
59981
59982         Make generated files be read-only.
59983         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59984         Ensure that each generated file is now read-only.
59985         * modules/argz: Likewise.
59986         * modules/arpa_inet: Likewise.
59987         * modules/byteswap: Likewise.
59988         * modules/configmake: Likewise.
59989         * modules/fcntl: Likewise.
59990         * modules/fnmatch: Likewise.
59991         * modules/getopt: Likewise.
59992         * modules/glob: Likewise.
59993         * modules/inttypes: Likewise.
59994         * modules/netinet_in: Likewise.
59995         * modules/poll: Likewise.
59996         * modules/stdbool: Likewise.
59997         * modules/stdint: Likewise.
59998         * modules/sys_select: Likewise.
59999         * modules/sys_socket: Likewise.
60000         * modules/sys_stat: Likewise.
60001         * modules/sysexits: Likewise.
60002         * modules/localcharset: Same as above, but continue using temporary
60003         file named "t-$@" (why different?) rather than the "$@-t" used
60004         everywhere else.
60005
60006         * modules/sysexits (Makefile.am): Replace literal occurrences
60007         of "sysexit.h" more readable, and more consistent, "$@".
60008
60009 2006-09-06  Bruno Haible  <bruno@clisp.org>
60010
60011         * modules/striconv: New file.
60012         * modules/xstriconv: New file.
60013         * MODULES.html.sh (Internationalization functions): Add striconv,
60014         xstriconv.
60015
60016 2006-09-06  Bruno Haible  <bruno@clisp.org>
60017
60018         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
60019         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
60020         not using libtool correctly.
60021
60022 2006-09-06  Bruno Haible  <bruno@clisp.org>
60023
60024         * lib/striconv.h: New file.
60025         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
60026         iconvstring.c.
60027         * lib/xstriconv.h: New file.
60028         * lib/xstriconv.c: New file.
60029
60030 2006-09-06  Bruno Haible  <bruno@clisp.org>
60031
60032         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60033         lib_..._LDFLAGS.
60034
60035 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60036
60037         * lib/argz_.h: Sync from Libtool.
60038
60039         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
60040                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60041
60042         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
60043
60044 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60045
60046         * modules/trim: New file.
60047
60048 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60049
60050         * lib/trim.h: New file.
60051         * lib/trim.c: New file.
60052
60053 2006-09-05  Bruno Haible  <bruno@clisp.org>
60054
60055         * MODULES.html.sh (String handling): Add trim.
60056
60057 2006-09-04  Karl Berry  <karl@gnu.org>
60058
60059         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
60060         until next release.
60061
60062 2006-09-03  Bruno Haible  <bruno@clisp.org>
60063
60064         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
60065         correctly.
60066
60067 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60068
60069         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
60070         not gl_GETLOADAVG.  Omit unneeded semicolons.
60071         Problems reported by Ralf Wildenhues in
60072         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60073         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
60074         at the end, which is the usual gnulib style.
60075
60076         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
60077         of doing all the work ourselves.
60078         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
60079         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
60080
60081 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60082
60083         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
60084         Problem reported by Ralf Wildenhues in
60085         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60086
60087         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
60088         HAVE_STRUCT_STATFS_F_FSTYPENAME.
60089
60090 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60091
60092         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
60093         yesterday's patch by changing test -n to test -z.
60094
60095 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60096
60097         * modules/getloadavg (Files): Add m4/getloadavg.m4.
60098         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
60099         the former is now obsolescent.
60100
60101         * modules/chdir-long (Depends-on): Add fcntl.
60102
60103 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60104
60105         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
60106         obsolescent, and programs should use gnulib instead.
60107         * m4/getloadavg.m4: New file, with contents taken from Autoconf
60108         but with prefixes changed.
60109
60110 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60111
60112         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
60113         or stdbool.h, because they might not exist while configuring.
60114
60115         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
60116         Don't include unistd.h or limits.h; not needed, since chdir-long.h
60117         does that for us.
60118         (O_DIRECTORY): Remove.
60119
60120 2006-08-31  Eric Blake  <ebb9@byu.net>
60121
60122         * gnulib-tool: Don't let emacs change spaces to TAB.
60123
60124 2006-08-31  Bruno Haible  <bruno@clisp.org>
60125
60126         * gnulib-tool: When calling func_import more than once, do it in a
60127         subshell.
60128         Reported by Eric Blake <ebb9@byu.net>.
60129
60130 2006-08-31  Bruno Haible  <bruno@clisp.org>
60131
60132         * gnulib-tool (nl): Remove variable.
60133         (sed_transform_lib_file): Use more robust test for config-h module.
60134         (func_import): Fix typo in 2006-08-25 patch.
60135
60136 2006-08-31  Bruno Haible  <bruno@clisp.org>
60137
60138         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
60139         specified, augment Makefile.am variables instead of assigning them.
60140
60141 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60142
60143         Work around a bug in both the Linux and SunOS 64-bit kernels:
60144         nanosleep mishandles sleeps for longer than 2**31 seconds.
60145         Problem reported by Frank v Waveren in
60146         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60147         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
60148         Check for nanosleep bug.
60149         (LIB_NANOSLEEP): Append clock_gettime library if needed.
60150
60151 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60152
60153         Work around a bug in both the Linux and SunOS 64-bit kernels:
60154         nanosleep mishandles sleeps for longer than 2**31 seconds.
60155         Problem reported by Frank v Waveren in
60156         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60157         * lib/nanosleep.c (BILLION): New constant.
60158         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
60159         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
60160         implementation.
60161
60162 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60163
60164         * modules/nanosleep (Depends-on): Add gettime.
60165
60166 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60167         and Simon Josefsson  <jas@extundo.com>
60168         and Oskar Liljeblad  <oskar@osk.mine.nu>
60169
60170         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
60171         * gnulib-tool (func_import): New license type 'unmodifiable license
60172         text'.
60173         * modules/fdl: Use it.  Longer description.
60174         * module/gpl, module/lgpl: New files.
60175
60176 2006-08-30  Jim Meyering  <jim@meyering.net>
60177
60178         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
60179         shadowing the parameter.
60180
60181 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60182
60183         Sync from Libtool:
60184
60185         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60186
60187         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
60188         sharing with gnulib.  Report by Eric Blake.
60189
60190 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60191
60192         * modules/isapipe: New file.
60193         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
60194
60195 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60196
60197         * modules/configmake (Makefile.am): Add a comment, and omit
60198         the CONFIGMAKE_ prefix from generated macro names.  Suggested
60199         by Bruno Haible.
60200
60201 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60202
60203         * m4/isapipe.m4: New file.
60204
60205 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60206
60207         * lib/isapipe.c, lib/isapipe.h: New files.
60208
60209 2006-08-29  Jim Meyering  <jim@meyering.net>
60210
60211         * modules/configmake (Makefile.am): Make configmake.h depend on
60212         Makefile.  Otherwise, a stale configmake.h could hang around.
60213
60214 2006-08-29  Eric Blake  <ebb9@byu.net>
60215
60216         * lib/error.c (error_at_line, print_errno_message): Match libc, after
60217         resolution of upstream bug 3044.
60218
60219 2006-08-29  Bruno Haible  <bruno@clisp.org>
60220
60221         * modules/localcharset (Depends-on): Add configmake.
60222         (Makefile.am): Remove setting of LIBDIR through DEFS.
60223
60224 2006-08-29  Bruno Haible  <bruno@clisp.org>
60225
60226         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
60227         defined.
60228
60229 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60230
60231         * modules/fcntl: New file.
60232         * modules/chdir-safer (Depends-on): Add fcntl.
60233         * modules/fts: Likewise.
60234         * modules/mkdir-p: Likewise.
60235
60236         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
60237         This undoes the most recent change, since we're now addressing the
60238         problem in a different way.
60239
60240         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
60241         into output, since the output might be called Makefile.am even
60242         if $makefile_name is something different.
60243         (func_import): Use $makefile_am rather than
60244         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
60245         empty.
60246
60247         * modules/inttypes (Files): Add m4/inttypes-h.m4.
60248
60249 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60250
60251         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
60252         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
60253         recent change to stdint.m4, since we're now addressing the problem in a
60254         different way.
60255
60256 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60257
60258         * m4/fcntl_h.m4: New file.
60259
60260 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60261
60262         * lib/fcntl_.h: New file.
60263         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
60264         the fcntl module.
60265         * lib/dirchownmod.c: Likewise.
60266         * lib/fts.c: Likewise.
60267
60268         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
60269         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
60270         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
60271         just before including <inttypes.h>, to avoid circular inclusion.
60272
60273 2006-08-28  Jim Meyering  <jim@meyering.net>
60274
60275         * doc/visibility.texi: Actually read and correct the grammar of the
60276         sentence affected by yesterday's change.
60277
60278 2006-08-28  Eric Blake  <ebb9@byu.net>
60279
60280         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
60281         needs wrapper.
60282
60283 2006-08-28  Eric Blake  <ebb9@byu.net>
60284
60285         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
60286
60287 2006-08-28  Eric Blake  <ebb9@byu.net>
60288
60289         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
60290
60291 2006-08-28  Bruno Haible  <bruno@clisp.org>
60292
60293         * modules/c-strstr: New file, from GNU gettext.
60294         * MODULES.html.sh (String handling): Add c-strstr.
60295
60296 2006-08-28  Bruno Haible  <bruno@clisp.org>
60297
60298         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
60299         macros.
60300         Reported by Eric Blake.
60301
60302 2006-08-28  Bruno Haible  <bruno@clisp.org>
60303
60304         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
60305         (VASNPRINTF): Return a string of length > INT_MAX without failing.
60306         * lib/vasprintf.c: Include errno.h, limits.h.
60307         (EOVERFLOW): New fallback definition.
60308         (vasprintf): Test here whether the string length is > INT_MAX.
60309         * lib/vsnprintf.c: Include errno.h, limits.h.
60310         (EOVERFLOW): New fallback definition.
60311         (vsnprintf): Fix bug when generated string was too long for the buffer.
60312         Test here whether the string length is > INT_MAX.
60313
60314 2006-08-28  Bruno Haible  <bruno@clisp.org>
60315
60316         * lib/inttypes_.h (SCNX*): Remove definitions.
60317         Reported by Eric Blake.
60318
60319 2006-08-28  Bruno Haible  <bruno@clisp.org>
60320
60321         * lib/c-strstr.h: New file, from GNU gettext.
60322         * lib/c-strstr.c: New file, from GNU gettext.
60323
60324 2006-08-28  Bruno Haible  <bruno@clisp.org>
60325
60326         * gnulib-tool: Reorder some statements.
60327
60328 2006-08-28  Bruno Haible  <bruno@clisp.org>
60329
60330         * gnulib-tool: New option --makefile-name.
60331         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
60332         $makefile_name.
60333         (func_import): Write $makefile_name to the cache file, and read it from
60334         there unless explicitly specified. Use $makefile_name as file name
60335         instead of Makefile.am. Adjust the recommendations accordingly.
60336
60337 2006-08-28  Bruno Haible  <bruno@clisp.org>
60338
60339         * gnulib-tool (func_verify_module): Check against misapplying patch.
60340
60341 2006-08-28  Bruno Haible  <bruno@clisp.org>
60342
60343         * gnulib-tool (func_relativize, func_relconcat): New functions.
60344         Give an error if --local-dir is given with --update.
60345         Remove trailing slashes from $local_gnulib_dir.
60346         (func_import): Store the relativized $local_gnulib_dir in
60347         gnulib-cache.m4, and read it from there if not specified explicitly.
60348
60349 2006-08-28  Bruno Haible  <bruno@clisp.org>
60350
60351         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
60352         is the current directory. Respect also $local_gnulib_dir.
60353
60354 2006-08-28  Bruno Haible  <bruno@clisp.org>
60355             Simon Josefsson  <jas@extundo.com>
60356
60357         BeOS portability.
60358         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
60359
60360 2006-08-27  Jim Meyering  <jim@meyering.net>
60361
60362         * doc/visibility.texi: Remove duplicate word: "pointer".
60363
60364 2006-08-26  Bruno Haible  <bruno@clisp.org>
60365
60366         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
60367         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
60368         (Makefile.am): Create inttypes.h from inttypes_.h.
60369         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
60370
60371         * modules/imaxabs: New file.
60372
60373         * modules/imaxdiv: New file.
60374
60375 2006-08-26  Bruno Haible  <bruno@clisp.org>
60376
60377         * m4/inttypes.m4: New file.
60378         * m4/_inttypes_h.m4: Remove file.
60379         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
60380         PRI_MACROS_BROKEN.
60381         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
60382
60383         * m4/imaxabs.m4: New file.
60384
60385         * m4/imaxdiv.m4: New file.
60386
60387 2006-08-26  Bruno Haible  <bruno@clisp.org>
60388
60389         * lib/inttypes_.h: New file.
60390         * lib/inttypes.h: Remove file.
60391         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
60392
60393         * lib/imaxabs.c: New file.
60394
60395         * lib/imaxdiv.c: New file.
60396
60397 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60398
60399         New config-h module, so that "make" output needn't be cluttered
60400         by -DHAVE_CONFIG_H.
60401         * MODULES.html.sh (Support for building libraries and executables):
60402         Add config-h.
60403         * modules/config-h: New file.
60404         * gnulib-tool (nl, sed_transform_lib_file): New vars.
60405         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
60406         the config-h module is used.
60407
60408         New configmake module, so that "make" output needn't be cluttered
60409         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
60410         * MODULES.html.sh (Support for building libraries and executables):
60411         Add configmake.
60412         * modules/configmake: New file.
60413
60414 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60415
60416         * m4/config-h.m4: New file.
60417
60418 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60419
60420         * config/srclist.txt: Add elisp-comp.
60421
60422 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60423
60424         * MODULES.html.sh (Support for building libraries and executables):
60425         Add elisp-comp.
60426         * build-aux/elisp-comp: New file.
60427         * modules/elisp-comp: New file.
60428
60429 2006-08-24  Bruno Haible  <bruno@clisp.org>
60430
60431         * gnulib-tool (func_create_testdir): Use non-default values of
60432         sourcebase and m4base.
60433
60434 2006-08-24  Bruno Haible  <bruno@clisp.org>
60435
60436         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
60437         HTML structure.
60438
60439 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60440
60441         * modules/openat (Depends-on): Add lchown.
60442
60443 2006-08-23  Bruno Haible  <bruno@clisp.org>
60444
60445         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
60446         of gl_LOCK_EARLY instead of gl_LOCK.
60447
60448 2006-08-23  Bruno Haible  <bruno@clisp.org>
60449
60450         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
60451         on OSF/1 to no.
60452         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
60453
60454 2006-08-23  Bruno Haible  <bruno@clisp.org>
60455
60456         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
60457         as unusable.
60458
60459         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
60460         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
60461         (gl_LOCK): New macro.
60462
60463 2006-08-22  Simon Josefsson  <jas@extundo.com>
60464
60465         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
60466         to md5 module.
60467
60468 2006-08-22  Simon Josefsson  <jas@extundo.com>
60469
60470         * MODULES.html.sh: Add "Support for maintaining and release
60471         projects".
60472
60473         * build-aux/gnupload: New file, from coreutils.
60474
60475 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60476
60477         Avoid the need for AC_LIBSOURCES in m4 macros.
60478         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
60479         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
60480         * modules/check-version (EXTRA_DIST): Add check-version.h.
60481         * modules/crc (EXTRA_DIST): Add crc.h.
60482         * modules/des (EXTRA_DIST): Add des.h.
60483         * modules/gc (EXTRA_DIST): Add gc.h.
60484         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
60485         * modules/getline (EXTRA_DIST): Add getline.h.
60486         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
60487         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
60488         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
60489         * modules/md2 (EXTRA_DIST): Add md2.h.
60490         * modules/md4 (EXTRA_DIST): Add md4.h.
60491         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
60492         * modules/read-file (EXTRA_DIST): Add read-file.h.
60493         * modules/readline (EXTRA_DIST): Add readline.h.
60494         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
60495         rijndael-api-fst.h.
60496
60497 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60498
60499         * m4/rijndael.m4 (gl_ARCFOUR):
60500         * m4/arctwo.m4 (gl_ARCTWO):
60501         * m4/check-version.m4 (gl_CHECK_VERSION):
60502         * m4/crc.m4 (gl_CRC):
60503         * m4/des.m4 (gl_DES):
60504         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
60505         * m4/gc.m4 (gl_GC):
60506         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
60507         * m4/getline.m4 (gl_FUNC_GETLINE):
60508         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
60509         * m4/hmac-md5.m4 (gl_HMAC_MD5):
60510         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
60511         * m4/md2.m4 (gl_MD2):
60512         * m4/md4.m4 (gl_MD4):
60513         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
60514         * m4/read-file.m4 (gl_FUNC_READ_FILE):
60515         * m4/readline.m4 (gl_FUNC_READLINE):
60516         * m4/rijndael.m4 (gl_RIJNDAEL):
60517         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60518         to get the necessary .h files and whatnot.
60519
60520 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60521
60522         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
60523         gnulib rather than the other way around.
60524         * config/srclistvars.sh (COREUTILS): Remove.
60525
60526 2006-08-22  Jim Meyering  <jim@meyering.net>
60527
60528         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
60529
60530         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
60531
60532 2006-08-22  Eric Blake  <ebb9@byu.net>
60533
60534         * modules/regexprops-generic: New file.
60535         * MODULES.html.sh (Support for building documentation): List it.
60536
60537 2006-08-22  Eric Blake  <ebb9@byu.net>
60538
60539         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
60540         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
60541         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
60542         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
60543
60544 2006-08-22  Bruno Haible  <bruno@clisp.org>
60545
60546         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
60547         and lib_LTLIBRARIES like the other lib_* variables.
60548
60549 2006-08-22  Bruno Haible  <bruno@clisp.org>
60550
60551         * build-aux/x-to-1.in: New file, from GNU gettext.
60552
60553 2006-08-22  Bruno Haible  <bruno@clisp.org>
60554
60555         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
60556         <utmpx.h> exists.
60557
60558 2006-08-22  Bruno Haible  <bruno@clisp.org>
60559
60560         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
60561         <utmpx.h> exists.
60562
60563 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60564
60565         BeOS portability.
60566         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
60567         exist.
60568         Problem reported by Bruno Haible.
60569
60570 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60571
60572         Avoid the need for AC_LIBSOURCES in m4 macros.
60573         * modules/acl (EXTRA_DIST): Add acl.h.
60574         * modules/argmatch (Files): Add m4/argmatch.m4.
60575         (configure.ac): Add gl_ARGMATCH.
60576         (EXTRA_DIST): Renamed from lib_SOURCES, for
60577         consistency with the other modules.  Remove argmatch.c.
60578         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
60579         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
60580         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
60581         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
60582         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
60583         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
60584         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
60585         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
60586         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
60587         * modules/closeout (EXTRA_DIST): Add closeout.h.
60588         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
60589         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
60590         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
60591         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
60592         dirname.h; remove basename.c and stripslash.c.
60593         * modules/exclude (EXTRA_DIST): Add exclude.h.
60594         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
60595         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
60596         * modules/file-type (EXTRA_DIST): Add file-type.h.
60597         * modules/filemode (EXTRA_DIST): Add filemode.h.
60598         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
60599         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60600         * modules/fpending (EXTRA_DIST): Add __fpending.h.
60601         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
60602         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
60603         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
60604         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
60605         * modules/getdate (EXTRA_DIST): Add getdate.c.
60606         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
60607         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
60608         * modules/getpass (EXTRA_DIST): Add getpass.h.
60609         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
60610         * modules/group-member (EXTRA_DIST): Add group-member.h.
60611         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
60612         * modules/hash (EXTRA_DIST): Add hash.h.
60613         * modules/human (EXTRA_DIST): Add human.h.
60614         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
60615         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
60616         * modules/lchown (EXTRA_DIST): Add lchown.h.
60617         * modules/long-options (EXTRA_DIST): Add long-options.h.
60618         * modules/lstat (EXTRA_DIST): Add lstat.h.
60619         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
60620         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
60621         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
60622         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
60623         * modules/memxor (EXTRA_DIST): Add memxor.h.
60624         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
60625         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
60626         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
60627         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
60628         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
60629         * modules/physmem (EXTRA_DIST): Add physmem.h.
60630         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
60631         * modules/posixver (EXTRA_DIST): Add posixver.h.
60632         * modules/quote (EXTRA_DIST): Add quote.h.
60633         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
60634         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
60635         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
60636         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
60637         regex_internal.h regexec.c.
60638         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
60639         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
60640         * modules/same (EXTRA_DIST): Add same.h.
60641         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
60642         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
60643         * modules/savedir (EXTRA_DIST): Add savedir.h.
60644         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60645         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60646         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60647         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60648         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60649         * modules/strdup (EXTRA_DIST): Add strdup.h.
60650         * modules/strftime (EXTRA_DIST): Add strftime.h.
60651         * modules/strndup (EXTRA_DIST): Add strndup.h.
60652         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60653         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60654         * modules/time_r (EXTRA_DIST): Add time_r.h.
60655         * modules/timespec (EXTRA_DIST): Add timespec.h.
60656         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60657         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60658         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60659         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60660         * modules/userspec (EXTRA_DIST): Add userspec.h.
60661         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60662         * modules/utimens (EXTRA_DIST): Add utimens.h.
60663         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60664         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60665         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60666         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60667         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60668         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60669         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60670         * modules/yesno (EXTRA_DIST): Add yesno.h.
60671
60672 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60673
60674         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60675
60676         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60677         * m4/dev-ino.m4, same-inode.m4: Remove.
60678
60679         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60680         * m4/acl.m4 (AC_FUNC_ACL):
60681         * m4/backupfile.m4 (gl_BACKUPFILE):
60682         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60683         * m4/canon-host.m4 (gl_CANON_HOST):
60684         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60685         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60686         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60687         * m4/cloexec.m4 (gl_CLOEXEC):
60688         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60689         * m4/closeout.m4 (gl_CLOSEOUT):
60690         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60691         * m4/dirname.m4 (gl_DIRNAME):
60692         * m4/exclude.m4 (gl_EXCLUDE):
60693         * m4/exitfail.m4 (gl_EXITFAIL):
60694         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60695         * m4/file-type.m4 (gl_FILE_TYPE):
60696         * m4/filemode.m4 (gl_FILEMODE):
60697         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60698         * m4/fpending.m4 (gl_FUNC_FPENDING):
60699         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60700         * m4/fts.m4 (gl_FUNC_FTS):
60701         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60702         * m4/getdate.m4 (gl_GETDATE):
60703         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60704         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60705         * m4/getpass.m4 (gl_FUNC_GETPASS):
60706         * m4/gettime.m4 (gl_GETTIME):
60707         * m4/getugroups.m4 (gl_GETUGROUPS):
60708         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60709         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60710         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60711         * m4/hash.m4 (gl_HASH):
60712         * m4/idcache.m4 (gl_IDCACHE):
60713         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60714         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60715         * m4/long-options.m4 (gl_LONG_OPTIONS):
60716         * m4/lstat.m4 (gl_FUNC_LSTAT):
60717         * m4/md5.m4 (gl_MD5):
60718         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60719         * m4/memcoll.m4 (gl_MEMCOLL):
60720         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60721         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60722         * m4/memxor.m4 (gl_MEMXOR):
60723         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60724         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60725         * m4/modechange.m4 (gl_MODECHANGE):
60726         * m4/mountlist.m4 (gl_MOUNTLIST):
60727         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60728         * m4/openat.m4 (gl_FUNC_OPENAT):
60729         * m4/pathmax.m4 (gl_PATHMAX):
60730         * m4/physmem.m4 (gl_PHYSMEM):
60731         * m4/posixtm.m4 (gl_POSIXTM):
60732         * m4/posixver.m4 (gl_POSIXVER):
60733         * m4/quote.m4 (gl_QUOTE):
60734         * m4/quotearg.m4 (gl_QUOTEARG):
60735         * m4/readtokens.m4 (gl_READTOKENS):
60736         * m4/readutmp.m4 (gl_READUTMP):
60737         * m4/regex.m4 (gl_REGEX):
60738         * m4/safe-read.m4 (gl_SAFE_READ):
60739         * m4/safe-write.m4 (gl_SAFE_WRITE):
60740         * m4/same.m4 (gl_SAME):
60741         * m4/save-cwd.m4 (gl_SAVE_CWD):
60742         * m4/savedir.m4 (gl_SAVEDIR):
60743         * m4/settime.m4 (gl_SETTIME):
60744         * m4/sha1.m4 (gl_SHA1):
60745         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60746         * m4/stat-macros.m4 (gl_STAT_MACROS):
60747         * m4/stat-time.m4 (gl_STAT_TIME):
60748         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60749         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60750         * m4/strdup.m4 (gl_FUNC_STRDUP):
60751         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60752         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60753         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60754         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60755         * m4/time_r.m4 (gl_TIME_R):
60756         * m4/timespec.m4 (gl_TIMESPEC):
60757         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60758         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60759         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60760         * m4/userspec.m4 (gl_USERSPEC):
60761         * m4/utimecmp.m4 (gl_UTIMECMP):
60762         * m4/utimens.m4 (gl_UTIMENS):
60763         * m4/xalloc.m4 (gl_XALLOC):
60764         * m4/xgetcwd.m4 (gl_XGETCWD):
60765         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60766         * m4/xreadlink.m4 (gl_XREADLINK):
60767         * m4/xstrtod.m4 (gl_XSTRTOD):
60768         * m4/yesno.m4 (gl_YESNO):
60769         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60770         to get the necessary .h files and whatnot.
60771
60772 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60773             Bruno Haible  <bruno@clisp.org>
60774
60775         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60776         /bin/sh understanding of '!' conditional negation.
60777
60778 2006-08-21  Jim Meyering  <jim@meyering.net>
60779
60780         * modules/openat (Depends-on): Really alphabetize.
60781
60782         * modules/acl (Depends-on): Add error and quote.
60783
60784         * check-module (find_included_lib_files): Add at-func.c to the
60785         ok-to-include-more-than-once white list.
60786
60787         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60788
60789 2006-08-21  Bruno Haible  <bruno@clisp.org>
60790
60791         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60792         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60793         Reported by Martin Lambers <marlam@marlam.de>.
60794
60795 2006-08-21  Bruno Haible  <bruno@clisp.org>
60796
60797         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60798         specify an installation location, don't emit a noinst_LIBRARIES or
60799         noinst_LTLIBRARIES assignment.
60800
60801 2006-08-21  Bruno Haible  <bruno@clisp.org>
60802
60803         BeOS portability.
60804         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60805         BeOS has mbrtowc() but no <wctype.h>.
60806
60807 2006-08-21  Bruno Haible  <bruno@clisp.org>
60808
60809         BeOS portability.
60810         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60811         exist.
60812
60813 2006-08-21  Bruno Haible  <bruno@clisp.org>
60814
60815         BeOS portability.
60816         * lib/mbchar.h: Include <wctype.h> only if it exists.
60817
60818 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60819
60820         Remove files that are no longer needed by their respective modules.
60821         * m4/obstack.m4: Remove.
60822         * m4/strerror_r.m4: Remove.
60823         * m4/uint32_t.m4: Remove.
60824         * m4/uintptr_t.m4: Remove.
60825         * m4/ullong_max.m4: Remove.
60826         * m4/xstrtoimax.m4: Remove.
60827         * m4/xstrtoumax.m4: Remove.
60828
60829         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60830         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60831         dependencies now capture this.
60832
60833         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60834         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60835         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60836         * m4/human.m4 (gl_HUMAN): Likewise.
60837         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60838         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60839
60840         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60841
60842         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60843         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60844         stdint.
60845         * m4/human.m4 (gl_HUMAN): Likewise.
60846         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60847         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60848         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60849         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60850         * m4/xstrtol (gl_XSTRTOL): Likewise.
60851
60852         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60853         AC_TYPE_LONG_LONG_INT.
60854         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60855         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60856         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60857         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60858
60859         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60860         on stdbool.
60861
60862         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60863         (gl_PREREQ_XSTRTOUL): Remove.
60864
60865         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60866
60867         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60868         mode.
60869
60870 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60871
60872         Add and change modules to make it easier for coreutils to use
60873         gnulib-tool.
60874         * modules/backupfile (Files): Remove m4/d-ino.m4.
60875         (Depends-on): Add d-ino.
60876         * modules/cycle-check (Depends-on): Add stdint.
60877         (lib_SOURCES): Add cycle-check.h.
60878         * modules/d-ino: New module.
60879         * modules/d-type: New module.
60880         * modules/error (Files): Remove m4/strerror_r.m4.
60881         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60882         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60883         m4/inttypes_h.m4, m4/uintmax_t.m4.
60884         (Depends-on): Add stdint.
60885         (lib_SOURCES): Add fsusage.h.
60886         * modules/getcwd (Files): Remove d-ino.m4.
60887         (Depends-on): Add d-ino.
60888         * modules/getndelim2 (Depends-on): Add stdint.
60889         * modules/glob (Files): Remove m4/d-type.m4.
60890         (Depends-on): Add d-type.
60891         * modules/host-os: New module.
60892         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60893         m4/inttypes_h.m4, m4/uintmax_t.m4.
60894         * Depends-on: Add stdint.
60895         (lib_SOURCES): Add human.h.
60896         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60897         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60898         m4/uintmax_t.m4, m4/ulonglong.m4.
60899         (Depends-on): Add stdint.
60900         (EXTRA_DIST): Add inttostr.h.
60901         * modules/lchmod: New module.
60902         * modules/link-follow: New module.
60903         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60904         (Depends-on): Add lchmod.
60905         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60906         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60907         (Depends-on): Add stdint.
60908         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60909         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60910         (Depends-on): Add stdint.
60911         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60912         * modules/perl: New module.
60913         * modules/regex (Depends-on): Add stdint.
60914         * modules/rmdir-errno: New module.
60915         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60916         m4/intmax_t.m4.
60917         (Depends-on): Add stdint.
60918         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60919         m4/uintmax_t.m4.
60920         (Depends-on): Add stdint.
60921         * modules/unlink-busy: New module.
60922         * modules/utimecmp (Depends-on): Add stdint.
60923         * modules/uptime: New module.
60924         * modules/winsz-ioctl: New module.
60925         * modules/winsz-termios: New module.
60926         * modules/xnanosleep (Depends-on): Add nanosleep.
60927         * modules/ullong_max: Remove.
60928         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60929         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60930         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60931         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60932         (Depends-on): Add inttypes.
60933         (lib_SOURCES): Add xstrtol.h.
60934         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60935         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60936         * MODULES.html.sh: Move 'assert' into the assert section.
60937         Move 'dummy' into the linking section.
60938         Remove ullong_max.
60939         Add section for compatibility checks for POSIX:2001 functions,
60940         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60941         winsz-ioctl, and winsz-termios into it.
60942         Add lchmod.
60943         Add top-level Misc section and put host-os, perl, and uptime
60944         into it.
60945
60946 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60947
60948         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60949         now assume the stdint module.  Do not include inttypes.h.
60950         * lib/fsusage.h: Likewise.
60951         * lib/getndelim2.c: Likewise.
60952         * lib/human.h: Likewise.
60953         * lib/inttostr.h: Likewise.
60954         * lib/obstack.c: Likewise.
60955         * lib/regex_internal.h: Likewise.
60956         * lib/tempname.c: Likewise.
60957         * lib/utimecmp.c: Likewise.
60958         * lib/xstrtol.h: Likewise.
60959
60960         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60961
60962         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60963         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60964         * lib/xtime.h: Likewise.
60965
60966 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60967
60968         * modules/openat (Files): Add lib/fchmodat.c.
60969         Fixes problem reported by Jay Youngman.
60970
60971 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60972
60973         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60974         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60975
60976 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60977             Bruno Haible  <bruno@clisp.org>
60978
60979         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60980         and is a script that invokes bison. Tighten the code. Add comments.
60981
60982 2006-08-18  Jim Meyering  <jim@meyering.net>
60983
60984         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60985         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60986         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60987         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60988
60989 2006-08-18  Bruno Haible  <bruno@clisp.org>
60990
60991         * modules/bison-i18n: New file.
60992         * MODULES.html.sh (Internationalization functions): Add it.
60993
60994 2006-08-18  Bruno Haible  <bruno@clisp.org>
60995
60996         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60997         sys/statvfs.h. When getmntinfo was found, check its declaration and
60998         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60999
61000 2006-08-18  Bruno Haible  <bruno@clisp.org>
61001
61002         * m4/bison-i18n.m4: New file, from bison.
61003
61004 2006-08-18  Bruno Haible  <bruno@clisp.org>
61005
61006         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
61007         (ME_DUMMY): Treat "kernfs" as a dummy.
61008         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
61009
61010 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61011
61012         Update from coreutils.
61013
61014         2006-08-15  Jim Meyering  <jim@meyering.net>
61015
61016         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
61017
61018         2006-01-17  Jim Meyering  <jim@meyering.net>
61019
61020         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
61021
61022         2006-01-11  Jim Meyering  <jim@meyering.net>
61023
61024         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
61025         Check for the lchmod function.
61026
61027 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61028
61029         Update from coreutils.
61030
61031         * lib/__fpending.h: Add copyright notice.
61032         * lib/fprintftime.h: Likewise.
61033         * lib/savedir.c: Use (C) in copyright notice.
61034         * lib/savedir.h: Likewise.
61035
61036         2006-08-15  Jim Meyering  <jim@meyering.net>
61037
61038         * lib/at-func.c: New file, with the logic of all emulated at-functions.
61039         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
61040         in support of the EXPECTED_ERRNO macro.
61041         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
61042         definitions.  Instead, define the appropriate symbols and include
61043         "at-func.c".
61044         * lib/mkdirat.c (mkdirat): Likewise.
61045         * lib/fchmodat.c (fchmodat): Likewise.
61046         (ENOSYS): Remove definition.
61047         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
61048         it.  Don't include "unistd--.h" -- it wasn't ever used.
61049
61050         2006-01-17  Jim Meyering  <jim@meyering.net>
61051
61052         Rewrite fts.c not to change the current working directory,
61053         by using openat, fstatat, fdopendir, etc..
61054
61055         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
61056         (HAVE_OPENAT_SUPPORT): Define.
61057         [_LIBC] (fchdir): Don't undef or define; no longer used.
61058         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
61059         Now, this `function' always succeeds, and consumes its file descriptor
61060         parameter -- so callers must not close such FDs.  Update callers.
61061         (diropen_fd, opendirat, cwd_advance_fd): New functions.
61062         (diropen): Add parameter, SP.  Adjust all callers.
61063         Implement using diropen_fd, rather than open.
61064         (fts_open): Initialize new member, fts_cwd_fd.
61065         Remove fts_rft-setting code.
61066         (fts_close): Close fts_cwd_fd, if necessary.
61067         (__opendir2): Define in terms of opendir or opendirat,
61068         depending on whether the FST_NOCHDIR flag is set.
61069         (fts_build): Since fts_safe_changedir consumes its FD, and since
61070         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
61071         and close the dup'd file descriptor upon failure.
61072         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
61073         (fts_safe_changedir): Tweak semantics to reflect that this function
61074         now calls cwd_advance_fd and hence consumes its FD argument.
61075         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
61076         [struct FTS] (fts_rft): Remove now-unused member.
61077         [struct FTS] (fts_cycle.state): Improve comment.
61078
61079         * lib/openat.c (openat_needs_fchdir): New function.
61080         * lib/openat.h (openat_needs_fchdir): Declare it.
61081
61082 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61083
61084         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
61085         Problem and fix reported by Pádraig Brady in
61086         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
61087
61088 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61089
61090         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
61091
61092 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61093
61094         * lib/memcoll.c (memcoll): Optimize for the common case where the
61095         arguments are bytewise equal.
61096
61097 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61098
61099         * doc/regexprops-generic.texi: Add a copyright notice.
61100
61101 2006-08-15  Bruno Haible  <bruno@clisp.org>
61102
61103         * modules/tmpdir (License): Change to LGPL.
61104
61105 2006-08-15  Bruno Haible  <bruno@clisp.org>
61106
61107         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
61108         module.
61109
61110 2006-08-14  Simon Josefsson  <jas@extundo.com>
61111
61112         * config/srclist.txt: Add gnupload.
61113
61114 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61115
61116         Change copyright notice from LGPL 2 to GPL 2, since that's the
61117         standard form used in the gnulib repository.
61118         * tests/test-lock.c: Likewise.
61119         * tests/test-stdint.c: Likewise.
61120         * tests/test-tls.c: Likewise.
61121
61122         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
61123         prelude-manager.  User shorter URLs for GNU projects, without '?'.
61124         Add copyright notice.
61125
61126         * check-module: Add copyright notice.  Output a copyright
61127         notice if "--version" is specified.
61128         * modules/COPYING: New file.
61129         * tests/test-getaddrinfo.c: Add copyright notice.
61130         * tests/test-verify.c: Likewise.
61131
61132 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61133
61134         Change copyright notice from LGPL 2 to GPL 2, since that's the
61135         standard form used in the gnulib repository.
61136         * lib/lock.c: LGPL -> GPL.
61137         * lib/lock.h: Likewise.
61138         * lib/strnlen1.c: Likewise.
61139         * lib/strnlen1.h: Likewise.
61140         * lib/tls.c: Likewise.
61141         * lib/tls.h: Likewise.
61142         * lib/tmpdir.c: Likewise.
61143
61144         * lib/TODO: Remove; this belongs only in coreutils.
61145
61146 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61147
61148         Add copyright notices to long-enough files that lack them, since
61149         otherwise the files aren't clearly free.  Use the same notice that
61150         getdate.texi already uses.
61151         * doc/alloca-opt.texi: Add copyright notice.
61152         * doc/alloca.texi: Likewise.
61153         * doc/ctime.texi: Likewise.
61154         * doc/functions.texi: Likewise.
61155         * doc/gcd.texi: Likewise.
61156         * doc/gnulib-tool.texi: Likewise.
61157         * doc/inet_ntoa.texi: Likewise.
61158         * doc/visibility.texi: Likewise.
61159
61160         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
61161         * doc/quote.texi: Add copyright notice.
61162
61163         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
61164         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
61165         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
61166         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
61167         is now obsolete, and give a pointer to the Sun list.
61168         Add copyright notice.
61169
61170 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61171
61172         * config/srclistvars.sh: Add copyright notice.
61173
61174 2006-08-14  Eric Blake  <ebb9@byu.net>
61175
61176         Import the following change from libc:
61177
61178         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
61179
61180         Upstream bug 2997.
61181         * lib/misc/error.c: Add space between program name and message if file
61182         name is missing.
61183
61184 2006-08-12  Karl Berry  <karl@gnu.org>
61185
61186         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
61187         remove, these originate in gnulib now.
61188
61189 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61190
61191         * doc/Makefile (standards.info standards.html standards.dvi):
61192         Also depend on make-stds.texi.
61193
61194 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61195
61196         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
61197         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
61198
61199         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
61200         in wchar_t.  Problem reported by Eric Blake.
61201
61202         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
61203         LEN is smaller than SIZE.  Suggested by Bruno Haible.
61204         Also, help the compiler to keep LEN in a register.
61205
61206 2006-08-11  Eric Blake  <ebb9@byu.net>
61207
61208         * users.txt: Sort.  Add tar.
61209
61210 2006-08-11  Bruno Haible  <bruno@clisp.org>
61211
61212         * users.txt: New file.
61213
61214 2006-08-11  Bruno Haible  <bruno@clisp.org>
61215
61216         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
61217         before <wchar.h>. Needed for OSF/1 and BSD/OS.
61218
61219 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61220
61221         * modules/snprintf (Depends-on): Remove minmax.
61222         (Maintainer): Add self and Bruno.
61223
61224 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61225
61226         * lib/.cppi-disable: Add snprintf.h, socket_.h.
61227         * lib/snprintf.c: Include <errno.h> and <limits.h>.
61228         (EOVERFLOW): Define if the system does not.
61229         Do not include "minmax.h"; it wasn't used.
61230         (snprintf): Don't assume size_t promotes to an unsigned type.
61231         Fix bug when generated string was too long for the buffer: the
61232         buffer's contents are supposed to be the initial prefix of the
61233         output.  Don't assume vasnprintf returns EOVERFLOW if the size
61234         exceeds INT_MAX; do the check ourselves.
61235
61236         Import the following changes from libc:
61237
61238         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
61239
61240         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
61241         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
61242         set wc to the byte which couldn't be converted.
61243         (re_string_reconstruct): Don't clear valid_raw_len before calling
61244         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
61245         tip_context using re_string_context_at.
61246
61247         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
61248
61249         * lib/posix/regex.h: g++ still cannot handled [restrict].
61250
61251         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
61252
61253         * lib/posix/regex.h: Remove special handling for VMS.
61254
61255 2006-08-10  Jim Meyering  <jim@meyering.net>
61256
61257         * modules/same-inode: New module.
61258         * modules/dev-ino: New module.
61259         * modules/cycle-check: Depend on these modules, rather than simply
61260         including their .h files.
61261         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
61262         required via m4/cycle-check.m4.
61263         * modules/same: Depend on new same-inode module, rather than
61264         including same-inode.h.
61265         * modules/chdir-safer: New file.
61266
61267         * modules/chown (Depends-on): Add stat-macros.
61268
61269 2006-08-10  Jim Meyering  <jim@meyering.net>
61270
61271         * m4/cycle-check.m4: New file.
61272         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
61273         * m4/dev-ino.m4, m4/same-inode.m4: New files.
61274
61275 2006-08-10  Eric Blake  <ebb9@byu.net>
61276
61277         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
61278         in from original proposal.
61279
61280 2006-08-10  Eric Blake  <ebb9@byu.net>
61281         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61282
61283         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
61284         namespace.
61285
61286 2006-08-10  Bruno Haible  <bruno@clisp.org>
61287
61288         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
61289         as well.
61290
61291 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61292
61293         Sync from coreutils.
61294
61295         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
61296
61297         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
61298         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
61299
61300 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61301
61302         * modules/restrict: Remove; no longer needed now that we assume
61303         Autoconf 2.59 or later.
61304         * MODULES.html.sh: Remove 'restrict'.
61305         * modules/argp (Depends-on): Remove 'restrict'.
61306         * modules/base64 (Depends-on): Likewise.
61307         * modules/gc (Depends-on): Likewise.
61308         * modules/getaddrinfo (Depends-on): Likewise.
61309         * modules/glob (Depends-on): Likewise.
61310         * modules/inet_ntop (Depends-on): Likewise.
61311         * modules/inet_pton (Depends-on): Likewise.
61312         * modules/memxor (Depends-on): Likewise.
61313         * modules/regex (Depends-on): Likewise.
61314         * modules/strtok_r (Depends-on): Likewise.
61315         * modules/time_r (Depends-on): Likewise.
61316
61317 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61318
61319         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
61320         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
61321         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61322         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
61323         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61324         * m4/memxor.m4 (gl_MEMXOR): Likewise.
61325         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
61326         gl_C_RESTRICT replaced by AC_C_RESTRICT.
61327
61328         Merge from coreutils.
61329         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
61330         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
61331         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61332         * m4/time_r.m4 (gl_TIME_R): Likewise.
61333
61334 2006-08-09  Karl Berry  <karl@gnu.org>
61335
61336         * config/srclist.txt: no more gettext-tools, per Bruno.
61337
61338 2006-08-08  Eric Blake  <ebb9@byu.net>
61339
61340         * modules/verror: New module.
61341         * MODULES.html.sh: Document it.
61342
61343 2006-08-08  Eric Blake  <ebb9@byu.net>
61344
61345         * lib/verror.h, lib/verror.c: New files.
61346
61347 2006-08-08  Eric Blake  <ebb9@byu.net>
61348
61349         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
61350         verror_at_line output complies with GNU Coding Standards even when
61351         file is NULL.
61352
61353 2006-08-07  Bruno Haible  <bruno@clisp.org>
61354
61355         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
61356         versions of AIX.
61357         Reported by Ralf Wildenhues.
61358
61359 2006-08-07  Bruno Haible  <bruno@clisp.org>
61360
61361         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
61362         in an AC_DEFUN. Needed so that the autoconf snippets can use
61363         AC_REQUIRE.
61364
61365 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61366
61367         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61368         Initialize pkgdata_DATA.
61369         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
61370         overriding it.
61371
61372 2006-08-06  Eric Blake  <ebb9@byu.net>
61373
61374         * lib/error.h: Fold in some upstream changes from glibc.
61375         * lib/error.c: Likewise.
61376
61377 2006-08-04  Bruno Haible  <bruno@clisp.org>
61378
61379         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61380         Make the mostlyclean-local rule depend on mostlyclean-generic.
61381         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
61382
61383 2006-07-31  Bruno Haible  <bruno@clisp.org>
61384
61385         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
61386         <stdlib.h>, <string.h>.
61387
61388 2006-07-30  Bruno Haible  <bruno@clisp.org>
61389
61390         * modules/readlink (License): Change to LGPL.
61391
61392 2006-07-30  Bruno Haible  <bruno@clisp.org>
61393
61394         * modules/javaversion (Makefile.am): Distribute javaversion.java and
61395         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
61396         set PKGDATADIR to point to it.
61397
61398 2006-07-30  Bruno Haible  <bruno@clisp.org>
61399
61400         * modules/csharpexec (configure.ac): Comment out macro invocation.
61401         * modules/javaexec (configure.ac): Likewise.
61402         * modules/javacomp-script (configure.ac): Likewise.
61403
61404         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
61405
61406 2006-07-30  Bruno Haible  <bruno@clisp.org>
61407
61408         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
61409         linked-list.
61410
61411 2006-07-30  Bruno Haible  <bruno@clisp.org>
61412
61413         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
61414
61415 2006-07-30  Bruno Haible  <bruno@clisp.org>
61416
61417         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61418         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
61419         get removed.
61420
61421 2006-07-29  Bruno Haible  <bruno@clisp.org>
61422
61423         Make it possible for gnulib-tool to work with locally modified or
61424         augmented gnulib repositories.
61425         * gnulib-tool (func_usage): Document --local-dir option.
61426         (local_gnulib_dir): New variable.
61427         Handle --local-dir option.
61428         (func_lookup_file): New function.
61429         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
61430         (func_get_description, func_get_filelist, func_get_description,
61431         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
61432         func_get_automake_snippet, func_get_include_directive,
61433         func_get_license, func_get_maintainer): Use func_lookup_file.
61434         (func_import, func_create_testdir): Use func_lookup_file.
61435
61436 2006-07-29  Bruno Haible  <bruno@clisp.org>
61437
61438         * modules/setenv (Depends-on): Add unistd.
61439
61440 2006-07-29  Bruno Haible  <bruno@clisp.org>
61441
61442         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
61443
61444 2006-07-29  Bruno Haible  <bruno@clisp.org>
61445
61446         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
61447
61448 2006-07-29  Bruno Haible  <bruno@clisp.org>
61449
61450         * gnulib-tool (import, update): If there is no Makefile.am, look at
61451         aclocal.m4, instead of bailing out.
61452
61453 2006-07-29  Bruno Haible  <bruno@clisp.org>
61454
61455         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
61456         Categorize the options by when they are useful.
61457
61458 2006-07-29  Bruno Haible  <bruno@clisp.org>
61459
61460         * gnulib-tool (func_usage): Document option --no-libtool.
61461         Handle option --no-libtool.
61462         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
61463         for changed semantics of $libtool variable.
61464         (func_import): Likewise. If libtool is not used, show this through
61465         an option --no-libtool.
61466         (func_create_testdir): Update.
61467
61468 2006-07-29  Bruno Haible  <bruno@clisp.org>
61469
61470         * gnulib-tool (func_import): Extend error message about missing
61471         --doc-base.
61472
61473 2006-07-29  Bruno Haible  <bruno@clisp.org>
61474
61475         * gnulib-tool (func_import): Don't create the $docbase directory if
61476         there is no file to store there.
61477
61478 2006-07-29  Bruno Haible  <bruno@clisp.org>
61479
61480         * gnulib-tool (autoconf_minversion): If a --dir option is given and
61481         relevant, look for configure.ac there, not in the current directory.
61482         Also use a simple search for AC_PREREQ, not "autoconf --trace".
61483
61484 2006-07-29  Bruno Haible  <bruno@clisp.org>
61485
61486         * gnulib-tool (SORT): New variable.
61487         (func_usage): Undocument --assume-autoconf option.
61488         Remove --assume-autoconf option handling.
61489         (autoconf_minversion): Determine from the contents of configure.ac.
61490         (func_import): Remove autoconf_minversion handling.
61491         Suggested by Eric Blake.
61492
61493 2006-07-29  Bruno Haible  <bruno@clisp.org>
61494
61495         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
61496
61497 2006-07-29  Bruno Haible  <bruno@clisp.org>
61498
61499         * config/srclist.txt (*setenv.[ch]): Remove rules.
61500
61501 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61502
61503         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
61504
61505 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61506
61507         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
61508         arpa/inet.h.
61509
61510 2006-07-28  Simon Josefsson  <jas@extundo.com>
61511
61512         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
61513         * modules/inet_pton (Depends-on): Likewise.
61514
61515 2006-07-28  Simon Josefsson  <jas@extundo.com>
61516
61517         * m4/netinet_in_h.m4: New file.
61518
61519 2006-07-28  Simon Josefsson  <jas@extundo.com>
61520
61521         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
61522         #include's.
61523
61524 2006-07-28  Simon Josefsson  <jas@extundo.com>
61525
61526         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
61527         #include's.
61528
61529 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
61530
61531         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
61532         setgid on directories only if they set these bits.
61533         * lib/modechange.h: Remove obsolete comment about masks.
61534
61535 2006-07-28  Eric Blake  <ebb9@byu.net>
61536
61537         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
61538         macro expansion.
61539
61540 2006-07-28  Bruno Haible  <bruno@clisp.org>
61541
61542         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
61543
61544 2006-07-28  Bruno Haible  <bruno@clisp.org>
61545
61546         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
61547
61548 2006-07-28  Bruno Haible  <bruno@clisp.org>
61549
61550         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61551         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61552         Define fallbacks.
61553         Avoids link error on FreeBSD 4.x.
61554         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61555
61556         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
61557         encoding.
61558         * lib/mbswidth.c (iswcntrl): Likewise.
61559
61560 2006-07-27  Bruno Haible  <bruno@clisp.org>
61561
61562         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
61563         test.
61564
61565 2006-07-27  Bruno Haible  <bruno@clisp.org>
61566
61567         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
61568         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
61569         defined.
61570
61571 2006-07-26  Eric Blake  <ebb9@byu.net>
61572
61573         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
61574
61575 2006-07-26  Eric Blake  <ebb9@byu.net>
61576
61577         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
61578         like mingw that lack mkstemp.
61579         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
61580         avoid compilation warning on mingw.
61581
61582 2006-07-26  Bruno Haible  <bruno@clisp.org>
61583
61584         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
61585         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
61586         INT_FAST*_MIN, INTPTR_MIN.
61587
61588 2006-07-25  Bruno Haible  <bruno@clisp.org>
61589
61590         * modules/version-etc (Depends-on): Add stdarg.
61591
61592 2006-07-25  Bruno Haible  <bruno@clisp.org>
61593
61594         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
61595         complex commands.
61596
61597 2006-07-25  Bruno Haible  <bruno@clisp.org>
61598
61599         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
61600         defined in <stdarg.h> or config.h.
61601
61602 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61603
61604         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
61605         (gl_STDIO_SAFER): Remove.
61606
61607 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61608
61609         * MODULES.html.sh (File stream based Input/Output):
61610         Add fopen-safer, tmpfile-safer; remove stdio-safer.
61611         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
61612         * modules/fopen-safer, modules/tmpfile-safer: New files.
61613         * modules/stdio-safer: Remove.
61614
61615 2006-07-24  Bruno Haible  <bruno@clisp.org>
61616
61617         * modules/tmpdir: New file.
61618         * MODULES.html.sh (File system functions): Add it.
61619
61620 2006-07-24  Bruno Haible  <bruno@clisp.org>
61621
61622         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
61623         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
61624
61625 2006-07-24  Bruno Haible  <bruno@clisp.org>
61626
61627         * modules/clean-temp: New file.
61628
61629 2006-07-24  Bruno Haible  <bruno@clisp.org>
61630
61631         * m4/tmpdir.m4: New file, from GNU gettext.
61632
61633 2006-07-24  Bruno Haible  <bruno@clisp.org>
61634
61635         * lib/tmpdir.h: New file, from GNU gettext.
61636         * lib/tmpdir.c: New file, from GNU gettext.
61637
61638 2006-07-24  Bruno Haible  <bruno@clisp.org>
61639
61640         * lib/clean-temp.h: New file, from GNU gettext.
61641         * lib/clean-temp.c: New file, from GNU gettext.
61642
61643 2006-07-23  Eric Blake  <ebb9@byu.net>
61644
61645         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61646         (Depends-on): Add binary-io.
61647
61648 2006-07-23  Eric Blake  <ebb9@byu.net>
61649
61650         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61651
61652 2006-07-23  Eric Blake  <ebb9@byu.net>
61653
61654         * lib/tmpfile-safer.c: New file.
61655         * lib/stdio-safer.h (fopen_safer): Add prototype.
61656         * lib/stdio--.h (tmpfile): Make safer.
61657
61658 2006-07-23  Bruno Haible  <bruno@clisp.org>
61659
61660         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61661         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61662         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61663         gl_linked_remove_at): Use it.
61664
61665 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61666         and Simon Josefsson <jas@extundo.com>
61667
61668         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61669
61670         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61671
61672 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61673
61674         * modules/close-stream: New file.
61675         * modules/closeout (Description): Make it clear that it exits
61676         with a diagnostic on error.
61677         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61678         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61679
61680 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61681
61682         * m4/close-stream.m4: New file.
61683
61684 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61685
61686         * lib/close-stream.c, lib/close-stream.h: New files.
61687
61688 2006-07-22  Bruno Haible  <bruno@clisp.org>
61689
61690         Merge from GNU gettext 0.15.
61691
61692         2006-05-01  Bruno Haible  <bruno@clisp.org>
61693
61694                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61695
61696         2006-07-22  Bruno Haible  <bruno@clisp.org>
61697
61698                 * modules/javaversion: New file.
61699                 * MODULES.html.sh (Java): Add javaversion.
61700
61701         2006-03-12  Bruno Haible  <bruno@clisp.org>
61702
61703                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61704
61705         2005-12-04  Bruno Haible  <bruno@clisp.org>
61706
61707                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61708                 (untested).
61709
61710         2006-06-21  Bruno Haible  <bruno@clisp.org>
61711
61712                 Avoid warnings from recent versions of mcs.
61713                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61714                 -o, -L, -r any more. Use options documented since mcs-1.0
61715                 instead. Similarly for -g.
61716
61717         2005-12-04  Bruno Haible  <bruno@clisp.org>
61718
61719                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61720                 .resources, not .resource.
61721
61722         2005-07-09  Bruno Haible  <bruno@clisp.org>
61723
61724                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61725                 add a .dll suffix.
61726                 Reported by Mark Junker <mjscod@gmx.de>.
61727
61728         2006-07-22  Bruno Haible  <bruno@clisp.org>
61729
61730                 * modules/gettext: Upgrade to gettext-0.15.
61731                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61732                 m4/visibility.m4.
61733                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61734
61735 2006-07-22  Bruno Haible  <bruno@clisp.org>
61736
61737         Merge from GNU gettext 0.15.
61738
61739         2006-03-25  Bruno Haible  <bruno@clisp.org>
61740
61741                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61742
61743         2006-07-21  Bruno Haible  <bruno@clisp.org>
61744
61745                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61746                 "1.1".
61747
61748         2006-05-09  Bruno Haible  <bruno@clisp.org>
61749
61750                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61751                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61752                 for the conftestver execution.
61753
61754         2006-05-01  Bruno Haible  <bruno@clisp.org>
61755
61756                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61757                 optional target-version argument. Verify that the compiler
61758                 groks source of the specified source-version, or add -source
61759                 option as necessary. Verify that the compiler produces
61760                 bytecode in the specified target-version, or add -target and
61761                 -source options as necessary. Make the result of the test
61762                 available as variable CONF_JAVAC. Also log error output in
61763                 config.log.
61764
61765         2006-03-11  Bruno Haible  <bruno@clisp.org>
61766
61767                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61768
61769         2006-05-09  Bruno Haible  <bruno@clisp.org>
61770
61771                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61772                 CLASSPATH_SEPARATOR to a semicolon.
61773
61774         2006-03-12  Bruno Haible  <bruno@clisp.org>
61775
61776                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61777                 available as variable CONF_JAVA, for subsequent autoconf
61778                 tests. Also log error output in config.log.
61779
61780         2006-07-19  Bruno Haible  <bruno@clisp.org>
61781
61782                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61783                 that getline works on glibc2 systems. Needed to avoid trouble
61784                 in relocatable.c.
61785                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61786
61787         2005-12-04  Bruno Haible  <bruno@clisp.org>
61788
61789                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61790                 launcher (untested).
61791
61792         2005-12-04  Bruno Haible  <bruno@clisp.org>
61793
61794                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61795
61796         2006-07-22  Bruno Haible  <bruno@clisp.org>
61797
61798                 * gettext.m4: Update from GNU gettext-0.15.
61799                 * nls.m4: Likewise.
61800                 * po.m4: Likewise.
61801                 * inttypes-pri.m4: Likewise.
61802                 * inttypes-h.m4: Renamed from inttypes.m4.
61803                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61804
61805 2006-07-22  Bruno Haible  <bruno@clisp.org>
61806
61807         Merge from GNU gettext 0.15.
61808
61809         2005-07-05  Bruno Haible  <bruno@clisp.org>
61810
61811                 * printf-args.c (printf_fetchargs): Work around broken
61812                 definition of wint_t on mingw.
61813
61814         2005-02-12  Bruno Haible  <bruno@clisp.org>
61815
61816                 * xallocsa.h: Add extern "C" for C++.
61817
61818         2006-05-17  Bruno Haible  <bruno@clisp.org>
61819
61820                 Cygwin portability.
61821                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61822
61823         2006-04-30  Bruno Haible  <bruno@clisp.org>
61824
61825                 * progreloc.c: Include <mach-o/dyld.h> if available.
61826                 (find_executable): Use _NSGetExecutablePath when possible.
61827
61828         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61829
61830                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61831                 function.
61832
61833         2005-12-29  Bruno Haible  <bruno@clisp.org>
61834
61835                 * progreloc.c (set_program_name_and_installdir): Fix
61836                 compilation error.
61837
61838         2005-12-04  Bruno Haible  <bruno@clisp.org>
61839
61840                 Cygwin portability.
61841                 * progreloc.c: Include <windows.h> also on Cygwin.
61842                 (find_executable): Add support for Cygwin.
61843                 (set_program_name_and_installdir): Handle also platforms with
61844                 nonempty EXEEXT.
61845
61846         2006-07-11  Bruno Haible  <bruno@clisp.org>
61847
61848                 * javacomp.c: Fix a comment.
61849                 Reported by Jim Meyering.
61850
61851         2006-04-30  Bruno Haible  <bruno@clisp.org>
61852
61853                 * javacomp.h (compile_java_class): Add source_version,
61854                 target_version arguments.
61855                 * javacomp.c: Rewritten to choose only a compiler that
61856                 respects the specified source_version and target_version.
61857
61858         2006-06-27  Bruno Haible  <bruno@clisp.org>
61859
61860                 Assume correct S_ISDIR macro.
61861                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61862
61863         2006-07-22  Bruno Haible  <bruno@clisp.org>
61864
61865                 * javaversion.h: New file, from GNU gettext.
61866                 * javaversion.c: New file, from GNU gettext.
61867                 * javaversion.java: New file, from GNU gettext.
61868                 * javaversion.class: New file, from GNU gettext.
61869
61870         2006-05-17  Bruno Haible  <bruno@clisp.org>
61871
61872                 Cygwin portability.
61873                 * javaexec.c (execute_java_class): Test for jview program
61874                 also on Cygwin.
61875
61876         2006-04-09  Bruno Haible  <bruno@clisp.org>
61877
61878                 * fatal-signal.c: Don't include string.h.
61879                 (at_fatal_signal): Use a copying loop instead of memcpy.
61880
61881         2005-12-04  Bruno Haible  <bruno@clisp.org>
61882
61883                 * csharpexec.c: Add support for 'clix' launcher (untested).
61884                 (execute_csharp_using_sscli): New function.
61885                 (execute_csharp_program): Call it.
61886
61887         2006-06-21  Bruno Haible  <bruno@clisp.org>
61888
61889                 Avoid warnings from recent versions of mcs.
61890                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61891                 -o, -L, -r any more. Use options documented since mcs-1.0
61892                 instead. Similarly for -g.
61893
61894         2005-07-09  Bruno Haible  <bruno@clisp.org>
61895
61896                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61897                 add a .dll suffix.
61898                 Reported by Mark Junker <mjscod@gmx.de>.
61899
61900         2006-06-17  Bruno Haible  <bruno@clisp.org>
61901
61902                 * config.charset: Update for NetBSD 3.0.
61903
61904         2006-05-17  Bruno Haible  <bruno@clisp.org>
61905
61906                 Cygwin portability.
61907                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61908
61909         2006-05-16  Bruno Haible  <bruno@clisp.org>
61910
61911                 * localcharset.c [CYGWIN]: Include <windows.h>.
61912                 (get_charset_aliases): For Cygwin, return the same CPxxx
61913                 aliases list as under WIN32.
61914                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61915                 the environment variables. Fall back to GetACP().
61916
61917         2006-04-05  Bruno Haible  <bruno@clisp.org>
61918
61919                 * config.charset: Update Juan Manuel Guerrero's address.
61920
61921         2005-02-12  Bruno Haible  <bruno@clisp.org>
61922
61923                 * allocsa.h: Add extern "C" for C++.
61924
61925         2005-02-10  Bruno Haible  <bruno@clisp.org>
61926
61927                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61928                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61929
61930         2006-07-22  Bruno Haible  <bruno@clisp.org>
61931
61932                 * gettext.h: Update to GNU gettext-0.15.
61933
61934 2006-07-22  Bruno Haible  <bruno@clisp.org>
61935
61936         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61937         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61938         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61939
61940 2006-07-21  Eric Blake  <ebb9@byu.net>
61941
61942         * modules/stdlib-safer: New file.
61943         * MODULES.html.sh (File stream based Input/Output): Add
61944         stdlib-safer.
61945
61946 2006-07-21  Eric Blake  <ebb9@byu.net>
61947
61948         * lib/stdlib-safer.h: New file from coreutils, required by
61949         stdlib--.h.
61950
61951 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61952
61953         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61954
61955 2006-07-20  Bruno Haible  <bruno@clisp.org>
61956
61957         * gnulib-tool: Recognize new option --assume-autoconf.
61958         (autoconf_minversion): New variable.
61959         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61960
61961 2006-07-20  Bruno Haible  <bruno@clisp.org>
61962
61963         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61964
61965 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61966
61967         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61968         Reindent and repaginate.
61969
61970 2006-07-19  Derek Price  <derek@ximbiot.com>
61971
61972         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61973         Correct grammar.
61974
61975 2006-07-17  Bruno Haible  <bruno@clisp.org>
61976
61977         * modules/list: New file.
61978         * modules/array-list: New file.
61979         * modules/carray-list, modules/carray-list-tests: New files.
61980         * modules/linked-list, modules/linked-list-tests: New files.
61981         * modules/avltree-list, modules/avltree-list-tests: New files.
61982         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61983         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61984         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61985         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61986         * modules/oset: New file.
61987         * modules/array-oset: New file.
61988         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61989         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61990         * tests/test-carray_list.c: New file.
61991         * tests/test-linked_list.c: New file.
61992         * tests/test-avltree_list.c: New file.
61993         * tests/test-rbtree_list.c: New file.
61994         * tests/test-linkedhash_list.c: New file.
61995         * tests/test-avltreehash_list.c: New file.
61996         * tests/test-rbtreehash_list.c: New file.
61997         * tests/test-avltree_oset.c: New file.
61998         * tests/test-rbtree_oset.c: New file.
61999         * MODULES.html.sh (Container data structures): New section.
62000
62001 2006-07-17  Bruno Haible  <bruno@clisp.org>
62002
62003         * m4/gl_list.m4: New file.
62004
62005 2006-07-17  Bruno Haible  <bruno@clisp.org>
62006
62007         * lib/gl_list.h: New file.
62008         * lib/gl_list.c: New file.
62009         * lib/gl_array_list.h: New file.
62010         * lib/gl_array_list.c: New file.
62011         * lib/gl_carray_list.h: New file.
62012         * lib/gl_carray_list.c: New file.
62013         * lib/gl_linked_list.h: New file.
62014         * lib/gl_linked_list.c: New file.
62015         * lib/gl_anylinked_list1.h: New file.
62016         * lib/gl_anylinked_list2.h: New file.
62017         * lib/gl_avltree_list.h: New file.
62018         * lib/gl_avltree_list.c: New file.
62019         * lib/gl_anyavltree_list1.h: New file.
62020         * lib/gl_anyavltree_list2.h: New file.
62021         * lib/gl_rbtree_list.h: New file.
62022         * lib/gl_rbtree_list.c: New file.
62023         * lib/gl_anyrbtree_list1.h: New file.
62024         * lib/gl_anyrbtree_list2.h: New file.
62025         * lib/gl_anytree_list1.h: New file.
62026         * lib/gl_anytree_list2.h: New file.
62027         * lib/gl_linkedhash_list.h: New file.
62028         * lib/gl_linkedhash_list.c: New file.
62029         * lib/gl_anyhash_list1.h: New file.
62030         * lib/gl_anyhash_list2.h: New file.
62031         * lib/gl_avltreehash_list.h: New file.
62032         * lib/gl_avltreehash_list.c: New file.
62033         * lib/gl_rbtreehash_list.h: New file.
62034         * lib/gl_rbtreehash_list.c: New file.
62035         * lib/gl_anytreehash_list1.h: New file.
62036         * lib/gl_anytreehash_list2.h: New file.
62037
62038         * lib/gl_oset.h: New file.
62039         * lib/gl_oset.c: New file.
62040         * lib/gl_array_oset.h: New file.
62041         * lib/gl_array_oset.c: New file.
62042         * lib/gl_avltree_oset.h: New file.
62043         * lib/gl_avltree_oset.c: New file.
62044         * lib/gl_rbtree_oset.h: New file.
62045         * lib/gl_rbtree_oset.c: New file.
62046         * lib/gl_anytree_oset.h: New file.
62047
62048 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62049
62050         * m4/mkancesdirs.m4: New file.
62051         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
62052         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
62053         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
62054         it.
62055
62056 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62057
62058         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
62059         * lib/mkancesdirs.h: New files.
62060         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
62061         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
62062         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
62063         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
62064         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
62065         callers changed.  Revamp internals significantly, by not
62066         attempting to create directories that are temporarily more
62067         permissive than the final results.  Do not attempt to use
62068         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
62069         This removes some race conditions, fixes some bugs, and simplifies
62070         things.  Use new dirchownmod function to do owner and mode changes.
62071         * lib/mkdir-p.h: Likewise.
62072         * lib/modechange.c (octal_to_mode): New function.
62073         (struct mode_change): New member mentioned.
62074         (make_node_op_equals): New arg mentioned.  All callers changed.
62075         (mode_compile): Keep track of which mode bits the user has explicitly
62076         mentioned.
62077         (mode_adjust): New arg DIR, so that we implement the X op correctly.
62078         New arg PMODE_BITS, to keep track of which mode bits the user
62079         mentioned; it treats S_ISUID and S_ISGID speciall.
62080         All callers changed.
62081         * lib/modechange.h: Likewise.
62082
62083 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62084
62085         * MODULES.html.sh: Add mkancestors.
62086         * modules/mkancesdirs: New module.
62087         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
62088         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
62089         The chdir-safer and afs files are now orphans; I'll remove them
62090         unless someone speaks up.
62091         Add lib/dirchownmod.c, lib/dirchownmod.h.
62092         (Depends-on): Remove alloca, chown, save-cwd, dirname.
62093         Add lchown, mkancesdirs.
62094         (Maintainer): Add self.
62095
62096 2006-07-15  Karl Berry  <karl@gnu.org>
62097
62098         * gnulib-tool: help message wording/arrangement.
62099
62100 2006-07-14  Simon Josefsson  <jas@extundo.com>
62101
62102         * doc/gnulib.texi (Libtool and Windows): New section.
62103
62104 2006-07-12  Simon Josefsson  <jas@extundo.com>
62105
62106         * modules/gendocs (License): Fix license, approved by Karl.
62107
62108 2006-07-12  Eric Blake  <ebb9@byu.net>
62109
62110         * MODULES.html.sh: Add gendocs.
62111
62112 2006-07-11  Eric Blake  <ebb9@byu.net>
62113
62114         * modules/fdl: New module, to install doc/fdl.texi.
62115         * MODULES.html.sh: Add new section for documentation modules.
62116         * gnulib-tool: Avoid space-tab.
62117         (--doc-base): New option, to manage files from doc.
62118
62119 2006-07-11  Eric Blake  <ebb9@byu.net>
62120
62121         * m4/absolute-header.m4: Fix comments to match recent change.
62122
62123 2006-07-11  Eric Blake  <ebb9@byu.net>
62124
62125         * gnulib-tool: List --doc-base before --tests-base.
62126
62127 2006-07-11  Derek R. Price  <derek@ximbiot.com>
62128
62129         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
62130
62131 2006-07-11  Bruno Haible  <bruno@clisp.org>
62132
62133         * README: Mention where to put documentation.
62134
62135 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62136
62137         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
62138
62139 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62140
62141         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
62142         to stdint.m4.
62143
62144 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62145
62146         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
62147         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
62148         "no/such/file/stdint.h" when there is no such file, so that
62149         the resulting C code can be parsed by dodgy compilers.
62150         Problems reported by Bob Proulx.
62151
62152 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62153
62154         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
62155         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62156         macros into the GNU _D_EXACT_NAMLEN.
62157         * lib/savedir.c:  Likewise.
62158         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
62159
62160 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62161         and Paul Eggert  <eggert@cs.ucla.edu>
62162
62163         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
62164         * m4/savedir.m4:
62165         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62166         macros into the GNU _D_EXACT_NAMLEN.
62167
62168 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62169
62170         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
62171         around the absolute name, to work around a problem with the HP-UX
62172         11.23 native C compiler, reported by Bob Proulx.
62173
62174 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62175
62176         * doc/maintain.texi, make-stds.texi: Sync from
62177         <http://savannah.gnu.org/projects/gnustandards>.
62178
62179 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62180
62181         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
62182
62183 2006-07-09  Jim Meyering  <jim@meyering.net>
62184
62185         * m4/glob.m4: Remove a doubled word in a comment.
62186
62187 2006-07-09  Jim Meyering  <jim@meyering.net>
62188
62189         * lib/argp-pv.c: Remove a doubled word in a comment.
62190         * lib/check-version.c (check_version): Likewise.
62191         * lib/javacomp.c (compile_java_class): Likewise.
62192
62193 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62194
62195         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
62196         for the benefit of people using Autoconf 2.60.  If you want to
62197         support older Autoconf versions you can copy m4/onceonly_2_57.m4
62198         (or m4/onceonly.m4, if pre-2.57) manually.
62199
62200 2006-07-08  Jim Meyering  <jim@meyering.net>
62201
62202         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
62203         comment.
62204         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
62205         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
62206         comment.
62207
62208 2006-07-08  Jim Meyering  <jim@meyering.net>
62209
62210         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
62211
62212 2006-07-07  Simon Josefsson  <jas@extundo.com>
62213
62214         * tests/test-crc.c: Change expected crc value, the test vector
62215         were probably computed using the old broken crc.c?
62216
62217 2006-07-06  Simon Josefsson  <jas@extundo.com>
62218
62219         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
62220         now the canonical place for the M4 file).
62221
62222         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
62223         from the sys_socket dependency now.
62224
62225         * modules/inet_pton (Files): Ditto.
62226
62227         * modules/inet_ntop (Files): Ditto.
62228
62229 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62230
62231         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
62232         not gl_PREREQ_GETUSERSHELL.
62233
62234 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62235
62236         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
62237         with only one argument, for Autoconf 2.60.
62238         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
62239         expand to nothing, so add a shell command to avoid syntax error.
62240         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62241
62242 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62243
62244         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
62245
62246 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62247
62248         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
62249         no longer needed.  Check for isblank decl.
62250         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
62251         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
62252         of existence.
62253
62254 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62255
62256         * lib/getloadavg.c: Use __VMS, not VMS.
62257         * lib/getopt.c: Likewise.
62258         * lib/getpagesize.h: Likewise.
62259         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
62260         and probably does not work.
62261
62262 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62263
62264         * lib/.cppi-disable: Add wcwidth.
62265         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
62266         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
62267         (ISGRAPH): Remove.  All uses changed to isgraph.
62268         (FOLD) [!defined _LIBC]: Remove special case.
62269         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
62270         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
62271         HAVE_ISBLANK.
62272         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
62273         case.
62274
62275 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62276
62277         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
62278         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
62279         brackets.  Other minor changes to suppress some compiler
62280         warnings.
62281
62282 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62283         and Paul Eggert  <eggert@cs.ucla.edu>
62284
62285         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
62286         of invoking obsolescent AC_HEADER_DIRENT macro.
62287         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62288         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
62289         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62290         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
62291         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
62292         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62293         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
62294         * m4/readdir.m4: Remove; no longer needed.
62295
62296 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62297         and Paul Eggert  <eggert@cs.ucla.edu>
62298
62299         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
62300         Don't worry about this obsolete case any more.
62301         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
62302         directories.
62303         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
62304         worry about this obsolete case any more.
62305         * lib/fts.c: Likewise.
62306         * lib/getcwd.c: Likewise.
62307         * lib/glob.h: Likewise.
62308         * lib/savedir.c: Likewise.
62309
62310 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62311
62312         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
62313         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
62314         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
62315         needed.
62316         All uses removed.
62317         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62318         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62319         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
62320         needed.
62321         * m4/getdate.m4 (gl_GETDATE): Likewise.
62322         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62323         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62324         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62325         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62326         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62327         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62328         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
62329         needed.
62330
62331 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62332
62333         * lib/memcasecmp.c: Include <limits.h>.
62334         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
62335         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
62336         Don't assume isdigit succeeds only on '0' through '9'.
62337
62338 2006-07-05  Eric Blake  <ebb9@byu.net>
62339
62340         * modules/getaddrinfo (Depends-on): Add snprintf.
62341
62342 2006-07-05  Eric Blake  <ebb9@byu.net>
62343
62344         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
62345         to avoid 'header present but could not be compiled' on cygwin.
62346
62347 2006-07-05  Eric Blake  <ebb9@byu.net>
62348
62349         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
62350         missing from netdb.h.
62351         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
62352
62353 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62354
62355         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
62356         no longer needed.
62357         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
62358         * m4/getdate.m4 (gl_GETDATE): Likewise.
62359         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62360         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62361         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62362         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62363         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62364
62365 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62366
62367         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
62368         All uses of is_space replaced by isspace.
62369         * lib/exit.h: Don't talk about STDC_HEADERS.
62370         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
62371         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
62372         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
62373         replaced by isprint etc.
62374         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
62375         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62376         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
62377         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
62378         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
62379         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62380
62381 2006-07-05  Bruno Haible  <bruno@clisp.org>
62382
62383         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
62384         the function exists, before testing against AIX.
62385         Reported by Martin Lambers <marlam@marlam.de>.
62386
62387 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62388
62389         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
62390         From Mark D. Baushke.
62391
62392 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62393
62394         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
62395         to the absolute name, not just one, to bypass Sun C 5.8's
62396         "warning: #include of /usr/include/... may be non-portable".
62397
62398 2006-07-04  Eric Blake  <ebb9@byu.net>
62399
62400         * modules/dirname-tests: New test module.
62401         * tests/test-dirname.c: New file, replacing dirname.c
62402         TEST_DIRNAME section that was recently deleted.
62403
62404 2006-07-04  Bruno Haible  <bruno@clisp.org>
62405
62406         Assume ANSI C header files and <ctype.h> functions.
62407         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
62408         (mbsnwidth): Use isprint, iscntrl instead.
62409
62410 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62411
62412         Merge from coreutils.
62413         * MODULES.html.sh: Add xstrtold.
62414         * modules/xstrtold: New file.
62415         * modules/cycle-check (Files): Add lib/same-inode.h.
62416         * modules/dirname (Files): Add m4/double-slash-root.m4.
62417         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
62418         * modules/mkdir-p (Files): Add lib/same-inode.h.
62419         * modules/same (Files): Add lib/same-inode.h.
62420
62421 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62422
62423         * m4/absolute-header.m4: Renamed from full-header-path.m4.
62424         This is to keep the terminology clean; POSIX talks about
62425         "absolute pathnames", not "full pathnames", but the GNU
62426         Coding Standards say to use "path" for something else;
62427         so use "absolute" to keep both sides happy.
62428         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
62429         Set gl_absolute_header, not gl_full_header_path.
62430         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
62431         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
62432         All uses changed.
62433
62434         Merge from coreutils.
62435
62436         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62437
62438         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
62439         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
62440         want to require the building of c-strtod.o.
62441         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
62442         needs -lm directly.
62443         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
62444
62445         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62446
62447         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
62448         --as-needed option if available.  Problem reported by Albert Chin in
62449         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
62450         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
62451         cc merely issues a bunch of annoying warnings for --as-needed
62452         (this problem was reported by Bob Proulx).  Also, try linking with
62453         -lm to detect a bug in binutils 2.16 (this problem was reported
62454         by Ralf Wildenhues).
62455
62456         2006-06-18  Jim Meyering  <jim@meyering.net>
62457
62458         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
62459         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
62460         macro.
62461         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
62462         also check for glibc-2.4's abort-inducing bug.
62463
62464         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
62465         Low-probability clean-up should be to use rmdir to get rid of
62466         the just-created directory, not unlink.
62467
62468         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
62469         configure fail, and request a bug report to inform us about it.
62470         Add a comment that, barring reports to the contrary, in 2007 we'll
62471         assume ftruncate is universally available.
62472
62473         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62474
62475         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
62476
62477         2006-03-12  Jim Meyering  <jim@meyering.net>
62478
62479         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
62480         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
62481         * m4/same.m4 (gl_SAME): Likewise.
62482         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
62483
62484         2006-03-11  Eric Blake  <ebb9@byu.net>
62485
62486         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
62487         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
62488         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
62489         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
62490
62491 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62492
62493         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
62494         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
62495         reported by Mark D. Baushke, one in
62496         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
62497
62498         Merge from coreutils.
62499
62500         * lib/.cppi-disable: Add stdint_.h.
62501         * lib/.cvsignore: Add stdint.h.
62502
62503         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62504
62505         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
62506         both double and long double versions.
62507         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
62508         * lib/xstrtold.c: New file.
62509         * lib/xstrtod.h (xstrtold): New decl.
62510
62511         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62512
62513         * lib/filemode.c (setst): Remove.
62514         (strmode): Rewrite to avoid setst.  This makes the code shorter,
62515         (arguably) clearer, and the generated code is a bit smaller on my
62516         Debian GNU/Linux stable x86 host.
62517
62518         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62519
62520         * lib/filemode.c: Include "filemode.h" first, to test the interface.
62521         Assume that filemode.h includes sys/types.h and sys/stat.h.
62522         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
62523         (ftypelet): Reorder to put common cases first, for efficiency.
62524         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
62525         to do 'M'.
62526         (strmode): Renamed from mode_string, and now stores 12 bytes instead
62527         of 10, for compatibility with FreeBSD.  All callers changed.
62528         (filemodestring): Now stores 12 bytes instead of 10, and sets file
62529         types that can't be deduced solely from st_mode.  First arg is now a
62530         const pointer.
62531         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
62532         (strmode): Renamed from mode_string.
62533         (filemodestring): New decl.
62534         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
62535         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
62536         needed.
62537         (S_ISPORT, S_ISWHT): New macros, if not already defined.
62538
62539         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62540
62541         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
62542         fsusage.h now does that.  Include fsusage.h first, to test interface.
62543         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
62544         at most one method (the old code could have generated decls that
62545         didn't conform to C89, not that this was ever exercised).
62546         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
62547
62548         2006-03-19  Jim Meyering  <jim@meyering.net>
62549
62550         Work even in a chroot where d_ino values for entries in "/"
62551         don't match the stat.st_ino values for the same names.
62552         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
62553         number, iterate through all entries again, using lstat instead.
62554         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
62555         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
62556
62557         * lib/getcwd.c (__getcwd): Clarify a comment.
62558         Use memcpy in place of a call to strcpy.
62559
62560         2006-03-12  Jim Meyering  <jim@meyering.net>
62561
62562         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
62563         matches that of the current directory (which we're about to chdir ".."
62564         out of), then save the dev-ino of the parent, instead.
62565
62566         * lib/same-inode.h (SAME_INODE): New file/macro.
62567         * lib/chdir-safer.c (SAME_INODE): Remove definition.
62568         Include "same-inode.h", instead.
62569         * lib/same.c: Likewise.
62570         * lib/cycle-check.h: Include "same-inode.h".
62571         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
62572         * lib/cycle-check.c (SAME_INODE): Remove definition.
62573         * lib/root-dev-ino.h: Include "same-inode.h".
62574
62575         2006-03-11  Eric Blake  <ebb9@byu.net>
62576
62577         * lib/same.c (same_name): s/base_name/last_component/
62578         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
62579         * lib/filenamecat.c (file_name_concat): Likewise.
62580
62581         2006-03-11  Eric Blake  <ebb9@byu.net>,
62582                     Paul Eggert  <eggert@cs.ucla.edu>
62583
62584         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
62585         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
62586         drive prefix.
62587         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
62588         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
62589         (last_component): New method.
62590         * lib/dirname.c (dir_len): Determine when drive letters need a
62591         subsequent slash.  Preserve // when it is special.
62592         (dir_name): Don't append dot when drive letter is absolute.
62593         [TEST_DIRNAME]: Move into a full-blown gnulib test.
62594         * lib/basename.c (base_name): New semantics - malloc the result.
62595         Preserve // when it is special.  Preserve relative files that look
62596         like drive letters.
62597         (base_len): Preserve // when it is special.
62598         (last_component): New method, similar to old base_name semantics.
62599         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
62600         base_name.  Strip redundant slashes from ///.
62601
62602 2006-07-03  Jim Meyering  <jim@meyering.net>
62603
62604         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
62605         macro is used before the first cycle_check call.
62606
62607 2006-07-03  Eric Blake  <ebb9@byu.net>
62608
62609         * modules/dirname (Depends-on): Add xstrndup.
62610
62611 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62612
62613         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
62614         test cases, so that config.log is a bit easier to follow.
62615
62616 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62617
62618         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
62619         both are 64 bits, since this seems to be the tradition, and this
62620         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
62621         we ever run into a host that prefers long long to long in this
62622         case, we'll need another configure-time test.  Problem reported by
62623         Jim Meyering.
62624
62625 2006-07-02  Eric Blake  <ebb9@byu.net>
62626
62627         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
62628
62629 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62630
62631         * modules/inttypes (Depends-on): No longer depends on stdint.
62632         * modules/stdint (Description): Say more about assumptions.
62633         Say that the fast types might differ.  Say macros are used.
62634         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
62635         (Makefile.am): Revise list of substituted symbols to match
62636         new stdint.m4.
62637         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
62638         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
62639         * tests/test-stdint.c (verify_same_types)
62640         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
62641         the code conforms to C99/C89.
62642         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
62643         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62644
62645 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62646
62647         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62648         but fix a bug, by requiring at least 64 bits.
62649         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62650         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62651         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62652         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62653
62654         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62655         changes.  Make 2.59 a prerequisite.  Check and substitute for
62656         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62657         inttypes.h.  Do not use special include files; just use the
62658         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62659         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62660         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62661         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62662         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62663         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62664         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62665         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62666         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62667         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62668         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62669         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62670         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62671         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62672         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62673         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62674         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62675         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62676         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62677         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62678         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62679         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62680         not check for things that C99 does not require, e.g., int8_t.  If
62681         a test isn't needed unless <stdint.h> isn't working, and is
62682         unlikely to be needed for any other reason, then don't do it
62683         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62684         size_t, since we assume C89 freestanding at least.  Do not check
62685         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62686         the right thing even if the types are not defined.  Instead use:
62687         (gl_STDINT_TYPE_PROPERTIES): New macro.
62688         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62689         testing whether <sys/types.h> clashes, as Autoconf does this for
62690         us now.  All uses removed.
62691         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62692         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62693         (gl_CHECK_TYPE_SAME):
62694         Remove; no longer needed.
62695         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62696         exists, since we'll return 0 anyway in that case.
62697         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62698
62699 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62700
62701         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62702         possible collision with system files.
62703         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62704         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62705         WCHAR_MIN and WCHAR_MAX in this case.
62706         (<stddef.h>): Do not include; no longer needed.
62707         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62708         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62709         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62710         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62711         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62712         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62713         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62714         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62715         !defined(__c99))]: Include in this case too, since it's harmless
62716         now.
62717         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62718         dangerous to do so.
62719         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62720         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62721         (_STDINT_MIN, _STDINT_MAX): New macros.
62722         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62723         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62724         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62725         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62726         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62727         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62728         macros, not typedefs; this simplifies things quite a bit.
62729         Use long int for all types narrower than int64_t.
62730         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62731         Define in terms of long long int or int64_t or long int,
62732         not int64_t or int32_t.  This saves some compile-time testing.
62733         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62734         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62735         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62736         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62737         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62738         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62739         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62740         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62741         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62742         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62743         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62744         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62745         undef any previous version and define our own version, for
62746         simplicity and consistency with the new macros for types.
62747         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62748         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62749         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62750         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62751         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62752         @WINT_T_SUFFIX@ to keep things simple here.
62753         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62754         Simplify by assuming typical 8/16/32/64 host, since we're
62755         already doing that elsewhere anyway.
62756         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62757         and assume long long int is 64 bits if available.  This
62758         speeds up 'configure'.
62759
62760 2006-07-01  Eric Blake  <ebb9@byu.net>
62761
62762         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62763         Reported by Andreas Buening.
62764
62765 2006-07-01  Eric Blake  <ebb9@byu.net>
62766
62767         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62768
62769 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62770
62771         * lib/getaddrinfo.c: fixed typo
62772
62773 2006-06-29  Jim Meyering  <jim@meyering.net>
62774
62775         * modules/strftime (Maintainer): Add my name, since with the
62776         FPRINTFTIME changes strftime.c has forked from glibc.
62777
62778 2006-06-29  Eric Blake  <ebb9@byu.net>
62779
62780         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62781
62782 2006-06-29  Eric Blake  <ebb9@byu.net>
62783
62784         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62785
62786 2006-06-29  Eric Blake  <ebb9@byu.net>
62787
62788         * lib/stat_.h: New file.
62789
62790 2006-06-29  Eric Blake  <ebb9@byu.net>
62791
62792         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62793         unused static function.
62794
62795 2006-06-29  Eric Blake  <ebb9@byu.net>
62796
62797         * doc/functions.texi (Function Portability): Document missing lstat
62798         on mingw.
62799
62800 2006-06-29  Eric Blake  <ebb9@byu.net>
62801
62802         * MODULES.html.sh: Add sys_stat.
62803         * modules/sys_stat: New module.
62804         * modules/mkstemp (Depends-on): Add sys_stat.
62805
62806 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62807
62808         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62809
62810 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62811
62812         * m4/c-bs-a.m4: Removed.
62813
62814 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62815
62816         * lib/strftime.c: Assume strftime() exists.
62817
62818 2006-06-29  Derek Price  <derek@ximbiot.com>
62819
62820         * modules/c-bs-a: Removed - \a is C89.
62821         * MODULES.html.sh: Remove c-bs-a.
62822
62823 2006-06-29  Bruno Haible  <bruno@clisp.org>
62824
62825         * modules/wcwidth (License): Change to LGPL.
62826
62827 2006-06-28  Simon Josefsson  <jas@extundo.com>
62828
62829         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62830         on _WIN32.
62831
62832         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62833         getnameinfo.
62834
62835 2006-06-28  Simon Josefsson  <jas@extundo.com>
62836
62837         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62838
62839 2006-06-28  Simon Josefsson  <jas@extundo.com>
62840
62841         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62842         functions there.  It will succeed on Windows XP, but on Windows
62843         2000 and (presumably) earlier, it will fail, and use the internal
62844         re-implementation.
62845         (use_win32_p): New function.
62846         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62847         Support AI_NUMERICSERV to disable getservbyname.
62848         (getnameinfo): New function, only supports
62849         NI_NUMERICHOST|NI_NUMERICSERV for now.
62850
62851         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62852         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62853         getnameinfo.
62854
62855 2006-06-28  Eric Blake  <ebb9@byu.net>
62856
62857         * modules/wcwidth: New file.
62858         * modules/mbchar (Depends-on): Add wcwidth.
62859         * modules/mbswidth (Depends-on): Add wcwidth.
62860         * MODULES.html.sh: Add wcwidth.
62861
62862 2006-06-28  Eric Blake  <ebb9@byu.net>
62863
62864         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62865         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62866
62867 2006-06-28  Eric Blake  <ebb9@byu.net>
62868
62869         * lib/xvasprintf.h: Fix comments.
62870
62871 2006-06-28  Eric Blake  <ebb9@byu.net>
62872
62873         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62874         * lib/mbswidth.c (wcwidth): Move from here...
62875         * lib/wcwidth.h: ...to this new file.
62876
62877 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62878
62879         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62880
62881         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62882         it's obsolete.
62883         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62884
62885 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62886
62887         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62888         Autoconf 2.60 says this stuff was obsolete.
62889
62890 2006-06-28  Bruno Haible  <bruno@clisp.org>
62891
62892         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62893
62894 2006-06-28  Bruno Haible  <bruno@clisp.org>
62895
62896         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62897         gt_TYPE_WCHAR_T.
62898
62899 2006-06-28  Bruno Haible  <bruno@clisp.org>
62900
62901         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62902         declaration for wcwidth.
62903         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62904
62905 2006-06-28  Bruno Haible  <bruno@clisp.org>
62906
62907         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62908         (mkdir): Define using _mkdir.
62909
62910 2006-06-28  Bruno Haible  <bruno@clisp.org>
62911
62912         * lib/getaddrinfo.h: Fix POSIX URL.
62913         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62914         _WIN32.
62915         (use_win32_p): Make static.
62916         (getaddrinfo): Reject service name if it is empty or does not consist
62917         solely of decimal digits, or if its value is > 65535.
62918         (getnameinfo): Remove useless casts.
62919
62920 2006-06-27  Simon Josefsson  <jas@extundo.com>
62921
62922         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62923         Eggert and Martin Lambers.
62924
62925 2006-06-27  Simon Josefsson  <jas@extundo.com>
62926
62927         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62928         Eggert and Martin Lambers.
62929
62930 2006-06-27  Bruno Haible  <bruno@clisp.org>
62931
62932         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62933         result to 0, not to empty.
62934         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62935
62936 2006-06-27  Bruno Haible  <bruno@clisp.org>
62937
62938         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62939
62940 2006-06-26  Simon Josefsson  <jas@extundo.com>
62941
62942         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62943         present.
62944
62945 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62946
62947         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62948         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62949         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62950
62951 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62952
62953         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62954
62955 2006-06-26  Bruno Haible  <bruno@clisp.org>
62956
62957         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62958
62959 2006-06-26  Bruno Haible  <bruno@clisp.org>
62960
62961         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62962
62963 2006-06-26  Bruno Haible  <bruno@clisp.org>
62964
62965         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62966         SGI C compiler in pre-C99 mode.
62967         Suggested by Mark D. Baushke and Larry Jones.
62968
62969 2006-06-26  Bruno Haible  <bruno@clisp.org>
62970
62971         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62972         WCHAR_MAX.
62973         Reported by Mark D. Baushke and Larry Jones.
62974
62975 2006-06-26  Bruno Haible  <bruno@clisp.org>
62976
62977         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62978         in pre-C99 mode.
62979         Suggested by Mark D. Baushke and Larry Jones.
62980
62981 2006-06-23  Simon Josefsson  <jas@extundo.com>
62982             Bruno Haible  <bruno@clisp.org>
62983
62984         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62985         Emit mostlyclean-local rule.
62986         (func_emit_tests_Makefile_am): Likewise.
62987         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62988
62989 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62990
62991         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62992
62993 2006-06-23  Bruno Haible  <bruno@clisp.org>
62994
62995         * tests/test-stdint.c: Update to match ISO C 99 Technical
62996         Corrigendum 1.
62997
62998 2006-06-23  Bruno Haible  <bruno@clisp.org>
62999
63000         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
63001
63002 2006-06-23  Bruno Haible  <bruno@clisp.org>
63003
63004         * lib/stdint_.h: Treat IRIX like OpenBSD.
63005
63006 2006-06-23  Bruno Haible  <bruno@clisp.org>
63007
63008         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
63009         ISO C 99 Technical Corrigendum 1.
63010
63011 2006-06-22  Simon Josefsson  <jas@extundo.com>
63012
63013         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
63014         MinGW.
63015
63016 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63017
63018         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
63019         needed.  Some compiler complained about some of them.  Problem reported
63020         by Larry Jones in
63021         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
63022
63023 2006-06-21  Simon Josefsson  <jas@extundo.com>
63024
63025         * tests/test-getaddrinfo.c: New file.
63026
63027         * modules/getaddrinfo-tests: New file.
63028
63029         * MODULES.html.sh: Add inet_pton.
63030
63031         * modules/inet_pton: New file.
63032
63033 2006-06-21  Simon Josefsson  <jas@extundo.com>
63034
63035         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
63036         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
63037         of using the (limited) gnulib implementation on Windows XP.
63038
63039         * m4/inet_pton.m4: New file.
63040
63041 2006-06-21  Simon Josefsson  <jas@extundo.com>
63042
63043         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
63044         variable.
63045
63046         * lib/socket_.h: Don't define WINVER.
63047
63048         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
63049         slightly modified to work in gnulib.
63050
63051 2006-06-21  Simon Josefsson  <jas@extundo.com>
63052
63053         * doc/gnulib.texi (Windows sockets): Add.
63054
63055 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63056
63057         * lib/read-file.c (fread_file): Start with buffer allocation of
63058         0 bytes rather than 1 byte; this simplifies the code.
63059         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
63060         code to free buffer and save/restore errno.
63061         (internal_read_file): Remove unused local.
63062
63063 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63064
63065         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
63066         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
63067         Problem reported by Denis Excoffier in
63068         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
63069
63070 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63071
63072         * modules/sys_socket, modules/socklen: Include sys/types since
63073         FreeBSD 4.x's sys/socket.h needs it.
63074
63075 2006-06-19  Simon Josefsson  <jas@extundo.com>
63076
63077         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
63078
63079 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63080
63081         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
63082
63083 2006-06-19  Bruno Haible  <bruno@clisp.org>
63084
63085         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
63086         and FULL_PATH_INTTYPES_H in angle brackets.
63087         Reported by Mark D. Baushke <mdb@gnu.org>.
63088
63089 2006-06-17  Eric Blake  <ebb9@byu.net>
63090
63091         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
63092         errno.
63093
63094 2006-06-17  Bruno Haible  <bruno@clisp.org>
63095
63096         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
63097         <sys/inttypes.h>.
63098
63099 2006-06-17  Bruno Haible  <bruno@clisp.org>
63100
63101         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
63102         whether errno is declared. Assume <errno.h> declares errno.
63103
63104 2006-06-17  Bruno Haible  <bruno@clisp.org>
63105
63106         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
63107
63108 2006-06-17  Bruno Haible  <bruno@clisp.org>
63109
63110         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
63111         problem on Solaris 2.5.1.
63112
63113 2006-06-16  Eric Blake  <ebb9@byu.net>
63114
63115         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
63116         * lib/unicodeio.c [!defined errno]: Likewise.
63117         * lib/strtol.c [!defined errno]: Likewise.
63118         * lib/strtod.c [!defined errno]: Likewise.
63119
63120 2006-06-15  Eric Blake  <ebb9@byu.net>
63121
63122         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
63123
63124 2006-06-15  Eric Blake  <ebb9@byu.net>
63125
63126         * config/srclist.txt (ssize_t.m4): Lose sync.
63127
63128 2006-06-15  Bruno Haible  <bruno@clisp.org>
63129
63130         * modules/stdint (Files): Include m4/full-header-path.m4,
63131         m4/size_max.m4, m4/wchar_t.m4.
63132         (Makefile.am): Many more substitutions.
63133         * modules/stdint-tests: New file.
63134         * tests/test-stdint.c: New file.
63135
63136 2006-06-15  Bruno Haible  <bruno@clisp.org>
63137
63138         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
63139         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
63140         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
63141         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
63142         gl_CHECK_TYPE_SAME): New macros.
63143
63144 2006-06-15  Bruno Haible  <bruno@clisp.org>
63145
63146         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
63147
63148 2006-06-15  Bruno Haible  <bruno@clisp.org>
63149
63150         * lib/stdint_.h: Rewritten to be fully auto-configured.
63151         Fixes bug on HP-UX/IA64.
63152
63153 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
63154
63155         * lib/getdate.y (__attribute__): Don't define if already defined.
63156         Problem reported by Larry Jones.
63157         * lib/utimens.c (__attribute__): Likewise.
63158
63159 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
63160
63161         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
63162         reported by Andreas Schwab.
63163
63164 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63165             Bruno Haible  <bruno@clisp.org>
63166
63167         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
63168         check for the declaration of strnlen and a run test that exposes the
63169         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
63170         rpl_strndup.
63171
63172 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63173             Bruno Haible  <bruno@clisp.org>
63174
63175         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
63176
63177 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63178
63179         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
63180         compile test, for Tru64 4.0D.
63181
63182 2006-05-28  Karl Berry  <karl@gnu.org>
63183
63184         * config/srclist.txt (printf-args.c): lose sync.
63185
63186 2006-05-26  Martin Lambers  <marlam@marlam.de>
63187
63188         * lib/getpass.c: Updates the test for the native W32 API, and adds
63189         missing includes, thus fixing compilation warnings.
63190
63191 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63192
63193         * lib/exclude.c (exclude_fnmatch): New function.
63194         (excluded_file_name): Call exclude_fnmatch.
63195         * lib/exclude.h (excluded_file_name): New prototype
63196
63197 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
63198
63199         * lib/tempname.c (small_open, large_open): New macros.
63200         (__open, __open64) [!_LIBC]: Remove.
63201         (__gen_tempname): Use small_open and large_open instead of __open
63202         and __open64.  This fixes a portability bug on HP-UX 11.11i
63203         reported by Simon Wing-Tang in
63204         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
63205
63206 2006-05-24  Bruno Haible  <bruno@clisp.org>
63207
63208         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
63209         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
63210         Reported by Thorsten Maerz <torte@netztorte.de> via
63211         Aaron Stone <aaron@serendipity.cx>.
63212
63213 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63214
63215         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
63216         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
63217         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
63218         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
63219         not really conditional on the cache.
63220         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
63221
63222 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63223
63224         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
63225         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
63226         (my_usleep): Don't mishandle maximum value.
63227
63228 2006-05-19  Jim Meyering  <jim@meyering.net>
63229
63230         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
63231
63232 2006-05-17  Bruno Haible  <bruno@clisp.org>
63233
63234         Cygwin portability.
63235         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
63236
63237 2006-05-17  Bruno Haible  <bruno@clisp.org>
63238
63239         * lib/stdint_.h: Fix recognition of Cygwin.
63240
63241 2006-05-15  Bruno Haible  <bruno@clisp.org>
63242
63243         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
63244         on libtool patch by Ralf Wildenhues.
63245
63246 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63247
63248         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
63249         test for C99 conformance; (bool) 0.5 is an integer constant
63250         expression, but (bool) -0.5 is not.  Problem reported by Fedor
63251         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
63252
63253 2006-05-11  Simon Josefsson  <jas@extundo.com>
63254
63255         * m4/xvasprintf.m4: Fix obvious typo.
63256
63257 2006-05-11  Jim Meyering  <jim@meyering.net>
63258
63259         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
63260         James Lemley.
63261
63262 2006-05-10  Simon Josefsson  <jas@extundo.com>
63263
63264         * lib/md4.c: Typo fix, update copyright years.
63265         (K1, K2): Don't use L because it turn computations into 64-bit on
63266         64-bit platforms.
63267
63268 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63269
63270         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
63271         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
63272         unwanted sign propagation, e.g., on hosts with 64-bit int.
63273         There still are some problems with reeelly weird theoretical hosts
63274         (e.g., 33-bit int) but it's not worth worrying about now.
63275         * lib/sha1.c (rol): Likewise.
63276         (K1, K2, K3, K4): Remove unnecessary L suffix.
63277
63278 2006-05-10  Bruno Haible  <bruno@clisp.org>
63279
63280         * lib/des.c: Cast to avoid warnings.
63281
63282 2006-05-09  Bruno Haible  <bruno@clisp.org>
63283
63284         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
63285         (Depends-on): Depend also on xsize, stdarg.
63286         (configure.ac): Add gl_XVASPRINTF.
63287
63288 2006-05-09  Bruno Haible  <bruno@clisp.org>
63289
63290         * m4/xvasprintf.m4: New file.
63291
63292 2006-05-09  Bruno Haible  <bruno@clisp.org>
63293
63294         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
63295         (EOVERFLOW): Define fallback value.
63296         (xstrcat): New function.
63297         (xvasprintf): Recognize the special case of a string concatenation.
63298
63299 2006-05-08  Eric Blake  <ebb9@byu.net>
63300
63301         * gnulib-tool (func_version): Base copyright year on CVS date.
63302         (func_emit_copyright_notice): New function.
63303         (func_emit_lib_Makefile_am): Use it.
63304         (func_emit_tests_Makefile_am): Likewise.
63305         (func_import): Likewise.
63306
63307 2006-05-08  Bruno Haible  <bruno@clisp.org>
63308
63309         * modules/stdarg: New file.
63310         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
63311
63312 2006-05-08  Bruno Haible  <bruno@clisp.org>
63313
63314         * m4/stdarg.m4: New file, from GNU gettext.
63315
63316 2006-05-08  Bruno Haible  <bruno@clisp.org>
63317
63318         * config/srclist.txt (build-aux/config.rpath): different from latest
63319         release.
63320
63321 2006-05-08  Bruno Haible  <bruno@clisp.org>
63322
63323         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
63324
63325 2006-05-05  Jim Meyering  <jim@meyering.net>
63326
63327         * m4/warning.m4: New file, derived from bison's file by the same name.
63328
63329 2006-05-03  Bruno Haible  <bruno@clisp.org>
63330
63331         * lib/stdint_.h: Shorter URL.
63332         * lib/inttypes.h: Likewise.
63333
63334 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63335
63336         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
63337
63338 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63339
63340         * lib/verify.h: Document the internals better.  Most of this change
63341         was written by Bruno Haible.
63342
63343 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63344
63345         * doc/verify.texi: New file, partly based on a proposal by
63346         Bruno Haible.
63347
63348 2006-05-02  Bruno Haible  <bruno@clisp.org>
63349
63350         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
63351         test from here...
63352         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
63353
63354 2006-04-29  Bruno Haible  <bruno@clisp.org>
63355
63356         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
63357         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
63358
63359 2006-04-29  Bruno Haible  <bruno@clisp.org>
63360
63361         * gnulib-tool: Make --update option actually work.
63362
63363 2006-04-29  Bruno Haible  <bruno@clisp.org>
63364
63365         * doc/gcd.texi: New file.
63366         * doc/gnulib.texi: Include it.
63367
63368 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
63369
63370         * lib/getdate.y (get_date): When adding relative date, start with the
63371         initial time, not with the result of the first mktime call.
63372
63373 2006-04-25  Bruno Haible  <bruno@clisp.org>
63374
63375         * gnulib-tool (func_import): Output the include directives in three
63376         blocks, sorted separately.
63377         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63378
63379 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63380
63381         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
63382         to define main with arguments, for C++.  Reported by Eric Blake.
63383         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
63384         Prefer 'int main ()' to 'int main (void)', for C++.
63385         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63386         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
63387         for 'main', for C99 and C++.
63388
63389 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63390
63391         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
63392         Don't assume that exit status -1 is valid.
63393         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63394         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63395         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
63396         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
63397         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
63398         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
63399         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
63400         functions can be used without declaring them, or that you can
63401         exit with status -1.
63402         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
63403
63404 2006-04-24  Karl Berry  <karl@gnu.org>
63405
63406         * config/srclist.txt (longdouble.m4): sync lost.
63407
63408 2006-04-24  Eric Blake  <ebb9@byu.net>
63409
63410         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
63411
63412 2006-04-24  Bruno Haible  <bruno@clisp.org>
63413
63414         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
63415         poll() implementation in AIX.
63416         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63417
63418 2006-04-24  Bruno Haible  <bruno@clisp.org>
63419
63420         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
63421         assigned exactly once.
63422
63423 2006-04-23  Claudio Fontana  <claudio@gnu.org>
63424             Bruno Haible  <bruno@clisp.org>
63425
63426         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
63427         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
63428         for AM_CPPFLAGS.
63429
63430 2006-04-23  Bruno Haible  <bruno@clisp.org>
63431
63432         * modules/copy-file: Depend on unistd.
63433         * modules/execute: Likewise.
63434         * modules/fatal-signal: Likewise.
63435         * modules/findprog: Likewise.
63436         * modules/mkdtemp : Likewise.
63437         * modules/pipe: Likewise.
63438         * modules/wait-process: Likewise.
63439
63440 2006-04-23  Bruno Haible  <bruno@clisp.org>
63441
63442         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
63443         condition was already detected.
63444         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63445
63446 2006-04-23  Bruno Haible  <bruno@clisp.org>
63447
63448         * lib/copy-file.c: Include <unistd.h> unconditionally.
63449         * lib/execute.c: Likewise.
63450         * lib/fatal-signal.c: Likewise.
63451         * lib/findprog.c: Likewise.
63452         * lib/mkdtemp.c: Likewise.
63453         * lib/pipe.h: Likewise.
63454         * lib/pipe.c: Likewise.
63455         * lib/wait-process.h: Likewise.
63456
63457 2006-04-23  Bruno Haible  <bruno@clisp.org>
63458
63459         * gnulib-tool (func_usage): Fix --import description. Document
63460         --update.
63461         (func_import): Create temporary file in a temporary directory, if
63462         --dry-run is specified. Silence errors from 'grep' when there are no
63463         m4 files in $m4dir.
63464         (func_create_testdir): Silence errors from 'grep' when there are no
63465         m4 files in $m4dir.
63466         Reported by Karl Berry <karl@freefriends.org>.
63467
63468 2006-04-20  Bruno Haible  <bruno@clisp.org>
63469
63470         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
63471         one argument, so that the code will be portable to Autoconf 2.60.
63472         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
63473         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63474         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
63475
63476 2006-04-19  Derek Price  <derek@ximbiot.com>
63477             Eric Blake  <ebb9@byu.net>
63478
63479         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
63480         rather than "/full/path.h".  Update comment to match.  Shorten &
63481         generalize m4_translit call via AS_TR_CPP.
63482
63483 2006-04-19  Derek Price  <derek@ximbiot.com>
63484             Eric Blake  <ebb9@byu.net>
63485
63486         * lib/inttypes.h: Correct grammar in comment.
63487
63488 2006-04-18  Derek Price  <derek@ximbiot.com>
63489             Paul Eggert  <eggert@cs.ucla.edu>
63490
63491         * modules/inttypes: New file.
63492         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
63493
63494 2006-04-18  Derek Price  <derek@ximbiot.com>
63495             Paul Eggert  <eggert@cs.ucla.edu>
63496
63497         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
63498         New files.
63499
63500 2006-04-18  Derek Price  <derek@ximbiot.com>
63501             Paul Eggert  <eggert@cs.ucla.edu>
63502
63503         * lib/inttypes.h: New file.
63504         * lib/strtoimax.c: Assume <inttypes.h>.
63505
63506 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
63507
63508         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
63509         isn't mounted.  Problem reported by Kir Kolyshkin.
63510
63511 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63512
63513         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
63514         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
63515         Derek R. Price.
63516         * lib/regex.h (RE_DUP_MAX): Update comment to match current
63517         implementation.
63518
63519 2006-04-12  Eric Blake  <ebb9@byu.net>
63520
63521         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
63522         is now done automatically by the corresponding Autoconf macro.
63523
63524 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
63525
63526         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
63527         time_r.h.
63528
63529 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63530
63531         Merge regex changes from libc, removing some of our
63532         POSIX-conformance changes that were rejected and redoing them in a
63533         less-intrusive way.
63534
63535         * lib/regcomp.c (re_compile_internal, init_dfa):
63536         Length arg is now size_t, not Idx.  All uses changed.
63537         (peek_token): Forward decl now says internal_function.
63538         (__re_error_msgid, __re_error_msgid_idx):
63539         Now static rather than extern with attribute_hidden.
63540         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
63541         For some reason libc prefers K&R style defns for external functions.
63542         (regerror) [!defined _LIBC]: Likewise.
63543         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
63544         (seek_collating_symbol_entry, lookup_collation_sequence_value):
63545         (build_range_exp, build_collating_symbol):
63546         Use K&R-style defn.
63547         (re_compile_fastmap): Use '\0' to memset, not 0.
63548         (utf8_sb_map): Make the calculations more obvious.
63549         (init_dfa, parse_bracket_exp, build_charclass_op):
63550         Call calloc and cast result, as glibc does.
63551         (init_word_char, fetch_token, peek_token, peek_token_bracket):
63552         (build_range_exp, build_collating_symbol):
63553         Now internal functions.
63554
63555         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
63556
63557         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
63558         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
63559         Don't depend on VMS; depend on __VMS instead, for POSIX
63560         namespace cleanness.
63561         (regoff_t): Define to ssize_t, not long int.
63562
63563         Remove the REG_ macros named below.  Instead, make the old names
63564         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
63565         __USE_GNU_REGEX.
63566         (REG_BACKSLASH_ESCAPE_IN_LISTS):
63567         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
63568         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
63569         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
63570         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
63571         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
63572         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
63573         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
63574         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
63575         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
63576         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
63577         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
63578         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
63579         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
63580         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
63581         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
63582         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
63583         (REG_NREGS):
63584         Remove.  All uses replaced by the old RE_* names.
63585         (RE_BACKSLASH_ESCAPE_IN_LISTS):
63586         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
63587         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
63588         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
63589         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
63590         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
63591         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
63592         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
63593         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
63594         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
63595         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
63596         Don't bother having these macros be independent of each others'
63597         values, since they no longer exist in the POSIX name space.
63598
63599         Rename the following member names back to their old names,
63600         unless !__USE_GNU_REGEX.  All uses changed back.
63601         (buffer): Renamed from re_buffer.
63602         (allocated): Renamed from re_allocated.
63603         (used): Renamed from re_used.
63604         (syntax): Renamed from re_syntax.
63605         (fastmap): Renamed from re_fastmap.
63606         (translate): Renamed from re_translate.
63607         (can_be_null): Renamed from re_can_be_null.
63608         (regs_allocated): Renamed from re_regs_allocated.
63609         (fastmap_accurate): Renamed from re_fastmap_accurate.
63610         (no_sub): Renamed from re_no_sub.
63611         (not_bol): Renamed from re_not_bol.
63612         (not_eol): Renamed from re_not_eol.
63613         (newline_anchor): Renamed from re_newline_anchor.
63614         (num_regs): Renamed from rm_num_regs.
63615         (start): Renamed from rm_start.
63616         (end): Renamed from rm_end.
63617
63618         (free_state): Move up a bit.
63619
63620         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
63621         #define to be empty.
63622         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
63623         when that is what is intended.
63624         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
63625         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
63626         (MAX): New macro.
63627         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
63628         All uses changed back to re_malloc, etc.  It's now the caller's
63629         responsibility to check for overflow; all callers changed.
63630         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
63631         (re_x2nrealloc): Remove.
63632         (free_state): Remove decl.
63633
63634         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
63635         (re_set_registers, re_exec):
63636         Use K&R-style defn.
63637
63638         2006-01-31  Roland McGrath  <roland@redhat.com>
63639
63640         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
63641         Reported by Mike Frysinger <vapier@gentoo.org>.
63642
63643         2006-01-15  Andreas Jaeger  <aj@suse.de>
63644
63645         [BZ #1950]
63646         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63647         build_wcs_upper_buffer change.
63648         (build_wcs_upper_buffer): Change return type.
63649
63650         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63651
63652         * lib/regex_internal.h: Include <stdint.h> if available.
63653
63654         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63655
63656         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63657
63658         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63659
63660         * lib/regcomp.c: Adjust for changed secondary hash function.
63661
63662         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63663
63664         * lib/regex.h: Pretty printing.
63665         Clean up namespace a bit.
63666
63667         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63668
63669         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63670         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63671
63672         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63673                     Ulrich Drepper  <drepper@redhat.com>
63674
63675         [BZ #1302]
63676         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63677         changed.
63678         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63679
63680         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63681
63682         [BZ #281]
63683         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63684         * lib/regcomp.c: Remove unnecessary uses of
63685         unsigned RE_TRANSLATE_TYPE.
63686         * lib/regex_internal.h: Likewise.
63687         * lib/regex_internal.c: Likewise.
63688         * lib/regexec.c: Likewise.
63689         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63690
63691         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63692
63693         * lib/regexec.c (find_recover_state): Remove unnecessary
63694         initialization.
63695         (transit_state_bkref): Make DFA a const pointer.
63696         (get_subexp): Likewise.
63697         (check_arrival): Likewise.
63698         (update_cur_sifted_state): Likewise.
63699         (re_search_internal): Likewise.
63700         (prune_impossible_nodes): Likewise.
63701         (acquire_init_state_context): Likewise.
63702         (proceed_next_node): Likewise.
63703         (set_regs): Likewise.
63704         (free_fail_stack_return): Likewise.
63705         (check_arrival_expand_ecl): Mark DFA parameter as const.
63706         (check_arrival_expand_ecl_sub): Likewise.
63707         (check_subexp_limits): Likewise.
63708         (sub_epsilon_src_nodes):  Likewise.
63709         (add_epsilon_src_nodes):  Likewise.
63710         (merge_state_array): Likewise.
63711         (update_regs): Likewise.
63712         (build_trtable): Likewise.
63713         (sift_states_backward): Mark MCTX parameter as const.
63714         (build_sifted_states): Likewise.
63715         (update_cur_sifted_state): Likewise.
63716         (sift_states_mkref): Likewise.
63717         (check_arrival_expand_ecl): Mark eclosure as const.
63718         (check_dst_limits_calc_pos_1): Likewise.
63719         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63720         pointer.
63721
63722         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63723
63724         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63725         (transit_state_sb): Likewise.
63726         (transit_state_mb): Likewise.
63727         (sift_states_iter_mb): Likewise.
63728         (check_arrival_add_next_nodes): Likewise.
63729         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63730         [_LIBC] (re_search_2_stub): Use mempcpy.
63731
63732         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63733         mbrtowc for very simple UTF-8 case.
63734
63735         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63736         a pointer-to-const.
63737         (re_acquire_state_context): Likewise.
63738         * lib/regex_internal.h: Adjust prototypes.
63739
63740         * lib/regex.c: Prevent using C++ compilers.
63741
63742         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63743         (re_acquire_state_context): Likewise.
63744
63745 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63746
63747         * modules/regex (Depends-on): Add ssize_t.
63748
63749 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63750
63751         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63752         translation table.
63753
63754 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63755
63756         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63757
63758 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63759             Bruno Haible  <bruno@clisp.org>
63760
63761         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63762         <sys/types.h> and <inttypes.h>.
63763
63764 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63765
63766         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63767         `__error_t_defined', so argp.h will not typedef the former.
63768
63769 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63770
63771         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63772         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63773         glibc names.  Even if glibc is changed to conform to POSIX, the
63774         traditional names will be available anyway, since regex depends on
63775         the extensions module.  Also, fix a longstanding typo in the
63776         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63777         reported by Emanuele Giaquinta.  Also, change sense of cached
63778         variable, so that the message makes sense.
63779
63780 2006-03-24  Simon Josefsson  <jas@extundo.com>
63781
63782         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63783         including some doc fixes.
63784         (base64_encode_alloc): Fix +1 bug on allocation failures.
63785
63786 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63787
63788         * lib/base64.c (base64_encode): Do not read past end of array with
63789         unsanitized input on systems with CHAR_BIT > 8.
63790
63791 2006-03-24  Eric Blake  <ebb9@byu.net>
63792
63793         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63794
63795 2006-03-22  Karl Berry  <karl@gnu.org>
63796
63797         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63798         * config/srclistvars.sh (COREUTILS): new var.
63799
63800 2006-03-17  Jim Meyering  <jim@meyering.net>
63801
63802         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63803         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63804
63805 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63806
63807         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63808         no longer needs it.  Instead, check that regoff_t is as least
63809         as wide as ptrdiff_t.
63810
63811         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63812         so that our regex.h stays compatible with the installed regex.
63813         This is helpful for installers who configure --without-included-regex.
63814         Problem reported by Emanuele Giaquinta.
63815
63816 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63817
63818         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63819         Typedef to long int, not to off_, as POSIX will likely change
63820         in that direction.
63821
63822 2006-03-15  Eric Blake  <ebb9@byu.net>
63823
63824         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63825
63826 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63827
63828         * lib/argp-help.c (validate_uparams): Fix typo
63829         * lib/argp-parse.c (argp_default_options): Consistently begin help
63830         messages with a lowercase letter.
63831
63832 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63833
63834         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63835         overrun buffers and shouldn't be used (much as gets shouldn't be
63836         used).
63837         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63838
63839 2006-03-08  Simon Josefsson  <jas@extundo.com>
63840
63841         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63842         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63843
63844 2006-03-08  Simon Josefsson  <jas@extundo.com>
63845
63846         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63847         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63848
63849 2006-03-08  Simon Josefsson  <jas@extundo.com>
63850
63851         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63852         signal that configure disabled the device.
63853
63854 2006-03-08  Simon Josefsson  <jas@extundo.com>
63855
63856         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63857         languages.
63858
63859 2006-03-07  Simon Josefsson  <jas@extundo.com>
63860
63861         * modules/getopt (Depends-on): Add unistd.
63862
63863         * modules/unistd: New file.
63864
63865 2006-03-07  Simon Josefsson  <jas@extundo.com>
63866
63867         * modules/gc-random: New file.
63868
63869 2006-03-07  Simon Josefsson  <jas@extundo.com>
63870
63871         * m4/unistd_h.m4: New file.
63872
63873 2006-03-07  Simon Josefsson  <jas@extundo.com>
63874
63875         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63876         test to be side-effect free by storing the result in the cache
63877         variable gl_cv_lib_readline, and moving the assignment of
63878         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63879         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63880
63881 2006-03-07  Simon Josefsson  <jas@extundo.com>
63882
63883         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63884         error on missing devices (the functions will return an error).
63885
63886         * m4/gc.m4: Move random stuff to gc-random.m4
63887
63888 2006-03-07  Simon Josefsson  <jas@extundo.com>
63889
63890         * lib/unistd_.h: New file.
63891
63892 2006-03-07  Simon Josefsson  <jas@extundo.com>
63893
63894         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63895
63896 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63897
63898         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63899         Problem reported by Juan Manuel Guerrero.
63900
63901 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63902
63903         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63904         the unistd module.
63905         * lib/getlogin_r.c: Likewise.
63906         * lib/getlogin_r.h: Likewise.
63907         * lib/glob.c: Likewise.
63908         * lib/pagealign_alloc.c: Likewise.
63909         * lib/unistd_.h: Remove; no longer needed.
63910
63911 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63912
63913         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63914         Add unistd.
63915         * modules/c-stack (Depends-on): Add unistd.
63916         * modules/getlogin_r: Likewise.
63917         * modules/glob: Likewise.
63918         * modules/pagealign_alloc: Likewise.
63919         * modules/unistd (Files): Remove lib/unistd_.h.
63920         (EXTRA_DIST): Remove.
63921         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63922         need unistd_.h.
63923         (MOSTLYCLEANFILES): Remove unistd.h-t.
63924
63925 2006-03-03  Simon Josefsson  <jas@extundo.com>
63926
63927         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63928
63929 2006-03-03  Simon Josefsson  <jas@extundo.com>
63930
63931         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63932         libidn and bison.
63933
63934 2006-03-03  Simon Josefsson  <jas@extundo.com>
63935
63936         * build-aux/maint.mk: Add indent target.
63937
63938 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63939
63940         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63941         our replacement poll.h in any case, to avoid a differing
63942         declaration from a system header.  Seen on AIX.
63943
63944 2006-03-01  Simon Josefsson  <jas@extundo.com>
63945
63946         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63947         <kasal@ucw.cz>.
63948
63949 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63950
63951         * modules/gettime (Depends-on): Add extensions module.
63952         * modules/nanosleep (Depends-on): Likewise.
63953         * modules/settime (Depends-on): Likewise.
63954
63955 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63956
63957         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63958         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63959         pedantically.
63960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63961         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63962
63963         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63964         not "==".  Reported by Ralf Wildenhues.
63965
63966 2006-03-01  Karl Berry  <karl@gnu.org>
63967
63968         * doc/Copyright/request-*: new files, synced from gnuorg.
63969
63970 2006-03-01  Karl Berry  <karl@gnu.org>
63971
63972         * config/srclist.txt (Copyright/*): new entries.
63973
63974 2006-02-28  Simon Josefsson  <jas@extundo.com>
63975
63976         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63977
63978 2006-02-27  Simon Josefsson  <jas@extundo.com>
63979
63980         * lib/base64.h: Indent #define's.  From Jim Meyering
63981         <jim@meyering.net>.
63982
63983 2006-02-27  Jim Meyering  <jim@meyering.net>
63984
63985         Revert the change of 2006-02-24, so these files can continue
63986         to be sync'd from gettext.
63987         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63988         of `config.h'.
63989
63990 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63991
63992         * modules/intprops: New file.
63993         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63994         Add intprops.
63995         * modules/getloadavg (Files): Remove lib/intprops.h.
63996         (Depends-on): Add intprops.
63997         * modules/human: Likewise.
63998         * modules/inttostr: Likewise.
63999         * modules/openat: Likewise.
64000         * modules/sig2str: Likewise.
64001         * modules/userspec: Likewise.
64002         * modules/utimecmp: Likewise.
64003         * modules/xnanosleep: Likewise.
64004         * modules/xstrtol: Likewise.
64005
64006 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
64007
64008         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
64009         * modules/lock-tests (TESTS): Use $(EXEEXT).
64010         * modules/tls-tests: Likewise.
64011         * modules/argp-tests: Likewise.
64012         (check_PROGRAMS): New var, replacing...
64013         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
64014
64015 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64016
64017         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
64018         `config.h'.
64019
64020 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64021
64022         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
64023
64024 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64025
64026         Sync from coreutils.
64027         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
64028         gl_CHDIR_SAFER.
64029
64030 2006-02-22  Jim Meyering  <jim@meyering.net>
64031
64032         Sync from coreutils.
64033         * m4/chdir-safer.m4: New file.
64034
64035 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64036
64037         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
64038         AT_FDCWD exceeds INT_MAX.
64039         * lib/openat.h (AT_FDCWD): Likewise.
64040
64041 2006-02-17  Eric Blake  <address@hidden>
64042
64043         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
64044
64045 2006-02-16  Simon Josefsson  <jas@extundo.com>
64046
64047         * modules/getaddrinfo (Depends-on): Add sys_socket.
64048
64049 2006-02-15  Simon Josefsson  <jas@extundo.com>
64050
64051         * build-aux/maint.mk: Add dsyntax-check rule.
64052
64053 2006-02-15  Eric Blake  <ebb9@byu.net>
64054
64055         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
64056         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
64057         'present but cannot compile' warnings on cygwin.
64058         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
64059         use ws2tcpip.h if sys/socket.h works.
64060         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
64061         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
64062
64063 2006-02-14  Simon Josefsson  <jas@extundo.com>
64064
64065         * modules/maintainer-makefile (Files): Rename.
64066
64067         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
64068         and (the local) Makefile.cfg to maint-cfg.mk.
64069
64070         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
64071         to the latter.
64072
64073         * modules/maintainer-makefile: New module.
64074
64075         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
64076         severaly stripped to make it possible to build it up from scratch
64077         with reliable tests.
64078
64079         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
64080         fixes to permit overriding the default actions when configure and
64081         makefile are not available.
64082
64083 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64084
64085         Sync from coreutils.
64086         * modules/lstat (Depends-on): Don't depend on xalloc.
64087         (License): Change from GPL to LGPL, since this is now simply a
64088         replacement for a libc function.
64089
64090 2006-02-14  Jim Meyering  <jim@meyering.net>
64091
64092         Sync from coreutils.
64093
64094         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
64095         failure on deficient systems, and simplify gnulib lgpl dependencies.
64096         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
64097         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
64098
64099         * lib/xalloc-die.c: Remove unused definition of N_.
64100
64101 2006-02-14  Jim Meyering  <jim@meyering.net>
64102
64103         Sync from coreutils.
64104         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
64105         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
64106         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
64107         double-quote uses of that variable, to accommodate the rare case in
64108         which getmntent is available in none of the libraries checked.  This
64109         happens at least on FreeBSD 5.0.
64110
64111 2006-02-13  Simon Josefsson  <jas@extundo.com>
64112
64113         * gnulib-tool (Usage): Fix --import, from
64114         karl@freefriends.org (Karl Berry).
64115
64116 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64117
64118         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
64119
64120 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
64121
64122         * lib/argp-namefrob.h: Restore changes accidentally lost during the
64123         "autoupdate" on 2005-12-12.
64124
64125 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64126
64127         * modules/closeout (Depends-on): Remove atexit.
64128
64129 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64130
64131         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
64132         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
64133
64134 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64135
64136         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
64137         __EXTENSIONS__ if this causes compilation to fail.  Problem
64138         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
64139         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
64140
64141 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
64142
64143         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
64144         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
64145         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
64146         All uses changed.
64147
64148 2006-01-26  Simon Josefsson  <jas@extundo.com>
64149
64150         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
64151         prototype is visible on mingw32.
64152
64153         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
64154         for mingw32.
64155
64156         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
64157         mingw32).
64158
64159 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64160
64161         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
64162         attempt to open for write; this always fails, at least on POSIX
64163         hosts.  This reinstates the 2006-01-09 change, which was
64164         inadvertently removed.
64165
64166 2006-01-26  Bruno Haible  <bruno@clisp.org>
64167
64168         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
64169         Reported by Paul Eggert.
64170
64171 2006-01-26  Bruno Haible  <bruno@clisp.org>
64172             Paul Eggert  <eggert@cs.ucla.edu>
64173
64174         * lib/stdbool_.h (_Bool)
64175         [(! (defined __cplusplus || defined __BEOS__)
64176           && !defined __GNUC__
64177           && !(defined __HP_cc || defined __xlc__
64178                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
64179                || defined __sgi))]:
64180         #define to signed char in these cases too; this simplifies
64181         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
64182         etc., separately) and makes it more conservative.
64183
64184 2006-01-25  Simon Josefsson  <jas@extundo.com>
64185
64186         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
64187         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
64188         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
64189
64190 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64191
64192         * lib/argp-namefrob.h: Bugfix. Remove stray #
64193
64194 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
64195
64196         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
64197         so that we test the test.
64198         Check for yet another HP-UX cc bug involving *bool |= bool.
64199
64200 2006-01-25  Karl Berry  <karl@gnu.org>
64201
64202         * config/srclist.txt (vasnprintf.c): sync lost.
64203
64204 2006-01-25  Jim Meyering  <jim@meyering.net>
64205
64206         Sync from the stable (b5) branch of coreutils:
64207
64208         * lib/fts.c (fts_children): Don't let close() clobber errno from
64209         failed fchdir().
64210
64211         * lib/fts.c (fts_stat): When following a symlink-to-directory,
64212         don't necessarily interpret stat-fails+lstat-succeeds as indicating
64213         a dangling symlink.  That can also happen at least for ELOOP.
64214         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
64215         FYI, this bug predates the inclusion of fts.c in coreutils.
64216
64217         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
64218         in their own block, so pre-c99 compilers don't object.
64219
64220         Avoid the double-free (first in fts_read, second in fts_close) that
64221         would occur when an `active' directory is made inaccessible (e.g.,
64222         via chmod a-x) during a traversal.
64223         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64224         before returning.  Reproduce this failure by
64225         mkdir -p a/b; cd a; chmod a-x . b
64226         Reported by Stavros Passas.
64227
64228 2006-01-25  Jim Meyering  <jim@meyering.net>
64229
64230         * lib/fileblocks.c: Remove more useless parentheses.
64231         * lib/readutmp.h: Likewise.
64232
64233 2006-01-25  Bruno Haible  <bruno@clisp.org>
64234
64235         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
64236         warnings.
64237         Reported by Paul Eggert.
64238
64239 2006-01-25  Bruno Haible  <bruno@clisp.org>
64240
64241         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
64242         rid of a trap command. For Solaris sh.
64243         Reported by Mark D. Baushke <mdb@gnu.org>.
64244
64245 2006-01-24  Simon Josefsson  <jas@extundo.com>
64246
64247         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
64248         Bruno.
64249
64250 2006-01-24  Karl Berry  <karl@gnu.org>
64251
64252         * config/srclist.txt (argp-namefrob.h): sync lost.
64253
64254 2006-01-24  Jim Meyering  <jim@meyering.net>
64255
64256         * modules/openat (Files): Add lib/intprops.h.
64257         From Mark D. Baushke.
64258
64259 2006-01-24  Jim Meyering  <jim@meyering.net>
64260
64261         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
64262         Reported by Mark D. Baushke.
64263
64264 2006-01-24  Jim Meyering  <jim@meyering.net>
64265
64266         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
64267
64268 2006-01-24  Bruno Haible  <bruno@clisp.org>
64269
64270         * modules/strnlen (Maintainer): Change from glibc to all.
64271
64272 2006-01-24  Bruno Haible  <bruno@clisp.org>
64273
64274         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
64275         Patch by Paul Eggert.
64276
64277 2006-01-24  Bruno Haible  <bruno@clisp.org>
64278
64279         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
64280         already has it.
64281         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
64282         2005-11-26.
64283
64284         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
64285         'signed char' to avoid problems with the built-in _Bool type.
64286         Reported by Paul Eggert on 2005-11-26.
64287
64288 2006-01-24  Bruno Haible  <bruno@clisp.org>
64289
64290         * gnulib-tool (func_import): Avoid constructing complicated sed
64291         expressions inside backquote.
64292         Report and solution by Mark D. Baushke <mdb@gnu.org>.
64293
64294 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
64295
64296         These changes imported from libc.
64297         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
64298         test and two separate function calls.
64299         * lib/strndup.c (__strndup): Add libc_hidden_def.
64300
64301 2006-01-23  Simon Josefsson  <jas@extundo.com>
64302
64303         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
64304         Remove the test_*_SOURCES variable: automake infers it by default.
64305         * modules/tls-tests: Likewise.
64306
64307 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64308
64309         Work around porting bugs reported by Dieter in
64310         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
64311         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
64312         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
64313         Include "getopt.h" first, to check interface.
64314         (getenv): Declare only if defined HAVE_DECL_GETENV &&
64315         !HAVE_DECL_GETENV.
64316         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
64317         (__strndup): Revert to K&R-style function dfns, the glibc style.
64318         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
64319         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
64320         Include strnlen.h first, to get prototype properly.
64321         (strnlen): Renamed from __strnlen.
64322         Remove weak alias.
64323
64324 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64325
64326         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
64327
64328 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64329
64330         * config/srclist.txt: Adjust to reflect glibc reorganization.
64331         This affects only comments.
64332
64333 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64334
64335          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
64336          Reported by Bruce Korb <bkorb@gnu.org>.
64337
64338 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64339
64340         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
64341         to pacify gcc -Wswitch-default.
64342
64343 2006-01-22  Bruno Haible  <bruno@clisp.org>
64344
64345         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
64346         temporary buffer for sprintf, take into account the precision also
64347         for 'd', 'i', 'u', 'o', 'x', 'X'.
64348
64349 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64350
64351         * modules/argp-tests: New module
64352         * tests/test-argp.c: New file
64353         * tests/test-argp-2.sh: New file
64354
64355 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64356
64357         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
64358         (__argp_base_name): Removed
64359         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
64360         typo.
64361         (__argp_base_name): Provide macro definition or extern declaration
64362         depending on the configuration
64363
64364 2006-01-20  Simon Josefsson  <jas@extundo.com>
64365
64366         * modules/inet_ntop (Depends-on): Depend on sys_socket.
64367
64368 2006-01-20  Simon Josefsson  <jas@extundo.com>
64369
64370         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
64371
64372 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64373
64374         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
64375         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
64376         Suggested by Bruno Haible.
64377
64378 2006-01-20  Karl Berry  <karl@gnu.org>
64379
64380         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
64381         until changes propagate, I guess.
64382
64383 2006-01-19  Simon Josefsson  <jas@extundo.com>
64384
64385         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
64386
64387 2006-01-19  Simon Josefsson  <jas@extundo.com>
64388
64389         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
64390
64391 2006-01-19  Simon Josefsson  <jas@extundo.com>
64392
64393         * gnulib-tool: Set check_PROGRAMS.
64394
64395         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64396         modules/des-tests, modules/gc-arcfour-tests,
64397         modules/gc-arctwo-tests, modules/gc-des-tests,
64398         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64399         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64400         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64401         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64402         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64403         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
64404         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
64405         test_*_SOURCES.
64406
64407 2006-01-18  Simon Josefsson  <jas@extundo.com>
64408
64409         * modules/socklen (Depends-on): Depend on sys_socket.
64410
64411 2006-01-18  Simon Josefsson  <jas@extundo.com>
64412
64413         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64414         modules/des-tests, modules/gc-arcfour-tests,
64415         modules/gc-arctwo-tests, modules/gc-des-tests,
64416         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64417         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64418         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64419         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64420         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64421         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
64422         $(EXEEXT) to automake TESTS variable, for mingw32.
64423
64424 2006-01-17  Simon Josefsson  <jas@extundo.com>
64425
64426         * modules/socklen (Include): Need sys/socket.h.
64427
64428 2006-01-17  Bruno Haible  <bruno@clisp.org>
64429
64430         * modules/ssize_t (Include): Add <sys/types.h>.
64431
64432 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
64433
64434         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
64435         it's not portable and it doesn't work with cross-compiles.
64436         Problem reported by Bruno Haible.  Fix missing-$ typo in
64437         'test "gl_cv_ignore_unused_libraries" ...' that prevented
64438         -zignore from being used with Sun's C compiler.
64439
64440 2006-01-12  Simon Josefsson  <jas@extundo.com>
64441
64442         * lib/base64.c: Fix warning, reported by Bruno Haible
64443         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
64444
64445 2006-01-12  Bruno Haible  <bruno@clisp.org>
64446
64447         * modules/ldd: New file.
64448         * build-aux/ldd.sh.in: New file.
64449         * MODULES.html.sh (Support for building libraries and executables): Add
64450         ldd.
64451
64452 2006-01-12  Bruno Haible  <bruno@clisp.org>
64453
64454         * m4/ldd.m4: New file.
64455
64456 2006-01-12  Bruno Haible  <bruno@clisp.org>
64457
64458         * gnulib-tool (func_import, func_create_testdir): Don't go into an
64459         endless loop while replacing $auxdir with build-aux.
64460
64461 2006-01-11  Simon Josefsson  <jas@extundo.com>
64462
64463         * lib/stdint_.h (SIZE_MAX): Add missing (.
64464
64465 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
64466
64467         Sync from coreutils.
64468         * lib/md5.c: Fix commentary typos.
64469         (alignof, UNALIGNED_P): No need for a GCC-specific version.
64470         * lib/md5.h (__attribute__): Remove; unused.
64471         * lib/sha1.c: Fix commentary to match md5 better.
64472         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
64473         so that we don't need to worry about alignment.  All uses changed.
64474         This merges the 2005-10-28 md5 change into sha1.
64475
64476 2006-01-11  Jim Meyering  <jim@meyering.net>
64477
64478         Sync from coreutils.
64479         * lib/md5.c (OP): Fix spacing.
64480
64481 2006-01-11  Bruno Haible  <bruno@clisp.org>
64482
64483         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64484         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
64485         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
64486
64487 2006-01-11  Bruno Haible  <bruno@clisp.org>
64488
64489         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64490         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
64491         the "early" section as well.
64492
64493 2006-01-11  Bruno Haible  <bruno@clisp.org>
64494
64495         Avoid "ar: no archive members specified" error on MacOS X.
64496         * gnulib-tool (func_modules_add_dummy): New function.
64497         (func_import, func_create_testdir): Invoke it.
64498
64499 2006-01-11  Bruno Haible  <bruno@clisp.org>
64500
64501         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
64502         with $auxdir in AC_CONFIG_FILES statements.
64503
64504 2006-01-11  Bruno Haible  <bruno@clisp.org>
64505
64506         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64507         Initialize also noinst_HEADERS to empty.
64508
64509 2006-01-11  Bruno Haible  <bruno@clisp.org>
64510
64511         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
64512         variables.
64513         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
64514         autoreconf.
64515
64516 2006-01-11  Bruno Haible  <bruno@clisp.org>
64517
64518         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
64519         overridable by the user.
64520         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64521
64522 2006-01-10  Simon Josefsson  <jas@extundo.com>
64523
64524         * modules/sys_socket: New file.
64525
64526 2006-01-10  Simon Josefsson  <jas@extundo.com>
64527
64528         * m4/sys_socket_h.m4: New file.
64529
64530 2006-01-10  Simon Josefsson  <jas@extundo.com>
64531
64532         * lib/socket_.h: New file.
64533
64534 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64535
64536         * modules/readutmp (Maintainer): Add myself.
64537
64538 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64539
64540         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
64541         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
64542         People who are still concerned with buggy memcmp implementations
64543         can invoke gl_FUNC_MEMCMP themselves.
64544
64545 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64546
64547         * lib/regex_internal.h (BITSET_WORD_BITS):
64548         Work around a bug in 64-bit PGC (before version 6.1-2), where the
64549         preprocessor mishandles large unsigned values as if they were signed.
64550         Problem reported by Claudio Fontana in
64551         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
64552
64553 2006-01-10  Jim Meyering  <jim@meyering.net>
64554
64555         Avoid the double-free (first in fts_read, second in fts_close) that
64556         would occur when an `active' directory is made inaccessible (e.g.,
64557         via chmod a-x) during a traversal.
64558         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64559         before returning.  Reproduce this failure by
64560         mkdir -p a/b; cd a; chmod a-x . b
64561         Reported by Stavros Passas.
64562
64563         Sync from coreutils.
64564         * lib/sha1.c: Tweak grammar in a comment.
64565
64566 2006-01-10  Jim Meyering  <jim@meyering.net>
64567
64568         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
64569         Patch by Joerg Sonnenberger.
64570
64571 2006-01-10  Bruno Haible  <bruno@clisp.org>
64572
64573         * modules/readutmp: Depend on module free.
64574         * modules/strtok_r: Depend on module restrict.
64575
64576 2006-01-10  Bruno Haible  <bruno@clisp.org>
64577
64578         * modules/gettext (configure.ac): Add an invocation of
64579         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
64580
64581 2006-01-10  Bruno Haible  <bruno@clisp.org>
64582
64583         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
64584         Reported by Werner Lemberg <wl@gnu.org>.
64585
64586 2006-01-10  Bruno Haible  <bruno@clisp.org>
64587
64588         * lib/localcharset.c: Update from GNU gettext.
64589
64590 2006-01-10  Bruno Haible  <bruno@clisp.org>
64591
64592         * lib/argp.h (__const): Remove macro. Use const instead.
64593         * lib/argp-fmtstream.h (__const): Likewise.
64594         * lib/glob_.h (__const): Remove macro.
64595         * lib/glob-libc.h: Use const instead of __const.
64596
64597 2006-01-10  Bruno Haible  <bruno@clisp.org>
64598
64599         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
64600         variable.
64601         Needed to avoid an automake error regarding the 'gettext' module.
64602
64603 2006-01-09  Simon Josefsson  <jas@extundo.com>
64604
64605         * modules/inet_ntop (Depends-on): Add restrict.
64606
64607 2006-01-09  Simon Josefsson  <jas@extundo.com>
64608
64609         * modules/gc-rijndael-tests (License): Put under LGPL.
64610
64611         * modules/gc-des-tests (License): Likewise.
64612
64613         * modules/gc-arcfour-tests (License): Likewise.
64614
64615         * modules/gc-arctwo-tests (License): Likewise.
64616
64617         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
64618
64619         * modules/gc-hmac-sha1-tests (Files): Likewise.
64620
64621         * modules/gc-hmac-md5-tests (License): Likewise.
64622
64623         * modules/gc-sha1-tests (License): Likewise.
64624
64625         * modules/gc-md5-tests (License): Likewise.
64626
64627         * modules/gc-md4-tests (License): Likewise.
64628
64629         * modules/gc-md2-tests (License): Likewise.
64630
64631         * modules/gc-tests (License): Likewise.
64632
64633         * modules/des-tests (License): Likewise.
64634
64635         * modules/md4-tests (License): Likewise.
64636
64637         * modules/md2-tests (License): Likewise.
64638
64639 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64640
64641         Sync from coreutils:
64642
64643         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64644         * modules/lib-ignore: New file.
64645         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64646         chdir-safer.m4, lchmod.m4.
64647         * modules/openat: Add mkdirat.c, openat-priv.h.
64648
64649 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64650
64651         Sync from coreutils.
64652         * m4/lib-ignore.m4: New file.
64653         * m4/lchmod.m4: New file.
64654
64655 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64656
64657         Sync from coreutils.
64658         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64659         for write access: POSIX says that must fail.
64660         * lib/fts.c (diropen): Likewise.
64661         * lib/save-cwd.c (save_cwd): Likewise.
64662         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64663         well, for minor improvements on hosts that lack O_DIRECTORY.
64664         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64665         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64666         Fall back on chown if open failed with EACCES.
64667
64668         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64669         Report an error at compile-time if only a 1-second nominal clock
64670         resolution is found.
64671
64672         * lib/lchmod.h: New file.
64673         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64674         (make_dir_parents): Use lchown rather than chown, and
64675         lchmod rather than chmod.
64676
64677         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64678         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64679         "proc" reported by n0dalus.
64680
64681         * lib/mountlist.c: Include <limits.h>.
64682         (dev_from_mount_options)
64683         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64684         New function.  It no longer assumes "dev=" has the System V meaning
64685         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64686         (read_file_system_list)
64687         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64688         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64689         dev= in that case.
64690
64691         * lib/posixtm.h (PDS_PRE_2000): New macro.
64692         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64693         allow_century.  All usages changed.  Reject dates outside the range
64694         1969-1999 if PDS_PRE_2000 is used.
64695
64696 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64697
64698         Sync from coreutils.
64699         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64700         (Time of day items): Mention the possibility of leap seconds.
64701         Problem reported by Dr. David Alan Gilbert.
64702
64703 2006-01-09  Jim Meyering  <jim@meyering.net>
64704
64705         Sync from coreutils.
64706
64707         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64708
64709         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64710
64711         * lib/modechange.c (mode_compile): Reject an invalid mode string
64712         that starts with an octal digit.  From Andreas Gruenbacher.
64713
64714         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64715         and dup to open_safer and dup_safer, respectively.
64716         (openat_permissive): Fix typo in comment.
64717
64718         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64719         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64720         (_): Remove; no longer needed.
64721         (openat): Renamed from rpl_openat; no need for rpl_openat
64722         since openat.h renames openat for us.
64723         Replace most of the body with a call to openat_permissive,
64724         to avoid duplicate code.
64725         Port to (probably hypothetical) environments were mode_t is
64726         wider than int.
64727         (openat_permissive): Require mode arg, so that we can check
64728         types better.  Put it just after flags.  Change cwd failure
64729         indicator from pointer-to-bool to pointer-to-errno-value.
64730         All callers changed.
64731         Invoke openat_save_fail and/or openat_restore_fail if
64732         cwd_errno is null, so that openat can call us.
64733         (openat_permissive, fdopendir, fstatat, unlinkat):
64734         Simplify errno handling to avoid some duplicate code,
64735         as it's OK to set errno on success.
64736         * lib/openat.h: Revamp code so that function macros depend on
64737         __OPENAT_PREFIX only, not also on AT_FDCWD.
64738         (openat_ro): Remove.  Caller changed to use openat_permissive.
64739         (openat_permissive): Now a macro, if not a function.
64740         (openat_restore_fail, openat_save_fail): Now always functions,
64741         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64742
64743         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64744         and openat.c.
64745         * lib/mkdirat.c: Include openat-priv.h.
64746         Remove definitions of macros defined therein.
64747         * lib/openat.c: Likewise.
64748
64749         * lib/mkdirat.c (mkdirat): New file and function.
64750         * lib/openat.h (mkdirat): Declare.
64751
64752         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64753
64754         * lib/openat.h (openat_permissive): Declare.
64755         (openat_ro): Define.
64756
64757         * lib/openat.c (EXPECTED_ERRNO): New macro.
64758         (openat_permissive): New function -- used in remove.c rewrite.
64759         (all functions): Set errno just before returning, only if there
64760         was an actual failure.
64761         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64762
64763         Emulate openat-family functions using Linux's procfs, if possible.
64764         Idea and some code based on Ulrich Drepper's glibc changes.
64765
64766         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64767         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64768         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64769         before falling back on save_cwd and restore_cwd.
64770         (fdopendir, fstatat, unlinkat): Likewise.
64771
64772         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64773         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64774
64775         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64776         as second argument to va_arg.  Otherwise, some versions of gcc
64777         warn that `if this code is reached, the program will abort'.
64778
64779 2006-01-09  Jim Meyering  <jim@meyering.net>
64780
64781         Sync from coreutils.
64782         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64783         Require openat-priv.h.
64784
64785 2006-01-09  Bruno Haible  <bruno@clisp.org>
64786
64787         * modules/strnlen (Include): Use strnlen.h.
64788
64789 2006-01-09  Bruno Haible  <bruno@clisp.org>
64790
64791         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64792
64793 2006-01-09  Bruno Haible  <bruno@clisp.org>
64794
64795         * lib/sysexit_.h (EX_OK): New macro.
64796         Suggested by Martin Lambers <marlam@marlam.de>.
64797
64798 2006-01-09  Bruno Haible  <bruno@clisp.org>
64799
64800         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64801         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64802
64803 2006-01-09  Bruno Haible  <bruno@clisp.org>
64804
64805         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64806         numbers.
64807
64808 2006-01-09  Bruno Haible  <bruno@clisp.org>
64809
64810         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64811         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64812         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64813         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64814
64815 2006-01-09  Bruno Haible  <bruno@clisp.org>
64816
64817         * build-aux/javacomp.sh.in: New file, moved from lib/.
64818         * modules/javacomp-script (Files): Update.
64819         (configure.ac): Add AC_CONFIG_FILES invocation.
64820         (EXTRA_DIST): Remove variable.
64821
64822         * build-aux/javaexec.sh.in: New file, moved from lib/.
64823         * modules/javaexec (Files): Update.
64824         (configure.ac): Add AC_CONFIG_FILES invocation.
64825         (EXTRA_DIST): Remove javaexec.sh.in.
64826
64827         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64828         * modules/csharpcomp-script (Files): Update.
64829         (configure.ac): Add AC_CONFIG_FILES invocation.
64830         (EXTRA_DIST): Remove variable.
64831
64832         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64833         * modules/csharpexec (Files): Update.
64834         (configure.ac): Add AC_CONFIG_FILES invocation.
64835         (EXTRA_DIST): Remove csharpexec.sh.in.
64836
64837 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64838
64839         Sync from coreutils.
64840
64841         Add POSIX ACL support
64842         * lib/acl.h (copy_acl, set_acl): Add declarations.
64843         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64844         systems other than Linux.
64845         (chmod_or_fchmod): New function: use fchmod when possible,
64846         and chmod otherwise.
64847         (file_has_acl): Add a POSIX ACL implementation, with a
64848         Linux-specific subcase.
64849         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64850         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64851         acls are unsupported.
64852         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64853         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64854         are unsupported.
64855
64856 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64857
64858         Sync from coreutils.
64859         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64860
64861 2006-01-07  Bruno Haible  <bruno@clisp.org>
64862
64863         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64864         gl_EARLY.
64865
64866 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64867
64868         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64869         Problem reported for Mingw by Mark Junker.
64870
64871 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64872
64873         * README: Gnulib normally doesn't generate a tarball.
64874
64875 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64876
64877         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64878         long int, not int, for nanosecond counts, so that people who are
64879         used to POSIX struct timespec won't be surprised.  Reported by Jim
64880         Meyering.
64881
64882 2005-12-28  Bruno Haible  <bruno@clisp.org>
64883
64884         * build-aux/config.rpath: Update from GNU gettext.
64885
64886 2005-12-16  Jim Meyering  <jim@meyering.net>
64887
64888         * modules/fprintftime: New module.
64889         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64890
64891 2005-12-16  Jim Meyering  <jim@meyering.net>
64892
64893         * m4/fprintftime.m4: New file.
64894
64895 2005-12-16  Jim Meyering  <jim@meyering.net>
64896
64897         * lib/fprintftime.c, lib/fprintftime.h: New files.
64898
64899 2005-12-15  Simon Josefsson  <jas@extundo.com>
64900
64901         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64902         new m4/socklen.m4.
64903
64904 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64905
64906         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64907         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64908
64909 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64910
64911         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64912         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64913         struct uparams is valid. Fall back to the default values if it is
64914         not.
64915
64916 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64917
64918         * modules/argp (Files): Add argp-pin.c
64919         (Depends-on): dirname
64920         (lib_SOURCES): Add argp-pin.c
64921
64922 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64923
64924         * m4/argp.m4:  Check if program_invocation_name and
64925         program_invocation_short_name are declared and define appropriate
64926         macros if they are not.
64927
64928 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64929
64930         * lib/argp-help.c (__argp_base_name): New function
64931         (__argp_short_program_name): Rewrite using __argp_base_name
64932         * lib/argp-namefrob.h: Define program_invocation_name and
64933         program_invocation_short_name if requested
64934         (__argp_base_name): Add prototype
64935         * lib/argp-parse.c (argp_def): Use gettext wrappers
64936         (argp_default_parser): Use __argp_base_name
64937         * lib/argp-pin.c: New file. Defines program_invocation_name and
64938         program_invocation_short_name on systems that lack them.
64939
64940 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64941
64942         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64943         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64944         porting problem reported by Georg Schwarz in
64945         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64946
64947 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64948
64949         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64950         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64951         porting problem reported by Georg Schwarz in
64952         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64953
64954 2005-12-05  Bruno Haible  <bruno@clisp.org>
64955
64956         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64957         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64958         Reported by Mark Junker <mjscod@gmx.de>.
64959
64960 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64961
64962         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64963         Use implementation from Albert Chin, with some
64964         comments/corrections by Stepan Kasal and myself.
64965
64966 2005-12-02  Bruno Haible  <bruno@clisp.org>
64967
64968         * gnulib-tool (func_import): Accept GPLed build tool modules when
64969         --lgpl is given.
64970         * modules/csharpcomp-script: New file.
64971         * modules/csharpcomp: Depend on it.
64972         * modules/javacomp-script: New file.
64973         * modules/javacomp: Depend on it.
64974         Suggested by Simon Josefsson.
64975
64976 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64977
64978         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64979         statement, to work around an HP-UX 10.20 compiler bug reported by
64980         Peter O'Gorman.
64981
64982 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64983
64984         * modules/savedir (Depends-on): Add openat.
64985
64986 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64987
64988         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64989         (uintmax_t) [defined uintmax_t]: Do not declare.
64990         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64991         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64992         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64993         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64994         sake of portability to weird hosts that C allows (though we don't
64995         know of any practical examples).
64996
64997         * lib/savedir.h (fdsavedir): New decl.
64998         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64999         contains most of the former guts of savedir.
65000         (savedir): Use savedirstream.
65001         Include "openat.h".
65002
65003 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65004
65005         * modules/obstack (Files): Add m4/ulonglong.m4.
65006         Problem reported by Davide Angelocola.
65007
65008 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
65009
65010         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
65011         coreutils no longer futzes with rounding modes.
65012
65013 2005-11-14  Jim Meyering  <jim@meyering.net>
65014
65015         * lib/mkstemp-safer.c: Include <config.h>, required for possible
65016         replacement of mkstemp.
65017
65018 2005-11-10  Simon Josefsson  <jas@extundo.com>
65019
65020         * lib/readline.c: Remove EOL.
65021
65022 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65023
65024         * modules/gethrxtime (Depends-on): Add gettime.
65025
65026 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65027
65028         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
65029         or gettimeofday; no longer needed.
65030
65031 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65032
65033         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
65034         time business.
65035         (gethrxtime) [! (HAVE_NANOUPTIME
65036         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
65037         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
65038         our own approximation.
65039
65040 2005-11-08  Eric Blake  <ebb9@byu.net>
65041
65042         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65043
65044 2005-11-08  Eric Blake  <ebb9@byu.net>
65045
65046         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65047
65048 2005-11-04  Bruno Haible  <bruno@clisp.org>
65049
65050         * gnulib-tool: Implement --update mode.
65051
65052 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65053
65054         Fix porting problem reported by Theodoros V. Kalamatianos.
65055         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
65056         Don't assume that futimes failing means we must fail.
65057
65058 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65059
65060         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
65061         variables to suggest the intended function of the PATH_MAX check.
65062
65063 2005-10-30  Kean Johnston  <jkj@sco.com>
65064
65065         Trivial changes to support SCO systems.
65066         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
65067         as PATH_MAX.
65068         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
65069         where __ptr is null when no I/O is pending.
65070
65071 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65072
65073         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
65074         leave errno alone.  Problem reported by Dmitry V. Levin.
65075
65076 2005-10-28  Simon Josefsson  <jas@extundo.com>
65077
65078         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
65079         Test more.
65080
65081         * tests/test-gc-md2.c, tests/test-md2.c: New files.
65082
65083         * modules/md2, modules/md2-tests: New files.
65084
65085 2005-10-28  Simon Josefsson  <jas@extundo.com>
65086
65087         * m4/inet_ntop.m4: More tests.
65088
65089         * m4/gc-md2.m4, md2.m4: New file.
65090
65091 2005-10-28  Simon Josefsson  <jas@extundo.com>
65092
65093         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
65094         "restrict" keywords, as per POSIX.  Protect the function
65095         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
65096         Don't use K&R prototypes.  Check the sprintf return values.
65097         Re-define EAFNOSUPPORT if not present.  Indent.
65098
65099         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
65100         suggested by Bruno Haible <bruno@clisp.org>.
65101
65102         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
65103
65104         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
65105
65106         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
65107         libgcrypt).
65108
65109         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
65110
65111         * lib/md2.h, lib/md2.c: New files.
65112
65113 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
65114
65115         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
65116         errno alone.  Problem reported by Frederic Jolliton.
65117
65118 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65119
65120         * modules/verify (License): Change from GPL to LGPL.  This is a
65121         tiny module and there are apparently near-equivalents that are
65122         under the BSD license.
65123
65124 2005-10-24  Simon Josefsson  <jas@extundo.com>
65125
65126         * modules/sha1: Relicense to LGPL.
65127
65128 2005-10-24  Simon Josefsson  <jas@extundo.com>
65129
65130         * lib/md4.h: Shrink buffer size, now that we changed the type.
65131
65132 2005-10-23  Simon Josefsson  <jas@extundo.com>
65133
65134         * gnulib-tool (func_import): Fix --tests-base.
65135
65136 2005-10-22  Simon Josefsson  <jas@extundo.com>
65137
65138         * modules/arcfour (Depends-on): Need stdint.
65139
65140 2005-10-22  Simon Josefsson  <jas@extundo.com>
65141
65142         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
65143         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
65144
65145 2005-10-22  Simon Josefsson  <jas@extundo.com>
65146
65147         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
65148         suggested by Bruno Haible <bruno@clisp.org>.
65149
65150 2005-10-22  Simon Josefsson  <jas@extundo.com>
65151
65152         * lib/crc.h: Include stddef.h, for size_t.
65153
65154 2005-10-22  Simon Josefsson  <jas@extundo.com>
65155
65156         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
65157         arcfour_context struct (simplify test vector testing in GNU
65158         Shishi).
65159
65160 2005-10-21  Simon Josefsson  <jas@extundo.com>
65161
65162         * modules/des, modules/des-tests: New files.
65163
65164         * modules/gc-des, modules/gc-des-tests: New files.
65165
65166         * tests/test-des.c, tests/test-gc-des.c: New file.
65167
65168 2005-10-21  Simon Josefsson  <jas@extundo.com>
65169
65170         * modules/arctwo, modules/arctwo-tests: New files.
65171
65172         * tests/test-arctwo.c: New file.
65173
65174         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
65175
65176         * tests/test-gc-arctwo.c: New file.
65177
65178 2005-10-21  Simon Josefsson  <jas@extundo.com>
65179
65180         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
65181         Bruno Haible <bruno@clisp.org>.
65182
65183         * m4/gc-des.m4: New file.
65184
65185 2005-10-21  Simon Josefsson  <jas@extundo.com>
65186
65187         * m4/arctwo.m4: New file.
65188
65189         * m4/gc-arctwo.m4: New file.
65190
65191 2005-10-21  Simon Josefsson  <jas@extundo.com>
65192
65193         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
65194         block.
65195
65196 2005-10-21  Simon Josefsson  <jas@extundo.com>
65197
65198         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
65199         <bruno@clisp.org>.
65200
65201         * lib/hmac-sha1.c (hmac_sha1): Likewise.
65202
65203         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
65204         Bruno Haible <bruno@clisp.org>.
65205
65206         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
65207         <bruno@clisp.org>.
65208
65209 2005-10-21  Simon Josefsson  <jas@extundo.com>
65210
65211         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
65212
65213 2005-10-21  Simon Josefsson  <jas@extundo.com>
65214
65215         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
65216
65217 2005-10-21  Simon Josefsson  <jas@extundo.com>
65218
65219         * lib/des.h, lib/des.c: New files.
65220
65221         * lib/gc-gnulib.c: Support DES.c
65222
65223 2005-10-21  Simon Josefsson  <jas@extundo.com>
65224
65225         * lib/arctwo.h, lib/arctwo.c: New files.
65226
65227         * lib/gc-gnulib.c: Support ARCTWO.
65228
65229 2005-10-21  Simon Josefsson  <jas@extundo.com>
65230
65231         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
65232         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65233
65234 2005-10-21  Simon Josefsson  <jas@extundo.com>
65235
65236         * gnulib-tool (func_import, func_create_testdir): Define automake
65237         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
65238         Makefile.am snippet),
65239         suggested by Bruno Haible <bruno@clisp.org>.
65240
65241         * modules/gc (Makefile.am): Use it.
65242
65243 2005-10-21  Bruno Haible  <bruno@clisp.org>
65244
65245         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
65246         patch.
65247
65248 2005-10-19  Simon Josefsson  <jas@extundo.com>
65249
65250         * tests/test-gc-rijndael.c: New file.
65251
65252         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
65253
65254 2005-10-19  Simon Josefsson  <jas@extundo.com>
65255
65256         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
65257         interface too.
65258
65259 2005-10-19  Simon Josefsson  <jas@extundo.com>
65260
65261         * tests/test-gc-arcfour.c: New file.
65262
65263         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
65264
65265 2005-10-19  Simon Josefsson  <jas@extundo.com>
65266
65267         * modules/gc-md4, modules/gc-md4-tests: New file.
65268
65269         * tests/test-gc-md4.c: New file.
65270
65271 2005-10-19  Simon Josefsson  <jas@extundo.com>
65272
65273         * m4/gc-md4.m4: New file.
65274
65275 2005-10-19  Simon Josefsson  <jas@extundo.com>
65276
65277         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
65278         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
65279         <kasal@ucw.cz>.
65280
65281 2005-10-19  Simon Josefsson  <jas@extundo.com>
65282
65283         * m4/gc-arcfour.m4: New file.
65284
65285         * m4/gc-rijndael.m4: New file.
65286
65287 2005-10-19  Simon Josefsson  <jas@extundo.com>
65288
65289         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
65290
65291 2005-10-19  Simon Josefsson  <jas@extundo.com>
65292
65293         * lib/gc-gnulib.c: Support ARCFOUR.
65294
65295 2005-10-19  Simon Josefsson  <jas@extundo.com>
65296
65297         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
65298         support.
65299
65300         * lib/gc.h: Add ECB enum type.
65301
65302         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
65303
65304 2005-10-18  Simon Josefsson  <jas@extundo.com>
65305
65306         * tests/test-md5.c: New file.
65307
65308         * modules/md5-tests: New file.
65309
65310 2005-10-18  Simon Josefsson  <jas@extundo.com>
65311
65312         * tests/test-md4.c: New file.
65313
65314         * modules/md4, modules/md4-tests: New files.
65315
65316 2005-10-18  Simon Josefsson  <jas@extundo.com>
65317
65318         * m4/md4.m4: New file.
65319
65320 2005-10-18  Simon Josefsson  <jas@extundo.com>
65321
65322         * lib/md4.h, lib/md4.c: New files, based on md5.?.
65323
65324 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
65325
65326         * gnulib-tool (func_create_testdir): Omit the second check whether
65327         BUILT_SOURCES in nonempty.
65328
65329 2005-10-17  Simon Josefsson  <jas@extundo.com>
65330
65331         * tests/test-rijndael.c: New file.
65332
65333 2005-10-17  Simon Josefsson  <jas@extundo.com>
65334
65335         * modules/sha1: Depend on stdint instead of md5.
65336
65337         * modules/md5: Depend on stdint, remove uint32_t.
65338
65339 2005-10-17  Simon Josefsson  <jas@extundo.com>
65340
65341         * modules/gc-sha1-tests: New file.
65342
65343         * tests/test-gc-sha1.c: New file.
65344
65345 2005-10-17  Simon Josefsson  <jas@extundo.com>
65346
65347         * m4/md5.m4: Remove call to uint32_t.m4.
65348
65349 2005-10-17  Simon Josefsson  <jas@extundo.com>
65350
65351         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
65352
65353         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
65354         md5.h.
65355
65356         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
65357
65358         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
65359
65360 2005-10-17  Simon Josefsson  <jas@extundo.com>
65361
65362         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
65363
65364 2005-10-17  Simon Josefsson  <jas@extundo.com>
65365
65366         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
65367
65368 2005-10-17  Simon Josefsson  <jas@extundo.com>
65369
65370         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
65371
65372         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
65373
65374 2005-10-17  Bruno Haible  <bruno@clisp.org>
65375
65376         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
65377         that it can also be used in a test.
65378
65379 2005-10-16  Bruno Haible  <bruno@clisp.org>
65380
65381         * gnulib-tool (func_emit_tests_Makefile_am): Also define
65382         TESTS_ENVIRONMENT, so that individual tests can augment it.
65383
65384         * gnulib-tool (func_create_testdir): Use an intermediate target for
65385         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
65386         macros, like $(ALLOCA_H), which cannot be passed through the command
65387         line.
65388
65389 2005-10-15  Simon Josefsson  <jas@extundo.com>
65390
65391         * modules/rijndael-tests: New file.
65392
65393         * modules/rijndael: New file.
65394
65395 2005-10-15  Simon Josefsson  <jas@extundo.com>
65396
65397         * m4/rijndael.m4: New file.
65398
65399 2005-10-15  Simon Josefsson  <jas@extundo.com>
65400
65401         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
65402
65403         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
65404
65405 2005-10-14  Simon Josefsson  <jas@extundo.com>
65406
65407         * tests/test-arcfour.c: New file.
65408
65409         * modules/arcfour, modules/arcfour-tests: New files.
65410
65411 2005-10-14  Simon Josefsson  <jas@extundo.com>
65412
65413         * m4/arcfour.m4: New file.
65414
65415 2005-10-14  Simon Josefsson  <jas@extundo.com>
65416
65417         * lib/arcfour.h, lib/arcfour.c: New files.
65418
65419 2005-10-14  Roland McGrath  <roland@redhat.com>
65420
65421         Import from libc.  [BZ #1331]
65422         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
65423         macro argument.
65424         Reported by Matej Vela <vela@debian.org>.
65425
65426 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65427
65428         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
65429         include <wchar.h>; no longer needed.
65430
65431 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65432
65433         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
65434
65435 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
65436         and  Ulrich Drepper  <drepper@redhat.com>
65437
65438         Import from libc.
65439         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
65440         instead of inline stream orientation test and two separate
65441         function calls.  Pay no attention to USE_IN_LIBIO.
65442
65443 2005-10-13  Simon Josefsson  <jas@extundo.com>
65444
65445         * modules/gc-hmac-md5-tests: New file.
65446
65447         * tests/test-gc-hmac-sha1.c: New file.
65448
65449         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
65450
65451         * modules/gc-hmac-md5-tests: New file.
65452
65453         * tests/test-gc-md5.c: New file.
65454
65455         * modules/gc-md5-tests: New file.
65456
65457 2005-10-13  Simon Josefsson  <jas@extundo.com>
65458
65459         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
65460         Move memory allocation outside of loop.
65461
65462 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
65463
65464         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
65465         intermediate directory is in a read-only file system.  Problem
65466         reported by Eric Blake.
65467
65468 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
65469
65470         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
65471
65472 2005-10-12  Simon Josefsson  <jas@extundo.com>
65473
65474         * tests/test-hmac-sha1.c: New file.
65475
65476         * modules/hmac-sha1-tests: New file.
65477
65478         * modules/hmac-sha1: New file.
65479
65480 2005-10-12  Simon Josefsson  <jas@extundo.com>
65481
65482         * modules/gc-sha1: New file.
65483
65484 2005-10-12  Simon Josefsson  <jas@extundo.com>
65485
65486         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
65487
65488         * tests/test-gc-pbkdf2-sha1.c: New file.
65489
65490 2005-10-12  Simon Josefsson  <jas@extundo.com>
65491
65492         * modules/gc-md5, modules/gc-hmac-md5: New files.
65493
65494         * modules/gc (Files): Remove md5, memxor and hmac files.
65495
65496 2005-10-12  Simon Josefsson  <jas@extundo.com>
65497
65498         * m4/gc-pbkdf2-sha1.m4: New file.
65499
65500         * m4/gc-hmac-sha1.m4: New file.
65501
65502         * m4/gc-sha1: New file.
65503
65504         * m4/hmac-sha1.m4: New file.
65505
65506 2005-10-12  Simon Josefsson  <jas@extundo.com>
65507
65508         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
65509
65510         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
65511
65512 2005-10-12  Simon Josefsson  <jas@extundo.com>
65513
65514         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
65515         suggested by Bruno Haible <bruno@clisp.org>.
65516
65517 2005-10-12  Simon Josefsson  <jas@extundo.com>
65518
65519         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
65520
65521 2005-10-12  Simon Josefsson  <jas@extundo.com>
65522
65523         * lib/gc-pbkdf2-sha1.c: New file.
65524
65525         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
65526
65527 2005-10-12  Simon Josefsson  <jas@extundo.com>
65528
65529         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
65530
65531         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
65532
65533 2005-10-12  Simon Josefsson  <jas@extundo.com>
65534
65535         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
65536         GC_USE_HMAC_MD5, respectively.
65537
65538         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
65539         (gc_md5): Fix typo.
65540
65541         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
65542
65543         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
65544
65545         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
65546
65547 2005-10-12  Bruno Haible  <bruno@clisp.org>
65548
65549         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
65550         Reported by Stepan Kasal <kasal@ucw.cz>.
65551
65552 2005-10-11  Simon Josefsson  <jas@extundo.com>
65553
65554         * tests/test-crc.c: New file.
65555
65556         * modules/crc, modules/crc-tests: New files.
65557
65558 2005-10-11  Simon Josefsson  <jas@extundo.com>
65559
65560         * m4/crc.m4: New file.
65561
65562 2005-10-11  Simon Josefsson  <jas@extundo.com>
65563
65564         * lib/gc.h: Add gc_hash and gc_hash_buffer.
65565
65566         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
65567
65568         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
65569
65570 2005-10-11  Simon Josefsson  <jas@extundo.com>
65571
65572         * lib/crc.h, lib/crc.c: New files.
65573
65574         * lib/gc.h (gc_hash_buffer): Add doc.
65575
65576 2005-10-11  Bruno Haible  <bruno@clisp.org>
65577
65578         * modules/c-strcasestr: New file.
65579         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
65580
65581 2005-10-11  Bruno Haible  <bruno@clisp.org>
65582
65583         * modules/c-strcase: New file.
65584         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
65585
65586 2005-10-11  Bruno Haible  <bruno@clisp.org>
65587
65588         * lib/strcasecmp.c: Include limits.h.
65589         (strcasecmp): Avoid integer overflow on exotic platforms.
65590         * lib/strncasecmp.c: Include limits.h.
65591         (strncasecmp): Avoid integer overflow on exotic platforms.
65592         Reported by Paul Eggert.
65593
65594 2005-10-11  Bruno Haible  <bruno@clisp.org>
65595
65596         * lib/c-strcasestr.h: New file, from GNU gettext.
65597         * lib/c-strcasestr.c: New file, from GNU gettext.
65598
65599 2005-10-11  Bruno Haible  <bruno@clisp.org>
65600
65601         * lib/c-strcase.h: New file, from GNU gettext.
65602         * lib/c-strcasecmp.c: New file, from GNU gettext.
65603         * lib/c-strncasecmp.c: New file, from GNU gettext.
65604
65605 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65606
65607         * modules/mempcpy (License): GPL -> LGPL.
65608         * modules/strchrnul (License): Likewise.
65609         * modules/sysexits (License): Likewise.
65610
65611 2005-10-08  Simon Josefsson  <jas@extundo.com>
65612
65613         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
65614
65615 2005-10-07  Simon Josefsson  <jas@extundo.com>
65616
65617         * m4/memxor.m4: Remove gl_C_RESTRICT call.
65618
65619 2005-10-06  Simon Josefsson  <jas@extundo.com>
65620
65621         * tests/test-hmac-md5.c: New file.
65622
65623         * modules/hmac-md5-tests: New file.
65624
65625         * modules/hmac-md5: New file.
65626
65627 2005-10-06  Simon Josefsson  <jas@extundo.com>
65628
65629         * m4/hmac-md5.m4: New file.
65630
65631         * m4/memxor.m4: Require gl_C_RESTRICT.
65632
65633 2005-10-06  Simon Josefsson  <jas@extundo.com>
65634
65635         * lib/memxor.c (memxor): Avoid casts and warnings.
65636
65637 2005-10-06  Simon Josefsson  <jas@extundo.com>
65638
65639         * lib/hmac-md5.c: New file.
65640
65641         * lib/hmac.h: New file.
65642
65643 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65644
65645         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65646         promotes to int, not unsigned int, to catch the AIX 5.3
65647         compiler bug.
65648
65649 2005-10-05  Simon Josefsson  <jas@extundo.com>
65650
65651         * modules/memxor: New file.
65652
65653         * modules/iconv (Files): Move config.rpath to havelib, it is used
65654         there.
65655
65656         * modules/havelib (Files): Add config.rpath.
65657
65658 2005-10-05  Simon Josefsson  <jas@extundo.com>
65659
65660         * m4/memxor.m4: New file.
65661
65662 2005-10-05  Simon Josefsson  <jas@extundo.com>
65663
65664         * lib/memxor.c (memxor): Fix compiler error.
65665
65666         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65667         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65668
65669         * lib/memxor.h, lib/memxor.c: New files.
65670
65671         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65672         we assume all systems have it, suggested by Jim Meyering
65673         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65674         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65675         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65676         same reasons.
65677
65678 2005-10-05  Simon Josefsson  <jas@extundo.com>
65679
65680         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65681
65682 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65683
65684         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65685         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65686         needed, since the source code now assumes these .h files.
65687
65688 2005-10-05  Derek Price  <derek@ximbiot.com>
65689
65690         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65691
65692 2005-10-05  Bruno Haible  <bruno@clisp.org>
65693
65694         * modules/stdint (License): Change to LGPL.
65695
65696 2005-10-04  Simon Josefsson  <jas@extundo.com>
65697
65698         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65699         D. Baushke" <mdb@gnu.org>.
65700
65701 2005-10-04  Bruno Haible  <bruno@clisp.org>
65702
65703         * lib/verify.h (verify_true): Provide alternative definition for C++.
65704
65705 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65706
65707         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65708         (SSIZE_MAX): New macro, if not already defined.
65709         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65710         than 2 GiB.
65711
65712 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65713
65714         Sync from coreutils.
65715         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65716         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65717         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65718         ULLONG_MAX doesn't work with 2.7.2.1.
65719
65720 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65721
65722         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65723         From Ben Pfaff.
65724
65725         * modules/exclude (Depends-on): Depend on verify.
65726         * modules/strtoimax (Depends-on): Likewise.
65727         * modules/utimecmp (Depends-on): Likewise.
65728
65729 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65730
65731         * lib/exclude.c: Include verify.h.
65732         (verify): Remove.  All callers changed to use verify.h's version.
65733         * lib/strtoimax.c: Likewise.
65734         * lib/utimecmp.c: Likewis.e
65735
65736         Sync from coreutils.
65737         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65738         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65739         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65740         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65741         bother returning ENOSYS if settimeofday or stime fails; just let
65742         them return whatever errno they want to return.
65743         * lib/utimens.c: Include unistd.h, for dup2.
65744         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65745         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65746
65747 2005-10-02  Jim Meyering  <jim@meyering.net>
65748
65749         Sync from coreutils.
65750         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65751         from glibc-2.2.5 that fails for read-only files.
65752
65753 2005-10-02  Jim Meyering  <jim@meyering.net>
65754
65755         Sync from coreutils.
65756         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65757         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65758         `#if HAVE_CONFIG_H'.
65759         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65760         Remove AT_FDCWD test.
65761         Do not consume the fd unless successful.
65762         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65763         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65764         block, so that we don't even try to compile it if settimeofday is
65765         available.  This works around a compilation failure on OSF1 V5.1,
65766         due to stime requiring a `long int*' while tv_sec is `int'.
65767
65768 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65769
65770         Sync from coreutils.
65771         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65772         against `yes', rather than just testing for nonempty.
65773
65774 2005-10-01  Simon Josefsson  <jas@extundo.com>
65775
65776         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65777         and Darwin.
65778
65779         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65780         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65781         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65782         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65783         Check if struct addrinfo is declared.
65784
65785 2005-10-01  Simon Josefsson  <jas@extundo.com>
65786
65787         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65788         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65789         AI_* and EAI_* definitions.  Protect function declarations.
65790
65791 2005-10-01  Jim Meyering  <jim@meyering.net>
65792
65793         Sync from coreutils.
65794
65795         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65796         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65797         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65798         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65799         in the inet and nsl libraries.  Required on Solaris 5.7.
65800
65801 2005-10-01  Jim Meyering  <jim@meyering.net>
65802
65803         Sync from coreutils.
65804         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65805         in the inet and nsl libraries.  Required on Solaris 5.7.
65806
65807 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65808
65809         * lib/getdelim.c (getdelim): Remove unused variables.
65810
65811 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65812
65813         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65814         so that the code works even with ancient cpp.  Portability problem
65815         with GCC 2.7.2.1 reported by Thomas M.Ott.
65816
65817 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65818
65819         * modules/regex (Depends-on): Add strcase.
65820
65821         * modules/gethostname (Licence): Change from GPL to LGPL, since
65822         gethostname.c is a trivial implementation of a standard library
65823         function.
65824         * modules/poll (License): Change from GPL to LGPL, since it's
65825         derived from LGPL code.
65826
65827 2005-09-27  Jim Meyering  <jim@meyering.net>
65828
65829         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65830         HAVE_CONFIG_H.
65831
65832         * lib/intprops.h (signed_type_or_expr__): Define.
65833         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65834         for unsigned types.
65835
65836 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65837
65838         * lib/verify.h (verify_expr): Remove, replacing with:
65839         (verify_true): New macro that returns true instead of void.
65840         (verify_type__): Remove.
65841         (verify): Use verify_true rather than verify_type__.
65842
65843 2005-09-26  Bruno Haible  <bruno@clisp.org>
65844
65845         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65846         is necessary.
65847         (lib_SOURCES): Remove mbchar.c.
65848         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65849         (Files): Add m4/mbrtowc.m4.
65850         * modules/mbiter: Likewise.
65851         * modules/mbuiter: Likewise.
65852
65853 2005-09-26  Bruno Haible  <bruno@clisp.org>
65854
65855         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65856         compile mbchar.c if they are not both present.
65857         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65858         * m4/mbiter.m4 (gl_MBITER): Likewise.
65859         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65860         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65861         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65862
65863 2005-09-25  Jim Meyering  <jim@meyering.net>
65864
65865         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65866         also uses socklen_t.
65867
65868 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65869
65870         * lib/utimens.c (ENOSYS): Define if not already defined.
65871         (futimens): Support having a null PATH if the file descriptor
65872         is nonnegative.
65873
65874         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65875         Remove.
65876         (__attribute): Define to empty unless GCC 3.1 or later.
65877         This works around a core dump on OpenBSD 3.4, which has GCC
65878         2.95.3, which dumps core when given __attribute__(()).  It also
65879         simplifies other tests, since we really don't want to bother with
65880         worrying about which ancient version of GCC supported what.
65881         Original problem reported by Yoann Vandoorselaere, with part of
65882         the fix suggested by Derek Price.
65883
65884 2005-09-24  Jim Meyering  <jim@meyering.net>
65885
65886         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65887         so we can once again use a positive bitfield width of 1 -- now we
65888         don't have to explain why we were using a bitfield width of 2.
65889
65890 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65891
65892         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65893         and similarly for the other external symbols.  Problem reported
65894         by James Gallager.
65895
65896         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65897         bug reported by Jim Meyering.
65898
65899         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65900         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65901         not needed, since socklen is a prerequisite module.
65902
65903 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65904
65905         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65906         Problem reported by Eric Blake.
65907         (getaddrinfo): Initialize se so that it's not garbage.
65908         Redo internal storage allocation so that it doesn't make unportable
65909         assumptions about alignment.
65910         Fix a memory leak.
65911
65912         * lib/utimens.c (futimens): Use futimesat if available.
65913         Prefer it to futimes since it doesn't have the futimes bug.
65914
65915         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65916         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65917         Instead, declare a function that returns a pointer to an array,
65918         and use verify_type__ to declare the size of the array.
65919         Problem and germ of a solution reported by Bruno Haible.
65920         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65921         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65922
65923 2005-09-23  Jim Meyering  <jim@meyering.net>
65924
65925         Sync from coreutils.
65926         Correct build failure (socklen_t not defined) on at least
65927         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65928         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65929
65930 2005-09-23  Jim Meyering  <jim@meyering.net>
65931
65932         * modules/getaddrinfo (Depends-on): Add socklen.
65933
65934 2005-09-23  Bruno Haible  <bruno@clisp.org>
65935
65936         * tests/test-verify.c: New file.
65937
65938 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65939
65940         Sync from coreutils.
65941
65942         * modules/argmatch (Depends-on): Add verify.
65943         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65944         unistd-safer.
65945         * modules/save-cwd (Depends-on): Likewise.
65946
65947         * modules/openat (Files): Add lib/openat-die.c.
65948         (Depends-on): Remove error, exitfail.
65949         Add dirname.
65950
65951         * modules/verify: New file.
65952         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65953         with "verify" module.
65954
65955 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65956
65957         Sync from coreutils.
65958
65959         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65960         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65961         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65962         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65963         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65964         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65965         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65966         Don't bother checking for string.h, stdlib.h, unistd.h.
65967         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65968         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65969         module's job.
65970         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65971         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65972
65973         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65974         (gl_GETDATE): Use it.
65975
65976         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65977
65978 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65979
65980         Sync from coreutils.
65981
65982         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65983         stat-time.h.
65984         * lib/argmatch.h: Include verify.h
65985         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65986         (ARGMATCH_ASSERT): Remove; unused.
65987         * lib/canonicalize.c: Assume STDC_HEADERS.
65988         * lib/exclude.c: Include "strcase.h".
65989         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65990         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65991         and stdio-safer.h.
65992         (getusershell): Call fopen, not fopen_safer.
65993         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65994         Do not include unistd-safer.h.
65995         (save_cwd): Don't call fd_safer; no longer needed
65996         now that we include fcntl--.h.
65997
65998         * lib/getdate.y (relative_time): New type.
65999         (RELATIVE_TIME_0): New constant.
66000         (parser_control): Use relative_time instead of doing it ourselves.
66001         (%union): Add new relative_time rel member.
66002         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
66003         Now typeless.
66004         (relunit, relunit_snumber): Now of type rel.
66005         (zone, rel, relunit, get_date): Adjust to above changes.
66006
66007         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
66008         Do not include unistd-safer.h.
66009         (getloadavg): Don't call fd_safer; no longer needed
66010         now that we include fcntl--.h.
66011
66012         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
66013         (make_dir_parents): Treat ENOSYS like EEXIST.
66014
66015         Improve quality of diagnostics on restore_cwd failure.
66016         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
66017         (make_dir_parents): Last arg is now int * (for errno), not bool *.
66018         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
66019         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
66020         each time through the loop.  Do not diagnose restore_cwd failure;
66021         that is the caller's job (and perhaps the caller does not care).
66022
66023         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
66024         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
66025         If the file already exists but is not a directory, don't bother
66026         to try to make its parents.
66027         Close potential file descriptor leak if we can't chdir("/") (!).
66028         Don't always return true if chdir($PWD) fails; return true only
66029         if the requested action was done successfully (except for the
66030         chdir($PWD)).
66031         Don't log final directory unless we actually made it.
66032         Refactor to avoid duplicate code to fix up permissions.
66033         Don't attempt to fix up parent permissions if chdir($PWD) fails.
66034
66035         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
66036         to make it a bit faster and (I hope) clearer.
66037         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
66038         Fix bug in formats like %2N.
66039
66040         * lib/verify.h: New file.
66041
66042 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66043
66044         Sync from coreutils.
66045         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
66046
66047 2005-09-22  Jim Meyering  <jim@meyering.net>
66048
66049         Sync from coreutils.
66050
66051         * m4/lstat.m4 (gl_FUNC_LSTAT):
66052         Use AC_LIBSOURCES to require lstat.c and lstat.h.
66053         Remove obsolete comment.
66054         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
66055         * m4/xstrtod.m4: Likewise.
66056
66057         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
66058
66059 2005-09-22  Jim Meyering  <jim@meyering.net>
66060
66061         Sync from coreutils.
66062
66063         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
66064
66065         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
66066         the .tm_year member, since otherwise gcc-4.0 would now warn about
66067         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
66068
66069         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
66070         order to avoid an unsuppressible warning from gcc on 64-bit systems.
66071
66072         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
66073         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
66074         when run in a time zone for which daylight savings time is in effect
66075         for the starting date.
66076
66077         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
66078         stop us from restricting permissions of just-created absolute-named
66079         directories.
66080         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
66081         to restore initial working directory.
66082         * lib/mkdir-p.c (make_dir_parents): New parameter:
66083         different_working_dir, to tell caller if/when we change the working
66084         directory and are unable to return to the initial one.
66085         * lib/mkdir-p.h (make_dir_parents): Update prototype.
66086         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
66087         `return false'.  This fixes a bug introduced on 2004-07-30.
66088
66089         * lib/openat.c (fdopendir): Be sure to close the supplied
66090         file descriptor before returning.  This makes our replacement
66091         implementation a little closer to Solaris's, where fdopendir
66092         ties the file descriptor to the returned DIR* pointer.
66093         * lib/openat.c (unlinkat): New function.
66094         * lib/openat.h (unlinkat): Add prototype.
66095         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
66096         (openat_restore_fail): Rename from openat_restore_die.
66097         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
66098
66099         Provide an alternative to exiting immediately upon save_cwd or
66100         restore_cwd failure.  Now, an application can arrange e.g.,
66101         to perform a longjump in that case.
66102         * lib/openat.c: Include dirname.h.
66103         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
66104         (rpl_openat, fdopendir, fstatat): Call openat_save_die
66105         and openat_restore_die rather than calling error directly.
66106         Don't include "error.h" or "exitfail.h"; they're no longer needed.
66107
66108         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
66109         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
66110         define.
66111
66112         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
66113         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
66114                             int utc, int nanoseconds);
66115         Background:
66116         date should not have to allocate a megabyte of virtual memory to
66117         handle a format argument like +%1048575T.  When implemented with
66118         strftime, it must allocate such a buffer, use strftime to fill it
66119         in, print it, then free it.
66120         With fprintftime, it simply prints everything and exits.
66121         With no need for memory allocation, that's one fewer way to fail.
66122         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
66123         optional field width, not before, so we accept %9:z, not %:9z.
66124         (my_strftime): Be sure to use L_('x') for literals.
66125
66126         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
66127         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
66128         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
66129         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
66130         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
66131         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
66132         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
66133         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
66134         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
66135         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
66136         * lib/xgethostname.c, lib/xreadlink.c:
66137         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
66138
66139         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
66140         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
66141         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
66142         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66143         and don't include <sys/file.h>).
66144
66145 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
66146
66147         Sync from coreutils.
66148
66149         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
66150         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
66151         [!LDAV_DONE]: Avoid unused variable warning.
66152
66153 2005-09-21  Bruno Haible  <bruno@clisp.org>
66154
66155         * lib/unicodeio.h (unicode_to_mb): New declaration.
66156
66157 2005-09-20  Derek Price  <derek@ximbiot.com>
66158
66159         * lib/getaddrinfo.c: Don't include <netdb.h> included from
66160         getaddrinfo.h.
66161
66162 2005-09-20  Bruno Haible  <bruno@clisp.org>
66163
66164         * gnulib-tool: Remove trailing slashes from the values specified for
66165         --source-base, --m4-base, --tests-base, --aux-dir.
66166         Suggested by Simon Josefsson <jas@extundo.com>.
66167
66168 2005-09-20  Bruno Haible  <bruno@clisp.org>
66169
66170         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
66171         func_modules_to_filelist, func_import, func_create_testdir): Make all
66172         sorting results locale-independent, so that gnulib-cache.m4 doesn't
66173         change when gnulib-tool is invoked in a different locale.
66174
66175 2005-09-19  Simon Josefsson  <jas@extundo.com>
66176
66177         * m4/socklen.m4: Fix typo.
66178
66179 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66180
66181         Use a consistent style for including <config.h>.
66182         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
66183         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
66184         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
66185         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
66186         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
66187         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
66188         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
66189         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
66190         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
66191         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
66192         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
66193         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
66194         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
66195         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
66196         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
66197         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
66198         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
66199         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
66200         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
66201         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
66202         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
66203         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
66204         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
66205         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
66206         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
66207         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
66208         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
66209         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
66210         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
66211         lib/xstrtoumax.c, lib/yesno.c:
66212         Standardize inclusion of config.h.
66213         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
66214         lib/inttostr.h:  Removed inclusion of config.h from header files.
66215         * lib/inttostr.c:  Adjusted in-tree users.
66216         * lib/timespec.h: Remove superfluous warning to include config.h.
66217         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
66218         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
66219         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
66220         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
66221         config.h with HAVE_CONFIG_H.
66222
66223 2005-09-19  Jim Meyering  <jim@meyering.net>
66224
66225         * modules/pathmax (License): Change to LGPL.
66226
66227 2005-09-19  Derek Price  <derek@ximbiot.com>
66228
66229         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
66230
66231 2005-09-19  Bruno Haible  <bruno@clisp.org>
66232
66233         * gnulib-tool (import): Provide default for --tests-base.
66234
66235 2005-09-19  Bruno Haible  <bruno@clisp.org>
66236
66237         * doc/quote.texi: New file, extracted from gnulib.texi.
66238         * doc/ctime.texi: New file, extracted from gnulib.texi.
66239         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
66240         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
66241         * doc/gnulib.texi: Include them.
66242
66243 2005-09-18  Bruno Haible  <bruno@clisp.org>
66244
66245         Portability fix.
66246         * gnulib-tool (func_readlink): New function.
66247         (func_ln_if_changed): Use it.
66248
66249 2005-09-18  Bruno Haible  <bruno@clisp.org>
66250
66251         * gnulib-tool: Support --with-tests also with --import.
66252         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
66253         (func_import): Use variables $testsbase and $inctests. Emit a
66254         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
66255         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
66256         SUBDIRS += $testsdir.
66257         (func_create_testdir): Update.
66258
66259 2005-09-18  Bruno Haible  <bruno@clisp.org>
66260
66261         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
66262         instead of $dry_run.
66263         (func_cp_if_changed, func_mv_if_changed): Remove functions.
66264         (func_ln_if_changed): Don't handle dry-run here.
66265         (func_import): In dry-run mode, detect more precisely which actions
66266         would be performed, and don't use "...ing" verbs.
66267
66268 2005-09-18  Bruno Haible  <bruno@clisp.org>
66269
66270         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
66271         (func_import): Use join on two temporary files instead of three nested
66272         loops, in order to determine which files are new or old.
66273
66274 2005-09-18  Bruno Haible  <bruno@clisp.org>
66275
66276         * gnulib-tool (func_import): Comment out code that spits out the
66277         new files with --dry-run.
66278
66279 2005-09-18  Bruno Haible  <bruno@clisp.org>
66280
66281         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
66282
66283 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66284
66285         * lib/stat-time.h: New file.
66286         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
66287         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
66288         in a different way.
66289         (timespec_cmp): New function.
66290         * lib/utimecmp.c: Include stat-time.h.
66291         (SYSCALL_RESOLUTION): Depend on whether various struct stat
66292         members exist, not on the obsolescent ST_MTIM_NSEC.
66293         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
66294
66295 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66296
66297         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
66298
66299 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66300
66301         * MODULES.html.sh (File system functions): Add stat-time.
66302         * modules/stat-time: New file.
66303         * modules/timespec (Files): Remove m4/st_mtim.m4; this
66304         is now done in a different way, by the stat-time module.
66305         * modules/utimecmp (Depends-on): Add stat-time.
66306
66307 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66308
66309         * m4/st_mtim.m4: Remove.  Superseded by...
66310         * m4/stat-time.m4: New file.
66311         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
66312         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
66313
66314 2005-09-15  Derek Price  <derek@ximbiot.com>
66315
66316         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
66317
66318 2005-09-15  Derek Price  <derek@ximbiot.com>
66319
66320         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
66321         * lib/regex_internal.c: Ditto, using this...
66322         (__GNUC_PREREQ): ...new macro.
66323         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
66324         using...
66325         (__GNUC_PREREQ): ...this new macro.
66326
66327         * lib/strstr.h: Include string.h. Define strstr as a macro here.
66328
66329 2005-09-15  Derek Price  <derek@ximbiot.com>
66330             Paul Eggert  <eggert@cs.ucla.edu>
66331
66332         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
66333         changes, consolidating in...
66334         * lib/regex_internal.h: ...this file.
66335
66336 2005-09-13  Jim Meyering  <jim@meyering.net>
66337
66338         * lib/canon-host.c: Filter through gnu indent and reword comments
66339         slightly.
66340         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
66341
66342 2005-09-13  Derek Price  <derek@ximbiot.com>
66343
66344         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
66345         failure.
66346         Reported by Jim Meyering  <jim@meyering.net>.
66347
66348 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66349
66350         * lib/base64.c: Typo.
66351         (base64_encode): Put b64str in initialized data section.
66352
66353 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
66354
66355         Merge glibc and coreutils changes into gnulib, plus a few
66356         extra fixes.
66357         * lib/md5.c: Use #error rather than a string.
66358         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
66359         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
66360         (__attribute__): Define to empty for non recent-GCC.
66361         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
66362         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
66363         Renamed from their non-__ counterparts, with new macros replacing
66364         them if not _LIBC.  Add __THROW attribute.
66365         (rol): Remove.
66366         (struct md5_ctx): Align buffer if using GCC.
66367         * lib/sha1.h (struct sha1_ctx): Likewise.
66368         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
66369         The old name was backwards.
66370         (NOTSWAP): Remove; not used.
66371         (rol): New macro, moved here from md5.h.
66372         (sha1_process_block): Remove a FIXME that doesn't make sense.
66373
66374 2005-09-12  Derek Price  <derek@ximbiot.com>
66375
66376         Return usable errors from canon-host.
66377         * lib/canon-host.h: New file.
66378         * lib/canon-host.c (canon_host): Wrap...
66379         (canon_host_r): ...this new function, which now relies exclusively on
66380         getaddrinfo.
66381         (ch_strerror): New function.
66382         (last_cherror): New global.
66383         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
66384         interface.
66385         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
66386         void *.
66387         (freeaddrinfo): Free ai->ai_canonname when set.
66388
66389 2005-09-12  Derek Price  <derek@ximbiot.com>
66390
66391         Make canon-host require getaddrinfo.
66392         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
66393         AC_LIBSOURCE canon-host.h.  Call...
66394         (gl_PREREQ_CANON_HOST): ...this new function, which requires
66395         gl_GETADDRINFO.
66396         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
66397
66398 2005-09-12  Derek Price  <derek@ximbiot.com>
66399
66400         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
66401         LGPL.
66402         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
66403
66404 2005-09-12  Derek Price  <derek@ximbiot.com>
66405
66406         * lib/gai_strerror.c: Include config.h when available.  Include
66407         getaddrinfo.h before other headers to test interface.
66408         Reported by Larry Jones <lawrence.jones@ugs.com>.
66409
66410 2005-09-12  Derek Price  <derek@ximbiot.com>
66411             Paul Eggert  <eggert@cs.ucla.edu>
66412
66413         * modules/glob (Files): Add glob-libc.h.
66414
66415 2005-09-12  Derek Price  <derek@ximbiot.com>
66416             Paul Eggert  <eggert@cs.ucla.edu>
66417
66418         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
66419         glob_.h, glob-libc.h.
66420         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
66421
66422 2005-09-12  Derek Price  <derek@ximbiot.com>
66423             Paul Eggert  <eggert@cs.ucla.edu>
66424
66425         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
66426         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
66427         protecting things that should be done only in gnulib contexts.
66428         * lib/glob_.h: New file, containing only the glob things needed for
66429         gnulib.
66430         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
66431         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
66432         (glob, globfree, glob_pattern_p): Now defined simply in terms of
66433         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
66434         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
66435         and to respect the namespace rules better.
66436
66437 2005-09-08  Simon Josefsson  <jas@extundo.com>
66438
66439         * modules/socklen: New file.
66440
66441 2005-09-08  Simon Josefsson  <jas@extundo.com>
66442
66443         * m4/socklen.m4: New file.
66444
66445 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66446
66447         * modules/utimens (Files): Add m4/utimbuf.m4, since
66448         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
66449         Reported by Sergey Poznyakoff.
66450
66451 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66452
66453         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
66454         definitions, since that's the preferred style in glibc.
66455         Fix a minor spacing issue, and update copyright notice to match
66456         glibc's.
66457
66458 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66459
66460         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
66461
66462 2005-09-06  Simon Josefsson  <jas@extundo.com>
66463
66464         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
66465         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
66466
66467 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66468
66469         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
66470         warning.
66471
66472 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66473
66474         * config/srclist.txt: Add glibc bug 1302.
66475
66476 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
66477
66478         Change bitset word type from unsigned int to unsigned long int,
66479         as this has better performance on typical 64-bit hosts.
66480         Port bitset code to hosts with unusual word sizes.
66481         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
66482         (build_collating_symbol):
66483         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
66484         argument is a bitset.  This is merely a style issue, but it makes
66485         it clearer that an entire array is expected.
66486         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
66487         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
66488         Port to the case where bitset_word is not the same as unsigned int.
66489         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66490         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
66491         Likewise.
66492         * lib/regexec.c (check_dst_limits_calc_pos_1,
66493         check_subexp_matching_top):
66494         (build_trtable, group_nodes_into_DFAstates):
66495         Likewise.
66496         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
66497         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
66498         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
66499         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
66500         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
66501         * lib/regcomp.c (optimize_subexps, lower_subexp):
66502         Work even if bitset_word has holes in its bitwise representation.
66503         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
66504         * lib/regexec.c (check_dst_limits_calc_pos_1,
66505         check_subexp_matching_top):
66506         Likewise.
66507         * lib/regex_internal.c (re_string_reconstruct):
66508         Don't assume UCHAR_MAX == 255.
66509         * lib/regex_internal.h (bitset_set_all): Likewise.
66510         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
66511         All uses changed.
66512         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
66513         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
66514         All uses changed.
66515         (BITSET_WORD_MAX): New macro.
66516         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
66517         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
66518         (bitset_empty, bitset_copy):
66519         Prefer sizeof (bitset) to multiplying it out ourselves.
66520         (bitset_not_merge): Remove; unused.
66521         (bitset_contain): Return bool, not unsigned int with one bit on.
66522         All callers changed.
66523         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
66524         alignment than re_node_set; do this by defining a new internal
66525         type struct dests_alloc and using it to allocate memory.
66526
66527 2005-09-05  Bruno Haible  <bruno@clisp.org>
66528
66529         * gnulib-tool (func_import): Fix comparison in handling of symbolic
66530         links.
66531
66532 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
66533
66534         * modules/size_max (Makefile.am): Add size_max.h
66535
66536 2005-09-04  Derek Price  <derek@ximbiot.com>
66537
66538         * gnulib-tool (func_import): Fix reversed $symbolic logic.
66539
66540 2005-09-03  Simon Josefsson  <jas@extundo.com>
66541
66542         * gnulib-tool: Fix typo.
66543
66544 2005-09-03  Simon Josefsson  <jas@extundo.com>
66545
66546         * config/srclist.txt: Add glibc bug 1293.
66547
66548 2005-09-03  Derek Price  <derek@ximbiot.com>
66549
66550         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
66551         From Larry Jones <lawrence.jones@ugs.com>.
66552
66553 2005-09-02  Simon Josefsson  <jas@extundo.com>
66554
66555         * modules/socklen: New file.
66556
66557 2005-09-02  Simon Josefsson  <jas@extundo.com>
66558
66559         * modules/havelib: New module.
66560
66561         * modules/gettext, modules/iconv, modules/lock, modules/readline:
66562         Use havelib.
66563
66564 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66565
66566         Check for arithmetic overflow when calculating sizes, to prevent
66567         some buffer-overflow issues.  These patches are conservative, in the
66568         sense that when I couldn't determine whether an overflow was possible,
66569         I inserted a run-time check.
66570         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
66571         macros.
66572         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
66573         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
66574         (re_xnrealloc, re_x2nrealloc): New inline functions.
66575         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
66576         parse_bracket_exp):
66577         (build_equiv_class, build_charclass): Check for arithmetic overflow
66578         in size expression calculations.
66579         * lib/regex_internal.c (re_string_realloc_buffers):
66580         (build_wcs_upper_buffer, re_node_set_add_intersect):
66581         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
66582         (re_dfa_add_node, register_state): Likewise.
66583         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
66584         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
66585         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
66586         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
66587
66588 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66589
66590         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66591         m4/ulonglong.m4.  Problem reported by Martin Lambers.
66592
66593 2005-09-02  Bruno Haible  <bruno@clisp.org>
66594
66595         Support for lib vs. lib64 distinction on biarch platforms.
66596         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
66597         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
66598         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
66599
66600 2005-09-02  Bruno Haible  <bruno@clisp.org>
66601
66602         * gnulib-tool (import): In the other first-use case, provide defaults
66603         as well.
66604
66605 2005-09-02  Bruno Haible  <bruno@clisp.org>
66606
66607         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
66608         patches not yet found in the latest gettext release.
66609
66610 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66611
66612         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
66613         to avoid a collision with bits/local_lim.h in glibc.
66614         All uses changed.  Problem reported by Dmitry V. Levin in
66615         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
66616
66617         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
66618         bugs in int versus size_t comparisons.
66619         (re_string_context_at): Fix bug where the code assumed that
66620         Idx is signed.
66621
66622         Use bool where appropriate.
66623         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
66624         All callers changed.
66625         (calc_eclosure_iter): Likewise, for ROOT arg.
66626         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
66627         (build_charclass_op): Likewise, for NON_MATCH arg.
66628         * lib/regex_internal.c (re_string_allocate, re_string_construct):
66629         (re_string_construct_common): Likewise, for ICASE arg.
66630         * lib/regexec.c (re_search_2_stub, re_search_stub):
66631         Likewise, for RET_LEN arg.
66632         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
66633         (set_regs): Likewise, for FL_BACKTRACK arg.
66634         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
66635         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
66636         (calc_eclosure_iter, parse_bracket_exp):
66637         Use bool for internal variables that are booleans.
66638         * lib/regexec.c (re_search_internal, check_matching,
66639         proceed_next_node):
66640         (set_regs, build_sifted_states, sift_states_bkref):
66641         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
66642         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66643         (find_collation_sequence_value):
66644         Likewise.
66645         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66646         (re_node_set_compare):
66647         Return bool, not int. All callers changed.
66648         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66649         (build_trtable, check_node_accept): Likewise.
66650         * lib/regex_internal.h: Include stdbool.h.
66651
66652         Fix bugs uncovered when converting to bool.
66653         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66654         failure instead of charging ahead blindly.
66655         * lib/regex_internal.c (register_state): Likewise.
66656         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66657         for freeing internal storage.
66658         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66659         bitset pieces used as boolean, to avoid undefined behavior
66660         on hosts that do int overflow checking.
66661
66662 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66663
66664         * config/srclist.txt: Add glibc bugs 1285-1287.
66665
66666 2005-09-01  Jim Meyering  <jim@meyering.net>
66667
66668         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66669         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66670         Require gl_STAT_MACROS, too.
66671
66672 2005-09-01  Bruno Haible  <bruno@clisp.org>
66673
66674         * gnulib-tool (import): In the first-use case, provide defaults.
66675
66676 2005-09-01  Bruno Haible  <bruno@clisp.org>
66677
66678         * gnulib-tool (func_import): Remove the .tmp files.
66679
66680 2005-09-01  Bruno Haible  <bruno@clisp.org>
66681
66682         * gnulib-tool (func_import): Fix handling of symbolic links.
66683
66684 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66685
66686         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66687         old glibc regex code mishandles strings longer than 2**31 bytes.
66688         This patch fixes this when the regex code is used in gnulib
66689         (i.e., outside glibc).
66690
66691         This patch should not affect the use of the regex code inside
66692         glibc.  No doubt this problem also needs to be handled for glibc
66693         as well, but the result will be an incompatible change to the
66694         glibc ABI, and the old ABI will have to be supported too.  That
66695         can be the the subject for another patch.
66696
66697         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66698         governing whether the rest of this patch is active.  By default,
66699         the macro is disabled and the patch has no effect.
66700         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66701         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66702         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66703         (re_match_2, re_set_registers): Use the new types.
66704         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66705         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66706         New macros.
66707         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66708         (re_string_context_at, bin_tree_t, re_dfastate_t):
66709         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66710         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66711         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66712         (re_string_char_size_at, re_string_wchar_at):
66713         (re_string_elem_size_at):
66714         Use the new types and macros to port to 64-bit hosts.
66715         Use unsigned types for internal values, so that the code
66716         mostly works even for arrays larger than SSIZE_MAX.
66717         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66718         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66719         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66720         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66721         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66722         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66723         (calc_inveclosure, parse_dup_op, build_range_exp):
66724         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66725         (fetch_number, create_token_tree, mark_opt_subexp):
66726         Likewise.
66727         * lib/regex_internal.c (re_string_construct_common,
66728         create_ci_newstate):
66729         (create_cd_newstate, re_string_allocate, re_string_construct):
66730         (re_string_realloc_buffers, build_wcs_upper_buffer):
66731         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66732         (re_string_reconstruct, re_string_peek_byte_case):
66733         (re_string_fetch_byte_case, re_string_context_at):
66734         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66735         (re_node_set_init_copy, re_node_set_add_intersect):
66736         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66737         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66738         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66739         (re_acquire_state, re_acquire_state_context, register_state):
66740         Likewise.
66741         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66742         search_cur_bkref_entry):
66743         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66744         (re_search_internal, re_search_2_stub, re_search_stub)
66745         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66746         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66747         (update_cur_sifted_state, check_dst_limits):
66748         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66749         (check_subexp_limits, sift_states_bkref, merge_state_array):
66750         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66751         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66752         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66753         (expand_bkref_cache, check_node_accept_bytes):
66754         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66755         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66756         (acquire_init_state_context, check_halt_node_context):
66757         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66758         (sift_states_backward, clean_state_log_if_needed):
66759         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66760         (find_recover_state, transit_state_sb, transit_state_mb):
66761         (transit_state_bkref, build_trtable, match_ctx_clean):
66762         Likewise.
66763         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66764         to work around an assumption that REG_MISSING is negative.
66765
66766         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66767         (seek_collating_symbol_entry) [defined _LIBC]:
66768         (lookup_collation_sequence_value) [defined _LIBC]:
66769         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66770         Use prototypes rather than old-style function definitions.
66771         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66772         (transit_state_sb) [0]:
66773         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66774
66775         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66776         rm_eo.
66777
66778         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66779         (optimize_subexps, lower_subexp):
66780         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66781         since the signed shift might overflow.  Use 1u<<31 instead.
66782         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66783         Likewise.
66784         * lib/regexec.c (check_dst_limits_calc_pos_1,
66785         check_subexp_matching_top): Likewise.
66786
66787         * lib/regcomp.c (optimize_subexps, lower_subexp):
66788         Use CHAR_BIT rather than 8, for clarity.
66789         * lib/regexec.c (check_dst_limits_calc_pos_1):
66790         (check_subexp_matching_top): Likewise.
66791         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66792         have to worry about portability issues when shifting it left.
66793         Remove no-longer-needed test for table_size > 0.
66794         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66795         in a word, as the resulting behavior is undefined.
66796         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66797         in one case, a <= should have been an <, and in another case the
66798         whole test was missing.
66799         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66800         the standard name CHAR_BIT.
66801         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66802         this is not true on one's complement and signed-magnitude hosts.
66803
66804         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66805         next_last_offset.
66806         (struct re_dfa_t): Remove unused member states_alloc.
66807         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66808
66809 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66810
66811         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66812         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66813         and large-file glibc and in 32-bit large-file Solaris.
66814
66815 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66816
66817         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66818         lengths fit in regoff_t; this isn't true if regoff_t is the same
66819         width as size_t.
66820         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66821         (= START + RANGE) instead of RANGE.  This avoids overflow
66822         problems when regoff_t is the same width as size_t.
66823         All callers changed.
66824         (re_search_2_stub): Check for overflow when adding the
66825         sizes of the two strings.
66826         (re_search_stub): Check for overflow when adding START
66827         to RANGE; if it occurs, substitute the extreme value.
66828
66829 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66830
66831         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66832
66833 2005-08-31  Jim Meyering  <jim@meyering.net>
66834
66835         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66836         a pointer-to-const.
66837         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66838         (register_state): Likewise.
66839         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66840         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66841         (group_nodes_into_DFAstates): Likewise.
66842
66843 2005-08-31  Jim Meyering  <jim@meyering.net>
66844
66845         * check-module: Add a FIXME comment.
66846
66847 2005-08-31  Eric Blake  <ebb9@byu.net>
66848
66849         * modules/unistd-safer (Files): Add unistd--.h.
66850         * modules/stdio-safer (Files): Add stdio--.h.
66851
66852 2005-08-31  Derek Price  <derek@ximbiot.com>
66853
66854         * lib/getdelim.c (getdelim): Return EOF on EOF.
66855         Reported by Larry Jones <lawrence.jones@ugs.com>.
66856
66857 2005-08-31  Bruno Haible  <bruno@clisp.org>
66858
66859         Avoid unnecessary diffs in the generated lib/Makefile.am.
66860         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66861         the generated files.
66862         (func_import): Don't set cmd.
66863
66864 2005-08-31  Bruno Haible  <bruno@clisp.org>
66865
66866         * lib/strstr.c: Include <stddef.h>, for NULL.
66867         * lib/strcasestr.c: Likewise.
66868         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66869
66870 2005-08-31  Bruno Haible  <bruno@clisp.org>
66871
66872         * gnulib-tool: New option --macro-prefix.
66873         (func_import): Use macro_prefix.
66874         (import): Handle option --macro-prefix.
66875
66876 2005-08-31  Bruno Haible  <bruno@clisp.org>
66877
66878         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66879         Also use new variables cached_lgpl, cached_libtool.
66880
66881 2005-08-31  Bruno Haible  <bruno@clisp.org>
66882
66883         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66884         always instantiating them.
66885
66886 2005-08-31  Bruno Haible  <bruno@clisp.org>
66887
66888         * gnulib-tool (func_import): Read the previous cached settings
66889         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66890         earlier added by gnulib but are now dropped. Warn when a gnulib file
66891         overwrites a non-gnulib file.
66892
66893 2005-08-31  Bruno Haible  <bruno@clisp.org>
66894
66895         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66896         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66897         projects that don't keep autogenerated files in CVS. Put into
66898         actioncmd only the specified modules, not the transitive closure.
66899
66900 2005-08-31  Bruno Haible  <bruno@clisp.org>
66901
66902         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66903         Create directories that shall be filled.
66904         (import): Don't look for gl_* macros in configure.ac. Recurse across
66905         all directories containing a gnulib-cache.m4 files, if meaningful.
66906
66907 2005-08-31  Bruno Haible  <bruno@clisp.org>
66908
66909         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66910         (import): Set seen_libtool when we see gl_LIBTOOL.
66911
66912 2005-08-31  Bruno Haible  <bruno@clisp.org>
66913
66914         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66915         declaration macro definitions from generated gnulib.m4.
66916
66917 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66918
66919         * lib/iconvme.h: Add prototype for iconv_alloc.
66920
66921 2005-08-29  Simon Josefsson  <jas@extundo.com>
66922
66923         * lib/iconvme.c: Fix errno.
66924
66925 2005-08-29  Bruno Haible  <bruno@clisp.org>
66926
66927         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66928         that it works when the directory contains spaces.
66929
66930 2005-08-29  Bruno Haible  <bruno@clisp.org>
66931
66932         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66933
66934 2005-08-29  Bruno Haible  <bruno@clisp.org>
66935
66936         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66937         Emit more advice.
66938
66939 2005-08-29  Bruno Haible  <bruno@clisp.org>
66940         and Stepan Kasal  <kasal@ucw.cz>
66941
66942         * check-module: If more parameters are given, check each of them
66943         separately; add more exceptions, as noted by Jim Meyering.
66944         (check_module): New procedure.
66945         (%exempt_header): Now contains all exceptions.
66946
66947 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66948
66949         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66950
66951 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66952
66953         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66954
66955 2005-08-28  Bruno Haible  <bruno@clisp.org>
66956
66957         * m4/gnulib-tool.m4: New file.
66958
66959 2005-08-27  Jim Meyering  <jim@meyering.net>
66960
66961         * modules/unistd-safer (Files): Add pipe-safer.c.
66962         * modules/fcntl-safer (Files): Add creat-safer.c.
66963
66964 2005-08-27  Jim Meyering  <jim@meyering.net>
66965
66966         * m4/stdlib-safer.m4: New file.  From coreutils.
66967         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66968         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66969         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66970         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66971         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66972
66973 2005-08-27  Jim Meyering  <jim@meyering.net>
66974
66975         * lib/fopen-safer.c: Merge minor changes from coreutils.
66976         * lib/dup-safer.c: Likewise.
66977         * lib/fd-safer.c: Likewise.
66978
66979         Merge from coreutils.
66980         * lib/stdio--.h: New file.
66981         * lib/stdlib--.h: New file.
66982         * lib/mkstemp-safer.c: New file.
66983
66984         GNU tar needs these.
66985         * lib/pipe-safer.c: New file.
66986         * lib/creat-safer.c: New file.
66987         * lib/fcntl--.h (creat): Define to creat_safer.
66988         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66989         * lib/unistd--.h (pipe): Define to pipe_safer.
66990         * lib/unistd-safer.h: Declare pipe_safer.
66991
66992 2005-08-26  Simon Josefsson  <jas@extundo.com>
66993
66994         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66995         Haible <bruno@clisp.org>.
66996
66997 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66998
66999         * lib/regex_internal.h: Remove all references to
67000         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
67001         or better.
67002         (bitset_not, bitset_merge, bitset_not_merge):
67003         (bitset_mask, re_string_allocate, re_string_construct):
67004         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
67005         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
67006         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
67007         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
67008         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67009         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67010         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
67011         (re_acquire_state_context):
67012         Remove unnecessary forward decls.
67013         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
67014         Put __attribute at function definition,
67015         now that the function decl has been removed.
67016         * lib/regex_internal.c (re_string_peek_byte_case):
67017         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
67018         Likewise.
67019
67020 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
67021
67022         * m4/regex.m4: Add AC_PREREQ(2.50).
67023         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
67024
67025 2005-08-25  Simon Josefsson  <jas@extundo.com>
67026
67027         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
67028         __fsetlocking.
67029
67030 2005-08-25  Simon Josefsson  <jas@extundo.com>
67031
67032         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
67033         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
67034         GLIBC specific code.
67035
67036 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67037
67038         Make regex safe for g++.  This fixes one real bug (an "err"
67039         that should have been "*err").  g++ problem reported by
67040         Sam Steingold.
67041         * lib/regex_internal.h (re_calloc): New macro, consistent with
67042         re_malloc etc.  All callers of calloc changed to use re_calloc.
67043         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
67044         not int.  All callers changed.
67045         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
67046         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
67047         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
67048         (find_recover_state): Change "err" to "*err"; this fixes what
67049         appears to be a real bug.
67050         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
67051         versus int.
67052
67053 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67054
67055         * modules/regex (Depends-on): Add malloc, since the code
67056         assumes that !malloc(0) means failure.
67057
67058 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67059
67060         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
67061
67062         alloca modernization/simplification for regex.
67063         * lib/regex.c: Remove portability cruft for alloca.  This no longer
67064         needs to be at the start of the file, and can be moved into
67065         regex_internal.h and simplified.
67066         * lib/regex_internal.h: Include <alloca.h>.
67067         (__libc_use_alloca) [!defined _LIBC]: New macro.
67068         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
67069         now works outside glibc.
67070
67071 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67072
67073         * config/srclist.txt: Add glibc bugs 1241, 1245.
67074
67075 2005-08-25  Jim Meyering  <jim@meyering.net>
67076
67077         * lib/open-safer.c: Include <config.h>.
67078         Otherwise, we'd lose LARGEFILE support in any file using
67079         e.g. "fcntl--.h"
67080
67081 2005-08-25  Bruno Haible  <bruno@clisp.org>
67082
67083         * m4/minmax.m4: Require autoconf 2.52.
67084         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
67085         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
67086         alternatives of translit over the alphabet.
67087         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
67088
67089 2005-08-24  Simon Josefsson  <jas@extundo.com>
67090
67091         * tests/test-getpass.c: New file.
67092
67093 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67094
67095         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
67096         for GNU regex features.
67097
67098 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67099
67100         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
67101         * lib/regex.h (regerror): Likewise.
67102
67103         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
67104         requires this.  (The code never needed it.)
67105
67106         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
67107         All uses of recently-renamed identifiers changed to use the new,
67108         POSIX-compliant names.  The code will build and run just fine
67109         without these changes, but it's better to eat our own dog food
67110         and use the standard-conforming names.
67111
67112         * lib/regex.h: Fix a multitude of POSIX name space violations.
67113         These changes have an effect only for programs that define
67114         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
67115         do not change anything for programs compiled in the normal way.
67116         Also, there is no effect on the ABI.
67117
67118         (_REGEX_SOURCE): New macro.
67119         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
67120         defined and _GNU_SOURCE is not; this fixes a name space violation.
67121
67122         Rename the following macros to obey POSIX requirements.
67123         The old names are still visible as macros if _REGEX_SOURCE is defined.
67124         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
67125         RE_BACKSLASH_ESCAPE_IN_LISTS.
67126         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
67127         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
67128         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
67129         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
67130         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
67131         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
67132         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
67133         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
67134         (REG_INTERVALS): renamed from RE_INTERVALS.
67135         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
67136         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
67137         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
67138         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
67139         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
67140         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
67141         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
67142         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
67143         RE_UNMATCHED_RIGHT_PAREN_ORD.
67144         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
67145         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
67146         (REG_DEBUG): renamed from RE_DEBUG.
67147         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
67148         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
67149         unusual, since we can't clash with the POSIX REG_ICASE.
67150         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
67151         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
67152         (REG_NO_SUB): renamed from RE_NO_SUB.
67153         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
67154         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
67155         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
67156         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
67157         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
67158         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
67159         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
67160         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
67161         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
67162         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
67163         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
67164         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
67165         RE_SYNTAX_POSIX_MINIMAL_BASIC.
67166         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
67167         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
67168         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
67169         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
67170         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
67171         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
67172         (REG_FIXED): Renamed from REGS_FIXED.
67173         (REG_NREGS): Renamed from RE_NREGS.
67174
67175         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
67176         of other REG_* macros, since POSIX says the user is allowed to
67177         #undef these macros selectively.
67178
67179         (reg_errcode_t): Update comment stating what other tables need
67180         to be consistent.
67181
67182         Rename the following enum values to obey POSIX requirements.
67183         The old names are still visible as macros.
67184         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
67185         is not defined, since GNU is supposed to be a superset of POSIX as
67186         much as possible, and since we want reg_errcode_t to be a signed
67187         type for implementation consistency.
67188         (_REG_NOERROR): Renamed from REG_NOERROR.
67189         (_REG_NOMATCH): Renamed from REG_NOMATCH.
67190         (_REG_BADPAT): Renamed from REG_BADPAT.
67191         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
67192         (_REG_ECTYPE): Renamed from REG_ECTYPE.
67193         (_REG_EESCAPE): Renamed from REG_EESCAPE.
67194         (_REG_ESUBREG): Renamed from REG_ESUBREG.
67195         (_REG_EBRACK): Renamed from REG_EBRACK.
67196         (_REG_EPAREN): Renamed from REG_EPAREN.
67197         (_REG_EBRACE): Renamed from REG_EBRACE.
67198         (_REG_BADBR): Renamed from REG_BADBR.
67199         (_REG_ERANGE): Renamed from REG_ERANGE.
67200         (_REG_ESPACE): Renamed from REG_ESPACE.
67201         (_REG_BADRPT): Renamed from REG_BADRPT.
67202         (_REG_EEND): Renamed from REG_EEND.
67203         (_REG_ESIZE): Renamed from REG_ESIZE.
67204         (_REG_ERPAREN): Renamed from REG_ERPAREN.
67205         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
67206         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
67207         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
67208         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
67209
67210         (_REG_RE_NAME, _REG_RM_NAME): New macros.
67211         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
67212         changed.  But support the old name if the new one is not defined
67213         and if _REGEX_SOURCE.
67214
67215         Change the following member names in struct re_pattern_buffer.
67216         The old names are still supported if !_REGEX_SOURCE.
67217         The new names are always supported, regardless of _REGEX_SOURCE.
67218         (re_buffer): Renamed from buffer.
67219         (re_allocated): Renamed from allocated.
67220         (re_used): Renamed from used.
67221         (re_syntax): Renamed from syntax.
67222         (re_fastmap): Renamed from fastmap.
67223         (re_translate): Renamed from translate.
67224         (re_can_be_null): Renamed from can_be_null.
67225         (re_regs_allocated): Renamed from regs_allocated.
67226         (re_fastmap_accurate): Renamed from fastmap_accurate.
67227         (re_no_sub): Renamed from no_sub.
67228         (re_not_bol): Renamed from not_bol.
67229         (re_not_eol): Renamed from not_eol.
67230         (re_newline_anchor): Renamed from newline_anchor.
67231
67232         Change the following member names in struct re_registers.
67233         The old names are still supported if !_REGEX_SOURCE.
67234         The new names are always supported, regardless of _REGEX_SOURCE.
67235         (rm_num_regs): Renamed from num_regs.
67236         (rm_start): Renamed from start.
67237         (rm_end): Renamed from end.
67238
67239         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
67240         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
67241         Prepend __ to parameter names.
67242
67243         Undo yesterday's changes.
67244
67245 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67246
67247         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
67248         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
67249         lib/regex.c.
67250
67251 2005-08-24  Jim Meyering  <jim@meyering.net>
67252
67253         Sync from coreutils.
67254         * m4/fcntl-safer.m4: New file.
67255
67256         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
67257         and object files for this module.
67258
67259 2005-08-24  Jim Meyering  <jim@meyering.net>
67260
67261         Sync from coreutils.
67262         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
67263
67264 2005-08-24  Jim Meyering  <jim@meyering.net>
67265
67266         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
67267         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
67268
67269 2005-08-24  Jim Meyering  <jim@meyering.net>
67270
67271         * modules/fcntl-safer: New module.
67272         * modules/fts (Depends-on): Add fcntl-safer.
67273         * MODULES.html.sh (File descriptor based Input/Output):
67274         Add fcntl-safer.
67275
67276 2005-08-24  Bruno Haible  <bruno@clisp.org>
67277
67278         Support for unit test modules.
67279         * modules/README: Mention tests modules.
67280         * modules/TEMPLATE-TESTS: New file.
67281         * gnulib-tool: New options --extract-tests-module, --with-tests and
67282         --tests-base (unused for the moment).
67283         (testsbase, inctests): New variables.
67284         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
67285         (func_verify_module): Exclude TEMPLATE-TESTS.
67286         (func_verify_nontests_module, func_verify_tests_module): New functions.
67287         (func_get_dependencies): Add implicit dependency for tests modules.
67288         (func_get_tests_module): New function.
67289         (func_modules_transitive_closure): When --with-tests was specified,
67290         include the unit tests as well, unless explicitly avoided.
67291         (func_emit_lib_Makefile_am): Ignore the tests modules here.
67292         (func_emit_tests_Makefile_am): New function.
67293         (func_create_testdir): When --with-tests was specified, emit a
67294         tests/ directory.
67295         * MODULES.html.sh (Future developments): Update.
67296
67297 2005-08-24  Bruno Haible  <bruno@clisp.org>
67298
67299         * modules/tls-tests: New file.
67300         * tests/test-tls.c: New file, from GNU gettext.
67301
67302 2005-08-24  Bruno Haible  <bruno@clisp.org>
67303
67304         * modules/lock-tests: New file.
67305         * tests/test-lock.c: New file, from GNU gettext.
67306
67307 2005-08-24  Bruno Haible  <bruno@clisp.org>
67308
67309         * lib/lock.h: Add multiple inclusion guard.
67310         * lib/tls.h: Add multiple inclusion guard.
67311
67312 2005-08-24  Bruno Haible  <bruno@clisp.org>
67313
67314         * gnulib-tool: Add support for the --aux-dir option to
67315         --create-testdir, --create-megatestdir, --test, --megatest.
67316         (func_create_testdir, func_create_megatestdir): Optionally emit a
67317         AC_CONFIG_AUX_DIR directive.
67318         (create-testdir, create-megatestdir, test, megatest): Provide a
67319         default value for $auxdir.
67320
67321 2005-08-24  Bruno Haible  <bruno@clisp.org>
67322
67323         * gnulib-tool (import): Use compound statement instead of subshell
67324         where possible.
67325
67326 2005-08-24  Bruno Haible  <bruno@clisp.org>
67327
67328         * gnulib-tool (import): Change --aux-dir default to "build-aux".
67329
67330 2005-08-24  Bruno Haible  <bruno@clisp.org>
67331
67332         * gnulib-tool (func_version): Update.
67333
67334 2005-08-24  Bruno Haible  <bruno@clisp.org>
67335
67336         * gnulib-tool (func_import, func_create_testdir,
67337         func_create_megatestdir): Quote all autoconf macro arguments.
67338
67339 2005-08-24  Bruno Haible  <bruno@clisp.org>
67340
67341         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
67342         option --force, because --force causes the aclocal.m4 of each
67343         subdirectory to be newer than the corresponding config.h.in.
67344
67345 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67346
67347         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
67348         All contents moved to gl_REGEX.
67349         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
67350         assume that it does.
67351
67352 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67353
67354         * lib/regex.h (REG_NOSYS)
67355         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
67356         Define, since POSIX requires it as of 2001.
67357         (_REG_ENOSYS)
67358         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
67359         New private symbol, used to keep the enum signed in all cases.
67360         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
67361         Youngman in
67362         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
67363
67364         * lib/regex_internal.c (re_string_skip_chars, register_state):
67365         (calc_state_hash):
67366         Remove forward decls; no longer needed now that we use prototypes.
67367         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
67368         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
67369         (clean_state_log_if_needed): Likewise.
67370
67371 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67372
67373         * config/srclist.txt: Add glibc bugs 1231-1233.
67374
67375 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67376
67377         Fix problems reported by Sam Steingold in
67378         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
67379         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
67380         assumed that reg_errcode_t is a signed type, which is not
67381         necessarily true if _XOPEN_SOURCE is not defined.
67382         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
67383         since some compilers warn about it otherwise.
67384
67385 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67386
67387         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
67388         (init_word_char, create_initial_state, duplicate_node_closure):
67389         (fetch_token, peek_token_bracket, build_range_exp):
67390         (build_collating_symbol): Remove forward decls; no longer needed
67391         now that we use prototypes.
67392
67393         * lib/regcomp.c:
67394         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
67395         (re_compile_fastmap_iter, regcomp, regerror, regfree):
67396         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
67397         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
67398         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
67399         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
67400         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
67401         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
67402         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
67403         (build_range_exp, build_collating_symbol, parse_bracket_exp):
67404         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
67405         (build_charclass, build_charclass_op, fetch_number, create_tree):
67406         (create_token_tree, mark_opt_subexp, duplicate_tree):
67407         Use prototypes rather than old-style definitions.
67408
67409         * lib/regex_internal.c:
67410         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
67411         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
67412         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67413         (re_string_reconstruct, re_string_peek_byte_case):
67414         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
67415         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67416         (re_node_set_init_copy, re_node_set_add_intersect):
67417         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67418         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67419         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67420         (re_acquire_state, re_acquire_state_context, register_state):
67421         (create_ci_newstate, create_cd_newstate, free_state):
67422         Likewise.
67423         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
67424         re_search_2):
67425         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
67426         (re_search_internal, prune_impossible_nodes):
67427         (acquire_init_state_context, check_matching, static):
67428         (check_halt_node_context, check_halt_state_context, proceed_next_node):
67429         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
67430         (update_regs, sift_states_backward, build_sifted_states):
67431         (clean_state_log_if_needed, merge_state_array):
67432         (update_cur_sifted_state, add_epsilon_src_nodes):
67433         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
67434         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
67435         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
67436         (find_recover_state, check_subexp_matching_top, transit_state_mb):
67437         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
67438         (check_arrival, check_arrival_add_next_nodes):
67439         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67440         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67441         (check_node_accept_bytes, check_node_accept, extend_buffers):
67442         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
67443         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
67444         (sift_ctx_init):
67445         Likewise.
67446
67447         * lib/regex_internal.h:
67448         (re_string_allocate, re_string_construct, re_string_reconstruct):
67449         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
67450         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
67451         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
67452         (re_string_context_at, re_string_peek_byte_case):
67453         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
67454         is defined, since we now use prototypes always.
67455
67456         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
67457         C89 or better.  All uses removed.
67458
67459 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67460
67461         * config/srclist.txt: Add glibc bugs 1220-1227.
67462
67463 2005-08-20  Jim Meyering  <jim@meyering.net>
67464
67465         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
67466         of unused local, dfa.
67467
67468 2005-08-20  Bruno Haible  <bruno@clisp.org>
67469
67470         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
67471
67472 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67473
67474         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
67475         (re_node_set_insert_last, re_dfa_add_node):
67476         Rename local variables to avoid GCC shadowing warnings.
67477
67478 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67479
67480         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
67481         [defined lint]: Suppress bogus uninitialized-variable warnings.
67482
67483         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
67484         and let the caller return REG_ESPACE if out of space.  This
67485         removes an uninitialied-variable warning with GCC 4.0.1, and also
67486         avoids taking the address of a local variable.  All callers
67487         changed.
67488
67489 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67490
67491         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
67492         $LIBCSRC/posix/regexec.c.
67493         Add glibc bug 1217 for regcomp.c.
67494
67495 2005-08-19  Jim Meyering  <jim@meyering.net>
67496
67497         * lib/regexec.c (proceed_next_node): Redo local variables to
67498         avoid GCC shadowing warnings.
67499
67500 2005-08-18  Bruno Haible  <bruno@clisp.org>
67501
67502         * lib/strstr.c (strstr): Fix return value in multibyte case.
67503         * lib/strcasestr.c (strcasestr): Likewise.
67504
67505 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67506
67507         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
67508
67509 2005-08-17  Jim Meyering  <jim@meyering.net>
67510
67511         Make the %s format (seconds since the epoch) work for a negative
67512         number and when used with a zero-padded field width, e.g. %015s.
67513
67514         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
67515         label so that it precedes the code to set `digits'.  Otherwise,
67516         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
67517         print `00-22'.  Now, it prints `-0022', as it should.
67518
67519 2005-08-17  Bruno Haible  <bruno@clisp.org>
67520
67521         * modules/strstr (Files): Add m4/mbrtowc.m4.
67522         (Depends-on): Add mbuiter.
67523
67524 2005-08-17  Bruno Haible  <bruno@clisp.org>
67525
67526         * modules/strcasestr: New file.
67527         * MODULES.html.sh (String handling, based on ANSI C 89): Add
67528         strcasestr.
67529
67530 2005-08-17  Bruno Haible  <bruno@clisp.org>
67531
67532         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
67533
67534 2005-08-17  Bruno Haible  <bruno@clisp.org>
67535
67536         * modules/mbuiter: New file.
67537         * MODULES.html.sh (Extended multibyte and wide character utilities):
67538         Add mbuiter.
67539
67540 2005-08-17  Bruno Haible  <bruno@clisp.org>
67541
67542         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
67543         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
67544
67545 2005-08-17  Bruno Haible  <bruno@clisp.org>
67546
67547         * m4/strcasestr.m4: New file.
67548
67549 2005-08-17  Bruno Haible  <bruno@clisp.org>
67550
67551         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
67552         * lib/strstr.c: Completely rewritten, with multibyte locale support.
67553
67554 2005-08-17  Bruno Haible  <bruno@clisp.org>
67555
67556         * lib/strcasestr.h: New file.
67557         * lib/strcasestr.c: New file.
67558
67559 2005-08-17  Bruno Haible  <bruno@clisp.org>
67560
67561         * lib/strcasecmp.c: Use mbuiter.h.
67562
67563 2005-08-17  Bruno Haible  <bruno@clisp.org>
67564
67565         * lib/mbuiter.h: New file.
67566
67567 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67568
67569         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
67570         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
67571         and gl_GETOPT are both invoked via different paths (as happens
67572         with GNU tar CVS because it uses both argp and getopt), the former
67573         wins.
67574
67575 2005-08-16  Bruno Haible  <bruno@clisp.org>
67576
67577         * modules/tls: New file.
67578         * MODULES.html.sh (Multithreading): Add tls.
67579
67580 2005-08-16  Bruno Haible  <bruno@clisp.org>
67581
67582         * modules/strnlen1: New file.
67583         * MODULES.html.sh (String handling): Add strnlen1.
67584
67585 2005-08-16  Bruno Haible  <bruno@clisp.org>
67586
67587         * modules/strcase (Files): Add m4/mbrtowc.m4.
67588         (Depends-on): Add strnlen1, mbchar.
67589
67590 2005-08-16  Bruno Haible  <bruno@clisp.org>
67591
67592         * modules/mbiter: New file.
67593         * MODULES.html.sh (Extended multibyte and wide character utilities):
67594         Add mbiter.
67595
67596 2005-08-16  Bruno Haible  <bruno@clisp.org>
67597
67598         * modules/mbfile: New file.
67599         * MODULES.html.sh (Extended multibyte and wide character utilities):
67600         Add mbfile.
67601
67602 2005-08-16  Bruno Haible  <bruno@clisp.org>
67603
67604         * modules/mbchar: New file.
67605         * MODULES.html.sh (Extended multibyte and wide character utilities):
67606         New section.
67607
67608 2005-08-16  Bruno Haible  <bruno@clisp.org>
67609
67610         * m4/tls.m4: New file, from GNU gettext.
67611
67612 2005-08-16  Bruno Haible  <bruno@clisp.org>
67613
67614         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
67615         always.
67616         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
67617
67618 2005-08-16  Bruno Haible  <bruno@clisp.org>
67619
67620         * m4/mbiter.m4: New file.
67621
67622 2005-08-16  Bruno Haible  <bruno@clisp.org>
67623
67624         * m4/mbfile.m4: New file.
67625
67626 2005-08-16  Bruno Haible  <bruno@clisp.org>
67627
67628         * m4/mbchar.m4: New file.
67629
67630 2005-08-16  Bruno Haible  <bruno@clisp.org>
67631
67632         * lib/tls.h: New file, from GNU gettext.
67633         * lib/tls.c: New file, from GNU gettext.
67634
67635 2005-08-16  Bruno Haible  <bruno@clisp.org>
67636
67637         * lib/strnlen1.h: New file.
67638         * lib/strnlen1.c: New file.
67639
67640 2005-08-16  Bruno Haible  <bruno@clisp.org>
67641
67642         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
67643         (mbi_init): Update.
67644         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67645         NUL byte, not after it.
67646
67647 2005-08-16  Bruno Haible  <bruno@clisp.org>
67648
67649         * lib/strcase.h (strcasecmp): Add note in comments.
67650         * lib/strncasecmp.c: Use code from strcasecmp.c.
67651         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67652         (strcasecmp): Work correctly in multibyte locales.
67653
67654 2005-08-16  Bruno Haible  <bruno@clisp.org>
67655
67656         * lib/mbiter.h: New file.
67657
67658 2005-08-16  Bruno Haible  <bruno@clisp.org>
67659
67660         * lib/mbfile.h: New file.
67661
67662 2005-08-16  Bruno Haible  <bruno@clisp.org>
67663
67664         * lib/mbchar.h: New file.
67665         * lib/mbchar.c: New file.
67666
67667 2005-08-16  Bruno Haible  <bruno@clisp.org>
67668
67669         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67670         the valid ones. Makes the comparison operations transitive:
67671         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67672         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67673
67674 2005-08-15  Simon Josefsson  <jas@extundo.com>
67675
67676         * modules/ssize_t (License): Change to 'unlimited'.
67677
67678         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67679
67680 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67681
67682         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67683         Add comments for each pending glibc patch.
67684
67685 2005-08-15  Bruno Haible  <bruno@clisp.org>
67686
67687         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67688         __cplusplus is defined.
67689
67690 2005-08-14  Jim Meyering  <jim@meyering.net>
67691
67692         Sync from coreutils.
67693
67694         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67695         Use the hash-table-based cycle-detection code not just when
67696         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67697         Reported by James Youngman in
67698         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67699         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67700         FTS_TIGHT_CYCLE_CHECK.
67701         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67702         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67703         once again.
67704         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67705         * lib/fts.c (fd_safer): Remove decl.
67706         Include fcntl--.h rather than unistd-safer.h
67707         (fts_safe_changedir): Don't call fd_safer; no longer needed
67708         now that we include fcntl--.h.
67709
67710 2005-08-12  Simon Josefsson  <jas@extundo.com>
67711
67712         * modules/getndelim2: Use ssize_t module.
67713         * modules/getnline: Likewise.
67714         * modules/safe-read: Likewise.
67715         * modules/xreadlink: Likewise.
67716
67717         * modules/ssize_t: New file.
67718
67719 2005-08-12  Simon Josefsson  <jas@extundo.com>
67720
67721         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67722
67723 2005-08-12  Simon Josefsson  <jas@extundo.com>
67724
67725         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67726         ssize_t.
67727
67728 2005-08-12  Simon Josefsson  <jas@extundo.com>
67729
67730         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67731         readline, getdelim and check_version.
67732         (Support for systems lacking ISO C 99: Sizes of integer types):
67733         Add size_max.
67734
67735 2005-08-12  Bruno Haible  <bruno@clisp.org>
67736
67737         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67738
67739 2005-08-11  Simon Josefsson  <jas@extundo.com>
67740
67741         * modules/readline: New file.
67742
67743         * modules/strnlen (Files): Add strnlen.h.
67744
67745 2005-08-11  Simon Josefsson  <jas@extundo.com>
67746
67747         * m4/readline.m4: New file.
67748
67749 2005-08-11  Simon Josefsson  <jas@extundo.com>
67750
67751         * lib/readline.h, readline.c: New file.
67752
67753 2005-08-11  Simon Josefsson  <jas@extundo.com>
67754
67755         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67756         gl_AVOID.
67757
67758 2005-08-11  Bruno Haible  <bruno@clisp.org>
67759
67760         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67761
67762 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67763
67764         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67765
67766 2005-08-10  Simon Josefsson  <jas@extundo.com>
67767
67768         * tests/test-iconvme.c: New file.
67769
67770 2005-08-10  Simon Josefsson  <jas@extundo.com>
67771
67772         * m4/strnlen.m4: New file.
67773
67774         * m4/strndup.m4: Don't check for strnlen declaration, done in
67775         strnlen.m4.
67776
67777 2005-08-10  Simon Josefsson  <jas@extundo.com>
67778
67779         * lib/strndup.c: Use strnlen.h.
67780
67781         * lib/strnlen.h: New file.
67782
67783 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67784
67785         * README: Typos.
67786
67787 2005-08-02  Simon Josefsson  <jas@extundo.com>
67788
67789         * modules/readline: New file.
67790
67791 2005-08-02  Simon Josefsson  <jas@extundo.com>
67792
67793         * modules/getdelim: New file.
67794
67795         * modules/getline: Rewrite, don't use getndelim2.
67796
67797 2005-08-02  Simon Josefsson  <jas@extundo.com>
67798
67799         * m4/getline.m4: Separate out getdelim stuff into separate module.
67800
67801         * m4/getdelim.m4: New file.
67802
67803 2005-08-02  Simon Josefsson  <jas@extundo.com>
67804
67805         * lib/getline.h, getline.c: Rewrite.
67806
67807         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67808
67809 2005-07-31  Bruno Haible  <bruno@clisp.org>
67810
67811         * lib/lock.h (gl_lock_initializer): New macro.
67812         (gl_lock_define_initialized): Use it.
67813         (gl_rwlock_initializer): New macro.
67814         (gl_rwlock_define_initialized): Use it.
67815         (gl_recursive_lock_initializer): New macro.
67816         (gl_recursive_lock_define_initialized): Use it.
67817
67818 2005-07-30  Karl Berry  <karl@gnu.org>
67819
67820         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67821         Report from Ben Pfaff, regarding getopt.
67822
67823 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67824
67825         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67826         normal way.
67827         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67828         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67829         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67830         (gl_GETOPT): Use the new macros.  Most of the implementation
67831         is moved to the new macros.  This is for programs like Emacs
67832         that don't want all the functionality of gl_GETOPT.
67833
67834 2005-07-26  Bruno Haible  <bruno@clisp.org>
67835
67836         * m4/lock.m4: Update from GNU gettext.
67837
67838 2005-07-26  Bruno Haible  <bruno@clisp.org>
67839
67840         * lib/lock.h: Update from GNU gettext.
67841         * lib/lock.c: Update from GNU gettext.
67842
67843 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67844
67845         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67846         obsolescent AC_TRY_RUN.  Include the default includes files, for
67847         'exit'.
67848
67849 2005-07-24  Bruno Haible  <bruno@clisp.org>
67850
67851         * modules/visibility: New file.
67852         * MODULES.html.sh (Misc): Add visibility.
67853
67854 2005-07-24  Bruno Haible  <bruno@clisp.org>
67855
67856         * m4/visibility.m4: New file.
67857
67858 2005-07-24  Bruno Haible  <bruno@clisp.org>
67859
67860         * doc/visibility.texi: New file.
67861
67862 2005-07-22  Bruno Haible  <bruno@clisp.org>
67863
67864         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67865         $(ALLOCA_H), redundant through BUILT_SOURCES.
67866         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67867         redundant through BUILT_SOURCES.
67868         * modules/byteswap (Makefile.am): Remove explicit dependency on
67869         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67870         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67871         $(FNMATCH_H), redundant through BUILT_SOURCES.
67872         * modules/getopt (Makefile.am): Remove explicit dependency on
67873         $(GETOPT_H), redundant through BUILT_SOURCES.
67874         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67875         redundant through BUILT_SOURCES.
67876         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67877         redundant through BUILT_SOURCES.
67878         * modules/stdbool (Makefile.am): Remove explicit dependency on
67879         $(STDBOOL_H), redundant through BUILT_SOURCES.
67880         * modules/stdint (Makefile.am): Remove explicit dependency on
67881         $(STDINT_H), redundant through BUILT_SOURCES.
67882         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67883         Remove explicit dependency on $(SYSEXITS_H).
67884         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67885
67886 2005-07-18  Simon Josefsson  <jas@extundo.com>
67887
67888         * lib/check-version.c (check_version): Accept identical versions too.
67889
67890 2005-07-18  Bruno Haible  <bruno@clisp.org>
67891
67892         * modules/lock: New file.
67893         * MODULES.html.sh (Multithreading): New section.
67894
67895 2005-07-18  Bruno Haible  <bruno@clisp.org>
67896
67897         * m4/lock.m4: New file, from GNU gettext.
67898
67899 2005-07-18  Bruno Haible  <bruno@clisp.org>
67900
67901         * lib/lock.h: New file, from GNU gettext.
67902         * lib/lock.c: New file, from GNU gettext.
67903
67904 2005-07-18  Bruno Haible  <bruno@clisp.org>
67905
67906         * lib/lock.h (gl_once_t): New type.
67907         (gl_once_define, gl_once): New macros.
67908         * lib/lock.c (fresh_once): New variable.
67909         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67910         functions.
67911
67912 2005-07-16  Simon Josefsson  <jas@extundo.com>
67913
67914         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67915         workaround, suggested by Bruno.
67916
67917 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67918
67919         * modules/xalloc (Depends-on): Add xalloc-die.
67920         * modules/xvasprintf (Depends-on): Add xalloc-die.
67921
67922 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67923
67924         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67925         with a minor change.
67926
67927 2005-07-15  Bruno Haible  <bruno@clisp.org>
67928
67929         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67930         When using lib/poll.c, define poll as rpl_poll.
67931
67932 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67933
67934         * modules/argp (Depends-on): Remove unlocked-io.
67935
67936 2005-07-14  Derek Price  <derek@ximbiot.com>
67937
67938         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67939         for glob symlink bug.
67940
67941 2005-07-14  Bruno Haible  <bruno@clisp.org>
67942
67943         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67944         Instead, test for *_unlocked function declarations directly.
67945
67946 2005-07-11  Simon Josefsson  <jas@extundo.com>
67947
67948         * modules/size_max: New file.
67949
67950         * modules/xsize: Depend on size_max module for size_max.m4.
67951
67952 2005-07-11  Simon Josefsson  <jas@extundo.com>
67953
67954         * lib/size_max.h: New file.
67955
67956 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67957
67958         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67959         copyright symbol and the year.
67960         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67961         (version_etc_va): Use parameterized copyright notice.
67962         Reword to conform to the current GNU coding standards.
67963
67964 2005-07-11  Karl Berry  <karl@gnu.org>
67965
67966         * doc/gnulib.texi (Quoting): new node.
67967         (Initial import): more info, from Patrice.
67968
67969 2005-07-11  Bruno Haible  <bruno@clisp.org>
67970
67971         * gnulib-tool (func_usage): Document option --avoid.
67972         (Command line options): Handle --avoid.
67973         (func_acceptable): New function.
67974         (func_modules_transitive_closure): Use it.
67975
67976 2005-07-11  Bruno Haible  <bruno@clisp.org>
67977
67978         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67979         Reported by Jim Meyering.
67980
67981 2005-07-10  Bruno Haible  <bruno@clisp.org>
67982
67983         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67984         Needed when size_t is smaller than 'unsigned int'.
67985         Reported by Paul Eggert.
67986
67987 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67988
67989         * modules/argp (Depends-on): Add unlocked-io
67990
67991 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67992
67993         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67994         block of defines.
67995
67996 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67997
67998         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67999         fix now.
68000
68001 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
68002         and Paul Eggert  <eggert@cs.ucla.edu>
68003
68004         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
68005         in wint_t, not wchar_t.  Remove now-unnecessary cast.
68006
68007 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68008
68009         * modules/regex (Files): Add lib/regex_internal.c,
68010         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
68011         (Depends-on): Add extensions.
68012         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
68013
68014 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68015
68016         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
68017         pathconf.
68018         * m4/same.m4 (gl_SAME): Likewise.
68019         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
68020
68021         * m4/regex.m4: Adjust to new libc regex implementation.
68022         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
68023         all the .c and .h parts of (the new) regex.
68024         Quote the m4 stuff better.
68025         Check for RE_ICASE bug of old gnulib.
68026         Check for REG_STARTEND of recent libc.
68027         Rename local variables from jm_* to gl_*.
68028         Quote operand of "test -f".
68029         Say "recent enough" version of libc, not "version 2".
68030         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
68031         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
68032         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
68033         Remove check for btowc, isascii.
68034         Require AM_LANGINFO_CODESET.
68035
68036 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68037
68038         * lib/regex.c, regex.h: Sync from libc.
68039         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
68040         * lib/regexec.c:
68041         New files, synced from libc, except that regex_internal.h
68042         currently has a small porting fix.
68043
68044 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68045
68046         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
68047         regex_internal.c, regexec.c.
68048         Add regex_internal.h too, but as a comment, since the libc version
68049         is currently broken in gnulib mode.
68050
68051 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68052
68053         Support programs like Emacs that use gnulib but not gettext.
68054         * MODULES.html.sh (Internationalization functions): Add gettext-h.
68055         * modules/gettext-h: New file.
68056         * modules/gettext (Files): Remove lib/gettext.h.
68057         (Depends-on): Add gettext-h.
68058         (Makefile.am): Remove lib_SOURCES.
68059         * modules/argmatch, modules/c-stack, modules/closeout:
68060         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
68061         * modules/execute, modules/file-type, modules/getaddrinfo:
68062         * modules/getopt, modules/human, modules/javacomp:
68063         * modules/javaexec, modules/mkdir-p, modules/obstack:
68064         * modules/openat, modules/pagealign_alloc, modules/pipe:
68065         * modules/quotearg, modules/regex, modules/rpmatch:
68066         * modules/unicodeio, modules/userspec, modules/version-etc:
68067         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
68068         * modules/xsetenv:
68069         Depend on gettext-h, not gettext.
68070
68071 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68072
68073         * gnulib-tool (func_import): Add support for 'public domain' license.
68074         * modules/alloca, modules/atexit, modules/memmove:
68075         Now public domain, not GPL.
68076         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
68077         * modules/realloc, modules/strerror, modules/strtod:
68078         Now LGPL, not GPL.
68079
68080 2005-07-05  Bruno Haible  <bruno@clisp.org>
68081
68082         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
68083         autoconf CVS. Needed for mingw.
68084
68085 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68086
68087         Remove the dependency of the strftime module on the tzset module.
68088         * modules/strftime (Depends-on): Remove dependency on tzset.
68089
68090 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68091
68092         Remove the dependency of the strftime module on the tzset module.
68093         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
68094         gl_FUNC_TZSET_CLOBBER.
68095
68096 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68097
68098         Remove the dependency of the strftime module on the tzset module.
68099         * lib/strftime.c (my_strftime)
68100         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
68101         Copy the input structure, to work around some of the bug with
68102         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
68103         Solaris releases, you should also use the tzset module, but we won't
68104         require it as a dependency any more since we don't want LGPLed code
68105         to depend on GPLed code.
68106
68107 2005-07-02  Jim Meyering  <jim@meyering.net>
68108
68109         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
68110         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
68111         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
68112         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
68113
68114 2005-07-02  Jim Meyering  <jim@meyering.net>
68115
68116         * lib/backupfile.c (backup_args): Change a `0' to NULL.
68117
68118 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68119
68120         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
68121         declares only 'struct timespec;' (!).
68122
68123 2005-07-01  Jim Meyering  <jim@meyering.net>
68124
68125         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
68126         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
68127         * lib/save-cwd.c, tempname.c:
68128         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68129         and don't include <sys/file.h>).
68130
68131 2005-06-29  Jim Meyering  <jim@meyering.net>
68132
68133         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
68134         type name.  Use the variable name instead.
68135         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
68136         Likewise.
68137
68138 2005-06-28  Simon Josefsson  <jas@extundo.com>
68139
68140         * modules/check-version (Files): Add check-version.m4.
68141
68142 2005-06-28  Simon Josefsson  <jas@extundo.com>
68143
68144         * m4/check-version.m4: New file, suggested by Jim Meyering
68145         <jim@meyering.net>.
68146
68147 2005-06-28  Simon Josefsson  <jas@extundo.com>
68148
68149         * lib/check-version.h, lib/check-version.c: New files.
68150
68151 2005-06-28  Simon Josefsson  <jas@extundo.com>
68152
68153         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
68154         collision with global variable.  Better indentation.  Don't
68155         increment buffer pointer beyond buffer end.  Based on comments
68156         from Paul Eggert <eggert@cs.ucla.edu>.
68157
68158         * lib/base64.h: Indent.
68159
68160 2005-06-28  Simon Josefsson  <jas@extundo.com>
68161
68162         * doc/gnulib.texi (Library version handling): New section.
68163
68164 2005-06-28  Jim Meyering  <jim@meyering.net>
68165
68166         * check-module (find_included_lib_files): Hard-code another
68167         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
68168         but modules/fts-lgpl (correctly) does not list those files.
68169
68170         * modules/canonicalize (Files): Add lib/pathmax.h.
68171
68172 2005-06-25  Simon Josefsson  <jas@extundo.com>
68173
68174         * modules/check-version: New file.
68175
68176 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
68177
68178         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
68179         initializer of struct addrinfo, as an indication that we don't
68180         care how many members the structure has.
68181
68182 2005-06-24  Derek Price  <derek@ximbiot.com>
68183         and Bruno Haible  <bruno@clisp.org>
68184
68185         Remove stat module & update lstat.
68186         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
68187         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68188         * m4/stat.m4: Remove this file.
68189
68190 2005-06-24  Derek Price  <derek@ximbiot.com>
68191         and Bruno Haible  <bruno@clisp.org>
68192
68193         Remove stat module & update lstat.
68194         * lib/stat.c: Remove this file...
68195         (slash_aware_lstat): ...moving this content and its support...
68196         * lib/lstat.c (rpl_lstat): ...into here.
68197         * lib/lstat.h: New file.
68198
68199 2005-06-24  Derek Price  <derek@ximbiot.com>
68200         and Bruno Haible  <bruno@clisp.org>
68201
68202         Remove stat module & update lstat.
68203         * config/srclist.txt (libc sources): Remove stat.
68204
68205 2005-06-24  Derek Price  <derek@ximbiot.com>
68206         and Bruno Haible  <bruno@clisp.org>
68207
68208         Remove stat module & update lstat.
68209         * MODULES.html.sh (stat): Remove.
68210         * MODULES.html: Regenerated.
68211         * modules/lstat (Description): Correct function name.
68212         (Files): Add "lstat.h".
68213         (Depends-on): Remove stat, add xalloc, stat-macros.
68214         * modules/stat: Remove this file.
68215         (Include): Add "lstat.h", remove <sys/stat.h>.
68216
68217 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68218
68219         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
68220         (ranged_convert): Don't save conversion in a temporary struct.
68221         This causes a warning with GCC 4.0.0, and anyway in the typical
68222         case it's not worth the extra 100 bytes or so of code.
68223         (ranged_convert, __mktime_internal): When calling a function via a
68224         pointer P, use P () rather than (*P) (), as we now assume C89 or
68225         better.
68226
68227 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68228
68229         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
68230         "who -r" failed to give output.  Problem reported by Tim Waugh.
68231
68232         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
68233         (xcalloc): Use it to avoid needless tests.
68234         Problem reported by Jim Meyering.
68235
68236 2005-06-20  Derek Price  <derek@ximbiot.com>
68237
68238         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
68239         unnecessary for Autoconfs > 2.59c.
68240
68241 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68242
68243         * lib/argp.h (__option_is_short): Check upper limit of
68244         __key. Isprint() requires its argument to have the value
68245         of an unsigned char or EOF.
68246
68247 2005-06-16  Jim Meyering  <jim@meyering.net>
68248
68249         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
68250         when either N or S is zero.
68251
68252 2005-06-16  Derek Price  <derek@ximbiot.com>
68253
68254         * m4/bison.m4: Declare YACC & YFLAGS precious.
68255
68256 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
68257
68258         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
68259         multibyte string or pattern, fall back on unibyte matching.
68260         Problem reported by James Youngman.
68261
68262 2005-06-08  Bruno Haible  <bruno@clisp.org>
68263
68264         * modules/csharpcomp: New file.
68265         * MODULES.html.sh (C#): Add csharpcomp.
68266
68267 2005-06-08  Bruno Haible  <bruno@clisp.org>
68268
68269         * m4/csharpcomp.m4: New file, from GNU gettext.
68270
68271 2005-06-08  Bruno Haible  <bruno@clisp.org>
68272
68273         * lib/csharpcomp.h: New file, from GNU gettext.
68274         * lib/csharpcomp.c: New file, from GNU gettext.
68275         * lib/csharpcomp.sh.in: New file, from GNU gettext.
68276
68277 2005-06-08  Bruno Haible  <bruno@clisp.org>
68278
68279         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
68280         warning on mingw.
68281
68282 2005-06-07  Derek Price  <derek@ximbiot.com>
68283
68284         Sync from CVS.
68285         * lib/glob_.h: Indent nested #ifdef.
68286
68287 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68288
68289         Sync from coreutils.
68290         Use "file name" when talking about file names, instead of "filename"
68291         or "path", as per the GNU coding standards.
68292         * lib/mkdir-p.c: Renamed from makepath.c.
68293         (make_dir_parents): Renamed from make_path.  All callers changed.
68294         * lib/mkdir-p.h: Likewise.  All includers changed.
68295         * lib/filenamecat.c: Renamed from path-concat.c.
68296         (file_name_concat): Renamed from path_concat.  All callers changed.
68297         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
68298         * lib/filenamecat.h: Likewise.  All includers changed.
68299         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
68300         in comments or local variable names.
68301         * lib/basename.c: Likewise.
68302         * lib/canonicalize.c, canonicalize.h: Likewise.
68303         * lib/dirname.c, dirname.h: Likewise.
68304         * lib/euidaccess.c: Likewise.
68305         * lib/exclude.c: Likewise
68306         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
68307         * lib/fsusage.c, fsuage.h: Likewise.
68308         * lib/fts.c, fts_.h: Likewise.
68309         * lib/getcwd.c: Likewise.
68310         * lib/getloadavg.c: Likewise.
68311         * lib/mkstemp.c: Likewise.
68312         * lib/mountlist.c, mountlist.h: Likewise.
68313         * lib/openat.c, openat.h: Likewise.
68314         * lib/readlink-stub.c: Likewise.
68315         * lib/readutmp.c, readutmp.h: Likewise.
68316         * lib/rename.c: Likewise.
68317         * lib/rmdir.c: Likewise.
68318         * lib/same.c: Likewise.
68319         * lib/savedir.c: Likewise.
68320         * lib/stripslash.c: Likewise.
68321         * lib/tempname.c: Likewise.
68322         * lib/xreadlink.c: Likewise.
68323         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
68324         All uses changed.
68325         * lib/exclude.h: Likewise.
68326
68327         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
68328         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68329         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
68330         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68331         * lib/pathmax.h: Include <limits.h> unconditionally, since other
68332         files have been getting away with it for years (MORE/BSD 4.3
68333         is extinct now).
68334         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
68335         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68336
68337         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
68338         Define to 256, not 255, as per modern POSIX.
68339
68340 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68341
68342         Sync from coreutils.
68343         Use "file name" when talking about file names, instead of "filename"
68344         or "path", as per the GNU coding standards.
68345         * MODULES.html.sh: mkdir-p renamed from makepath.
68346         filenamecat renamed from path-concat.
68347         * modules/filenamecat: Renamed from modules/path-concat.
68348         (Files): filenamecat.h and filenamecat.c renamed from
68349         path-concat.h and path-concat.c.
68350         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
68351         (Include): filenamecat.h, not path-concat.h.
68352         * modules/mkdir-p: Renamed from modules/makepath.
68353         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
68354         makepath.c.
68355         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
68356         (Include): mkdir-p.h, not makepath.h.
68357
68358 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68359
68360         Sync from coreutils.
68361         * m4/mkdir-p.m4: Renamed from makepath.m4.
68362         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
68363         Rename files from makepath.c to mkdir-p.c, and from
68364         makepath.h to mkdir-p.h.
68365         * m4/filenamecat.m4: Renamed from path-concat.m4.
68366         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
68367         Rename files from path-concat.c to filenamecat.c,
68368         and from path-concat.h to filenamecat.h.
68369         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
68370         "file name" in local variables or comments.
68371         * m4/rename.m4: Likewise.
68372
68373 2005-06-01  Bruno Haible  <bruno@clisp.org>
68374
68375         * modules/csharpexec: New file.
68376         * MODULES.html.sh (C#): New section.
68377
68378 2005-06-01  Bruno Haible  <bruno@clisp.org>
68379
68380         * m4/csharp.m4: New file, from GNU gettext.
68381         * m4/csharpexec.m4: New file, from GNU gettext.
68382
68383 2005-06-01  Bruno Haible  <bruno@clisp.org>
68384
68385         * lib/csharpexec.h: New file, from GNU gettext.
68386         * lib/csharpexec.c: New file, from GNU gettext.
68387         * lib/csharpexec.sh.in: New file, from GNU gettext.
68388
68389 2005-05-31  Derek Price  <derek@ximbiot.com>
68390             Paul Eggert  <eggert@cs.ucla.edu>
68391
68392         Sync from cvs.
68393         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68394
68395 2005-05-31  Derek Price  <derek@ximbiot.com>
68396             Paul Eggert  <eggert@cs.ucla.edu>
68397
68398         Sync from cvs.
68399         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68400
68401 2005-05-29  Derek Price  <derek@ximbiot.com>
68402
68403         * config/srclist.txt (glob_.h, glob.c): Add these files.
68404
68405 2005-05-29  Derek Price  <derek@ximbiot.com>
68406
68407         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
68408         * modules/glob: New file.
68409         * modules/getlogin_r: Add link to POSIX spec in description.
68410
68411 2005-05-29  Derek Price  <derek@ximbiot.com>
68412             Paul Eggert  <eggert@cs.ucla.edu>
68413
68414         * m4/glob.m4: New file.
68415
68416 2005-05-29  Derek Price  <derek@ximbiot.com>
68417             Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         * lib/glob_.h, lib/glob.c: New files.
68420
68421 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68422
68423         * modules/fts (Files): Remove m4/inttypes-pri.m4.
68424         * modules/fts-lgpl (Depends-on): Remove gettext.
68425
68426 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68427
68428         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
68429         and don't require gt_INTTYPES_PRI.
68430
68431 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68432
68433         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
68434
68435         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
68436         the configuration hassle isn't worth it.
68437         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
68438         (LONGEST_MODIFIER, PRIuMAX): Remove.
68439
68440 2005-05-27  Bruno Haible  <bruno@clisp.org>
68441
68442         * lib/getlogin_r.h: Remove second include of <stddef.h>.
68443
68444 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
68445
68446         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
68447         _POSIX_PTHREAD_SEMANTICS for Solaris.
68448
68449 2005-05-25  Derek Price  <derek@ximbiot.com>
68450
68451         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
68452
68453 2005-05-25  Derek Price  <derek@ximbiot.com>
68454             Paul Eggert  <eggert@cs.ucla.edu>
68455
68456         * modules/getlogin_r, m4/getlogin_r.m4: New files.
68457         * lib/getlogin_r.c, getlogin_r.h: New files.
68458
68459 2005-05-25  Bruno Haible  <bruno@clisp.org>
68460             Derek Price  <derek@ximbiot.com>
68461
68462         * lib/getlogin_r.h: Simplify API documentation.
68463
68464 2005-05-23  Derek Price  <derek@ximbiot.com>
68465
68466         * modules/minmax (Files): Add m4/minmax.m4.
68467         (configure.ac): Add gl_MINMAX.
68468
68469 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68470
68471         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
68472         so that unistd-safer.h (GPL'ed code) need not be included.
68473
68474 2005-05-22  Bruno Haible  <bruno@clisp.org>
68475
68476         * m4/minmax.m4: New file.
68477         Based on a patch by Derek Price <derek@ximbiot.com>.
68478
68479 2005-05-22  Bruno Haible  <bruno@clisp.org>
68480
68481         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
68482         (INT64_MIN): Fix definition.
68483         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
68484
68485         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
68486         NEED_SIGNED_INT_TYPES.
68487
68488         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
68489         HAVE_SYSTEM_INTTYPES.
68490
68491 2005-05-22  Bruno Haible  <bruno@clisp.org>
68492
68493         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
68494         Also include <sys/param.h> if it defines MIN, MAX.
68495         Based on a patch by Derek Price <derek@ximbiot.com>.
68496
68497 2005-05-21  Jim Meyering  <jim@meyering.net>
68498
68499         * modules/fts (Files): Add m4/inttypes-pri.m4.
68500         (Depends-on): Add lstat and remove gettext.  Alphabetize.
68501
68502 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68503
68504         New fts module.
68505         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
68506         (setup_dir, free_dir): New functions.
68507         (enter_dir, leave_dir): Define trivial
68508         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
68509         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
68510         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
68511         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
68512         Move to fts-cycle.c.
68513         (fts_open): Use setup_dir.
68514         (fts_close): Use free_dir.
68515         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
68516         This adds a label and some gotos, but the alternatives were messier.
68517         Check for memory allocation failure when entering a dir.
68518         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
68519         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
68520         (FTS): New member fts_cycle, that is a union that contains the
68521         old active_dir_ht and cycle_state.  All uses changed to mention
68522         fts_cycle.ht and fts_cycle.state.
68523         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
68524         fts.c, with the following changes:
68525         (setup_dir, free_dir): New functions.
68526         (enter_dir): Now returns bool.  Return true if successful, false
68527         if memory exhausted.  All callers changed.
68528         Do not bother partly cleaning up on
68529         memory allocation failure; that is free_dir's job.
68530         However, free ad if hash_insert fails, to avoid memory leak.
68531         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
68532         fts->fts_options to see which union member to use.
68533
68534 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68535
68536         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
68537         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
68538
68539 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68540
68541         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
68542
68543 2005-05-20  Jim Meyering  <jim@meyering.net>
68544
68545         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
68546         Now a macro, to pacify GCC.
68547
68548 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68549
68550         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
68551         of -1.
68552
68553 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68554
68555         * lib/chown.c (rpl_chown): Return -1 on failure.
68556
68557 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68558
68559         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
68560         Don't check for stddef.h.
68561         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
68562         don't use its results.
68563         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
68564         since we include them unconditionally.  Don't require
68565         AM_STDBOOL_H, since stdbool is a prerequisite.
68566         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
68567         since we assume C89 or better.
68568         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
68569         as we don't use their results.
68570         Don't check for fchdir, memmove, memset, strrchr, as we use
68571         them unconditionally.
68572         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
68573         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
68574
68575 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68576
68577         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
68578         Include <stddef.h> unconditionally, since we assume C89 now.
68579         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
68580         * lib/fts.c: Include fts_.h first, to check interface.
68581         Do not include intprops.h; no longer needed.
68582         Include cycle-check.h and hash.h, since fts_.h no longer does.
68583         Remove unnecessary casts of closedir to void.
68584         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
68585         decide whether to decrement nlinks.
68586         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
68587         (FTS): Use struct hash_table * instead of Hash_table, so that
68588         we no longer need to include hash.h here.
68589
68590 2005-05-18  Jim Meyering  <jim@meyering.net>
68591
68592         * modules/dirfd (License): Change to LGPL.  Most of the code
68593         is already in the public domain.
68594
68595 2005-05-18  Jim Meyering  <jim@meyering.net>
68596
68597         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
68598         Reported by Yoann Vandoorselaere.
68599
68600 2005-05-17  Jim Meyering  <jim@meyering.net>
68601
68602         * m4/fts.m4: New file, from coreutils.
68603
68604 2005-05-17  Jim Meyering  <jim@meyering.net>
68605
68606         * lib/fts.c, lib/fts_.h: New files, from coreutils.
68607
68608 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68609
68610         Sync from coreutils.
68611         * m4/unlinkdir.m4: New file.
68612
68613 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68614
68615         Sync from coreutils.
68616         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
68617         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
68618         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
68619         White space changes only.
68620         * lib/makepath.c (make_path): Port to hosts where leading "//" is
68621         special.
68622         * lib/yesno.c: Include getline.h, not ctype.h.
68623         (yesno): Don't remove leading white space; POSIX doesn't allow it.
68624         Use getline to remove arbitrary restriction on response length.
68625
68626 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68627
68628         * config/srclist-update: Spell out "Street" in FSF postal
68629         mail address; this is the style the FSF seems to prefer.
68630
68631         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
68632         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
68633         this updates FSF postal mail address.
68634
68635         Sync from coreutils.
68636         * modules/unlinkdir: New file.
68637         * modules/yesno (Depends-on): Add getline.
68638         * MODULES.html.sh (File system functions): Add unlinkdir.
68639
68640 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68641
68642         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
68643         lib/strsep.h:
68644         Change the initial comment to refer to GPL, not LGPL.
68645         gnulib-tool will change it to LGPL as needed.
68646
68647         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68648         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68649         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68650         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68651         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68652         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68653         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68654         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68655         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68656         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68657         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68658         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68659         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68660         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68661         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68662         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68663         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68664         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68665         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68666         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68667         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68668         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68669         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68670         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68671         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68672         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68673         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68674         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68675         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68676         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68677         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68678         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68679         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68680         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68681         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68682         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68683         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68684         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68685         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68686         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68687         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68688         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68689         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68690         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68691         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68692         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68693         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68694         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68695         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68696         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68697         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68698         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68699         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68700         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68701         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68702         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68703         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68704         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68705         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68706         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68707         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68708         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68709         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68710         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68711         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68712         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68713         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68714         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68715         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68716         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68717         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68718         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68719         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68720         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68721         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68722         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68723         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68724         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68725         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68726         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68727         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68728         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68729         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68730         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68731         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68732         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68733         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68734         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68735         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68736         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68737         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68738         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68739         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68740         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68741         lib/yesno.c, lib/yesno.h:
68742         Update FSF postal mail address.
68743
68744 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68745
68746         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68747         tests/test-memmem.c, tests/test-stpncpy.c:
68748         Update FSF postal mail address.
68749
68750 2005-05-13  Bruno Haible  <bruno@clisp.org>
68751
68752         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68753         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68754         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68755         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68756         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68757         Add support for 64-bit integers in the MSVC compiler.
68758
68759 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68760
68761         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68762
68763 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68764
68765         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68766
68767 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68768
68769         * doc/getdate.texi (General date syntax): Don't say that date
68770         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68771         Problem reported by Nic Ferrier.
68772
68773 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68774
68775         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68776         specified in ai_socktype. Fix invalid ai_protocol
68777         check. ai_protocol is usually set to 0 or depending on
68778         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68779         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68780         ai_socktype / ai_protocol in the returned addrinfo structure.
68781
68782 2005-05-10  Simon Josefsson  <jas@extundo.com>
68783
68784         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68785         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68786
68787 2005-05-10  Karl Berry  <karl@gnu.org>
68788
68789         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68790         (from http://www.gnu.org/licenses).
68791         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68792         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68793         fdl.texi suffices.
68794
68795 2005-05-10  Karl Berry  <karl@gnu.org>
68796
68797         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68798         (COPYING.DOC): remove.
68799
68800         * config/srclist-update: new FSF address.
68801
68802 2005-05-10  Derek Price  <derek@ximbiot.com>
68803
68804         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68805         possible.
68806
68807 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68808             Bruno Haible  <bruno@clisp.org>
68809
68810         * modules/inet_ntop: New file.
68811         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68812         inet_ntop.
68813
68814 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68815             Bruno Haible  <bruno@clisp.org>
68816
68817         * m4/inet_ntop.m4: New file.
68818
68819 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68820             Bruno Haible  <bruno@clisp.org>
68821
68822         * lib/inet_ntop.h: New file.
68823         * lib/inet_ntop.c: New file, from glibc with modifications.
68824
68825 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68826
68827         * modules/time_r (License): Change to LGPL.
68828         * modules/extensions (License): Change to LGPL.  Actually,
68829         the license is more permissive than that, but currently gnulib-tool
68830         doesn't know how to handle more-permissive licenses.
68831
68832         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68833         Problem reported by Dave Love.
68834
68835 2005-05-08  Jim Meyering  <jim@meyering.net>
68836
68837         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68838         blank.
68839
68840 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68841
68842         * modules/argmatch (Depends-on): Add stdbool.
68843         * modules/backupfile (Depends-on): Likewise.
68844         * modules/chdir-long (Depends-on): Likewise.
68845         * modules/closeout (Depends-on): Likewise.
68846         * modules/cycle-check (Depends-on): Likewise.
68847         * modules/dirname (Depends-on): Likewise.
68848         * modules/fnmatch (Depends-on): Likewise.
68849         * modules/fsusage (Depends-on): Likewise.
68850         * modules/fwriteerror (Depends-on): Likewise.
68851         * modules/getcwd (Depends-on): Likewise.
68852         * modules/getloadavg (Depends-on): Likewise.
68853         * modules/hard-locale (Depends-on): Likewise.
68854         * modules/makepath (Depends-on): Likewise.
68855         * modules/mountlist (Depends-on): Likewise.
68856         * modules/nanosleep (Depends-on): Likewise.
68857         * modules/posixtm (Depends-on): Likewise.
68858         * modules/quotearg (Depends-on): Likewise.
68859         * modules/readtokens (Depends-on): Likewise.
68860         * modules/readtokens0 (Depends-on): Likewise.
68861         * modules/readutmp (Depends-on): Likewise.
68862         * modules/save-cwd (Depends-on): Likewise.
68863         * modules/strftime (Depends-on): Likewise.
68864         * modules/userspec (Depends-on): Likewise.
68865         * modules/utimecmp (Depends-on): Likewise.
68866         * modules/xgetcwd (Depends-on): Likewise.
68867         * modules/xnanosleep (Depends-on): Likewise.
68868         * modules/xstrtod (Depends-on): Likewise.
68869         * modules/yesno (Depends-on): Likewise.
68870
68871 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68872
68873         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68874         needless checks.
68875
68876 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68877
68878         Merge from coreutils.  Among other things,
68879         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68880         * lib/fd-safer.c: New file.
68881         * lib/fcntl-safer.h, open-safer.c: Remove.
68882         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68883         * lib/dup-safer.c: Include unistd-safer.h first.
68884         Don't include errno.h.
68885         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68886         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68887         * lib/file-type.c: Rely on file-type.h change.
68888         * lib/getloadavg.c: Include unistd-safer.h.
68889         (getloadavg): Use safer open.
68890         * lib/getusershell.c: Include "stdio-safer.h".
68891         (getusershell): Use safer fopen.
68892         * lib/long-options.c (long_options): Use NULL rather than 0.
68893         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68894         'free'.
68895         * lib/modechange.c: Likewise.
68896         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68897         (MODE_DONE): New constant.
68898         (struct mode_change): Remove 'next' member.
68899         (make_node_op_equals): New function; like the old one of the
68900         same name, except it allocates an array.
68901         (mode_compile, mode_create_from_ref): Use it.
68902         (mode_compile): Allocate result as an array, not a linked list.
68903         Parse octal string ourself, so that we catch mistakes like "+0".
68904         (mode_adjust): Arg is an array, not a linked list.
68905         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68906         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68907         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68908         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68909         Remove.  This is now stat-macros.h's job.
68910         (talloc): Remove.  All callers replaced by xalloc, so that
68911         our invokers don't have to worry about reporting memory failures.
68912         (make_node_op_equals): Remove.
68913         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68914         New constants.
68915         (struct mode_change): Moved here from modechange.h.
68916         (mode_append_entry): Remove.
68917         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68918         apps to have incorrect behavior.  Use simpler algorithm for head
68919         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68920         Detect more invalid usages rather than having somewhat-random behavior.
68921         Don't insert an "a=" action, as that leads to incorrect behavior.
68922         (mode_compile, mode_create_from_ref): Return NULL on error instead
68923         of an enum, since now there's only one way to have an error.  All
68924         callers changed.
68925         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68926         at the correct time.  Simplify calculation of "+u" and its ilk.
68927         Don't mishandle "+X".
68928         (mode_free): Remove "register" and localize decls.
68929         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68930         (struct mode_change): Move to modechange.c; callers don't
68931         need to see this stuff.
68932         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68933         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68934         (mode_change, mode_adjust): Reflect the new signatures noted above.
68935         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68936         that might redefine system include files.
68937         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68938         (my_usleep): Use NULL rather than (void *) 0.
68939         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68940         Use siginterrupt to specify that system calls should be interrupted.
68941         (rpl_nanosleep): Move initialization of suspended closer to call of
68942         my_usleep.
68943         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68944         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68945         (desirable_utmp_entry): New function.
68946         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68947         using x2nrealloc, to simplify logic.
68948         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68949         size calculation.  Do not assume utmp file is a regular file.
68950         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68951         (READ_UTMP_CHECK_PIDS): New constant.
68952         * lib/save-cwd.c: Include unistd-safer.h.
68953         (save_cwd): Use fd_safer.
68954         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68955         [!_LIBC] Include "stat-macros.h" instead.
68956         * lib/unistd-safer.h (fd_safer): New decl.
68957
68958 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68959
68960         * modules/getloadavg (Depends-on): Add unistd-safer.
68961         * modules/getusershell (Depends-on): Add stdio-safer.
68962         * modules/lstat (Depends-on): Remove xalloc.
68963         * modules/mkstemp (Depends-on): Add stat-macros.
68964         * modules/modechange (Depends-on): Remove xstrtol.
68965         Add stat-macros, xalloc.
68966         * modules/save-cwd (Depends-on): Add unistd-safer.
68967         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68968         * modules/unistd-safer (Files): Add lib/fd-safer.c
68969         (Makefile.am): Remove lib_SOURCES.
68970
68971         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68972         Remove fcntl-safer; unistd-safer supersedes it.
68973
68974 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68975
68976         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68977         AC_HEADER_STAT.
68978         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68979         (gl_PREREQ_CHOWN): Remove.
68980         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68981         it.  Don't require AC_HEADER_STAT.
68982         (gl_PREREQ_LSTAT): Remove.
68983         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68984         Don't require AC_HEADER_STAT.
68985         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68986         (gl_PREREQ_RMDIR): Remove.
68987         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68988         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68989         the stat-macros module a prerequisite.
68990         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68991         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68992         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68993         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68994         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68995         variable names.
68996         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68997         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68998         variable prefixes.
68999         * m4/fcntl-safer.m4: Remove.
69000         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
69001         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
69002         Invoke gl_PREREQ_FD_SAFER.
69003         (gl_PREREQ_FD_SAFER): New macro.
69004         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
69005         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
69006         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
69007         Remove duplicate call to AC_LIBOBJ(readutmp).
69008         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
69009
69010         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
69011         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
69012
69013 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69014
69015         * MODULES.html.sh (Misc): Add byteswap.
69016
69017 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69018
69019         * modules/getcwd (Depends-on): Add extensions.
69020         * modules/openat (Depends-on): Likewise.
69021
69022 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69023
69024         * modules/byteswap: New file.
69025
69026 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69027
69028         * m4/byteswap.m4: New file.
69029
69030 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69031
69032         * lib/byteswap_.h: New file.
69033
69034 2005-04-25  Karl Berry  <karl@gnu.org>
69035
69036         * m4/gettext.m4: Update from GNU gettext 0.14.4.
69037
69038 2005-04-25  Albert Chin  <china@thewrittenword.com>
69039
69040         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
69041         Toolkit C bug.
69042
69043 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
69044
69045         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
69046         (func_ln_if_changed): Remove forcibly for no error message
69047         in case file does not exist.
69048
69049 2005-04-19  Simon Josefsson  <jas@extundo.com>
69050
69051         * gnulib-tool (Options): Make --symlink mean --symbolic.
69052
69053 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
69054
69055         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
69056
69057 2005-04-16  Simon Josefsson  <jas@extundo.com>
69058
69059         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
69060
69061 2005-04-15  Simon Josefsson  <jas@extundo.com>
69062
69063         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
69064
69065 2005-04-15  Simon Josefsson  <jas@extundo.com>
69066
69067         * gnulib-tool: Rename --symlink to --symbolic.
69068
69069 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
69070
69071         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
69072         symbolic links to files instead of copying/moving.  Add --aux-dir,
69073         specifying directory relative --dir where auxiliary build tools
69074         are placed.
69075
69076 2005-04-14  Bruno Haible  <bruno@clisp.org>
69077
69078         * modules/allocsa (License): Change to LGPL.
69079         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
69080
69081 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
69084         that "UTC +1 second" continues to work.  Problem reported
69085         by Dmitry V. Levin.
69086         (relunit_snumber): New rule.
69087         (relunit): Use it.
69088
69089 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69090
69091         * lib/getdate.y (universal_time_zone_table): New constant.
69092         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
69093         universal_time_zone_table.
69094         (lookup_zone): Prefer universal_time_zone_table to
69095         local_time_zone_table, so that "GMT" time stamps are allowed in
69096         London during the summer.  Problem reported by Ian Abbott.
69097
69098 2005-04-12  Jim Meyering  <jim@meyering.net>
69099
69100         * lib/human.c (humblock): Set *options even when returning due to
69101         xstrtoumax conversion failure.  Thanks to a used-uninitialized
69102         warning from gcc-4.
69103
69104 2005-04-09  Jim Meyering  <jim@meyering.net>
69105
69106         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
69107         -Wuninitialized: initialize tm0.tm_year.
69108
69109 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69110
69111         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
69112         count, since there's no maximum.  All uses changed.
69113         Add member dsts_seen.
69114         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
69115         not being INT_MAX.
69116         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
69117         Use pc_rels_seen to decide whther a date is absolute.
69118
69119         * lib/getdate.y (number): Don't overwrite year.
69120         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
69121         check.
69122
69123 2005-04-02  Simon Josefsson  <jas@extundo.com>
69124
69125         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
69126         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
69127
69128 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
69129
69130         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
69131         where no absolute path name can be longer than PATH_MAX.
69132
69133 2005-03-27  Jim Meyering  <jim@meyering.net>
69134
69135         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
69136
69137 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
69138
69139         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
69140         "one's complement" -> "ones' complement" in comment, as per Knuth.
69141         "value of type" -> "type or expression" in comment.
69142         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
69143
69144 2005-03-26  Jim Meyering  <jim@meyering.net>
69145
69146         Comment nits.
69147         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
69148         Correct typos: s/or/of/.
69149
69150 2005-03-26  Jim Meyering  <jim@meyering.net>
69151
69152         * modules/check-include-files: Move to ../ and rename to...
69153         * check-module: ...this.
69154
69155 2005-03-25  Jim Meyering  <jim@meyering.net>
69156
69157         * modules/xvasprintf (Files): Add xalloc.h.
69158
69159 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69160
69161         * modules/gettext (Files): config/config.rpath ->
69162         build-aux/config.rpath
69163         * modules/iconv (Files): Likewise.
69164         Problem reported by Oskar Liljeblad.
69165
69166 2005-03-23  Jim Meyering  <jim@meyering.net>
69167
69168         * modules/check-include-files: New script to check for
69169         missing dependencies, multiple includes, etc.
69170
69171         * modules/c-strtold (Depends-on): Add xalloc.
69172         * modules/c-strtod (Depends-on): Add xalloc.
69173         * modules/hash (Depends-on): Add xalloc.
69174         (Files): Remove lib/xalloc.h.
69175
69176         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
69177         * modules/userspec (Files): Add lib/inttostr.h.
69178
69179 2005-03-23  Jim Meyering  <jim@meyering.net>
69180
69181         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
69182
69183 2005-03-22  Jim Meyering  <jim@meyering.net>
69184
69185         * modules/stat-macros: New module.
69186         * modules/canonicalize, modules/euidaccess, modules/file-type,
69187         * modules/filemode, modules/lchown, modules/makepath,
69188         * modules/rmdir, modules/stat: Depend on new stat-macros module
69189         rather than listing lib/stat-macros.h manually.
69190         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
69191
69192 2005-03-22  Jim Meyering  <jim@meyering.net>
69193
69194         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
69195
69196 2005-03-22  Bruno Haible  <bruno@clisp.org>
69197
69198         * config/srclist.txt: Replace target directory 'config' with
69199         'build-aux'.
69200         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
69201         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
69202         ../build-aux/.
69203
69204 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
69205
69206         * modules/chdir-long (Depends-on): Add mempcpy.
69207
69208         * modules/acl, modules/backupfile, modules/c-strtod,
69209         modules/c-strtold, modules/canon-host, modules/canonicalize,
69210         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
69211         modules/exclude, modules/exitfail, modules/file-type,
69212         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
69213         modules/getdate, modules/getline, modules/getpagesize,
69214         modules/getpass, modules/getugroups, modules/group-member,
69215         modules/hard-locale, modules/hash, modules/human, modules/idcache,
69216         modules/inttostr, modules/long-options, modules/makepath,
69217         modules/md5, modules/memcasecmp, modules/memcoll,
69218         modules/modechange, modules/mountlist, modules/path-concat,
69219         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
69220         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
69221         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
69222         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
69223         modules/strftime, modules/strndup, modules/strverscmp,
69224         modules/timespec, modules/unlocked-io, modules/userspec,
69225         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
69226         modules/yesno:
69227         Remove lib_SOURCES line from Makefile.am section, as this is now
69228         done automatically by the corresponding Autoconf macro.
69229
69230 2005-03-21  Jim Meyering  <jim@meyering.net>
69231
69232         Changes imported from coreutils.
69233
69234         * lib/cycle-check.c: Don't include xalloc.h.
69235
69236         * lib/path-concat.c: Don't include assert.h.
69237         (path_concat): Remove assertion that would have triggered
69238         for ABASE starting with more than one slash.
69239         Reported by Andreas Schwab.
69240
69241         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
69242         properly when ABASE is an absolute file name.
69243         Correct the description of this function.
69244         Include <assert.h>.
69245         Add an assertion and a test driver.
69246         This fixes a bug introduced on 2004-07-02.
69247         Andreas Schwab reported the resulting failure of cp --parents:
69248         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
69249
69250 2005-03-21  Jim Meyering  <jim@meyering.net>
69251
69252         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
69253         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
69254
69255 2005-03-21  Jim Meyering  <jim@meyering.net>
69256         and  Paul Eggert  <eggert@cs.ucla.edu>
69257
69258         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
69259         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
69260         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
69261         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
69262         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
69263         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
69264         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
69265         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
69266         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
69267         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
69268         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
69269         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
69270         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
69271         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
69272         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
69273         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
69274         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
69275         for these modules.
69276
69277 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
69278
69279         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
69280         (which shouldn't happen), generate nothing instead of returning 0
69281         immediately, so that nstrftime (NULL, ...) doesn't return 0.
69282
69283 2005-03-16  Bruno Haible  <bruno@clisp.org>
69284
69285         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
69286         HAVE_LONGLONG_64BIT.
69287
69288 2005-03-16  Bruno Haible  <bruno@clisp.org>
69289
69290         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
69291         HAVE_LONGLONG_64BIT.
69292
69293 2005-03-16  Bruno Haible  <bruno@clisp.org>
69294
69295         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
69296         HAVE_LONGLONG_64BIT.
69297
69298 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69299
69300         * lib/strftime.c (my_strftime): Prepend space to format so that we can
69301         reliably distinguish strftime failure from empty output on POSIX
69302         hosts.
69303
69304 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69305
69306         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
69307         (iconv_string): Don't guess a size-zero buffer, as that might cause
69308         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
69309         result would be 'too large', where 'too large' is (heuristically)
69310         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
69311         overflow concerns.  This will prevent some unwanted malloc failures
69312         when the inputs are very large.
69313
69314 2005-03-15  Karl Berry  <karl@gnu.org>
69315
69316         * config/srclist.txt (config.rpath): from gettext.
69317         * config/config.rpath: update.
69318
69319 2005-03-15  Bruno Haible  <bruno@clisp.org>
69320
69321         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
69322         to 'negate'.
69323
69324         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
69325         variable.
69326
69327         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
69328         results.
69329
69330 2005-03-14  Simon Josefsson  <jas@extundo.com>
69331
69332         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
69333         <fx@gnu.org>.
69334
69335 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
69336
69337         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
69338         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
69339         intprops.h.
69340         * lib/strtol.c: Likewise.
69341
69342 2005-03-14  Jim Meyering  <jim@meyering.net>
69343
69344         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
69345         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
69346         to be nonzero so that we (and caller) can detect the difference
69347         between a valid zero-length expansion and an error return, even
69348         when the underlying strftime fails before writing anything into
69349         that location.
69350
69351 2005-03-14  Bruno Haible  <bruno@clisp.org>
69352
69353         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
69354         Update from GNU gettext 0.14.3.
69355
69356 2005-03-10  Jim Meyering  <jim@meyering.net>
69357
69358         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
69359
69360 2005-03-10  Jim Meyering  <jim@meyering.net>
69361
69362         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
69363         so that this module works on systems without fchdir.
69364
69365 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
69366
69367         Factor int-properties macros into a single file, except for
69368         glibc-related files.
69369         * lib/intprops.h: New file.
69370         * lib/getloadavg.c: Include it instead of limits.h.
69371         (INT_STRLEN_BOUND): Remove.
69372         * lib/human.c: Include intprops.h.
69373         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
69374         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
69375         302/1000.
69376         * lib/inttostr.h: Include intprops.h instead of limits.h.
69377         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
69378         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
69379         for consistency with intprops.h.
69380         (time_t_is_integer, twos_complement_arithmetic): Use them.
69381         * lib/sig2str.h: Include <signal.h>, intprops.h.
69382         (INT_STRLEN_BOUND): Remove.
69383         * lib/strftime.c (TYPE_SIGNED): Remove.
69384         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
69385         * lib/strtol.c: Adjust comments to match intprops.h.
69386         * lib/userspec.c: Include intprops.h.
69387         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
69388         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
69389         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
69390         instead of rolling our own expressions.
69391         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
69392
69393         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
69394         instead of int.
69395         (my_strftime): Do not mishandle years close to INT_MAX, by doing
69396         the right thing even if adding 1900 would overflow.  Similarly
69397         for tm_mon + 1 and tm_yday + 1.
69398         Make %Y always equivalent to %C%y, and similarly for %G and %g.
69399         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
69400         (DO_SIGNED_NUMBER): New macro.
69401         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
69402
69403 2005-03-07  Bruno Haible  <bruno@clisp.org>
69404
69405         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
69406
69407 2005-03-07  Bruno Haible  <bruno@clisp.org>
69408
69409         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
69410
69411 2005-03-04  Derek R. Price  <derek@ximbiot.com>
69412
69413         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
69414         (func_import): Only replace files via --import when they have actually
69415         changed.
69416
69417 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69418
69419         * m4/mmap-anon.m4: New file.
69420         * m4/pagealign_alloc.m4: New file.
69421
69422 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69423             Bruno Haible  <bruno@clisp.org>
69424
69425         * modules/pagealign_alloc: New file.
69426         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
69427
69428 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69429             Bruno Haible  <bruno@clisp.org>
69430
69431         * lib/pagealign_alloc.h: New file.
69432         * lib/pagealign_alloc.c: New file.
69433
69434 2005-03-03  Bruno Haible  <bruno@clisp.org>
69435
69436         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
69437         Use an all-permissive copyright notice, recommended by RMS.
69438
69439 2005-03-02  Bruno Haible  <bruno@clisp.org>
69440
69441         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
69442         of AIX, the replacement has to be done only after <string.h> is
69443         included, therefore not in config.h. stpncpy.h does the replacement,
69444         and stpncpy.c uses it.
69445
69446 2005-03-02  Bruno Haible  <bruno@clisp.org>
69447
69448         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
69449         stpncpy.c uses it.
69450
69451 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69452
69453         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
69454         The workaround isn't strictly needed for POSIX conformance, and
69455         it's too much of a pain to configure and maintain.  We'll ask
69456         people to fix their kernels instead.
69457         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
69458         (NANOSLEEP_BUG_WORKAROUND): Remove.
69459         (xnanosleep): Remove the workaround.
69460
69461 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69462
69463         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
69464         Reported by Derek Price.
69465         (Include): Add "timespec.h".
69466
69467         * modules/xnanosleep (Depends-on): Remove gethrxtime.
69468
69469 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69470
69471         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
69472         to detect nanosleep bug.
69473
69474 2005-03-01  Bruno Haible  <bruno@clisp.org>
69475
69476         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
69477
69478 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69479
69480         * modules/gethrxtime: New file.
69481         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
69482         (Depends-on): Add gethrxtime.
69483         (configure.ac): Add gl_XNANOSLEEP.
69484         (Makefile.am): Remove lib_SOURCES line.
69485
69486 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69487
69488         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
69489         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
69490
69491 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69492
69493         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
69494         * lib/timespec.h (gettime): Return void, since it always
69495         succeeds now.  All uses changed.
69496         * lib/gettime.c (gettime): Likewise.
69497         [HAVE_NANOTIME]: Prefer nanotime.
69498         Assume gettimeofday succeeds, as POSIX requires.
69499         Assime time () succeeds, since other code already does.
69500         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
69501         (timespec_subtract): Remove.
69502         (NANOSLEEP_BUG_WORKAROUND): New constant.
69503         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
69504         things considerably.  Use it only on GNU/Linux hosts, since the
69505         workaround shouldn't be needed elsewhere.
69506
69507 2005-02-24  Bruno Haible  <bruno@clisp.org>
69508
69509         * modules/gettext (Files): Add m4/glibc2.m4.
69510
69511 2005-02-24  Bruno Haible  <bruno@clisp.org>
69512
69513         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
69514         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
69515         * m4/progtest.m4:
69516         Update from GNU gettext 0.14.2.
69517         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
69518
69519 2005-02-24  Bruno Haible  <bruno@clisp.org>
69520
69521         * lib/localcharset.c: Update from GNU gettext 0.14.2.
69522         * lib/config.charset: Update from GNU gettext 0.14.2.
69523
69524 2005-02-24  Bruno Haible  <bruno@clisp.org>
69525
69526         * lib/gettext.h: Update from GNU gettext 0.14.2.
69527
69528 2005-02-23  Simon Josefsson  <jas@extundo.com>
69529
69530         * m4/iconvme.m4: New file.
69531
69532 2005-02-23  Jim Meyering  <jim@meyering.net>
69533
69534         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
69535         change.
69536         Thanks to Bruno Haible for catching it.
69537
69538 2005-02-22  Simon Josefsson  <jas@extundo.com>
69539
69540         * modules/iconvme: New file.
69541
69542         * MODULES.html.sh: Add iconvme.
69543
69544 2005-02-22  Simon Josefsson  <jas@extundo.com>
69545
69546         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
69547
69548 2005-02-22  Simon Josefsson  <jas@extundo.com>
69549
69550         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
69551
69552 2005-02-22  Jim Meyering  <jim@meyering.net>
69553
69554         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
69555         s/ifndef/ifdef/.
69556
69557 2005-02-20  Neil Conway  <neilc@samurai.com>
69558
69559         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
69560         returned by OSX/Darwin if the specified buffer is not large
69561         enough for the hostname.
69562
69563 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69564
69565         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
69566         pass it to _help, otherwise the latter coredumps trying to
69567         dereference state.root_argp.
69568
69569 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * modules/chdir-long (Depends-on): Add memrchr.
69572         * modules/memrchr (Files): Add lib/memrchr.h.
69573         (Include): "memrchr.h".
69574
69575 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69576
69577         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
69578
69579 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69580
69581         * lib/memrchr.h: New file.
69582         * lib/chdir-long.c: Include it.
69583         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
69584         Don't bother including stddef.h.
69585
69586 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69587
69588         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
69589         inclusion.
69590         Include <sys/types.h>, for dev_t.
69591         (ME_DUMMY, ME_REMOTE): Move from here....
69592         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
69593         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
69594         Dmitry V. Levin.
69595         Include mountlist.h first, to test the interface.
69596
69597 2005-01-29  Bruno Haible  <bruno@clisp.org>
69598
69599         * lib/progname.c (program_name): Initialize.
69600         Needed when linking statically on MacOS X.
69601
69602 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69603
69604         Sync from coreutils.
69605         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
69606         (Depends-on): Add c-strtod.
69607         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
69608
69609 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69610
69611         Sync from coreutils.
69612         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
69613
69614         Remove files that are specific to coreutils.
69615         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
69616
69617 2005-01-28  Bruno Haible  <bruno@clisp.org>
69618
69619         * modules/javacomp: New file.
69620         * MODULES.html.sh (Java): Add javacomp.
69621
69622 2005-01-28  Bruno Haible  <bruno@clisp.org>
69623
69624         * m4/javacomp.m4: New file, from GNU gettext.
69625
69626 2005-01-28  Bruno Haible  <bruno@clisp.org>
69627
69628         * lib/javacomp.sh.in: New file, from GNU gettext.
69629         * lib/javacomp.h: New file, from GNU gettext.
69630         * lib/javacomp.c: New file, from GNU gettext.
69631
69632 2005-01-26  Simon Josefsson  <jas@extundo.com>
69633
69634         * lib/gai_strerror.c: Use GPL in header.
69635
69636 2005-01-26  Bruno Haible  <bruno@clisp.org>
69637
69638         * modules/javaexec: New file.
69639         * MODULES.html.sh (Java): Add javaexec.
69640
69641 2005-01-26  Bruno Haible  <bruno@clisp.org>
69642
69643         * m4/javaexec.m4: New file, from GNU gettext.
69644
69645 2005-01-26  Bruno Haible  <bruno@clisp.org>
69646
69647         * lib/javaexec.sh.in: New file, from GNU gettext.
69648         * lib/javaexec.h: New file, from GNU gettext.
69649         * lib/javaexec.c: New file, from GNU gettext.
69650
69651 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69652
69653         * modules/lchown (Depends-on): Remove lchown.h
69654
69655 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69656
69657         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69658         must be defined if the header file was not found, in order
69659         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69660
69661 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69662
69663         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69664         initializers for struct pentry_state.
69665         (__argp_error): Check return value of __asprintf
69666         (__argp_failure): Translate error message
69667
69668         * lib/argp-parse.c: Removed braces around the expansion of N_()
69669
69670 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69671
69672         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69673         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69674         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69675         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69676         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69677         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69678         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69679         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69680         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69681         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69682         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69683         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69684         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69685         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69686         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69687         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69688         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69689         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69690         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69691         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69692         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69693         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69694         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69695         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69696         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69697         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69698         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69699         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69700         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69701         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69702         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69703         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69704         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69705         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69706         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69707         Use an all-permissive copyright notice, recommended by RMS.
69708
69709 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69710
69711         * modules/chdir-long (Depends-on): Remove mempcpy.
69712
69713 2005-01-21  Jim Meyering  <jim@meyering.net>
69714
69715         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69716         same value as for Solaris 9.
69717
69718         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69719         component length.  This included changing the parameter to be
69720         of type `char *' rather than `char const *'.
69721         * lib/chdir-long.h (chdir_long): Update prototype.
69722
69723         * lib/openat.c (fdopendir, fstatat): New functions.
69724         * lib/openat.h: Include headers required for use of DIR and struct
69725         stat.
69726         [AT_SYMLINK_NOFOLLOW]: Define.
69727         (fdopendir, fstatat): Add prototypes.
69728
69729 2005-01-21  Bruno Haible  <bruno@clisp.org>
69730
69731         * modules/classpath: New file.
69732         * MODULES.html.sh (Java): Add classpath.
69733
69734 2005-01-21  Bruno Haible  <bruno@clisp.org>
69735
69736         * lib/classpath.h: New file, from GNU gettext.
69737         * lib/classpath.c: New file, from GNU gettext.
69738
69739 2005-01-20  Simon Josefsson  <jas@extundo.com>
69740
69741         * modules/version-etc-fsf: New file.
69742
69743 2005-01-20  Simon Josefsson  <jas@extundo.com>
69744
69745         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69746         * lib/version-etc.c: Remove version_etc_copyright.
69747         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69748         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69749
69750 2005-01-20  Simon Josefsson  <jas@extundo.com>
69751
69752         * lib/base64.h (isbase64): Add.
69753
69754         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69755         using a unsigned prototype, don't inline.
69756         (base64_decode): Use it.
69757
69758 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69759
69760         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69761         it.
69762
69763 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69764
69765         * lib/save-cwd.c (save_cwd): Remove code to support the case
69766         where fchdir is missing or flaky.
69767
69768 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69769
69770         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69771
69772 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69773
69774         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69775         AC_LIBSOURCES now does this.
69776         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69777         with new ullong_max module.
69778
69779 2005-01-19  Bruno Haible  <bruno@clisp.org>
69780
69781         * modules/sh-quote: New file.
69782         * MODULES.html.sh (Executing programs): Add sh-quote.
69783
69784 2005-01-19  Bruno Haible  <bruno@clisp.org>
69785
69786         * lib/sh-quote.h: New file, from GNU gettext.
69787         * lib/sh-quote.c: New file, from GNU gettext.
69788
69789 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69790
69791         Merge from coreutils.
69792         * m4/ullong_max.m4: New file.
69793         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69794         (gl_MACROS): Assume localeconv exists.
69795
69796 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69797
69798         Merge changes from coreutils, as described below in several
69799         changelogs dated today.
69800
69801         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69802         (O_DIRECTORY): Remove; not needed here, since "." must be
69803         a directory.  All uses removed.
69804         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69805         universal on Suns, and we also need to test for IRIX.
69806         Revamp code to use 'if' rather than '#if'.
69807         Avoid unnecessary comparison of cwd->desc to 0.
69808
69809         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69810         for known valid error numbers rather than observed invalid ones.
69811
69812 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69813
69814         * modules/ullong_max: New file.
69815
69816         * modules/chdir-long, modules/openat: New files.
69817         * modules/save-cwd (Depends-on): Depend on chdir-long.
69818         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69819
69820 2005-01-18  Jim Meyering  <jim@meyering.net>
69821
69822         Merge from coreutils.
69823         * m4/chdir-long.m4, m4/openat.m4: New files.
69824         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69825         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69826         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69827         is sane and DOES follow symlinks.  Besides, testing 20 different
69828         systems found no broken chown implementations.
69829         Prompted by a change in rsync's copy of this macro.
69830         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69831
69832         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69833
69834         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69835         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69836         NULL-means-set-to-current-time semantics.
69837         Remove temporary file immediately, rather than waiting
69838         for configure's at-exit trap code to do it.
69839
69840 2005-01-18  Jim Meyering  <jim@meyering.net>
69841
69842         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69843
69844         * lib/utimens.c (futimens): Account for the fact that futimes
69845         can also fail with errno == ENOSYS or errno == ENOENT.
69846         Patch from Dmitry V. Levin.
69847
69848         Change the name of the robust chdir function from chdir to chdir_long.
69849         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69850         (restore_cwd): Use chdir_long, not chdir.
69851         * lib/chdir-long.c: Renamed from chdir.c.
69852         * lib/chdir-long.h: Renamed from chdir.h.
69853         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69854         Hurd.
69855
69856 2005-01-18  Bruno Haible  <bruno@clisp.org>
69857
69858         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69859         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69860         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69861         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69862         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69863         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69864         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69865         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69866         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69867         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69868         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69869         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69870         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69871         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69872         Use an all-permissive copyright notice, recommended by RMS.
69873
69874 2005-01-18  Bob Proulx  <bob@proulx.com>
69875
69876         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69877         simplify offsetof() macro construct to avoid compile failure with
69878         native HP-UX 11.0 ANSI C compiler.
69879
69880 2005-01-17  Bruno Haible  <bruno@clisp.org>
69881
69882         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69883         redundant because stpncpy.m4 takes care of it.
69884
69885 2005-01-17  Bruno Haible  <bruno@clisp.org>
69886
69887         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69888
69889 2005-01-17  Bruno Haible  <bruno@clisp.org>
69890
69891         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69892         used.
69893
69894 2005-01-17  Bruno Haible  <bruno@clisp.org>
69895
69896         * lib/fwriteerror.h (fwriteerror): Change specification to include
69897         fclose.
69898         * lib/fwriteerror.c: Include <stdbool.h>.
69899         (fwriteerror): At the end, close the file stream. Record whether
69900         stdout was already closed.
69901
69902 2005-01-17  Bruno Haible  <bruno@clisp.org>
69903
69904         * lib/execute.c (environ): Declare if needed.
69905         * lib/pipe.c (environ): Likewise.
69906         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69907
69908 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69909
69910         * modules/argp: Depend on vsnprintf
69911
69912 2005-01-10  Jim Meyering  <jim@meyering.net>
69913
69914         * modules/closeout (Depends-on): Add atexit.
69915
69916 2005-01-06  Bruno Haible  <bruno@clisp.org>
69917
69918         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69919
69920 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69921
69922         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69923         definitions to be after all include files, to avoid collisions.
69924         Problem reported by Bob Proulx.
69925
69926 2005-01-04  Jim Meyering  <jim@meyering.net>
69927
69928         Changes imported from coreutils.
69929         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69930         as the mkstemp template, use a temporary directory and an
69931         8.3-friendly template to avoid trouble on systems like DJGPP.
69932         Reported by Juan M. Guerrero via Stepan Kasal.
69933         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69934         close. Remove the temporary directory right away, rather than waiting
69935         for configure's at-exit trap code to do it.
69936         Suggestion from Stepan Kasal.
69937
69938 2005-01-01  Simon Josefsson  <jas@extundo.com>
69939
69940         * gnulib-tool: Print #include directives when --import'ing.
69941
69942 2004-12-28  Simon Josefsson  <jas@extundo.com>
69943
69944         * tests/test-base64.c: Include required header files.  Remove
69945         unused variables.
69946
69947 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69948
69949         * modules/error (Depends-on): Remove gettext.
69950
69951 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69952
69953         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69954         not needed.  This removes a dependency on the gettext module.
69955         [defined _LIBC]: Do not include <libintl.h>; not needed.
69956
69957 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69958
69959         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69960         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69961
69962 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69965         HAVE_DECL_STRTOLD.
69966
69967 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69968
69969         * modules/getdate (Depends-on): Remove alloca-opt.
69970
69971 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69972
69973         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69974
69975 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69976
69977         * lib/argp-parse.c: Include <stddef.h>.
69978         (alignof, alignto): New macros.
69979         (parser_init): Don't assume that void * is aligned sufficiently
69980         for struct option.
69981
69982         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69983         need to extend the stack.
69984         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69985         large.
69986
69987 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69988
69989         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69990
69991 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69994         (2004-10-24) change.  Apparently this was a false alarm.
69995
69996         * modules/getdate: Depend on alloca-opt, not alloca.
69997
69998 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69999
70000         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
70001         Remove now-obsolete comment about AIX.
70002         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
70003         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
70004         (YYMAXDEPTH): New macro.
70005
70006 2004-12-18  Simon Josefsson  <jas@extundo.com>
70007
70008         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
70009
70010 2004-12-18  Bruno Haible  <bruno@clisp.org>
70011
70012         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
70013
70014 2004-12-18  Bruno Haible  <bruno@clisp.org>
70015
70016         * lib/fatal-signal.c (fatal_signals): Make non-const.
70017         (init_fatal_signals): New function.
70018         (uninstall_handlers, install_handlers): Ignore signals that were set to
70019         SIG_IGN.
70020         (at_fatal_signal): Call init_fatal_signals.
70021         (init_fatal_signal_set): Likewise. Ignore signals that were set to
70022         SIG_IGN.
70023         Reported by Paul Eggert.
70024
70025 2004-12-18  Bruno Haible  <bruno@clisp.org>
70026
70027         * doc/alloca.texi: New file.
70028         * doc/alloca-opt.texi: New file.
70029
70030 2004-12-17  Jim Meyering  <jim@meyering.net>
70031
70032         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
70033         Otherwise, install-sh could exit with improper exit status when
70034         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
70035
70036 2004-12-16  Simon Josefsson  <jas@extundo.com>
70037
70038         * tests/test-base64.c: Add license.
70039
70040 2004-12-15  Stepan Kasal  <address@hidden>
70041
70042         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
70043
70044 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
70045
70046         * modules/getcwd (Files): Add m4/d-ino.m4.
70047         Suggested by Mark D. Baushke.
70048
70049 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70050
70051         * lib/getdate.y (textint): New member "negative".
70052         (time_zone_hhmm): New function.
70053         Expect 14 shift-reduce conflicts, not 13.
70054         (o_colon_minutes): New rule.
70055         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
70056         (yylex): Set the "negative" member of signed numbers.
70057
70058 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70059
70060         * doc/getdate.texi (Time of day items, Time zone items):
70061         Describe new formats +00:00, UTC+00:00.
70062
70063 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70064
70065         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
70066         spurious "-l"s.  Problem reported by Stepan Kasal.
70067
70068 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
70069
70070         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
70071         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
70072
70073 2004-12-04  Simon Josefsson  <jas@extundo.com>
70074
70075         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
70076         Vandoorselaere <yoann@prelude-ids.org>.
70077
70078 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70079
70080         Changes imported from coreutils.
70081         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
70082         exist.
70083         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
70084
70085 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         Changes imported from coreutils.
70088         * lib/hard-locale.c: Assume <locale.h> exists.
70089         Include "strdup.h".
70090         (GLIBC_VERSION): New macro.
70091         (hard_locale): Assume setlocale exists.
70092         Rewrite to avoid #ifdef.
70093         Use strdup rather than malloc + strcpy.
70094         * lib/human.c: Assume <locale.h> exists.
70095         (human_readable): Assume localeconv exists.
70096
70097 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70098
70099         * modules/hard-locale (Depends-on): Add strdup.
70100
70101 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70102
70103         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
70104         convert T2, not T.  (Imported from libc.)
70105
70106 2004-11-30  Simon Josefsson  <jas@extundo.com>
70107
70108         * modules/restrict (License): Change to LGPL.
70109
70110 2004-11-30  Simon Josefsson  <jas@extundo.com>
70111
70112         * m4/restrict.m4: Add copyright and copying conditions.
70113
70114 2004-11-30  Simon Josefsson  <jas@extundo.com>
70115
70116         * m4/base64.m4: New file.
70117
70118 2004-11-30  Simon Josefsson  <jas@extundo.com>
70119
70120         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
70121         base64.
70122
70123         * tests/test-base64.c: New file.
70124
70125         * modules/base64: New file.
70126
70127 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70128
70129         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
70130         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
70131
70132         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
70133
70134 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70135
70136         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
70137         (__getcwd.c): Don't restore errno; glibc doesn't.
70138         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
70139         first, falling back to our code only if its results look suspicious.
70140         Ensure that the resulting buffer is only as large as necessary.
70141
70142         * lib/readutmp.c: Include readutmp.h first.
70143         Include <errno.h>, since readutmp.h no longer does that.
70144         * lib/readutmp.h: Don't include <errno.h>,
70145         <sys/param.h>, <time.h>; not needed to establish interface.
70146         (errno): Remove decl.
70147         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
70148         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
70149         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
70150
70151 2004-11-28  Simon Josefsson  <jas@extundo.com>
70152
70153         * lib/base64.h, base64.c: New file.
70154
70155 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70156
70157         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
70158
70159 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70160
70161         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
70162         (Depends-on): Remove pathmax, same.  Add mempcpy.
70163         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
70164         (Makefile.am): Append getcwd.h to lib_SOURCES.
70165         (Include): Add getcwd.h.
70166         (Maintainer): Change from Jim Meyering to "all, glibc",
70167         since getdate now uses intended-for-glibc code.
70168         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
70169         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
70170
70171 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70172
70173         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
70174         HP's ANSI C compiler.
70175         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
70176         Declaring int functions causes warnings on some modern systems and
70177         shouldn't be needed to compile on ancient ones.
70178         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
70179         defined.
70180
70181         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
70182         with the following changes.
70183         (__set_errno): Parenthesize properly.
70184         Include <stdbool.h>.
70185         (MIN, MAX, MATCHING_INO): New macros.
70186         (__getcwd): Define with prototype, not K&R form.
70187         Use heuristics to allocate default buffer on stack if possible.
70188         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
70189         behavior, and to avoid the PATH_MAX limit when computing
70190         ../../../../...
70191         Use MATCHING_INO to compare inode number to file.
70192         Check for arithmetic overflow in size calculations.
70193         Fix bug in reallocation of dot array that caused getcwd to fail
70194         on directories nested deeper than 75.
70195         Be more careful about saving errno on error.
70196         Do not use realloc; use only free+malloc, as this is a bit
70197         more flexible and avoids a needless copy operation.
70198         Do not inspect st_dev and st_ino for symbolic links; POSIX
70199         doesn't specify the latter.
70200         Check for closedir errors.
70201         Avoid needless casts.
70202         Use "#ifdef weak_alias" around weak_alias, to be like other
70203         glibc code.
70204         The following changes to getcwd.c have effect only when used in
70205         gnulib; they have no effect inside glibc proper.
70206         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
70207         as alloca isn't used.
70208         (alloca, __alloca): Likewise.
70209         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
70210         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70211         unconditionally, as gnulib assumes C89 or better.
70212         Do not include <sys/param.h>.
70213         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
70214         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
70215         better.
70216         (NULL) [!defined NULL]: Remove; we assume C89 or better.
70217         Include <dirent.h> in a way that is compatible with modern Autoconf.
70218         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
70219         New macros, if not already defined.
70220         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
70221         Use "_LIBC", not "defined _LIBC", for consistency.
70222         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
70223         a mempcpy module.
70224         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
70225         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
70226         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
70227         credit only to Jim Meyering and adjust the copyright dates.
70228         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
70229         <stdlib.h>, <unistd.h>, "pathmax.h".
70230         Instead, include "xgetcwd.h" (first) and "getcwd.h".
70231         (INITIAL_BUFFER_SIZE): Remove.
70232         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
70233
70234 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70235
70236         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
70237         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
70238         Use the _ONCE methods, for efficiency.
70239         Check for fcntl.h.  In test program, include <errno.h>
70240         and <fcntl.h> if available.  Remove old K&R cruft from
70241         test program.  Check for common errors in GNU/Linux,
70242         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
70243         don't do AC_LIBOBJ, as that's getcwd.m4's job.
70244         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
70245         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
70246         name accordingly.
70247         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
70248         accommodate new getcwd.c.
70249         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
70250         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
70251         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
70252         that's all we need now.
70253
70254 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70255
70256         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
70257         argp-parse.c depends on getopt internals, that means we should
70258         always use our getopt, to be on the safe side.
70259         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
70260         order not to spoil the result of an eventual previous invocation
70261         of gl_GETOPT_SUBSTITUTE.
70262
70263 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70264
70265         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
70266         redefinition warnings. To avoid them, include the defines
70267         in `#if !defined __need_getopt ... #endif'. The only place
70268         where __getopt_argv_const is used is in definitions
70269         of getopt_long and getopt_long_only below, which are as well
70270         protected by `#ifndef __need_getopt'.
70271         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
70272         __need_getopt after including <stdio.h> and <unistd.h> These
70273         headers might have defined it.
70274
70275 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70276
70277         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
70278
70279 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70280
70281         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
70282         (futimens): New function, which uses futimes if available.
70283         (futimens, utimens): Support timespec==NULL, with same semantics
70284         as utime and utimens.
70285         * lib/utimens.h (futimens): New decl.
70286
70287 2004-11-23  Jim Meyering  <jim@meyering.net>
70288
70289         * lib/getopt_.h: Remove trailing blanks.
70290
70291 2004-11-23  Jim Meyering  <jim@meyering.net>
70292
70293         * lib/__fpending.c: Add comment.
70294
70295 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
70296
70297         * modules/canonicalize (Depends-on): Add xreadlink.
70298         Problem reported by James Youngman.
70299
70300 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70301
70302         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
70303         New macros.
70304         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
70305         optopt): Use them instead of invoking ## directly; otherwise, the
70306         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
70307
70308 2004-11-19  Bruno Haible  <bruno@clisp.org>
70309
70310         * lib/strtok_r.c: Move comments from here...
70311         * lib/strtok_r.h: ... to here.
70312
70313 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70314
70315         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
70316         implementations that mishandle size_t overflow.
70317
70318 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70319
70320         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
70321         might fail.  Problem reported by Yoann Vandoorselaere.
70322         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
70323         implementations that mishandle size_t overflow.
70324
70325 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70326
70327         * modules/canon-host (Depends-on): Add strdup.
70328
70329 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70330
70331         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
70332
70333 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70334
70335         * lib/canon-host.c: Include "strdup.h".
70336         (canon_host): Use getaddrinfo if available, so that IPv6 works.
70337         Use strdup instead of malloc/strcpy to duplicate strings.
70338
70339         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
70340         (human_space_before_unit): New constant.
70341         * lib/human.c (human_readable): Support it.
70342
70343         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
70344         (xgetcwd): Set errno correctly when failing.
70345         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
70346         the failure is actually due to a PATH_MAX problem.
70347
70348         Further getopt changes to make it more likely that glibc will
70349         buy the changes back.
70350         * lib/getopt.c (POSIXLY_CORRECT): New constant.
70351         (getopt): Use it, so to preserve glibc semantic
70352         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
70353         when compiling for libc.
70354         * lib/getopt_.h (__getopt_argv_const): Bring it back.
70355         (getopt_long, getopt_long_only): Use it.
70356
70357         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70358         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
70359         (getopt): Argv is now char * const *, as per standard.
70360         (_getopt_internal_r, _getopt_internal): Argv is now char **,
70361         not char *__getopt_argv_const *.
70362         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70363         _getopt_long_only_r): Likewise.
70364         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
70365         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70366         _getopt_long_r, _getopt_long_only_r): Likewise.
70367         * lib/getopt_.h (__getopt_argv_const): Remove.
70368         (getopt): Argv is now char * const *, as per standard.
70369
70370         * lib/getdate.y (tORDINAL): New token.
70371         (day, relunit): Allow it for relative times.
70372         (relative_time_table): Use tORDINAL for ordinals.
70373
70374 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70375
70376         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
70377         Document that "second" isn't allowed as an ordinal number.
70378
70379 2004-11-16  Jim Meyering  <jim@meyering.net>
70380
70381         * modules/closeout (Depends-on): Add fpending.
70382
70383 2004-11-15  Jim Meyering  <jim@meyering.net>
70384
70385         * lib/closeout.c: Include "__fpending.h" once again.
70386         Include <stdbool.h>.
70387         (close_stdout): Don't fail just because stdout was closed initially,
70388         since some programs don't write to stdout in the normal course of
70389         operation (other than --version and --help), and we don't want this
70390         function to make e.g. `touch file >&-' fail.
70391         But do fail if it was closed and someone has tried to write to it.
70392         E.g., `printf foo >&-' must fail.
70393
70394 2004-11-13  Jim Meyering  <jim@meyering.net>
70395
70396         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
70397
70398 2004-11-12  Simon Josefsson  <jas@extundo.com>
70399
70400         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
70401         small doc fix is still pending.
70402
70403 2004-11-11  Simon Josefsson  <jas@extundo.com>
70404
70405         * modules/strtok_r: New file.
70406
70407         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70408         strtok_r.
70409
70410 2004-11-11  Simon Josefsson  <jas@extundo.com>
70411
70412         * m4/strtok_r.m4: New file.
70413
70414         * m4/getopt.m4: Replace opterr.
70415
70416 2004-11-11  Simon Josefsson  <jas@extundo.com>
70417
70418         * lib/strtok_r.h, strtok_r.c: New file.
70419
70420 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70421
70422         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
70423         of replacing opterr, getopt, etc.  This should handle the
70424         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
70425
70426 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70427
70428         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
70429         we can stop lying to compilers about the constness of argv when we
70430         are compiled outside glibc.
70431         (getopt, getopt_long, getopt_long_only): Use it.
70432         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70433         _getopt_internal, getopt): Likewise.
70434         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70435         _getopt_long_only_r): Likewise.
70436         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70437         _getopt_long_r, _getopt_long_only_r): Likewise.
70438
70439         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
70440         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
70441         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
70442         the other external symbols.
70443         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
70444         declaration, since the above renaming now works around collisions.
70445
70446 2004-11-11  Jim Meyering  <jim@meyering.net>
70447
70448         * lib/linebreak.c: Remove trailing blanks.
70449         * lib/alloca_.h: Likewise.
70450         * lib/acosl.c: Likewise.
70451         * lib/euidaccess.c: Likewise.
70452         * lib/allocsa.h: Likewise.
70453
70454 2004-11-10  Simon Josefsson  <jas@extundo.com>
70455
70456         * m4/getaddrinfo.m4: New file.
70457
70458 2004-11-10  Simon Josefsson  <jas@extundo.com>
70459
70460         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
70461
70462 2004-11-10  Simon Josefsson  <jas@extundo.com>
70463
70464         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70465         getaddrinfo.
70466
70467         * modules/getaddrinfo: New file.
70468
70469 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70470
70471         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
70472
70473 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70474
70475         * lib/mktime.c (SHR): New macro, which is a portable
70476         substitute for >> that should work even on Crays.
70477         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
70478         Problem reported by Mark D. Baushke in
70479         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
70480         * lib/getdate.y (SHR): Likewise.
70481         (tm_diff): Use it.
70482         * lib/strftime.c (SHR): Likewise.
70483         (tm_diff): Use it.
70484         * lib/quotearg.c (struct quoting_options): Use unsigned int for
70485         quote_these_too, so that right shifts are well defined.  All uses
70486         changed.
70487
70488 2004-11-10  Jim Meyering  <jim@meyering.net>
70489
70490         Ensure that no close failure goes unreported.
70491         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
70492         return early when it seems there's nothing to flush.
70493         Don't include __fpending.h.
70494
70495 2004-11-10  Jim Meyering  <jim@meyering.net>
70496
70497         * modules/closeout (Depends-on): Remove fpending.
70498
70499 2004-11-10  Jim Meyering  <jim@meyering.net>
70500
70501         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
70502
70503 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70504
70505         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
70506         gl_FUNC_STRFTIME.
70507         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
70508         and AC_REQUIRE when possible, to avoid duplicate checks.
70509         Check for <wchar.h>.
70510
70511 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70512
70513         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
70514
70515 2004-11-09  Bruno Haible  <bruno@clisp.org>
70516
70517         * m4/sockpfaf.m4: New file.
70518
70519 2004-11-05  Bruno Haible  <bruno@clisp.org>
70520
70521         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
70522         Reported by Mark D. Baushke <mdb@cvshome.org>.
70523
70524 2004-11-04  Bruno Haible  <bruno@clisp.org>
70525
70526         2004-09-11  Bruno Haible  <bruno@clisp.org>
70527                 * allocsa.valgrind: New file.
70528         2004-02-06  Bruno Haible  <bruno@clisp.org>
70529                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
70530                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
70531                 Reported by Christopher Seip <chris.seip@hp.com>.
70532
70533 2004-11-04  Bruno Haible  <bruno@clisp.org>
70534
70535         * modules/allocsa (Files): Add lib/allocsa.valgrind.
70536         (Makefile.am): Distribute it.
70537
70538 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70539
70540         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
70541         with errno == ERANGE if the buffer is too small.
70542         Problem reported by Mark D. Baushke.
70543
70544 2004-11-03  Albert Chin  <china@thewrittenword.com>
70545             Paul Eggert  <eggert@cs.ucla.edu>
70546
70547         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
70548         equivalent, substitute $ac_type for equivalent type rather than
70549         blindly using uint32_t *always* which won't work if uint32_t is not
70550         available.  Define _UINT32_T to work around typedef of uint32_t if
70551         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
70552         2.5.1.
70553
70554 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70555
70556         * m4/jm-macros.m4: Sync from coreutils.
70557         (gl_MACROS): Check for mbrlen, for pathchk.
70558         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
70559
70560 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70561
70562         * lib/xreadlink.c (MAXSIZE): New macro.
70563         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
70564         size does not exceed MAXSIZE.  Avoid cast.
70565         As suggested by Mark D. Baushke in
70566         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
70567         if readlink fails with buffer size just under MAXSIZE, try again
70568         with MAXSIZE.
70569
70570 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70571
70572         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
70573
70574 2004-11-02  Derek R. Price  <derek@ximbiot.com>
70575         and  Paul Eggert  <eggert@cs.ucla.edu>
70576
70577         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
70578         (get_date): Overparenthesize to avoid GCC warning.
70579
70580 2004-11-02  Bruno Haible  <bruno@clisp.org>
70581
70582         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
70583         returns void.
70584
70585 2004-11-02  Bruno Haible  <bruno@clisp.org>
70586
70587         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
70588         function returns void.
70589
70590 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70591
70592         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
70593         fflush_unlocked, flockfile, funlockfile, funlockfile,
70594         fputs_unlocked, putc_unlocked.
70595
70596 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70597
70598         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70599         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
70600         already declared.
70601
70602 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70603
70604         * modules/getdate (Files): Add doc/getdate.texi.
70605         (Depends-on): Add setenv, xalloc.
70606
70607 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70608
70609         * lib/getdate.y: Add support for TZ="foo" within a date string.
70610         Fix some bugs near time_t boundaries.  Reject dates with
70611         out-of-range components, e.g., "Sept 31".
70612         Include <stdlib.h>, "setenv.h", "xalloc.h".
70613         (ISDIGIT_LOCALE): Remove; unused.
70614         Note that the TZ and time functions used here are not reentrant.
70615         (mktime_ok, get_tz): New functions.
70616         (TZBUFSIZE): New constant.
70617         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
70618         This requires that we sometimes generate our own TZ="XXX..." setting.
70619
70620 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70621
70622         * doc/getdate.texi: New file, from coreutils with modifications for
70623         the new TZ parsing.
70624
70625 2004-10-27  Derek R. Price  <derek@ximbiot.com>
70626
70627         * lib/mktime.c (not_equal_tm): Remove redundant check.
70628
70629 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70630
70631         * modules/regex (lib_SOURCES): Add regex.c.
70632         Reported by James Youngman in
70633         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
70634
70635 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70636
70637         * lib/getdate.y: Use Bison 1.875 features, and some minor
70638         code cleanups.  This change does not affect semantics.
70639         Don't include <stdlib.h>; no longer needed.
70640         Don't include unlocked-io.h; only the "#if TEST" code uses
70641         stdio, and performance isn't crucial there.
70642         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
70643         Bison 1.875 features as described below.
70644         All uses of "PC." replaced by "pc->".
70645         (YYSTYPE): Add a forward declaration.
70646         (yylex, yyerror): Use full prototypes in forward decls.
70647         Use "%pure-parser" rather than obsolescent "%pure_parser".
70648         Use %parse-param and %lex-param instead of obsolescent
70649         YYPARSE_PARAM and YYLEX_PARAM.
70650         (meridian_table, month_and_day_table, time_units_table,
70651         relative_time_table, time_zone_table, military_table,
70652         lookup_zone, lookup_word, get_date):
70653         Use NULL instead of 0 where appropriate.
70654         (to_hour): Avoid abort (), to avoid a dependency on
70655         stdlib.h.
70656         (yyerror, yylex): Now accepts parser_control * arg.
70657         (main) [TEST]: Use '\0' rather than 0 for char.
70658
70659 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70660
70661         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70662
70663 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70664
70665         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70666         It's now the caller's responsibility to handle the case where
70667         !HAVE_GETPAGESIZE && !defined getpagesize.
70668
70669         * lib/mktime.c (leapyear): Arg is long int, not int.
70670
70671 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70672
70673         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70674
70675 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70676
70677         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70678         missing.  Problem reported by James Youngman.
70679
70680 2004-10-16  Simon Josefsson  <jas@extundo.com>
70681
70682         * gnulib-tool: Fix comments.  Fix parse problem.
70683         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70684
70685 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70686
70687         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70688         implementation of getopt_long.  Problem reported by Alexander Taler in:
70689         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70690
70691 2004-10-15  Bruno Haible  <bruno@clisp.org>
70692
70693         * gnulib-tool: Untabify. Initialize supplied_libname.
70694         (func_usage): More homogenous output.
70695         (func_modules_transitive_closure, func_modules_to_filelist,
70696         func_emit_lib_Makefile_am): New functions.
70697         (func_import): New function, extracted from big case statement. Use
70698         func_get_license, func_modules_transitive_closure,
70699         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70700         opt_lgpl. Don't use test -a, as it's not portable.
70701         (func_create_testdir): Use func_modules_transitive_closure,
70702         func_modules_to_filelist, func_emit_lib_Makefile_am.
70703
70704 2004-10-15  Bruno Haible  <bruno@clisp.org>
70705
70706         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70707
70708 2004-10-15  Bruno Haible  <bruno@clisp.org>
70709
70710         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70711         the portions belonging to each module.
70712         Suggested by Derek Robert Price <derek@ximbiot.com>.
70713
70714 2004-10-12  Simon Josefsson  <jas@extundo.com>
70715
70716         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70717         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70718         to real functions.
70719
70720 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70721
70722         * modules/vsnprintf: New file.
70723
70724 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70725
70726         * m4/vsnprintf.m4: New file.
70727
70728 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70729
70730         * lib/vsnprintf.h: New file.
70731         * lib/vsnprintf.c: New file.
70732
70733 2004-10-11  Bruno Haible  <bruno@clisp.org>
70734
70735         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70736         vsnprintf.
70737
70738 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70739
70740         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70741
70742 2004-10-07  Bruno Haible  <bruno@clisp.org>
70743
70744         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70745         fits into the provided buffer.
70746
70747 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70748
70749         * lib/diacrit.c, diacrit.h: Add GPL notice.
70750
70751         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70752         notice.
70753         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70754         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70755         This avoids a potential constant-folding bug.
70756
70757 2004-10-05  Bruno Haible  <bruno@clisp.org>
70758
70759         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70760         for the declaration of strsep.
70761
70762 2004-10-05  Bruno Haible  <bruno@clisp.org>
70763
70764         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70765
70766 2004-10-04  Simon Josefsson  <jas@extundo.com>
70767
70768         * modules/memmem: New file.
70769         * tests/test-memmem.c: New file.
70770         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70771
70772 2004-10-04  Simon Josefsson  <jas@extundo.com>
70773
70774         * m4/memmem.m4: New file.
70775
70776 2004-10-04  Simon Josefsson  <jas@extundo.com>
70777
70778         * lib/memmem.h: New file.
70779         * lib/memmem.c: New file, taken from glibc.
70780
70781 2004-10-04  Simon Josefsson  <jas@extundo.com>
70782
70783         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70784         '#ifdef USE_UNLOCKED_IO'.
70785
70786 2004-10-04  Simon Josefsson  <jas@extundo.com>
70787
70788         * config/srclist.txt: Add memmem from glibc.
70789
70790 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70791
70792         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70793
70794         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70795         modules/exclude, modules/getdate, modules/getline,
70796         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70797         modules/getusershell, modules/linebuffer, modules/md5,
70798         modules/mountlist, modules/posixtm, modules/readtokens,
70799         modules/readutmp, modules/regex, modules/sha1,
70800         modules/version-etc, modules/yesno:
70801         Remove dependency on unlocked-io.
70802
70803 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70804
70805         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70806
70807         * m4/unlocked-io.m4: Add copyright notice.
70808         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70809
70810 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70811
70812         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70813         * lib/xmalloc.c (xmemdup): Likewise.
70814         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70815         XFREE): Remove these long-obsolescent macros.
70816         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70817         * lib/xstrdup.c: Remove.
70818
70819         * lib/regex.c (re_comp): Cast gettext return value to char *,
70820         Problem reported by Martin Neitzel via Mark D. Baushke.
70821
70822 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70823
70824         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70825         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70826         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70827         regex.c, sha1.c, version-etc.c, yesno.c:
70828         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70829         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70830         the includer's responsibility.
70831
70832         Sync from coreutils.
70833
70834         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70835         points to the start of a string, as the C Standard says the
70836         resulting behavior is undefined.
70837
70838         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70839         simple -> simple_backups, numbered_existing ->
70840         numbered_existing_backups, numbered -> numbered_backups
70841         to avoid shadowing problems.  All uses changed.
70842         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70843         * lib/backupfile.c (check_extension, numbered_backup):
70844         Rename locals to avoid shadowing 'basename'.
70845         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70846         once.
70847
70848         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70849         * lib/.cvsignore: Add getopt.h.
70850
70851 2004-10-04  Bruno Haible  <bruno@clisp.org>
70852
70853         * modules/README: New file.
70854         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70855         not a module.
70856
70857 2004-10-02  Jim Meyering  <jim@meyering.net>
70858
70859         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70860
70861 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70862
70863         * modules/strsep: New file.
70864
70865 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70866
70867         * m4/strsep.m4: New file.
70868
70869 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70870
70871         * lib/strsep.h: New file.
70872         * lib/strsep.c: New file.
70873
70874 2004-10-01  Simon Josefsson  <jas@extundo.com>
70875
70876         * lib/snprintf.c (snprintf): Handle size==0.
70877
70878 2004-10-01  Simon Josefsson  <jas@extundo.com>
70879             Bruno Haible  <bruno@clisp.org>
70880
70881         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70882         (snprintf): Declare 'args'.
70883
70884 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70885
70886         * lib/snprintf.c: Remove comments as to why each header is needed.
70887
70888 2004-10-01  Bruno Haible  <bruno@clisp.org>
70889
70890         * MODULES.html.sh: Add strsep.
70891
70892 2004-09-30  Simon Josefsson  <jas@extundo.com>
70893
70894         * modules/snprintf: New file.
70895
70896 2004-09-30  Simon Josefsson  <jas@extundo.com>
70897
70898         * m4/snprintf.m4: New file.
70899
70900 2004-09-30  Simon Josefsson  <jas@extundo.com>
70901
70902         * lib/snprintf.h, lib/snprintf.c: New files.
70903
70904 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70905
70906         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70907         (hol_entry_help): Never translate an empty string.
70908         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70909         * lib/argp.h (OPTION_NO_TRANS): New option.
70910
70911 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70912
70913         * modules/argp (Maintainer): Replace Simon Josefsson
70914         by Sergey Poznyakoff.
70915
70916 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70917
70918         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70919         changes merged back into glibc.
70920
70921 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70922
70923         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70924
70925 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70926
70927         * lib/xvasprintf.c: Include xalloc.h.
70928         (xvasprintf): Use xalloc_die, not xmalloc_die.
70929
70930 2004-09-29  Bruno Haible  <bruno@clisp.org>
70931
70932         * modules/alloca-opt: New file, derived from modules/alloca.
70933         * modules/allocsa: Depend on alloca-opt instead of alloca.
70934         * modules/setenv: Likewise.
70935         * modules/vasnprintf: Likewise.
70936         * MODULES.html.sh: Add alloca-opt.
70937
70938 2004-09-28  Simon Josefsson  <jas@extundo.com>
70939
70940         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70941         LGPL, and to replace license template from GPL to LGPL.
70942
70943 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70944
70945         * modules/dummy: Change license to LGPL.
70946
70947 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70948
70949         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70950
70951 2004-09-24  Simon Josefsson  <jas@extundo.com>
70952
70953         * modules/minmax (License): Change from GPL to LGPL.
70954
70955 2004-09-23  Simon Josefsson  <jas@extundo.com>
70956
70957         * gnulib-tool (--import): Typo.
70958
70959 2004-09-23  Simon Josefsson  <jas@extundo.com>
70960
70961         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70962
70963 2004-09-22  Bruno Haible  <bruno@clisp.org>
70964
70965         * modules/*: Add 'License' field.
70966         * gnulib-tool: Accept --extract-license option.
70967         (func_get_license): New function.
70968
70969 2004-09-21  Bruno Haible  <bruno@clisp.org>
70970
70971         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70972         Reported by Simon Josefsson.
70973
70974 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70977         gl_AC_TYPE_LONG_LONG.
70978
70979 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70980
70981         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70982
70983 2004-09-18  Simon Josefsson  <jas@extundo.com>
70984         and  Paul Eggert  <eggert@cs.ucla.edu>
70985
70986         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70987         calls with autoreconf.  Define GL_LIB.
70988
70989 2004-09-14  Karl Berry  <karl@gnu.org>
70990
70991         * config/srclist.txt: unsync setenv.c, sigh.
70992
70993 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70994
70995         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70996         Problem reported by Bruno Haible in:
70997         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70998
70999 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71000
71001         * config/srclist.txt: Comment out argp-pvh.c.
71002
71003 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
71004
71005         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
71006         in case some system header has #define'd it.  Problem reported by
71007         Soeren D. Schulze in
71008         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
71009
71010 2004-09-09  Karl Berry  <karl@gnu.org>
71011
71012         * regex.[ch]: delete from the root.  These were supposed to be
71013                 synced with emacs cvs, but this has not happened for about
71014                 a year, and anyway nothing else uses emacs regex.[ch].
71015                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
71016                 lib/regex[.ch] is untouched.
71017
71018 2004-09-09  Bruno Haible  <bruno@clisp.org>
71019
71020         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
71021
71022 2004-09-09  Bruno Haible  <bruno@clisp.org>
71023
71024         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
71025         modifications.
71026         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
71027
71028 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71029
71030         * modules/xvasprintf: New file.
71031         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
71032
71033 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71034
71035         * lib/xvasprintf.h: New file.
71036         * lib/xvasprintf.c: New file.
71037         * lib/xasprintf.c: New file.
71038
71039 2004-09-08  Bruno Haible  <bruno@clisp.org>
71040
71041         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
71042
71043 2004-09-08  Bruno Haible  <bruno@clisp.org>
71044
71045         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
71046         length is > INT_MAX.
71047         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
71048         more.
71049
71050 2004-09-08  Bruno Haible  <bruno@clisp.org>
71051
71052         * lib/stdint_.h: New file, taken from GNU clisp.
71053
71054 2004-09-08  Bruno Haible  <bruno@clisp.org>
71055             Oskar Liljeblad  <oskar@osk.mine.nu>
71056
71057         * modules/stdint: New file.
71058         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
71059
71060 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71061
71062         Import from coreutils.
71063         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
71064         strings on unbounded length.  alloca's performance benefits aren't
71065         that important here.
71066         (V_STRDUP): Remove.
71067         (parse_with_separator): New function, with most of the internals
71068         of the old parse_user_spec.  Allow user to omit both user and group,
71069         for compatibility with FreeBSD.
71070         Clone only the user name, not the entire spec.
71071         Do not set *uid, *gid unless entirely successful.
71072         Avoid memory leak in some failing cases.
71073         Fix regression for USER.GROUP reported by Dmitry V. Levin in
71074         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
71075         (parse_user_spec): Rewrite to use parse_with_separator.
71076
71077 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71078
71079         * modules/userspec: Don't depend on alloca.
71080
71081 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71082
71083         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
71084
71085 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71086
71087         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
71088         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
71089         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
71090
71091 2004-08-16  Simon Josefsson  <jas@extundo.com>
71092
71093         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
71094         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
71095         Add --dry-run for --import.
71096         Let user provided command line parameters override configure.ac
71097         settings.
71098
71099 2004-08-12  Simon Josefsson  <jas@extundo.com>
71100
71101         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
71102         as discussed with Paul Eggert in threads rooted at
71103         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
71104         and
71105         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
71106         Before, the test was empty, and relied on ELIDE_CODE in source
71107         code.)
71108         (gl_PREREQ_GETOPT): New macro.
71109         (gl_GETOPT): Use them.
71110
71111 2004-08-12  Simon Josefsson  <jas@extundo.com>
71112
71113         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
71114         * lib/getopt_.h: Renamed from getopt.h.
71115
71116 2004-08-12  Simon Josefsson  <jas@extundo.com>
71117
71118         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
71119         Change default library name from libfoo to libgnu.
71120         Now, if you have a configure.ac that says:
71121                 gl_SOURCE_BASE(gl)
71122                 gl_M4_BASE(gl/m4)
71123                 gl_MODULES(error getopt etcetera)
71124                 gl_INIT
71125         you can import all you need by running:
71126                 ../gnulib/gnulib-tool --import
71127
71128         * modules/getopt (Files): Rename getopt.h to getopt_.h.
71129         (Makefile.am): Rewrite, use logic from argz.
71130         (Include): Use <getopt.h> instead of "getopt.h".
71131
71132 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71133
71134         * modules/argp (Files): Add m4/unlocked-io.m4.
71135         (Depends-on): Add extensions.
71136
71137 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71138
71139         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
71140         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
71141         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
71142         Check for program_invocation_name, program_invocation_short_name,
71143         flockfile, funlockfile, features.h, _getopt_long_only_r.
71144
71145 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71146
71147         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
71148         its complicated substitute.
71149         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
71150         and program_invocation_name.
71151         (__argp_basename) [!_LIBC]: Remove; the only use was
71152         replaced by its body.
71153         (__argp_short_program_name): Change condition from
71154         !defined __argp_short_program_name to
71155         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
71156         to match argp-namefrob.h.
71157         (__argp_failure): Don't assume strerror_r returns char *.
71158         * lib/argp-parse.c (N_): Define unconditionally.
71159         (argp_default_options): Fill out initializers with 0 to avoid
71160         gcc warnings.
71161
71162 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71163
71164         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
71165         getopt1.c.
71166
71167 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71168
71169         Merge from coreutils.
71170
71171         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
71172
71173         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
71174         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
71175
71176 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71177
71178         Merge from coreutils.
71179
71180         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
71181         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
71182         for Reliant Unix 5.43.
71183
71184         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
71185         (union fooround): Use uintmax_t, not long int.
71186         The rest is a merge from libc:
71187         [defined _LIBC]: Include <shlib-compat.h>.
71188         (_obstack) [defined _LIBC]: Remove after 2.3.4.
71189
71190         * lib/settime.c (settime): Recode to avoid warning with
71191         Sun Forte C 6U2.
71192
71193         * lib/strverscmp.c: Convert to UTF-8.
71194
71195 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71196
71197         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71198         m4/uintmax_t.m4.
71199
71200 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71201
71202         * modules/xalloc-die: New file.
71203         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
71204
71205         * modules/md5 (Files): Add m4/uint32_t.m4.
71206         * modules/sha1: Renamed from modules/sha.
71207         (Files):
71208         Rename lib/sha.h to lib/sha1.h.
71209         Rename lib/sha.c to lib/sha1.c.
71210         Rename m4/sha.m4 to m4/sha1.m4.
71211         (lib_SOURCES): Likewise.
71212         (configure.ac): Rename gl_SHA to gl_SHA1.
71213         (Include): sha.h -> sha1.h.
71214
71215 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71216
71217         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
71218         * m4/sha1.m4: Renamed from sha.m4.
71219         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
71220
71221 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71222
71223         * lib/obstack.h (obstack_empty_p):
71224         Don't assume that chunk->contents is suitably aligned.
71225         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
71226         Likewise. Problem reported by Benno in
71227         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
71228
71229         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
71230         readable.  This could be improved further but it'd take some work.
71231
71232 2004-08-08  Simon Josefsson  <jas@extundo.com>
71233
71234         * modules/xgethostname (Depends-on): Remove exit and error (not
71235         used).
71236
71237         * modules/getpass-gnu: Add getpass.h.
71238         (Depends-on): Add stdbool.
71239         * modules/getpass: Add getpass.h.
71240
71241 2004-08-08  Simon Josefsson  <jas@extundo.com>
71242
71243         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
71244         Check getpass declaration.
71245
71246 2004-08-08  Simon Josefsson  <jas@extundo.com>
71247
71248         * lib/xgethostname.c: Don't include error.h (not used).
71249
71250         * lib/getpass.h: Add.
71251         * lib/getpass.c: Include getpass.h first.
71252
71253 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
71254
71255         * lib/xalloc-die.c: New file.
71256         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
71257         All uses removed.
71258         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
71259         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
71260         xalloc-die.c.
71261         (_, N_, xalloc_die): Move to xalloc-die.c.
71262         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
71263         so that we needn't mess with xalloc_msg_memory_exhausted.
71264
71265         * lib/sha1.h: Renamed from sha.h.
71266         (SHA1_H): Renamed from _SHA_H.
71267         (sha1_ctx): Renamed from sha_ctx.
71268         (sha1_init_ctx): Renamed from sha_init_ctx.
71269         (sha1_process_block): Renamed from sha_process_block.
71270         (sha1_process_bytes): Renamed from sha_process_bytes.
71271         (sha1_finish_ctx): Renamed from sha_finish_ctx.
71272         (sha1_read_ctx): Renamed from sha_read_ctx.
71273         (sha1_stream): Renamed from sha_stream.
71274         (sha1_buffer): Renamed from sha_buffer.
71275         * lib/sha1.c: Likewise; renamed from sha.c.
71276         Do not include <sys/types.h>.
71277         Include <stddef.h> rather than <stdlib.h>.
71278
71279 2004-08-08  Bruno Haible  <bruno@clisp.org>
71280
71281         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
71282         FILESYSTEM_PREFIX_LEN.
71283         * lib/progreloc.c: Likewise.
71284         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
71285
71286 2004-08-06  Simon Josefsson  <jas@extundo.com>
71287
71288         * modules/progname (Depends-on): Don't depend on stdbool.
71289
71290 2004-08-06  Simon Josefsson  <jas@extundo.com>
71291
71292         * modules/getsubopt: New file.
71293         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71294         getsubopt.
71295
71296 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71297
71298         More merge from coreutils.
71299
71300         * m4/utimens.m4, m4/utimecmp.m4: New files.
71301         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
71302         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
71303         prereq.m4, sha.m4: Import changes from coreutils.
71304
71305 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         More merge from coreutils.
71308         * modules/raise, modules/readtokens0, modules/utimens:
71309         * modules/utimecmp, module/xnanosleep: New files.
71310         * modules/strftime: Add lib/strftime.h.
71311         Change include from <time.h> to "strftime.h".
71312         * modules/yesno: Add lib/yesno.h.
71313         * modules/backupfile: Remove lib/addext.c.
71314         * modules/euidaccess: Add stat-macros.h.
71315         * modules/canonicalize, modules/euidaccess,
71316         modules/filemode, modules/lchown, modules/makepath,
71317         modules/rmdir, modules/stat: Likewise.
71318
71319 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71320
71321         Merge from tar.
71322         * lib/argp-help.c (make_hol, hol_append): Don't assume that
71323         SIZE_MAX is a valid preprocessor constant.
71324         (__argp_basename): Change from "#ifndef _LIBC"
71325         to "#ifndef __argp_short_program_name", so that
71326         we don't compile these functions for tar.
71327
71328         More merges from coreutils.
71329         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
71330         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
71331         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
71332         * lib/addext.c: Remove; no longer needed.
71333         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
71334         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
71335         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
71336         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
71337         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
71338         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
71339         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
71340         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
71341         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
71342         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71343         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
71344         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
71345         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
71346         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
71347         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
71348         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
71349         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
71350         Import changes from coreutils.
71351
71352 2004-08-05  Simon Josefsson  <jas@extundo.com>
71353
71354         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
71355
71356 2004-08-05  Simon Josefsson  <jas@extundo.com>
71357
71358         * m4/getsubopt.m4: New file.
71359
71360 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71361
71362         Merge from coreutils.
71363
71364         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
71365         * m4/getcwd-path-max.m4: New files.
71366
71367         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
71368         FILESYSTEM_PREFIX_LEN ->
71369         FILE_SYSTEM_PREFIX_LEN.
71370         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
71371         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
71372         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
71373         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
71374
71375         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
71376         prerequisite modules now handle the DOS stuff.
71377         Don't check for unistd.h.
71378
71379 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71380
71381         Merge from coreutils.
71382
71383         * lib/.gdb-history: Remove; this doesn't belong here.
71384
71385         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
71386         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
71387         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
71388         * lib/getcwd.c: New files.
71389
71390         * lib/dirname.h: Include <stdbool.h>.
71391         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
71392         for consistency with POSIX terminology.  All uses changed.
71393         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
71394         (strip_trailing_slashes): Use bool for booleans.
71395         * lib/stripslash.c (strip_trailing_slashes): Likewise.
71396
71397         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
71398         sometimes returns a positive errno value even when it succeeds.
71399         (print_errno_message) [!LIBC]: Fall back on strerror if
71400         __strerror_r fails.
71401
71402         * lib/path-concat.c (mempcpy): Don't define if a system header defines
71403         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
71404         (longest_relative_suffix): New function.
71405         (path_concat): Use it.  Assume first argument is not NULL.
71406         Port to DOS.  Omit redundant separators.
71407         Report an error instead of returning NULL.
71408         Use mempcpy instead of memcpy.
71409         (xpath_concat): Remove: not declared or used.
71410
71411         * lib/same.h: Include <stdbool.h>
71412         (same_name): Return bool, not int.
71413         * lib/same.c (same_name): Likewise.
71414         (errno): Don't declare; we assume C89 or better now.
71415
71416         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
71417         if not already defined.
71418
71419         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
71420         * lib/dup-safer.c (errno): Likewise.
71421
71422 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71423
71424         Merge from coreutils.
71425         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
71426         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
71427         * modules/path-concat: Don't depend on strdup.
71428
71429 2004-08-03  Simon Josefsson  <jas@extundo.com>
71430
71431         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
71432         * lib/progname.h: Don't include stdbool.h.
71433
71434 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71435
71436         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
71437         * MODULES.html.sh (func_all_modules): Remove fatal.
71438
71439 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71440
71441         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
71442
71443 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71444
71445         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
71446         working.
71447
71448 2004-08-02  Simon Josefsson  <jas@extundo.com>
71449
71450         * lib/getsubopt.h: New file, with comments from Bruno Haible.
71451         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
71452         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
71453
71454 2004-08-01  Simon Josefsson  <jas@extundo.com>
71455
71456         * lib/xgetdomainname.c: Include stdlib.h, for free().
71457
71458 2004-07-19  Bruno Haible  <bruno@clisp.org>
71459
71460         * MODULES.html.sh (func_all_modules): Add dummy.
71461
71462 2004-07-16  Simon Josefsson  <jas@extundo.com>
71463
71464         * modules/dummy: New file.
71465
71466 2004-07-16  Simon Josefsson  <jas@extundo.com>
71467
71468         * lib/dummy.c: New file.
71469
71470 2004-07-16  Bruno Haible  <bruno@clisp.org>
71471
71472         * lib/backupfile.h: Add extern "C" for C++.
71473         * lib/closeout.h: Likewise.
71474         * lib/copy-file.h: Likewise.
71475         * lib/findprog.h: Likewise.
71476         * lib/full-write.h: Likewise.
71477         * lib/pathname.h: Likewise.
71478         * lib/progname.h: Likewise.
71479         * lib/stpcpy.h: Likewise.
71480         * lib/stpncpy.h: Likewise.
71481         * lib/strcase.h: Likewise.
71482         * lib/strstr.h: Likewise.
71483         * lib/xalloc.h: Likewise.
71484
71485         * lib/mbswidth.h: Add extern "C" for C++.
71486         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
71487
71488 2004-07-13  Robert Millan  <robertmh@gnu.org>
71489
71490         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
71491
71492 2004-07-09  Simon Josefsson  <jas@extundo.com>
71493
71494         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
71495         failed without this.)
71496
71497 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71498
71499         * modules/chown (Files): Add lib/fchown-stub.c, since
71500         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
71501
71502 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71503
71504         * lib/fchown-stub.c: New file.
71505
71506 2004-06-24  Jim Meyering  <jim@meyering.net>
71507
71508         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
71509
71510 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71511
71512         * modules/argz: Omit "#include".
71513
71514         * MODULES.html.sh (func_all_modules): Add calloc, to match
71515         2004-06-01 addition of calloc module.
71516
71517 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71518
71519         * m4/argz.m4: New file, which is autoupdated from libtool.
71520
71521 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71522
71523         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
71524         libtool.
71525
71526 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71527
71528         * config/srclist-update: Don't insist on "USA." before the
71529         close-comment, as libtool omits the period and puts the */ on a
71530         separate line.
71531         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
71532         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
71533
71534 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
71535
71536         * modules/argz: New file.
71537         * MODULES.html.sh (func_all_modules): Add argz.
71538
71539 2004-06-12  Jim Meyering  <jim@meyering.net>
71540         and  Paul Eggert  <eggert@cs.ucla.edu>
71541
71542         * modules/hash (Files): Add lib/xalloc.h.
71543         * modules/pipe (Depends-on): Add wait-process.
71544         * modules/stat (Depends-on): Add xalloc.
71545         * modules/userspec (Files): Add lib/userspec.h.
71546         * modules/xstrto
71547
71548         Upgrade from gettext-0.13.
71549         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
71550         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
71551         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
71552
71553 2004-06-10  Jim Meyering  <jim@meyering.net>
71554
71555         * lib/calloc.c: New file.
71556
71557 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
71558
71559         * lib/getdate.y (yylex): Allow space between sign and number.
71560         Problem reported by Dan Jacobson.
71561
71562 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71563
71564         Merge from coreutils CVS.
71565
71566         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
71567         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
71568         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
71569         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
71570         xstrtol.m4: Fix copyright date and/or serial number.
71571
71572         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
71573         See if we need an fchown replacement.
71574         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
71575         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
71576         and use the replacement function if we detect either defect.
71577
71578         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
71579         gl_UTIMECMP.
71580
71581 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71582         and  Jim Meyering  <jim@meyering.net>
71583
71584         Merge from coreutils CVS.
71585
71586         * lib/stat-macros.h: New file, with contents from file-type.h
71587         and coreutils' system.h.
71588         * lib/file-type.c: Include "stat-macros.h".
71589         * lib/file-type.h (file_type): Move all macro definitions to new file,
71590         stat-macros.h.
71591
71592         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
71593         Wrap old code with this conditional.
71594         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
71595         function that does not dereference symlinks.
71596         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
71597
71598         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
71599         dependency problems.
71600         (xreadlink): Accept new arg SIZE, for efficiency.
71601         All decls and uses changed.
71602         * lib/xreadlink.h: Include <stddef.h>, for size_t.
71603
71604         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
71605         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
71606
71607         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
71608         sysexits.h.
71609
71610 2004-06-01  Jim Meyering  <jim@meyering.net>
71611
71612         * m4/calloc.m4: New file.
71613
71614 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
71615
71616         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
71617         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
71618         Also, fix a typo in a diagnostic.
71619
71620 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71621
71622         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
71623         or AC_FUNC_REALLOC.
71624
71625 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71626
71627         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
71628         macros to be defined.
71629         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
71630         the allocator returns NULL because the requested size is zero.
71631
71632 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71633
71634         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
71635         var.  Add comment explaining why libc still defines it.  This
71636         merges the following patch from glibc:
71637         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
71638
71639 2004-05-20  Andreas Schwab  <schwab@suse.de>
71640
71641         * m4/free.m4: Replace free if it not known to work, not the other
71642         way round.
71643
71644 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71645
71646         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71647         present in glibc since revision 1.1 of this file.
71648         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71649         obstack_alignment_mask, obstack_alloc, obstack_base,
71650         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71651         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71652         obstack_grow0, obstack_init, obstack_int_grow,
71653         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71654         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71655         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71656         nonexistent functions.
71657
71658 2004-05-18  Karl Berry  <karl@gnu.org>
71659
71660         * config/srclist.txt: break link for vasnprintf.c.
71661
71662 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71663
71664         Port obstack to the AS/400, where pointers are 16 bytes wide and
71665         you cannot cast an integer to a valid pointer.  This patch is
71666         currently waiting to be integrated into glibc; see
71667         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71668
71669         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71670         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71671         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71672         (struct obstack): temp member is now a union of a pointer and
71673         an integer, instead of an integer.  All integer uses changed.
71674         This does not affect the physical layout of struct obstack,
71675         except on hosts (like the AS/400) where the size or alignment of
71676         void * is greater than that of ptrdiff_t.
71677         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71678         __STDC__)]: Store temporary in pointer member of union, not
71679         integer member.
71680         * lib/obstack.c: Include <stddef.h>, for offsetof.
71681         (struct fooalign): Remove; it doesn't need a name.
71682         (union fooround): Change double to long double, and add void *.
71683         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71684         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71685         not a macro.  Hence the values are always int; so remove all
71686         casts-to-int in uses.
71687
71688 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71689
71690         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71691         we can get this patch merged into glibc.
71692
71693 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71694             Paul Eggert  <eggert@cs.ucla.edu>
71695
71696         * m4/argp: Depend on alloca.
71697
71698 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71699             Paul Eggert  <eggert@cs.ucla.edu>
71700
71701         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71702         freecoding.
71703
71704 2004-05-17  Bruno Haible  <bruno@clisp.org>
71705
71706         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71707         precision that consists of a '.' followed by an empty digit string.
71708         Patch by Tor Lillqvist <tml@iki.fi>.
71709
71710 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71711
71712         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71713         for backward compatibility with older code.  We need our own
71714         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71715         it under some other name, and our alloca.h will define it.
71716
71717 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71718             Derek Price  <derek@ximbiot.com>
71719
71720         * lib/alloca.c: Include <alloca.h>, to get our interface.
71721         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71722         include <alloca.h> first.  Use C89 prototype for alloca; this
71723         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71724         Use #elif for simplicity, since we can assume C89 now.
71725         Don't try to source the system alloca.h since it will not be found
71726         and to prevent recursively including its replacement.
71727         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71728         * lib/regex.c: Likewise.
71729
71730 2004-05-16  Derek Price  <derek@ximbiot.com>
71731             Paul Eggert  <eggert@cs.ucla.edu>
71732
71733         getline cleanup.  This changes the getndelim2 API: both order of
71734         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71735         no delimiter).
71736
71737         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71738         interface does that.
71739         (getline): Always use getdelim, so that we don't have two
71740         copies of this code.
71741         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71742         if available.
71743         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71744         (GETNDELIM2_MAXIMUM): New macro.
71745         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71746         instead of the old practice of delim2==0.  All callers changed.
71747         Return -1 on overflow, instead of returning junk.
71748         Do not set *linesize unless allocation succeeds.
71749         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71750         that we include sys/types.h.
71751         * lib/getnline.h: Likewise.
71752         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71753         (getndelim2): Reorder arguments.
71754         * lib/getnline.c (getnline, getndelim):
71755         Don't discard the NMAX argument.
71756         (getnline): Invoke getndelim, to avoid code duplication.
71757         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71758         of (size_t) -1 by callers of the getnline family.
71759
71760 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71761
71762         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71763         Check for gettimeofday.
71764         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71765         Check for settimeofday, stime.
71766
71767 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71768
71769         * lib/nanosleep.c (suspended): Change its type from int to
71770         sig_atomic_t volatile.
71771         (first_call): Make it private to rpl_nanosleep, and have it
71772         be zero initially as that's a bit faster.
71773         (my_usleep): Round up fractional times instead of truncating them,
71774         as this is the usual meaning for 'sleep'.
71775
71776         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71777         doesn't work.
71778         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71779         (ENOSYS): Define if not defined.
71780         (settime): Fall back on stime if it exists and settimeofday fails.
71781         But don't bother with fallbacks if a method fails with errno == EPERM.
71782
71783 2004-05-11  Jim Meyering  <jim@meyering.net>
71784
71785         Prior to this change, the save_cwd caller required read access to the
71786         current directory on most systems (ones with the fchdir function).
71787
71788         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71789         fails, try write-only, and finally, resort to using xgetcwd.
71790
71791 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71792
71793         * lib/obstack.c, obstack.h: Import changes from libc.
71794
71795 2004-04-28  Bruno Haible  <bruno@clisp.org>
71796
71797         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71798         also implicitly appends .exe to executables.
71799         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71800         accepts Windows pathnames.
71801         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71802         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71803         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71804         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71805         Reported by Derek Robert Price <derek@ximbiot.com>.
71806
71807 2004-04-21  Karl Berry  <karl@gnu.org>
71808
71809         * config/srclist.txt (localcharset.c): break sync.
71810
71811 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71812
71813         * m4/host-os.m4: Add a copyright notice.
71814
71815 2004-04-20  Jim Meyering  <jim@meyering.net>
71816
71817         Change UTILS_ to gl_ in AC_DEFINE'd names.
71818         Change utils_- and jm_-prefixed variables, too.
71819         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71820         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71821         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71822
71823         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71824         Don't emit trailing blanks.
71825         Also rename jm_-prefixed variables to have gl_ prefix.
71826
71827         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71828         Also rename jm_-prefixed variables to have gl_ prefix.
71829
71830         * m4/jm-macros.m4: Reflect the renamings.
71831         * m4/prereq.m4: Likewise.
71832
71833 2004-04-20  Jim Meyering  <jim@meyering.net>
71834
71835         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71836         memory.
71837
71838 2004-04-20  Jim Meyering  <jim@meyering.net>
71839             Bruno Haible  <bruno@clisp.org>
71840
71841         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71842         memory when realloc fails.
71843
71844 2004-04-19  Jim Meyering  <jim@meyering.net>
71845
71846         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71847         now that readutmp.c may call `free (0)'.
71848
71849 2004-04-19  Bruno Haible  <bruno@clisp.org>
71850
71851         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71852         * m4/inttypes_h.m4: Likewise.
71853         * m4/stdint_h.m4: Likewise.
71854         * m4/intmax_t.m4: Likewise.
71855         * m4/uintmax_t.m4: Likewise.
71856
71857 2004-04-18  Jim Meyering  <jim@meyering.net>
71858
71859         * m4/prereq.m4: Don't forbid jm_ prefix.
71860
71861         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71862         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71863         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71864         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71865         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71866         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71867         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71868         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71869         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71870         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71871         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71872         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71873         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71874         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71875         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71876         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71877         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71878         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71879         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71880
71881 2004-04-18  Jim Meyering  <jim@meyering.net>
71882
71883         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71884         failure, don't leak memory and do call END_UTMP_ENT.
71885
71886 2004-04-16  Jim Meyering  <jim@meyering.net>
71887
71888         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71889         coreutils' stat program.
71890         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71891
71892 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71893
71894         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71895         C89.
71896         (CHAR_BIT): Remove, since we assume C89.
71897         Include <stdint.h> if available, as per current Autoconf CVS advice.
71898
71899 2004-03-31  Jim Meyering  <jim@meyering.net>
71900
71901         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71902         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71903         * m4/xalloc.m4: Likewise.
71904
71905 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71906
71907         Merge from coreutils.
71908
71909         * m4/inttostr.m4: New file.
71910         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71911         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71912         Require gl_CLOCK_TIME.
71913         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71914
71915 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71916
71917         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71918         not bool, to be more consistent with Unix conventions.
71919         Suggested by Bruno Haible.
71920
71921         Merge from coreutils.
71922
71923         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71924         * lib/umaxtostr.c: New files.
71925
71926         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71927         the usual <time.h> dance.
71928         (get_date): Change signature to support fractional time stamps.
71929         All callers changed.
71930         * lib/getdate.y: Include "getdate.h" first, as we can now
71931         assume C89 and don't need to worry about 'const'.
71932         Similarly, include "unlocked-io.h" near start, not in middle.
71933         Include <limits.h>.
71934         (textint.value): Use long int rather than int.
71935         (textint.digits): Use size_t rather than int.
71936         (BILLION, LOG10_BILLION): New constants.
71937         (parser_control): New member rel_ns.  Members day_ordinal,
71938         time_zone, month, day, hour, minutes, rel_year, rel_month,
71939         rel_day, rel_hour, rel_minutes, rel_seconds
71940         are now long int, not int.  Member seconds is now struct timespec,
71941         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71942         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71943         not int.
71944         (%union.intval): Now long int, not int.
71945         New member timespec.
71946         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71947         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71948         (spec): Now is a timespec or an item list.
71949         (timespec, items): New nonterminals.
71950         (time, rel, relunit, number, get_date):
71951         Add support for fractional seconds.
71952         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71953         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71954         (to_hour): First arg is now long int, not int.
71955         (to_year): Returns long int, not int.
71956         Don't treat year -70 like 70.
71957         (tm_diff): Returns long int, not int.
71958         (lookup_word): Use bool instead of int when appropriate.
71959         (yylex): Use size_t for count, not int.
71960         Detect overflow when parsing large integer constants.
71961         Add support for fractions.
71962         (get_date): Make pointers 'const' if possible.
71963         Use more-portable code to detect integer overflow.
71964         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71965         Don't use ctime; it's not reliable if the year has >4 digits.
71966
71967         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71968         This is for compatibility with BSD.
71969
71970         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71971         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71972         From coreutils' system.h.
71973
71974         * lib/userspec.c: Don't include "posixver.h".
71975         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71976         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71977         compatible extension.  Simplify code by removing a boolean int
71978         that was always nonzero if a string was nonnull.
71979
71980 2004-03-30  Jim Meyering  <jim@meyering.net>
71981
71982         Merge from coreutils.
71983
71984         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71985         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71986         on some systems one must include <grp.h> before it.
71987         Reported by Christian Krackowizer.
71988
71989 2004-03-30  Jim Meyering  <jim@meyering.net>
71990
71991         Merge from coreutils.
71992
71993         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71994
71995         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71996         an empty input stream.
71997
71998         * lib/readtokens.c: Include <stdbool.h>.
71999         (readtoken): Use `size_t' rather than int/long.
72000         All callers adjusted.
72001         Use `bool' rather than `int' where appropriate.
72002         Use memset rather than an explicit loop.
72003         Use x2nrealloc rather than xrealloc.
72004         Allow the use of `\0' as a delimiter.
72005         (readtokens): Likewise.
72006         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
72007
72008 2004-03-30  Jim Meyering  <jim@meyering.net>
72009
72010         * m4/realloc.m4: Remove file, since now it does no more than
72011         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
72012         the `configure.ac' section of module/realloc.
72013         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
72014
72015 2004-03-30  Bruno Haible  <bruno@clisp.org>
72016
72017         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
72018         nonnull.
72019
72020 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72021
72022         Merge changes to getloadavg.c from coreutils and Emacs.
72023
72024         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
72025         Define to an expression, not to the empty string.
72026         Include cloexec.h and xalloc.h.
72027         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
72028         Use set_cloexec_flag rather than rolling our own.
72029         * lib/cloexec.c, lib/cloexec.h: New files.
72030
72031 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72032
72033         * m4/cloexec.m4: New file.
72034
72035 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72036
72037         * lib/getopt.h: Sync with libc CVS.
72038
72039 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72040             Bruno Haible  <bruno@clisp.org>
72041
72042         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
72043         mbswidth.
72044
72045 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72046             Bruno Haible  <bruno@clisp.org>
72047
72048         * lib/mbswidth.h: Include <wchar.h> only if
72049         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
72050         <wchar.h>.
72051         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
72052
72053 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72054
72055         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
72056         Sync with libc CVS.
72057         * lib/getopt_int.h: New file, also synced from libc.
72058
72059 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72060
72061         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
72062         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
72063         Bring back getopt.c, getopt.h, getopt1.c.
72064
72065 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72066
72067         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
72068         All uses changed.  Check for sa_sigaction member; this fixes
72069         a bug first reported by Jason Andrade in
72070         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72071
72072 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72073
72074         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
72075         '#if' expressions.  Unlike the code it replaces, it does not
72076         depend on (defined _SC_PAGESIZE).  However, it does depend on
72077         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
72078         first reported by Jason Andrade in
72079         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72080
72081 2004-02-25  Simon Josefsson  <jas@extundo.com>
72082
72083         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
72084
72085 2004-02-25  Simon Josefsson  <jas@extundo.com>
72086
72087         * lib/strdup.h: New file.
72088         * lib/strdup.c: Include it.
72089         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
72090         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
72091
72092 2004-02-23  Karl Berry  <karl@gnu.org>
72093
72094         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
72095         (from fencepost.gnu.org:/gd/gnuorg).
72096
72097 2004-02-23  Karl Berry  <karl@gnu.org>
72098
72099         * config/srclistvars.sh (GNUORG) [karl]: redefine.
72100         * config/srclist.txt: add maintain/standards documents.
72101
72102 2004-02-18  Bruno Haible  <bruno@clisp.org>
72103
72104         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
72105         Reported by Derek Robert Price <derek@ximbiot.com>.
72106
72107 2004-02-16  Karl Berry  <karl@gnu.org>
72108
72109         * config/mkinstalldirs, install-sh: update from automake.
72110
72111 2004-02-06  Karl Berry  <karl@gnu.org>
72112
72113         * m4/po.m4: update from gettext 0.14.1.
72114
72115 2004-02-06  Karl Berry  <karl@gnu.org>
72116
72117         * lib/config.charset: update from gettext 0.14.1.
72118
72119 2004-02-05  Paul Eggert  <eggert@twinsun.com>
72120
72121         Add comments and code, prompted by suggestions from Bruno Haible
72122         for sh-quote.
72123         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
72124         describing the enum quoting_style values.
72125         * lib/quotearg.c (quotearg_alloc): New function.
72126         (quotearg_buffer_restyled): Treat lone { and } as special.
72127         Treat = as special.  Work around bug with older shells
72128         that "see" a '\' that is really the 2nd byte of a multibyte char.
72129         Quote empty string with shell_quoting_style.
72130
72131 2004-02-03  Bruno Haible  <bruno@clisp.org>
72132
72133         * m4/pipe.m4: New file, from GNU gettext.
72134
72135 2004-02-03  Bruno Haible  <bruno@clisp.org>
72136
72137         * lib/pipe.h: New file, from GNU gettext.
72138         * lib/pipe.c: New file, from GNU gettext.
72139
72140 2004-01-27  Bruno Haible  <bruno@clisp.org>
72141
72142         * m4/execute.m4: New file, from GNU gettext.
72143
72144 2004-01-27  Bruno Haible  <bruno@clisp.org>
72145
72146         * lib/execute.h: New file, from GNU gettext.
72147         * lib/execute.c: New file, from GNU gettext.
72148         * lib/w32spawn.h: New file, from GNU gettext.
72149
72150 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72151
72152         Merge from diffutils.
72153
72154         * lib/file-type.c (file_type): Add typed memory objects.
72155         * lib/file-type.h (S_TYPEISTMO): New macro.
72156
72157         * lib/c-stack.h (c_stack_action): Remove argv argument.
72158         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
72159         (die): Don't calculate message unless segv_action returns.
72160         (get_stack_location, min_address_from_argv, max_address_from_argv,
72161         volatile stack_base, volatile_stack_size): Remove.
72162         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
72163         that every segmentation violation is a stack overflow.  (Ouch!)
72164         See Debian bug 136249 (still outstanding) for more info about why
72165         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
72166
72167 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72168
72169         Exit-status fix from coreutils.
72170
72171         Use exit_failure consistently in place of EXIT_FAILURE,
72172         so that program exit statuses are consistent on failure.
72173
72174         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
72175         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
72176         * lib/argmatch.h: Comment fix to match the above.
72177         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
72178         Now a macro referring to exit_failure, instead of a separate
72179         variable.  Include "exitfail.h" to get it.
72180         * lib/xstrtol.h: Include "exitfail.h".
72181         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
72182
72183         * lib/long-options.c (parse_long_options): Use prototype
72184         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
72185         for clarity.
72186
72187 2004-01-21  Jim Meyering  <jim@meyering.net>
72188
72189         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
72190         so as not to conflict with a different-sized __mktime_internal
72191         function in GNU libc.
72192         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
72193         Problem building statically-linked `ls' reported by Michael Brunnbauer.
72194
72195 2004-01-20  Karl Berry  <karl@gnu.org>
72196
72197         * config/config.guess: update from config.
72198
72199         * config/srclistvars.sh: GNUWWWLICENSES for karl.
72200
72201 2004-01-20  Bruno Haible  <bruno@clisp.org>
72202
72203         Safer stack allocation.
72204         * lib/setenv.c: Include allocsa.h.
72205         (alloca): Remove fallback definition.
72206         (freea): Remove macro.
72207         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
72208         instead of freea.
72209
72210 2004-01-20  Bruno Haible  <bruno@clisp.org>
72211
72212         * m4/eealloc.m4: New file, from GNU gettext.
72213
72214 2004-01-20  Bruno Haible  <bruno@clisp.org>
72215
72216         * m4/allocsa.m4: New file, from GNU gettext.
72217
72218 2004-01-20  Bruno Haible  <bruno@clisp.org>
72219
72220         * lib/xallocsa.h: New file, from GNU gettext.
72221         * lib/xallocsa.c: New file, from GNU gettext.
72222
72223 2004-01-20  Bruno Haible  <bruno@clisp.org>
72224
72225         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
72226
72227 2004-01-20  Bruno Haible  <bruno@clisp.org>
72228
72229         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
72230         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
72231         specially.
72232
72233 2004-01-20  Bruno Haible  <bruno@clisp.org>
72234
72235         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
72236         patch.
72237
72238 2004-01-20  Bruno Haible  <bruno@clisp.org>
72239
72240         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
72241
72242 2004-01-20  Bruno Haible  <bruno@clisp.org>
72243
72244         * lib/eealloc.h: New file.
72245
72246 2004-01-20  Bruno Haible  <bruno@clisp.org>
72247
72248         * lib/binary-io.h: Avoid warnings on Cygwin.
72249
72250 2004-01-20  Bruno Haible  <bruno@clisp.org>
72251
72252         * lib/allocsa.h: New file, from GNU gettext.
72253         * lib/allocsa.c: New file, from GNU gettext.
72254
72255 2004-01-18  Karl Berry  <karl@gnu.org>
72256
72257         * doc/gpl.texi, doc/lgpl.texi: new files.
72258
72259 2004-01-18  Karl Berry  <karl@gnu.org>
72260
72261         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
72262         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
72263
72264 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72265
72266         Merge from coreutils.
72267
72268         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
72269         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
72270         (gl_DEFAULT_POSIX2_VERSION): Move
72271         the documentation from 'configure' into 'config.hin',
72272         so that 'configure --help' isn't burdened by it and
72273         we don't have to worry about its formatting there.
72274         Reword the documentation so that it's more succinct
72275         and can be run together into a single paragraph.
72276         * m4/same.m4 (gl_SAME): Check for pathconf.
72277
72278 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72279
72280         Merge from coreutils.
72281
72282         * lib/posixver.c: Include posixver.h.
72283
72284         * lib/same.c: Include <stdbool.h>, <limits.h>.
72285         (_POSIX_NAME_MAX): Define if not defined.
72286         (MIN): New macro.
72287         (same_name): If file names are silently truncated, report
72288         that the file names are the same if they are the same after
72289         the silent truncation.
72290
72291         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
72292         conversion function.
72293         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
72294         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
72295         longer needed.
72296
72297 2004-01-15  Jim Meyering  <jim@meyering.net>
72298
72299         Merge from coreutils.
72300
72301         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
72302         if no library is required.
72303         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
72304         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
72305         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
72306         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
72307         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
72308         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
72309         value, $ac_cv_search_crypt, if it's "none required".
72310         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
72311         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
72312         not gl_FUNC_GETLOADAVG.
72313         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
72314         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
72315
72316 2004-01-15  Jim Meyering  <jim@meyering.net>
72317
72318         Merge from coreutils.
72319
72320         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
72321         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
72322         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
72323
72324         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
72325         optional configure-time default.
72326
72327         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72328
72329         * lib/xreadlink.c (xreadlink): Correct outdated comment.
72330
72331 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
72332
72333         Merge from coreutils.
72334
72335         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
72336         value, $ac_cv_search_nanosleep, if it's "none required".
72337
72338 2004-01-14  Paul Eggert  <eggert@twinsun.com>
72339
72340         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
72341         with like-named macro in fnmatch.c.
72342         (EXT): Use an internal constant instead.
72343
72344         Merge fnmatch patches from glibc.
72345         * lib/fnmatch.c (mbsinit): Remove define.
72346         Add libc_hidden_ver (__fnmatch, fnmatch).
72347         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
72348         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
72349
72350 2004-01-14  Karl Berry  <karl@gnu.org>
72351
72352         * config/install-sh: update from automake.
72353
72354 2004-01-13  Karl Berry  <karl@gnu.org>
72355
72356         * config/install-sh: update from automake.
72357
72358 2004-01-09  Karl Berry  <karl@gnu.org>
72359
72360         * config/install-sh: update from automake.
72361
72362 2004-01-05  Karl Berry  <karl@gnu.org>
72363
72364         * config/config.{sub,guess}: update from config.
72365
72366 2003-12-31  Karl Berry  <karl@gnu.org>
72367
72368         * config/depcomp: update from automake.
72369
72370 2003-12-14  Karl Berry  <karl@gnu.org>
72371
72372         * lib/config.charset: update from gettext-runtime.
72373
72374 2003-12-03  Paul Eggert  <eggert@twinsun.com>
72375
72376         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
72377         Bug reported by Alfred M. Szmidt.
72378
72379 2003-12-03  Bruno Haible  <bruno@clisp.org>
72380
72381         * m4/gettext.m4: Upgrade from gettext-0.13.
72382         * m4/po.m4: Upgrade from gettext-0.13.
72383         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
72384         * m4/intmax.m4: New file, from gettext-0.13.
72385         * m4/printf-posix.m4: New file, from gettext-0.13.
72386
72387 2003-11-29  Karl Berry  <karl@gnu.org>
72388
72389         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
72390
72391 2003-11-25  Paul Eggert  <eggert@twinsun.com>
72392             Bruno Haible  <bruno@clisp.org>
72393
72394         * lib/printf-parse.h: Don't include sys/types.h.
72395         (ARG_NONE): New macro.
72396         (char_directive): Change type of *arg_index fields to size_t.
72397         * lib/printf-parse.c: Don't include sys/types.h.
72398         (SSIZE_MAX): Remove macro.
72399         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
72400         Remove unnecessary overflow check.
72401         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
72402         fields.
72403
72404 2003-11-25  Bruno Haible  <bruno@clisp.org>
72405
72406         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
72407
72408 2003-11-25  Bruno Haible  <bruno@clisp.org>
72409
72410         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
72411         gt_TYPE_SSIZE_T.
72412
72413 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72414
72415         * modules/alloca: Remove dependency on xalloc.
72416
72417 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72418
72419         * lib/alloca.c: Remove dependency on xalloc module.
72420         (xalloc_die): Remove.
72421         (memory_full) [!defined emacs]: New macro.
72422         [!defined emacs]: Don't include xalloc.h.
72423         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
72424         address arithmetic overflows.  Change datatypes a bit to avoid
72425         unnecessary casts.
72426
72427 2003-11-22  Jim Meyering  <jim@meyering.net>
72428
72429         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
72430         s/size/size_t/.
72431
72432 2003-11-21  Karl Berry  <karl@gnu.org>
72433
72434         * config/config.{sub,guess}: update from config.
72435
72436 2003-11-18  Karl Berry  <karl@gnu.org>
72437
72438         * config/config.{sub,guess}: update from config.
72439
72440         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
72441
72442 2003-11-17  Paul Eggert  <eggert@twinsun.com>
72443
72444         * README: Mention that S+T cannot overflow if S is the size of
72445         an existing object and T is sufficiently small.
72446
72447 2003-11-17  Jim Meyering  <jim@meyering.net>
72448
72449         On systems without utime and without a utimes function capable of
72450         dealing with a NULL struct utimbuf* argument, this utime replacement
72451         could -- in unusual circumstances -- leak a file descriptor.
72452         * lib/utime.c: Include <unistd.h> and <errno.h>.
72453         (utime_null): Be sure to close `fd' and to preserve errno.
72454         Reported by Geoff Collyer via Arnold Robbins.
72455
72456 2003-11-17  Bruno Haible  <bruno@clisp.org>
72457
72458         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
72459         (Depends-on): Add xsize.
72460
72461 2003-11-17  Bruno Haible  <bruno@clisp.org>
72462
72463         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
72464
72465 2003-11-17  Bruno Haible  <bruno@clisp.org>
72466
72467         * lib/vasnprintf.c (alloca): Remove fallback definition.
72468         (freea): Remove definition.
72469         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
72470         Reported by Paul Eggert.
72471
72472 2003-11-16  Paul Eggert  <eggert@twinsun.com>
72473             Bruno Haible  <bruno@clisp.org>
72474
72475         Protect against address arithmetic overflow.
72476         * lib/printf-args.h: Include stddef.h.
72477         (arguments): Change type of field 'count' to size_t.
72478         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
72479         'unsigned int' where appropriate.
72480         * lib/printf-parse.h: Include sys/types.h.
72481         (char_directive): Change type of *arg_index fields to ssize_t.
72482         (char_directives): Change type of fields 'count', max_*_length to
72483         size_t.
72484         * lib/printf-parse.c: Include sys/types.h and xsize.h.
72485         (SSIZE_MAX): Define fallback value.
72486         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
72487         instead of 'int' where appropriate. Check a_allocated, d_allocated
72488         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
72489         * lib/vasnprintf.c: Include xsize.h.
72490         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
72491         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
72492         overflow. Avoid wraparound when converting a width or precision from
72493         decimal to binary.
72494
72495 2003-11-16  Bruno Haible  <bruno@clisp.org>
72496
72497         Update from GNU gettext.
72498         * lib/printf-parse.c: Generalize to it can be compiled for wide
72499         strings.
72500         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
72501         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
72502         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
72503         SNPRINTF): New macros.
72504         Don't include <alloca.h> if the file is used inside libintl.
72505         (local_wcslen): New function, for Solaris 2.5.1.
72506         (VASNPRINTF): Use it instead of wcslen.
72507
72508 2003-11-16  Bruno Haible  <bruno@clisp.org>
72509
72510         * lib/xsize.h (xmax): New function.
72511         (xsum, xsum3, xsum4): Declare as "pure" functions.
72512
72513 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72514
72515         * modules/xalloc (Files): Undo latest change, since xalloc.h
72516         no longer needs SIZE_MAX or PTRDIFF_MAX.
72517
72518 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72519
72520         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
72521         gl_PTRDIFF_MAX.
72522
72523 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72524
72525         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
72526         "return", to pacify some unknown compiler.  Problem reported
72527         by Joerg Schilling.
72528
72529 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72530
72531         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
72532         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
72533         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
72534         heuristic is just as accurate as far as we know, and it removes a
72535         dependency on size_max.m4 and ptrdiff_max.m4.
72536
72537 2003-11-11  Bruno Haible  <bruno@clisp.org>
72538
72539         * modules/xsize (Files): Add m4/size_max.m4.
72540         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
72541
72542 2003-11-11  Bruno Haible  <bruno@clisp.org>
72543
72544         * m4/size_max.m4: New file.
72545         * m4/ptrdiff_max.m4: New file.
72546         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
72547         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
72548         (gl_XALLOC): Invoke it.
72549
72550 2003-11-11  Bruno Haible  <bruno@clisp.org>
72551
72552         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
72553         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
72554         defined.
72555
72556 2003-11-10  Paul Eggert  <eggert@twinsun.com>
72557
72558         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
72559         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
72560         rejected some allocations of exactly SIZE_MAX - 2 bytes.
72561         From Bruno Haible.
72562         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
72563         not (size_t) -1, since it's defined here.
72564
72565 2003-11-09  Karl Berry  <karl@gnu.org>
72566
72567         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
72568
72569 2003-11-06  Paul Eggert  <eggert@twinsun.com>
72570
72571         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
72572         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
72573         Reject sizes of exactly SIZE_MAX bytes.
72574         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
72575         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
72576
72577 2003-11-05  Bruno Haible  <bruno@clisp.org>
72578
72579         * lib/xsize.h: Include limits.h, to avoid a possible collision with
72580         SIZE_MAX defined in <limits.h> on Solaris.
72581
72582 2003-11-04  Jim Meyering  <jim@meyering.net>
72583
72584         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
72585         variable names, rather than @VAR@.
72586         * modules/poll: Likewise.
72587
72588 2003-11-04  Bruno Haible  <bruno@clisp.org>
72589
72590         * modules/xsize: New file.
72591         * modules/linebreak: Depend on xsize.
72592         * MODULES.html.sh (func_all_modules): Add xsize.
72593
72594 2003-11-04  Bruno Haible  <bruno@clisp.org>
72595
72596         * m4/xsize.m4: New file.
72597
72598 2003-11-04  Bruno Haible  <bruno@clisp.org>
72599
72600         * lib/xsize.h: New file.
72601         * lib/linebreak.c: Include xsize.h.
72602         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
72603         argument for overflow.
72604         Suggested by Paul Eggert.
72605
72606 2003-11-03  Karl Berry  <karl@gnu.org>
72607
72608         * config/config.{guess,sub}: update from config.
72609
72610 2003-11-03  Jim Meyering  <jim@meyering.net>
72611
72612         * modules/userspec (lib_SOURCES): Add userspec.h.
72613         (Include): Add "userspec.h".
72614         Improve description.
72615
72616 2003-11-03  Jim Meyering  <jim@meyering.net>
72617
72618         * lib/userspec.c: Include "userspec.h".
72619         * lib/userspec.h: New file.
72620
72621 2003-11-03  Bruno Haible  <bruno@clisp.org>
72622
72623         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
72624
72625 2003-11-03  Bruno Haible  <bruno@clisp.org>
72626
72627         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
72628         available, to avoid (extremely rare) race condition.
72629         Suggested by Paul Eggert.
72630
72631 2003-11-02  Karl Berry  <karl@gnu.org>
72632
72633         * config/srclist.txt (vasprintf.c): sync broken, sigh.
72634
72635 2003-10-31  Paul Eggert  <eggert@twinsun.com>
72636
72637         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
72638         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
72639         (read_filesystem_list): Set and use me_type_malloced.
72640         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
72641         whatever the type happens to be), for brevity and consistency.
72642         Check for size calculation overflow on Alphas running OSF/1.
72643
72644 2003-10-31  Jim Meyering  <jim@meyering.net>
72645
72646         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72647
72648         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72649
72650 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72651             Bruno Haible  <bruno@clisp.org>
72652
72653         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72654         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72655
72656 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72657
72658         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72659         netbsd*-gnu*.  Suggested by Robert Millan.
72660
72661 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72662
72663         * modules/group-member: Depend on stdbool.
72664
72665 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72666
72667         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72668
72669 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72670
72671         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72672         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72673         after the 'gnu' in these cases.  This fixes some bugs in the
72674         previous change, and is based on suggestions by Robert Millan.
72675
72676 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72677
72678         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72679         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72680         no longer needed.
72681         * lib/quotearg.c (quotearg_n_options): Use it.
72682         * lib/group-member.c: Include <stdbool.h>.
72683         (free_group_info): Arg is now const *; don't free arg.
72684         (get_group_info): Now returns bool and accepts struct group_info *,
72685         rather than returning a malloc'ed struct group_info *.
72686         All uses changed.  Check for overflow in internal size calculation.
72687
72688         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72689         rather than xmalloc/xrealloc.
72690         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72691         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72692         conformance bug: the old code used a pointer after freeing the
72693         storage that it addressed.
72694         * lib/hash.c (hash_initialize): Simplify the code by using
72695         xalloc_oversized rather than doing it by hand.
72696         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72697         the buffer preserved.  Use free and xmalloc instead.
72698         * lib/quotearg.c (quotearg_n_options): Likewise.
72699         Use a simpler test for size overflow.  Don't use xalloc_oversized
72700         because unsigned int might be wider than size_t (!); this suggests
72701         that we should switch from unsigned int to size_t for slot numbers.
72702
72703 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72704
72705         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72706         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72707         NetBSD kernels.  Requested by Richard Stallman.
72708
72709 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72710
72711         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72712         to allocate the returned structure.  Do not allocate a subarray,
72713         as x2nrealloc will do that.
72714         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72715         instead of xnrealloc.
72716         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72717
72718 2003-10-27  Bruno Haible  <bruno@clisp.org>
72719
72720         * lib/stdbool_.h: Better support for BeOS.
72721
72722 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72723
72724         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72725         now uses inline.
72726
72727 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72728
72729         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72730         callers that want to do their own size-overflow checking.  Include
72731         <stdbool.h>, since xalloc_oversized returns bool.
72732         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72733         to use xalloc_oversized.
72734
72735         Add two functions x2realloc, x2nrealloc, for programs that grow
72736         arrays dynamically by doubling their sizes.
72737         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72738         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72739         New functions.
72740
72741         Port to C99 semantics for 'inline' of external functions.
72742         Bug reported by Bruno Haible.
72743         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72744         with the old contents of xnmalloc.
72745         (xnmalloc, xmalloc): Use it.
72746         (xnrealloc_inline): New static inline function,
72747         with the old contents of xnrealloc.
72748         (xnrealloc, xrealloc): Use it.
72749
72750         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72751         that.
72752
72753 2003-10-26  Karl Berry  <karl@gnu.org>
72754
72755         * config/srclist.txt (COPYING.DOC): no longer available from
72756         /gd/gnuorg; don't know where the ultimate source is.
72757
72758 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72759
72760         Fix several address-calculation bugs in the hash modules,
72761         plus some minor code cleanup.
72762
72763         * lib/hash.h: Include <stdbool.h>, for bool.
72764         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72765         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72766         hash_get_n_entries, hash_get_max_bucket_length,
72767         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72768         hash_rehash): Use size_t rather than unsigned.
72769         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72770         hash_get_n_buckets_used, hash_get_n_entries,
72771         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72772         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72773         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72774         Likewise.
72775         (SIZE_MAX): Define if not defined.
72776         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72777         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72778         hash_print):
72779         Use const * when possible.
72780         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72781         (check_tuning): Fix bug: if tuning parameters were very close to
72782         0 or 1, rounding errors could have caused subscript violations.
72783         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72784         (hash_initialize): Add 'fail:' label
72785         to free table and return NULL, and use it to simplify code.
72786         Use calloc rather than clearing the storage ourself.
72787         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72788         buffer size calculations.
72789         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72790         Include <stddef.h>, for size_t.
72791         * lib/hash-pjw.c (hash_pjw): Likewise.
72792         Switch to method described by Bruno Haible.
72793         Include <limits.h>, for CHAR_BIT.
72794         (SIZE_BITS): New macro.
72795
72796 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72797
72798         * m4/getline.m4 (AM_FUNC_GETLINE):
72799         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72800         hosts.  Problem reported by Derek Robert Price in
72801         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72802         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72803         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72804
72805 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72806
72807         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72808         ceiling the allocation at NMAX bytes rather than silently
72809         discarding input bytes before NMAX is reached.  This makes
72810         a difference only if NMAX exceeds SIZE_MAX / 2.
72811
72812         * lib/obstack.c: Merge from glibc.
72813         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72814         Add libc_hidden_def (_obstack_newchunk).
72815         (_obstack_free) [! defined _LIBC]: Remove.
72816         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72817         a clone of the function body.
72818         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72819         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72820
72821         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72822         glibc.
72823         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72824         arg to memcpy.
72825
72826         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72827         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72828         Don't use lvalue casts, as GCC plans to remove support for them
72829         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72830         was also present in the non-GCC version, indicating that this
72831         code had always been buggy and had never been widely used.
72832         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72833         Use the fast variant of each macro, rather than copying the
72834         definiens of the fast variant; that way, we'll be more likely to
72835         catch future bugs in the fast variants.
72836
72837 2003-10-20  Bruno Haible  <bruno@clisp.org>
72838
72839         * modules/wait-process: New file.
72840         * MODULES.html.sh (func_all_modules): Add wait-process.
72841
72842 2003-10-20  Bruno Haible  <bruno@clisp.org>
72843
72844         * m4/wait-process.m4: New file.
72845
72846 2003-10-20  Bruno Haible  <bruno@clisp.org>
72847
72848         * lib/wait-process.h: New file, from GNU gettext.
72849         * lib/wait-process.c: New file, from GNU gettext.
72850
72851 2003-10-19  Jim Meyering  <jim@meyering.net>
72852
72853         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72854         HPUX 10.20.
72855
72856 2003-10-18  Karl Berry  <karl@gnu.org>
72857
72858         * config/config.guess: update from config.
72859
72860 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72861
72862         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72863         (getgroups): First arg is int, not size_t.
72864         Don't let 'free' mangle errno.
72865
72866 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72867
72868         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72869
72870 2003-10-16  Karl Berry  <karl@gnu.org>
72871
72872         * config/config.{guess,sub}: update from config.
72873
72874 2003-10-16  Jim Meyering  <jim@meyering.net>
72875
72876         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72877         memcpy.
72878
72879 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72880
72881         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72882         (SIZE_MAX): Remove.
72883         (new_exclude, add_exclude_file): Initial size no longer needs to
72884         be a power of 2.
72885         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72886         our own address arithmetic overflow checking.
72887
72888         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72889         (fnmatch): Do not alloca more than 2000 wide characters;
72890         instead, use malloc for large buffers.
72891         Check for address arithmetic overflow, and return -1
72892         with errno set to ENOMEM in that case.
72893         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72894         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72895         instead, return -1.  Check for address arithmetic overflow.
72896
72897 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72898
72899         Handle invalid suffixes and overflow independently, so that
72900         callers can treat them independently as needed.  Fix some bugs in
72901         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72902         suffix for a human-readable blocksize.  The major caller-visible
72903         change is the addition of a new
72904         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72905         that both overflow and suffix chars were found.
72906
72907         * lib/human.c (humblock): Don't check separately for invalid suffix
72908         char; that is xstrtoumax's job (now that its bug is fixed).
72909         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72910         INTMAX_MAX]: New macros.
72911         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72912         TYPE_MAXIMUM): New macros.
72913         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72914         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72915         if overflow occurs, as it's what __strtol does and it's more useful
72916         in practice.
72917         (__xstrtol): If __strtol reports some error other than ERANGE,
72918         reflect it to the caller as LONGINT_INVALID.  If it reports
72919         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72920         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72921         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72922         value.
72923         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72924         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72925         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72926         [defined UINTMAX_MAX]: New macros.
72927
72928 2003-10-14  Bruno Haible  <bruno@clisp.org>
72929
72930         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72931
72932 2003-10-14  Bruno Haible  <bruno@clisp.org>
72933
72934         * m4/sig_atomic_t: New file, from GNU gettext.
72935         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72936
72937 2003-10-14  Bruno Haible  <bruno@clisp.org>
72938
72939         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72940         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72941         Also use volatile where needed.
72942
72943 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72944
72945         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72946         Change maintainer from Bruno Haible to 'all'.
72947
72948 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72949
72950         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72951
72952 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72953
72954         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72955         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72956         and define in terms of the other primitives.
72957         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72958         (SIZE_MAX): Define if not already defined.
72959         (array_size_overflow): New function.
72960         (xalloc_die): Abort instead of exiting if 'error' returns.
72961         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72962         (xmalloc, xrealloc): Use them.
72963         (xcalloc): Check for address arithmetic overflow.
72964         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72965         a bit faster than strcpy.
72966
72967 2003-10-10  Simon Josefsson  <jas@extundo.com>
72968
72969         * modules/argp (Depends-on): Add restrict and strcase.
72970
72971 2003-10-10  Simon Josefsson  <jas@extundo.com>
72972
72973         * m4/argp.m4: Add AC_C_INLINE.
72974
72975 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72976
72977         Merge getpass from libc, plus a few fixes.
72978
72979         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72980         Include <stdbool.h>.
72981         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72982         __fsetlocking to empty.
72983         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72984         do include <bits/libc-lock.h>.
72985         Do not include <fcntl.h>; not needed.
72986         [_LIBC]: Include <wchar.h>.
72987         (NOTCANCEL_MODE): New macro.
72988         (flockfile, funlockfile) [_LIBC]: New macros.
72989         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72990         [!_LIBC]: New macros.
72991         (call_fclose): New function.
72992         (getpass): Use it.  Save tty stream separately; this simplifies the
72993         code and makes it more reliable if stdin happens to equal stdout.
72994         Invoke __fsetlocking on tty.
72995         Handle thread cancellation if needed.
72996         Namespace cleanup (use __tcgetattr, __getline).
72997         Use bool for Booleans.
72998         [USE_IN_LIBIO]: Handle wide streams.
72999         [!_LIBC]: Unconditionally do the fseek, since we don't know what
73000         stream might go where.
73001
73002         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
73003         doesn't have to include <stdio.h> before us.
73004         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
73005         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
73006         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
73007         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
73008         if not declared, so that we can use getpass.c code from libc without
73009         rewriting it.
73010         (flockfile, ftrylockfile, funlockfile): New macros.
73011
73012 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73013
73014         * modules/getpass: Depend on stdbool.
73015
73016 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73017
73018         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
73019
73020 2003-10-07  Karl Berry  <karl@gnu.org>
73021
73022         * config/config.{guess,sub}: update from config.
73023
73024 2003-10-06  Jim Meyering  <jim@meyering.net>
73025             Bruno Haible  <bruno@clisp.org>
73026
73027         This lets translators provide better translations for the
73028         "Written by ..." part of --version output.
73029         * lib/version-etc.h: Include stdarg.h.
73030         (version_etc_copyright): Declare as readonly.
73031         (version_etc): Make this function variadic with a NULL-terminated list
73032         of author name strings.
73033         (version_etc_va): New declaration.
73034         * lib/version-etc.c: Include stdarg.h, stdlib.h.
73035         (version_etc_copyright): Declare as readonly.
73036         (version_etc_va): New function. Provide a different translatable string
73037         for each possible number of authors < 10. Abbreviate when there are 10
73038         authors or more.
73039         (version_etc): Make this function variadic. Call version_etc_va.
73040         Suggestion from Gary V. Vaughan.
73041
73042         * lib/long-options.h (parse_long_options): Change prototype: the
73043         authors string is moved to the end and becomes variadic.
73044         * lib/long-options.c: Include stdarg.h.
73045         (parse_long_options): Make this function variadic, too.
73046         Call version_etc_va, not version_etc.
73047
73048 2003-10-06  Bruno Haible  <bruno@clisp.org>
73049
73050         * modules/version-etc-2: Remove file.
73051         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
73052
73053 2003-10-06  Bruno Haible  <bruno@clisp.org>
73054
73055         * modules/fatal-signal: New file.
73056         * MODULES.html.sh (func_all_modules): Add fatal-signal.
73057
73058 2003-10-06  Bruno Haible  <bruno@clisp.org>
73059
73060         * m4/fatal-signal.m4: New file.
73061         * m4/signalblocking.m4: New file, from GNU gettext.
73062
73063 2003-10-06  Bruno Haible  <bruno@clisp.org>
73064
73065         * lib/version-etc-2.h: Remove file.
73066         * lib/version-etc-2.c: Remove file.
73067
73068 2003-10-06  Bruno Haible  <bruno@clisp.org>
73069
73070         * lib/fatal-signal.h: New file, from GNU gettext.
73071         * lib/fatal-signal.c: New file, from GNU gettext.
73072
73073 2003-10-05  Paul Eggert  <eggert@twinsun.com>
73074
73075         * README: Rework advice for preventing empty .o files.
73076         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
73077         not <sys/types.h>.
73078
73079 2003-10-04  Karl Berry  <karl@gnu.org>
73080
73081         * lib/argp*: update from libc.
73082
73083 2003-10-04  Karl Berry  <karl@gnu.org>
73084
73085         * config/config.{guess,sub}: update from config.
73086
73087 2003-10-02  Bruno Haible  <bruno@clisp.org>
73088
73089         * modules/lchown (Include): Add lchown.h.
73090         * modules/time_r (Include): Use "..." syntax.
73091         * modules/xgetdomainname (Include): Add xgetdomainname.h.
73092
73093 2003-10-01  Simon Josefsson  <jas@extundo.com>
73094
73095         * MODULES.html.sh (func_all_modules): Move gethostname from section
73096         'based on' to section 'lacking' POSIX:2001.
73097
73098 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
73099
73100         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
73101         to output mode on the same stream.
73102
73103 2003-09-29  Paul Eggert  <eggert@twinsun.com>
73104
73105         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
73106         Fix arg typo in previous patch.
73107
73108 2003-09-28  Jim Meyering  <jim@meyering.net>
73109
73110         * lib/error.c: Correct cpp indentation.
73111
73112 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73113
73114         * modules/free: New file.
73115
73116 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73117
73118         * m4/free.m4: New file.
73119
73120 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73121
73122         * lib/minmax.h (MIN, MAX)
73123         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
73124         Omit the special code that used __typeof__, since we worry that
73125         it could be more trouble than it's worth.  See:
73126         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
73127         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
73128
73129         * lib/free.c: New file.
73130
73131 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
73132
73133         Trivial fixes to Makefile.am parts of module listings.
73134         * modules/strstr: Append strstr.h to lib_SOURCES.
73135         * modules/strcase: Likewise, for strcase.h.
73136
73137 2003-09-27  Karl Berry  <karl@gnu.org>
73138
73139         * config/mkinstalldirs: update from automake.
73140
73141 2003-09-26  Paul Eggert  <eggert@twinsun.com>
73142
73143         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
73144         (error_tail): Do not loop, reallocating temporary buffer, since
73145         the output cannot contain more wide characters than the input
73146         contains bytes, the size must be big enough already.  This avoids
73147         one potential size overflow calculation.  Check for size overflow
73148         when calculating temporary buffer size.  Free temporary buffer
73149         when done, if it was allocated with malloc; this plugs a memory
73150         leak.  Remove casts from void * to pointers, that are no longer
73151         needed now that we're assuming C89 or better.
73152
73153         Merge error changes from glibc.
73154
73155         * lib/error.c, error.h: Update copyright notice header to match glibc.
73156         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
73157         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
73158         Disable cancellation while printing error.
73159         * lib/error.h: Prepend __ to parameter names.
73160
73161 2003-09-26  Jim Meyering  <jim@meyering.net>
73162
73163         * lib/error.c (error_tail): Move some declarations
73164         into inner scope where the local variables are used.
73165
73166 2003-09-26  Bruno Haible  <bruno@clisp.org>
73167
73168         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
73169         stpncpy().
73170         Don't define stpncpy through config.h; it's now done through stpncpy.h.
73171
73172 2003-09-26  Bruno Haible  <bruno@clisp.org>
73173
73174         * lib/stpncpy.h (gnu_stpncpy): New declaration.
73175         (stpncpy): Define as alias for gnu_stpncpy.
73176         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
73177
73178 2003-09-25  Simon Josefsson  <jas@extundo.com>
73179
73180         * lib/xgetdomainname.h: New file.
73181         * lib/xgetdomainname.c: New file.
73182
73183 2003-09-25  Simon Josefsson  <jas@extundo.com>
73184             Bruno Haible  <bruno@clisp.org>
73185
73186         * modules/getdomainname: New file.
73187         * modules/xgetdomainname: New file.
73188         * MODULES.html.sh (func_all_modules): Add getdomainname,
73189         xgetdomainname.
73190
73191 2003-09-25  Simon Josefsson  <jas@extundo.com>
73192             Bruno Haible  <bruno@clisp.org>
73193
73194         * m4/getdomainname.m4: New file.
73195
73196 2003-09-25  Simon Josefsson  <jas@extundo.com>
73197             Bruno Haible  <bruno@clisp.org>
73198
73199         * lib/getdomainname.h: New file.
73200         * lib/getdomainname.c: New file.
73201
73202 2003-09-25  Karl Berry  <karl@gnu.org>
73203
73204         * lib/argp-fmtstream.c, argp-help.c: update from libc.
73205
73206 2003-09-25  Karl Berry  <karl@gnu.org>
73207
73208         * config/install-sh: update from automake.
73209
73210 2003-09-25  Bruno Haible  <bruno@clisp.org>
73211
73212         * modules/version-etc-2: New file, from modules/version-etc with
73213         modifications.
73214         * MODULES.html.sh (func_all_modules): Add version-etc-2.
73215
73216 2003-09-25  Bruno Haible  <bruno@clisp.org>
73217
73218         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
73219         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
73220
73221 2003-09-24  Simon Josefsson  <jas@extundo.com>
73222
73223         * modules/xgethostname: Add xgethostname.h.
73224
73225 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73226
73227         * lib/linebuffer.c (freebuffer): Don't free the argument, just
73228         the buffer associated with the argument.  Bug reported by
73229         Simon Josefsson.
73230
73231 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73232
73233         * README: Document assumptions that 'int' is at least 32 bits
73234         wide, that integer arithmetic is 2's complement without overflow,
73235         that there are no holes in integer values, that adding sizes of
73236         two nonoverlapping objects can't overflow, and that all-bits-zero
73237         yields scalar zero.  Fix spelling and capitalization typos.
73238
73239 2003-09-19  Karl Berry  <karl@gnu.org>
73240
73241         * lib/argp.h: update from libc.
73242
73243 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73244
73245         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
73246         to avoid spurious warnings like "AC_RUN_IFELSE was called before
73247         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
73248
73249 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73250
73251         * gnulib-tool: Use "test -h", not "test -L", for portability
73252         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
73253         (tags_regexp): Remove, since \| doesn't conform to POSIX.
73254         (sed_extract_prog): Issue s commands one-by-one, rather than
73255         using \| in one s command.
73256
73257 2003-09-16  Paul Eggert  <eggert@twinsun.com>
73258
73259         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
73260         input error, instead of returning NULL the next time we are called
73261         (and therefore losing track of errno).
73262
73263 2003-09-16  Bruno Haible  <bruno@clisp.org>
73264
73265         * gnulib-tool (func_create_testdir): Warn about duplicated
73266         dependencies.
73267
73268 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73269
73270         * modules/argmatch, modules/fatal, modules/obstack,
73271         modules/xalloc, modules/xgethostname: Sort dependencies by
73272         importance, not alphabetically.
73273
73274 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73275
73276         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
73277         fails, so that the caller gets the proper errno.
73278
73279         * lib/readutmp.c (read_utmp): Likewise.
73280         Check for fstat error.  Close stream and free storage
73281         when failing.
73282
73283 2003-09-14  Karl Berry  <karl@gnu.org>
73284
73285         * config/srclist.txt (strdup.c): disable for c89 changes.
73286
73287 2003-09-14  Jim Meyering  <jim@meyering.net>
73288
73289         * lib/getloadavg.c: Correct cpp indentation.
73290         * lib/strdup.c: Likewise.
73291         * lib/vasnprintf.c: Likewise.
73292
73293 2003-09-14  Bruno Haible  <bruno@clisp.org>
73294
73295         * modules/fwriteerror: New file.
73296         * MODULES.html.sh (func_all_modules): Add fwriteerror.
73297
73298 2003-09-14  Bruno Haible  <bruno@clisp.org>
73299
73300         * lib/fwriteerror.h: New file.
73301         * lib/fwriteerror.c: New file.
73302
73303 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73304
73305         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
73306         modules/xgethostname, modules/xalloc: Depend on exit.
73307
73308 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73309
73310         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
73311
73312         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
73313         and AC_MINIX, too, so that their extensions are available.
73314
73315         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
73316         This macro has been superseded by gl_BACKUPFILE.
73317
73318         More patches to assume C89 or better.
73319
73320         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
73321
73322         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
73323         unconditionally.
73324         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
73325         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
73326         Include <string.h>, <stdlib.h> unconditionally.
73327         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
73328         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
73329         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
73330         headers or for string.h.
73331         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
73332         or strtoul.
73333
73334         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
73335         headers.
73336         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
73337         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73338         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
73339         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
73340         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73341         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
73342         memcpy, memset.
73343         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
73344         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
73345         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
73346         strtol.
73347         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
73348         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
73349         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
73350         strtoul.
73351
73352 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73353
73354         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
73355         * lib/obstack.c [!defined _LIBC]: Likewise.
73356         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
73357         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
73358         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
73359
73360         More changes to assume C89 or better.
73361
73362         * lib/error.c (error_tail): Assume vprintf.
73363
73364         * lib/argmatch.c (getenv): Remove decl.
73365         * lib/progreloc.c (get_full_program_name): Define via prototype.
73366         * lib/setenv.c (clearenv): Likewise.
73367         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
73368         needed.
73369         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
73370         (malloc, memcpy): Remove decls.
73371         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
73372         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
73373         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73374         (memcpy): Remove macro.
73375         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
73376         (__P): Remove.  All uses removed.
73377         (PTR): Remove.  All uses changed to void *.
73378         (CHAR_BIT, NULL): Remove.
73379         (spaces, zeros, memset_space, memset_zero)
73380         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
73381         Remove.
73382         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
73383         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
73384         Define with prototype.
73385         Remove now-unnecessary prototype decl.
73386         (extra_args_spec): Assume ANSI C.  All uses changed.
73387         (extra_args_spec_iso): Remove.
73388         (my_strftime, emacs_strftimeu): Define via prototype.
73389         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
73390         unconditionally.
73391         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
73392         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
73393         (strtoul, strtol): Remove decls.
73394         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
73395         LONG_MAX): Remove.
73396         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73397         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
73398         (LOCALE_PARAM_PROTO): New macro.
73399         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
73400         (INTERNAL (strtol), strtol): Define with a prototype.
73401         (PARAMS): Remove.  All uses removed.
73402         * lib/tempname.c: Include <string.h> unconditionally.
73403         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
73404         * lib/xgethostname.c (main): Define with a prototype.
73405         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
73406         Include <stdlib.h> unconditionally.
73407         (calloc, malloc, realloc, free): Remove decls.
73408         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
73409         Include <stdlib.h> unconditionally.  Sort include file names.
73410         (strtod): Remove.
73411         (xstrtod): Define with a prototype.
73412         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
73413         (strtol, strtoul): Remove decls.
73414
73415 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73416
73417         More patches to assume C89 or better.
73418         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
73419         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
73420         string.h, memchr, STDC_HEADERS.
73421
73422 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73423
73424         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
73425         Include <stdlib.h>, <string.h> unconditionally.
73426         Remove now-unnecessary cast to char *.
73427         * lib/strnlen.c: Include <string.h> unconditionally.
73428         * lib/yesno.c (yesno): Define with a prototype.
73429
73430 2003-09-11  Bruno Haible  <bruno@clisp.org>
73431
73432         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
73433
73434 2003-09-10  Jim Meyering  <jim@meyering.net>
73435
73436         * lib/error.c: Correct indentation of cpp directives.
73437
73438 2003-09-10  Bruno Haible  <bruno@clisp.org>
73439
73440         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
73441         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
73442         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
73443         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
73444         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
73445         <stdlib.h> and <string.h> checks.
73446         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
73447         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
73448
73449 2003-09-10  Bruno Haible  <bruno@clisp.org>
73450
73451         * lib/strcspn.c: Include <string.h> unconditionally.
73452         * lib/strpbrk.c: Include <string.h> unconditionally.
73453         * lib/strstr.c: Include <string.h> unconditionally.
73454         * lib/unicodeio.c: Include <string.h> unconditionally.
73455         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
73456         * lib/unsetenv.c: Likewise.
73457         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
73458         * lib/yesno.c: Include <stdlib.h> unconditionally.
73459         (rpmatch): Add prototype.
73460
73461 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73462
73463         More patches to assume C89 or better.
73464         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
73465         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
73466         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
73467         or for string.h.
73468         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
73469         stdlib.h.
73470         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
73471         C headers.
73472         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
73473         string.h.
73474         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
73475         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
73476         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
73477         or for string.h.
73478         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
73479         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
73480         C headers.
73481         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
73482         memcpy.
73483         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
73484         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
73485         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
73486         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
73487         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
73488         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
73489         string.h, free.
73490         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
73491         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
73492         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
73493         C headers, or for string.h.
73494         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
73495         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
73496         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
73497         headers, memory.h, stdlib.h, string.h, strings.h.
73498         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
73499         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
73500         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
73501         strchr.
73502         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
73503         headers, memory.h, string.h.
73504         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
73505         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
73506         free.
73507         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
73508         headers.
73509         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
73510         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
73511         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
73512         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
73513         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
73514
73515 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73516
73517         More K&R removal.
73518
73519         * lib/acosl.c (main): Use a prototype.
73520         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
73521         tanl.c: Likewise.
73522
73523         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
73524
73525         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
73526         (getopt, etopt_long, getopt_long_only, _getopt_internal)
73527         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
73528         with a prototype.
73529         * lib/getopt.c (const): Remove macro.
73530         Include <string.h> unconditionally.
73531         (my_index): Remove; all uses changed to strchr.
73532         (strlen): Remove decl.
73533         (exchange): Remove forward decl; no longer needed.
73534         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
73535         Define with prototype.
73536         * lib/getopt1.c (const): Remove macro.
73537         (getopt_long, getopt_long_only, main): Define with prototype.
73538
73539         * lib/getugroups.c: Include <string.h> unconditionally.
73540
73541         * lib/getusershell.c: Include <stdlib.h> unconditionally.
73542         (getusershell, setusershell, endusershell, readname, main):
73543         Define with prototypes.
73544
73545         * lib/group-member.c: Include group-member.h first.
73546         Include <stdlib.h> unconditionally.
73547
73548         * lib/hard-locale.c: Include hard-locale.h first.
73549         Include <stdlib.h>, <string.h> unconditionally.
73550
73551         * lib/hash.c (free, malloc): Remove decls.
73552         Include <stdlib.h> unconditionally.
73553
73554         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
73555         (getenv): Do not declare.
73556
73557         * lib/idcache.c: Include <string.h> unconditionally.
73558
73559         * lib/long-options.c: Include long-options.h first, to test interface.
73560         Include <stdlib.h> unconditionally.
73561
73562         * lib/makepath.c: Include makepath.h first, to test interface.
73563         Include <stdlib.h> and <string.h> unconditionally.
73564
73565         * lib/linebuffer.c: Include <stdlib.h>.
73566         (free): Remove decl.
73567
73568         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
73569         stddef.h. rpl_malloc returns void *, not char *.
73570         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
73571         prototype.
73572
73573         * lib/md5.h: Include <limits.h> unconditionally.
73574         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
73575         (__P): Remove; all uses removed.
73576         * lib/md5.c: Include "md5.h" first.
73577         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
73578         md5_buffer, md5_process_bytes, md5_process_block):
73579         Define with prototypes.
73580         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
73581         * lib/sha.c: Include "sha.h" first.
73582         Include <stdlib.h>, <string.h> unconditionally.
73583
73584         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
73585         * lib/memcmp.c (__ptr_t): Likewise.
73586         * lib/memrchr.c (__ptr_t): Likewise.
73587         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
73588         Include <string.h> unconditionally.
73589         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
73590         * lib/memchr.c: Include <stdlib.h> unconditionally.
73591         * lib/memchr.c (LONG_MAX): Remove.
73592         * lib/memrchr.c (LONG_MAX): Likewise.
73593         * lib/memchr.c (__memchr): Define via a prototype.
73594         * lib/memrchr.c (__memrchr): Likewise.
73595         * lib/memcmp.c (__P): Remove, and remove all uses.
73596         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
73597         Remove forward decls; no longer needed.
73598         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
73599         Use types required by C89 in prototype.
73600
73601         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
73602         * lib/savedir.c: Likewise.
73603         * lib/mkdir.c (free): Remove decl.
73604         * lib/rmdir.c (rmdir): Define with a prototype.
73605         * lib/savedir.c: Include savedir.h first, to test interface.
73606
73607         * lib/mktime.c (STDC_HEADERS): Remove.
73608         Include <stdlib.h>, <string.h> unconditionally.
73609
73610         * lib/modechange.c: Include <stdlib.h> unconditionally.
73611         (malloc): Remove decl.
73612
73613         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
73614         (free): Remove decl.
73615
73616         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
73617         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
73618         (This type really should be intptr_t, but that's a C99ism.)
73619         (_obstack_memcpy): Remove: all uses changed to memcpy.
73620         Include <string.h> unconditionally.
73621         (struct obstack): Assume __STDC__ for types of members
73622         chunkfun, freefun, extra_arg.
73623         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
73624         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
73625         obstack_begin, obstack_specify_allocation,
73626         obstack_specify_allocation_with_arg, obstack_chunkfun,
73627         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
73628         Remove unprototyped decls and the macros that use them.
73629         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
73630         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
73631         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
73632         (defined __STDC__ && __STDC__)]:
73633         Remove nonprototyped code.
73634         Include <stdlib.h> unconditionally.
73635         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
73636         _obstack_allocated_p, _obstack_free, obstack_free,
73637         _obstack_memory_used, print_and_abort):
73638         Define using prototypes.
73639         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
73640         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
73641         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
73642         obstack_next_free, obstack_object_size, obstack_room) [0]:
73643         Remove unused, unprototyped code.
73644
73645         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73646
73647         * lib/physmem.c (physmem_total, physmem_available, main): Define
73648         with prototypes.
73649
73650         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73651         (main): Define with a prototype.
73652
73653         * lib/posixver.c (getenv): Remove decl.
73654
73655         * lib/putenv.c (malloc): Returns void *, not char *.
73656         Include <string.h> unconditionally.
73657         (strchr, memcpy, NULL): Do not define.
73658
73659         * lib/readtokens.c: Include readtokens.h first, to test interface.
73660         Include <stdlib.h>, <string.h> unconditionally.
73661         (init_tokenbuffer): Define with a prototype.
73662
73663         * lib/regex.c (PARAMS): Remove.  All uses removed.
73664         All uses of _RE_ARGS removed, too.
73665         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73666         unconditionally.
73667         (bzero): Assume memset exists.
73668         (memcmp, memcpy, NULL): Remove.
73669         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73670         char, or assignments to local vars of type signed char.
73671         (init_syntax_once, PREFIX(extract_number_and_incr),
73672         PREFIX(print_partial_compiled_pattern),
73673         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73674         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73675         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73676         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73677         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73678         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73679         wcs_compile_range, byte_compile_range, truncate_wchar,
73680         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73681         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73682         count_mbs_length, wcs_re_match_2_internal,
73683         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73684         PREFIX(alt_match_null_string_p),
73685         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73686         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73687         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73688         now-unnecessary declaration, if any.
73689         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73690         regcomp, regexec):
73691         Remove now-unnecessary casts among pointer types.
73692         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73693
73694         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73695         (free): Remove decl.
73696
73697         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73698
73699         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73700         (free): Remove decl.
73701
73702         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73703         * lib/xgetcwd.c: Likewise.
73704
73705         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73706         (free): Remove decl.
73707
73708         * lib/strchrnul.c (strchrnul): Define with a prototype.
73709         Fix bug: c_in was not converted to char before searching.
73710
73711         The following changes are not K&R related:
73712
73713         * lib/group-member.h: Include <sys/types.h>, so that this file is
73714         self-contained.
73715         * lib/makepath.h: Likewise.
73716
73717         * lib/getusershell.c (readname, default_index, line_size, readname):
73718         Use size_t, not int, for sizes.
73719         (readname): If the size overflows, report an error instead of
73720         looping forever.
73721
73722 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73723
73724         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73725         libc.
73726
73727 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73728
73729         * README: New section: portability guidelines.
73730
73731 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73732
73733         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73734         C89 spec.
73735
73736 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73737
73738         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73739
73740 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73741
73742         Assume C89 or better; remove K&R cruft.
73743         A few of these changes were first proposed by Derek Robert Price
73744         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73745
73746         * lib/addext.c: Include <string.h> unconditionally.
73747         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73748         Don't declare getenv or malloc.
73749
73750         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73751         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73752         (NULL): Remove.
73753         (find_stack_direction, alloca): Use prototypes.
73754
73755         * lib/atexit.c (atexit): Define using a prototype.
73756
73757         * lib/basename.c, dirname.c, stripslash.c:
73758         Include <string.h> unconditionally.
73759
73760         * lib/bcopy.c: Include <stddef.h>.
73761         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73762
73763         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73764
73765         * lib/error.h (error, error_at_line, error_print_progname)
73766         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73767         * lib/error.c: Include error.h first, to check interface.
73768         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73769         (VA_START): Remove; all uses changeed to va_start.
73770         (exit, strerror): Remove decls.
73771         (error_print_progname): Prototype uncondionally.
73772         Don't include <errno.h>; no longer needed.
73773         (private_strerror): Remove.
73774         (error_tail): Always define.
73775         (error, error_at_line): Assume C89 or better; always use prototypes.
73776         * lib/fatal.c: Include "fatal.h" first, to test interface.
73777         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73778         (VA_START): Remove; all uses changed to va_start.
73779         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73780         this case.
73781         (exit): Remove decl.
73782         (fatal): Prototype unconditionally.  Assume va_start works.
73783         Abort at end, to pacify gcc.
73784
73785         * lib/euidaccess.c (main): Define with a prototype.
73786
73787         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73788
73789         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73790
73791         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73792         prototypes.
73793         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73794         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73795         (getenv): Remove decl.
73796         (fnmatch): Define using a prototype.
73797         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73798         (FCT): Define using a prototype.
73799
73800         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73801
73802         * lib/gethostname.c: Include <stddef.h>.
73803         (gethostname): Define with prototype.  Length is size_t, not int.
73804
73805 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73806
73807         Assume C89 or better; remove K&R cruft.
73808         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73809         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73810         string.h, getenv, malloc.
73811         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73812         headers.
73813         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73814         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73815         do not check for strerror.
73816         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73817         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73818         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73819         do not check for doprnt or vprintf.
73820         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73821         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73822
73823 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73824
73825         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73826         getversion.c should have been removed then, but was accidentally
73827         preserved.
73828
73829         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73830         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73831
73832 2003-09-08  Karl Berry  <karl@gnu.org>
73833
73834         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73835                 config, forget about prep.
73836
73837         * config/depcomp, missing: update from automake.
73838
73839 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73840
73841         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73842         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73843
73844 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73845
73846         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73847         copy_tm_result.  Bug reported by Simon Josefsson in
73848         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73849
73850 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73851
73852         * m4/time_r.m4: New file.
73853         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73854         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73855         is. Check for timegm declaration.
73856         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73857         Do not check for gmtime_r.
73858         Replace mktime if __mktime_internal does not exist and if mktime
73859         hasn't been replaced already.
73860
73861 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73862
73863         * lib/time_r.c, lib/time_r.h: New files.
73864
73865         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73866         __localtime_r.
73867         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73868         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73869
73870         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73871         __gmtime_r.
73872         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73873         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73874         Include <time_r.h>.
73875
73876         * lib/timegm.c: Switch to glibc implementation, with the following
73877         changes:
73878         [defined HAVE_CONFIG_H]: Include <config.h>.
73879         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73880         (__mktime_internal) [!defined _LIBC]: New decl.
73881         (__gmtime_r) [!defined _LIBC]: New macro and function.
73882         (timegm): Use a prototype, since gnulib assumes C89.
73883         Do not bother declaring tmp to be const, as it's not really usefu.
73884         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73885         (timegm): Declare only if HAVE_DECL_TIMEGM.
73886
73887 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73888
73889         * MODULES.html.sh (func_all_modules): Add time_r.
73890         * modules/time_r: New file.
73891         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73892         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73893
73894 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73895
73896         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73897         Bug reported by Lute Kamstra in
73898         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73899
73900         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73901         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73902         course with correspondingly smaller numbers for tomorrow and
73903         yesterday.  From Tadayoshi Funaba.  Originally installed into
73904         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73905         coreutils merge?).
73906
73907 2003-08-31  Simon Josefsson  <jas@extundo.com>
73908
73909         * modules/timegm: New file.
73910         * MODULES.html.sh (func_all_modules): Add timegm.
73911
73912 2003-08-31  Simon Josefsson  <jas@extundo.com>
73913
73914         * m4/timegm.m4: New file.
73915
73916 2003-08-31  Simon Josefsson  <jas@extundo.com>
73917
73918         * lib/timegm.h: New file.
73919         * lib/timegm.c: New file.  Based on
73920         wget-1.8.2/src/http.c:mktime_from_utc.
73921
73922 2003-08-31  Karl Berry  <karl@gnu.org>
73923
73924         * lib/argp.h: update from libc.
73925
73926 2003-08-28  Bruno Haible  <bruno@clisp.org>
73927
73928         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73929         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73930         followed by '#define fnmatch fnmatch_posix' gives an error.
73931
73932 2003-08-28  Bruno Haible  <bruno@clisp.org>
73933
73934         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73935         warning on QNX, which defines O_BINARY to 000000.
73936
73937 2003-08-27  Jim Meyering  <jim@meyering.net>
73938
73939         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73940         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73941         would fail after 32.  Reported by Danny Levinson.  Details here:
73942         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73943
73944 2003-08-24  Bruno Haible  <bruno@clisp.org>
73945
73946         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73947         MSVC7 <stdio.h> is included later.
73948
73949 2003-08-22  Simon Josefsson  <jas@extundo.com>
73950
73951         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73952
73953 2003-08-20  Karl Berry  <karl@gnu.org>
73954
73955         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73956
73957 2003-08-20  Bruno Haible  <bruno@clisp.org>
73958
73959         * modules/progname: New file.
73960         * MODULES.html.sh (func_all_modules): Add progname.
73961
73962 2003-08-20  Bruno Haible  <bruno@clisp.org>
73963
73964         * lib/progname.h: New file, from GNU gettext.
73965         * lib/progname.c: New file, from GNU gettext.
73966         * lib/progreloc.c: New file, from GNU gettext.
73967
73968 2003-08-19  Jim Meyering  <jim@meyering.net>
73969
73970         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73971         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73972
73973 2003-08-19  Bruno Haible  <bruno@clisp.org>
73974
73975         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73976         more.
73977
73978 2003-08-19  Bruno Haible  <bruno@clisp.org>
73979
73980         * lib/xstrdup.c: Assume <string.h> exists.
73981
73982 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73983
73984         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73985         in makefile rules.
73986
73987 2003-08-18  Jim Meyering  <jim@meyering.net>
73988
73989         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73990         * m4/lib-ld.m4: Likewise.
73991
73992 2003-08-18  Jim Meyering  <jim@meyering.net>
73993
73994         * lib/setenv.h: Indent nested cpp directive.
73995         * lib/vasnprintf.c: Remove trailing blanks.
73996
73997 2003-08-17  Simon Josefsson  <jas@extundo.com>
73998
73999         * modules/xstrndup: New file.
74000         * MODULES.html.sh (func_all_modules): Add xstrndup.
74001
74002 2003-08-17  Simon Josefsson  <jas@extundo.com>
74003
74004         * modules/argp: Fix autoconf macro name. Add more dependencies.
74005
74006 2003-08-17  Simon Josefsson  <jas@extundo.com>
74007
74008         * m4/xstrndup.m4: New file.
74009
74010 2003-08-17  Simon Josefsson  <jas@extundo.com>
74011
74012         * m4/argp.m4: New file.
74013
74014 2003-08-17  Simon Josefsson  <jas@extundo.com>
74015             Bruno Haible  <bruno@clisp.org>
74016
74017         * lib/xstrndup.h: New file.
74018         * lib/xstrndup.c: New file.
74019
74020 2003-08-17  Bruno Haible  <bruno@clisp.org>
74021
74022         * modules/strndup (Files, Include): Add lib/strndup.h.
74023
74024 2003-08-17  Bruno Haible  <bruno@clisp.org>
74025
74026         * modules/euidaccess (Files): Add lib/euidaccess.h.
74027
74028 2003-08-17  Bruno Haible  <bruno@clisp.org>
74029
74030         * lib/strndup.h: New file.
74031
74032 2003-08-17  Bruno Haible  <bruno@clisp.org>
74033
74034         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
74035         like AC_GNU_SOURCE.
74036         * modules/extensions (configure.ac): Comment out the invocation of
74037         gl_USE_SYSTEM_EXTENSIONS.
74038
74039 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74040
74041         Merges from coreutils, etc.
74042         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
74043         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
74044         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
74045         fixing a typo.
74046         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
74047         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
74048
74049 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74050
74051         Document merge from coreutils.
74052         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
74053         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
74054         * modules/utime: Add m4/utimes-null.m4.
74055
74056 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74057
74058         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
74059         space, undoing this 2003-08-12 change:
74060         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74061
74062 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74063
74064         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
74065         strtoul.c from libc, undoing this 2003-08-12 change:
74066         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74067
74068 2003-08-16  Jim Meyering  <jim@meyering.net>
74069
74070         Merges from coreutils.
74071         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
74072         prefix.  Adjust cache variables similarly.  Create 500 rather than
74073         just 300 files, to exercise bug on Darwin6.5, too.
74074         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
74075         $missing_dir.
74076         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
74077         AM_SYS_POSIX_TERMIOS.
74078         Reported by mkc@mathdogs.com.
74079         Also change use of $am_cv_sys_posix_termios
74080         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
74081         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
74082         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
74083         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
74084         in /proc/mounts until it finds one with matching device number.  This
74085         is unnecessary when the FILE argument *is* a mount point.  No stat call
74086         is necessary in that case.  So, disable the statvfs-testing code on
74087         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
74088         as RedHat bug# 84846.
74089         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74090         to 1MB, so as not to render systems with no stack size limit (e.g.,
74091         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74092         Include <unistd.h>.  On some systems,
74093         it is required for the definition of _SC_PAGESIZE.
74094
74095 2003-08-16  Jim Meyering  <jim@meyering.net>
74096
74097         Merge from coreutils.
74098         * lib/xstrtoimax.c: #else #if -> #elif.
74099         * lib/xstrtoumax.c: Likewise.
74100
74101 2003-08-16  Jim Meyering  <jim@meyering.net>
74102
74103         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
74104         * m4/utimes.m4: Removed.
74105         * m4/utimes-null.m4: Renamed from utimes.m4.
74106
74107         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74108         to 1MB, so as not to render systems with no stack size limit (e.g.,
74109         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74110         Include <unistd.h>.  On some systems,
74111         it is required for the definition of _SC_PAGESIZE.
74112
74113 2003-08-16  Jim Meyering  <jim@meyering.net>
74114         and Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         Merges from coreutils, etc.
74117
74118         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
74119         using the latest version from cvs.  This avoids problems with #line
74120         directives using a vendor (Sun) compiler.
74121         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
74122         Don't set GETGROUPS_LIB here; now it's
74123         done via getgroups.m4's wrapper function.
74124         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
74125         rather than just in sh-util/configure.in, so that the
74126         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
74127         same.
74128         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
74129         AC_FUNC_GETLOADAVG where to find getloadavg.c.
74130         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
74131         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
74132         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
74133         Remove code that is now done by the newly-required macros.
74134         Append $(EXEEXT) to DF_PROG.
74135         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
74136         Do not invoke or require the following here,
74137         since prereq.m4 or some gnulib .m4 now does this for us:
74138         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
74139         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
74140         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
74141         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
74142         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
74143         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
74144         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
74145         AC_FUNC_OBSTACK.
74146         Do not replace the following functions, as this is now the job
74147         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
74148         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
74149         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
74150         atexit getpass, strdup, getpagesize.
74151         Replace 'raise'.
74152         Do not check for the following functions, as this is now the job
74153         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
74154         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
74155         setregid.
74156         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
74157         Check for sys/sysctl.h.
74158         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
74159         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
74160         of checking for ssize_t ourselves.
74161
74162         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
74163         Require every macro that gnulib/modules/* suggests for us.
74164         (jm_PREREQ_ADDEXT): New macro.
74165         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
74166         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
74167
74168         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
74169         (gl_PHYSMEM): Use it.
74170         Also check for `table' function.
74171         Check for new headers and functions.
74172         Add check for sys/sysmp.h.
74173         With suggestions from Kaveh Ghazi.
74174         Ignore headers that are present but cannot be compiled.  This
74175         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
74176         C 5.4.
74177
74178 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74179
74180         Document merge from coreutils.
74181         * modules/userspec: Depend on posixver.
74182         * modules/strftime: Depend on tzset.
74183
74184 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74185
74186         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
74187         rather than tab, after '#' in shell-script copyright notices.
74188         Suggested by Bruno Haible.
74189
74190 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74191
74192         * config/srclist-update: Use three spaces, rather than tab, after '#'
74193         in shell-script copyright notices.  Suggested by Bruno Haible.
74194         Remove unnecessary parenthesization in regular expression.
74195
74196 2003-08-15  Jim Meyering  <jim@meyering.net>
74197
74198         Merge from coreutils.
74199         * lib/xgethostname.c: Include <stdlib.h>.
74200         (xghostname): Don't exit for anything other than memory-related
74201         failure; just return NULL.
74202         * lib/userspec.c: Include "posixver.h".
74203         (parse_user_spec): Accept `.' as a separator only
74204         in pre-POSIX-200112 mode.
74205         * lib/strtoimax.c: Use #elif rather than #else #if.
74206         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
74207         Remove function, now that we can rely on a working tzset function.
74208         [!_LIBC]: Ensure that the required autoconf test has been run.
74209         [!defined _NL_CURRENT && HAVE_STRFTIME]:
74210         Use underlying_strftime for %r.
74211         * lib/sha.c: Merge in some clean-up and optimization changes from
74212         glibc.
74213         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
74214         Ensure that it is a multiple of 64.
74215         Rearrange loop exit tests so as to avoid performing an
74216         additional fread after encountering an error or EOF.
74217         * lib/realloc.c: Update copyright date.
74218
74219 2003-08-15  Jim Meyering  <jim@meyering.net>
74220         and Paul Eggert  <eggert@twinsun.com>
74221
74222         Merge from coreutils.
74223         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
74224         member but strut utmpx does not.  Needed for AIX 4.3.3.
74225         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
74226
74227 2003-08-15  Jim Meyering  <jim@meyering.net>
74228         and Paul Eggert  <eggert@cs.ucla.edu>
74229
74230         Merges from coreutils, etc.
74231         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
74232         Require gl_FUNC_TZSET_CLOBBER.
74233         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
74234         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
74235         members.
74236
74237 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74238
74239         Help the merge from coreutils.
74240         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
74241         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
74242         * m4/tzset.m4: Use it too.
74243
74244 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74245
74246         * modules/tzset: New file.
74247
74248 2003-08-14  Jim Meyering  <jim@meyering.net>
74249
74250         Merges from coreutils.
74251         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
74252         variable names, rather than @FNMATCH_H@.
74253         * modules/alloca: Likewise for $(ALLOCA_H).
74254
74255         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
74256         the three copies of the literal target, `fnmatch.h'.
74257         * modules/alloca (alloca.h): Likewise.
74258
74259 2003-08-14  Jim Meyering  <jim@meyering.net>
74260
74261         Merge from coreutils.
74262         * m4/tzset.m4: New file.
74263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
74264         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
74265         otherwise, AIX 5.1 systems would end up using the latter.
74266         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
74267         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
74268         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
74269         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
74270
74271 2003-08-14  Jim Meyering  <jim@meyering.net>
74272
74273         Merge from coreutils.
74274         * lib/obstack.h: Whitespace changes.
74275         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
74276         and xcalloc return values.
74277         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
74278         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
74279         hang on OSF/1 5.1 for DIR on both local and remote file systems.
74280         Reported by (and fix confirmed by) Nelson H. F. Beebe.
74281         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74282         error from mntctl.
74283         Use mntctl's return value to drive the entry-processing loop, since
74284         we can't rely on the value of the vmt_length member in the last
74285         entry.  On some systems doing so could result in exhausting
74286         virtual memory.  Based in part on a patch from Mike Jetzer.
74287
74288 2003-08-14  Jim Meyering  <jim@meyering.net>
74289         and Paul Eggert  <eggert@twinsun.com>
74290
74291         Merges from coreutils, plus other fixes.
74292         * lib/physmem.c: Merge in portability changes from gcc/libiberty
74293         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
74294         for credits and details.  Thanks to Kaveh Ghazi for helping
74295         to keep these files in sync.
74296         (ARRAY_SIZE): Define it.
74297         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
74298         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
74299         (memcasecmp): Don't assume size_t fits in unsigned int.
74300         Remove casts and duplicate code.
74301         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
74302         (memcpy): Remove definition.
74303         Merge in some clean-up and optimization changes from glibc.
74304         [BLOCKSIZE]: Move definition to top of file.
74305         Ensure that it is a multiple of 64.
74306         Rearrange loop exit tests so as to avoid performing an
74307         additional fread after encountering an error or EOF.
74308         * lib/md5.h (md5_uintptr): Define.
74309         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
74310         return to the initial working directory.  Preserve errno
74311         for caller.
74312         * lib/idcache.c: Include "xalloc.h".
74313         (xmalloc, xrealloc): Remove decls.
74314         (getuser): Remove casts no longer required in C89.
74315         * lib/human.c: Include stdio.h, for sprintf.
74316         * lib/group-member.c: Include "xalloc.h".
74317         (xmalloc, xrealloc): Remove decls.
74318         (get_group_info): Remove casts no longer required in C89.
74319         * lib/getusershell.c (readname): Remove casts no longer required in
74320         C89.
74321         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
74322         * lib/getline.c: Whitespace fix, from coreutils.
74323
74324 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74325
74326         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
74327         Check for isascii.
74328
74329         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74330         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74331         Undo previous (whitespace-only) change.
74332
74333 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74334
74335         * lib/exclude.c: Include <ctype.h>
74336         (IN_CTYPE_DOMAIN): New macro.
74337         (is_space): New fn.
74338         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
74339         and empty lines.
74340
74341         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74342         Undo previous (whitespace-only) change.
74343
74344 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74345
74346         * config/srclist-update: Change update back to the old behavior,
74347         leaving whitespace alone.  Use one 'sed' command rather than a
74348         pipeline.
74349         (fixlicense): Now a variable, not a function.
74350         (remove_trailing_blanks): Remove.
74351         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
74352         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74353         Undo previous (whitespace-only) change.
74354
74355 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74356
74357         Merge from coreutils.
74358         * modules/euidaccess: Add lib_SOURCES, include for new
74359         file euidaccess.h
74360
74361 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74362
74363         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74364         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74365         Normalize leading white space and remove trailing white space.
74366
74367         Merge from coreutils
74368         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
74369
74370         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
74371         0.12.1.  These files are now being upgraded automatically by
74372         ../config/srclist-update.
74373
74374 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74375
74376         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74377         Normalize leading white space and remove trailing white space.
74378         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
74379         notice, as per ../config/srclist-update.
74380
74381         Merge from coreutils.
74382         * lib/euidaccess.h: New file.
74383         * lib/euidaccess.c: Include it.
74384         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
74385         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
74386         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
74387
74388 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74389
74390         * config/srclist-update: Add copyright notice.
74391         (remove_id_lines, remove_trailing_blanks): New constants.
74392         (fixfile): Use them to normalize spacing a bit in copied files.
74393         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74394         Normalize leading white space and remove trailing white space.
74395
74396         * config/texinfo.tex: Sync with texinfo.
74397
74398         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
74399         strtoul.c from libc, to merge coreutils whitespace changes.
74400
74401         * config/srclist.txt: Get the following m4 files from gettext:
74402         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
74403         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
74404         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
74405         wint_t.m4.
74406
74407 2003-08-12  Karl Berry  <karl@gnu.org>
74408
74409         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
74410         been made.
74411
74412 2003-08-11  Paul Eggert  <eggert@twinsun.com>
74413
74414         * modules/gnu-source, m4/gnu-source.m4:
74415         Remove; we're assuming Autoconf 2.54 or later now.
74416         Suggested by Bruno Haible.
74417         * MODULES.html.sh (func_all_modules): Remove gnu-source.
74418
74419 2003-08-11  Bruno Haible  <bruno@clisp.org>
74420
74421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
74422
74423 2003-08-11  Bruno Haible  <bruno@clisp.org>
74424
74425         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
74426         (vasnprintf): Use it instead of wcslen.
74427
74428 2003-08-11  Bruno Haible  <bruno@clisp.org>
74429
74430         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
74431         value to ensure that _Bool promotes to int. Use #define for _Bool when
74432         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
74433
74434 2003-08-10  Karl Berry  <karl@gnu.org>
74435
74436         * lib/regex.h: update from libc (whitespace fix).
74437
74438 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74439
74440         Merge some files from coreutils.  These changes were
74441         originally made by Jim Meyering.
74442         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
74443         many older Unixes require this.
74444         * lib/alloca.c (alloca): Remove cast to argument of free;
74445         no longer needed in C89.
74446         * lib/alloca_.h, regex.h: Fix white space to match
74447         what GNU indent does.
74448
74449 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74450
74451         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
74452         apparently Emacs's Unicode mode got confused before my 2003-08-05
74453         checkin.
74454
74455 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74456
74457         * m4/extensions.m4: New file.
74458         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
74459         Require gl_USE_SYSTEM_EXTENSIONS.
74460         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
74461         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
74462
74463 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74464
74465         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
74466         * modules/extensions, modules/gnu-source: New files.
74467         * modules/timespec, modules/unlocked-io: Depend on extensions.
74468
74469 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74470
74471         * modules/restrict: New file.
74472         * MODULES.html.sh (func_all_modules): Add restrict.
74473         * modules/regex: Depend on restrict.
74474
74475 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74476
74477         * m4/restrict.m4: New file.
74478         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
74479
74480 2003-08-07  Bruno Haible  <bruno@clisp.org>
74481
74482         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
74483         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
74484
74485 2003-08-07  Bruno Haible  <bruno@clisp.org>
74486
74487         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
74488         makes the module 'getndelim2' compatible with the module 'getline'.
74489
74490 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74491
74492         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
74493         byte with "\201" to avoid glitches when editing that source file
74494         with multi-gnome-terminal.
74495
74496 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74497
74498         * lib/bumpalloc.h: Remove.
74499
74500 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74501
74502         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
74503         * modules/bumpalloc: Remove.
74504
74505 2003-08-04  Paul Eggert  <eggert@twinsun.com>
74506
74507         * lib/getloadavg.c: Change copyright notice and spacing to conform to
74508         GNU coding style.
74509
74510         Merge from coreutils.
74511         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
74512         1. From glibc.
74513         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
74514         from Karl Berry, implemented by Jim Meyering.
74515         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
74516         from Dmitry V. Levin.
74517         Remove anachronistic cast of xrealloc.
74518         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
74519         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
74520         type. Otherwise, it wouldn't compile with at least /bin/cc on
74521         ymp-cray-unicos9.0.2.X.
74522         Combine two mostly-identical uses of alloca into one.
74523         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
74524
74525 2003-08-04  Dave Love  <d.love@dl.ac.uk>
74526
74527         [From Emacs.]
74528
74529         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
74530         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
74531         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
74532         obsolete NLIST_NAME_UNION.
74533         [__GNU__]: Undef BSD and FSCALE.
74534         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
74535
74536 2003-08-03  Paul Eggert  <eggert@twinsun.com>
74537
74538         * lib/stdbool_.h (_Bool): Make it signed char, instead of
74539         an enum type, so that it's guaranteed to promote to int.  See:
74540         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
74541
74542 2003-08-03  Karl Berry  <karl@gnu.org>
74543
74544         * config/depcomp: update from automake.
74545
74546 2003-07-31  Paul Eggert  <eggert@twinsun.com>
74547
74548         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
74549         (strerror): Don't assume that a printable int fits in 14 bytes.
74550
74551 2003-07-31  Bruno Haible  <bruno@clisp.org>
74552
74553         * modules/getpass-gnu: New file.
74554         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
74555
74556 2003-07-31  Bruno Haible  <bruno@clisp.org>
74557
74558         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
74559
74560 2003-07-24  Karl Berry  <karl@gnu.org>
74561
74562         * config/missing: update from automake.
74563
74564 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
74565             Bruno Haible  <bruno@clisp.org>
74566
74567         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
74568         * lib/getline.c (getline, getdelim): Likewise.
74569         Remove _GNU_SOURCE define; now it's defined in config.h through
74570         m4/getline.m4.
74571
74572 2003-07-23  Karl Berry  <karl@gnu.org>
74573
74574         * config/config.sub: update from prep.
74575
74576 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74577
74578         * modules/xalloc (Depends-on): Add exitfail.
74579         * modules/xmemcoll: Likewise.
74580
74581 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74582
74583         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
74584         over-parenthesization in macros.
74585
74586         Sync with coreutils.
74587
74588         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
74589         required by C99.
74590
74591         Use `exit_failure' for xalloc and xmemcoll instead of their own
74592         private exit-failure variables.
74593         * lib/xalloc.h (xalloc_exit_failure): Remove.
74594         * lib/xmalloc.c: Likewise.  Include exitfail.h.
74595         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
74596         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
74597         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
74598         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
74599
74600 2003-07-20  Jim Meyering  <jim@meyering.net>
74601
74602         * modules/closeout (Depends-on): Add exitfail.
74603         Suggestion from Bruno Haible.
74604
74605 2003-07-19  Karl Berry  <karl@gnu.org>
74606
74607         * config/config.sub: update from prep.
74608
74609 2003-07-18  Paul Eggert  <eggert@twinsun.com>
74610
74611         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
74612         Remove.
74613         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
74614         to test that it can stand by itself.  Include "exitfail.h".
74615         Clients should set exit_failure instead.
74616         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
74617
74618 2003-07-18  Bruno Haible  <bruno@clisp.org>
74619
74620         * modules/getndelim2: New file.
74621         * modules/getline: Share files with module getndelim2.
74622         * modules/getnline: Depend on getndelim2 instead of sharing files with
74623         it. Add getnline.c to lib_SOURCES.
74624         * MODULES.html.sh (func_all_modules): Add getndelim2.
74625
74626 2003-07-18  Bruno Haible  <bruno@clisp.org>
74627
74628         * m4/getndelim2.m4: New file.
74629         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
74630         invoke gl_PREREQ_GETNDELIM2.
74631         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
74632         gl_PREREQ_GETNDELIM2.
74633         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
74634         gl_GETNDELIM2.
74635
74636 2003-07-18  Bruno Haible  <bruno@clisp.org>
74637
74638         * lib/getndelim2.h: New file.
74639         * lib/getndelim2.c: Make into a module of its own. Include config.h,
74640         getndelim2.h.
74641         (getndelim2): Make non-static. Change return type to ssize_t.
74642         * lib/getline.h: Change argument names.
74643         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74644         * lib/getnline.c: Include getndelim2.h.
74645
74646 2003-07-18  Andreas Schwab  <schwab@suse.de>
74647
74648         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74649
74650 2003-07-17  Karl Berry  <karl@gnu.org>
74651
74652         * config/config.sub: update from prep.
74653
74654 2003-07-17  Bruno Haible  <bruno@clisp.org>
74655
74656         * modules/getnline: New file.
74657         * modules/getline: Add lib/getndelim2.c to source file list.
74658         * MODULES.html.sh (func_all_modules): Add getnline.
74659
74660 2003-07-17  Bruno Haible  <bruno@clisp.org>
74661
74662         * m4/getnline.m4: New file.
74663
74664 2003-07-17  Bruno Haible  <bruno@clisp.org>
74665
74666         * m4/Makefile.am.in: Remove file.
74667         * m4/Makefile.am: Remove file.
74668         * m4/Makefile.in: Remove file.
74669
74670 2003-07-17  Bruno Haible  <bruno@clisp.org>
74671
74672         * lib/getnline.h: New file.
74673         * lib/getnline.c: New file.
74674         * lib/getndelim2.c: New file, extracted from getline.c.
74675         (getndelim2): Renamed from getdelim2, with added nmax argument.
74676         * lib/getline.c: Include getndelim2.c.
74677         (getdelim2): Moved out to getndelim2.c.
74678         (getline, getdelim): Update.
74679
74680 2003-07-17  Bruno Haible  <bruno@clisp.org>
74681
74682         * lib/Makefile.am: Remove file.
74683         * lib/Makefile.in: Remove file.
74684
74685 2003-07-17  Bruno Haible  <bruno@clisp.org>
74686
74687         * configure.in: Remove file.
74688         * Makefile.in: Remove file.
74689
74690 2003-07-17  Bruno Haible  <bruno@clisp.org>
74691
74692         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74693
74694 2003-07-16  Karl Berry  <karl@gnu.org>
74695
74696         * config/srclist-update: was running fixlicense twice, which caused
74697                 texinfo.tex to be nullified for some reason.  Simplify,
74698                 $gplsrc is no longer needed as far as I can see?
74699
74700 2003-07-16  Jim Meyering  <jim@meyering.net>
74701
74702         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74703
74704 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74705
74706         * config/srclist.txt: Get the following files from gettext-runtime/intl
74707         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74708         ref-del.sin.  From Bruno Haible.
74709         * config/srclist-update (fixfile): Change grep pattern again, since the
74710         previous fix didn't work (there was another trailing $).  Use
74711         '[$]' to escape the $s.
74712
74713 2003-07-15  Karl Berry  <karl@gnu.org>
74714
74715         * lib/vasnprintf.c: update from gettext.
74716
74717 2003-07-15  Karl Berry  <karl@gnu.org>
74718
74719         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74720         gets expanded when surrounded by '$'.
74721
74722 2003-07-15  Jim Meyering  <jim@meyering.net>
74723
74724         * modules/save-cwd: Don't depend on error.  From Derek Price.
74725
74726 2003-07-15  Jim Meyering  <jim@meyering.net>
74727
74728         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74729
74730 2003-07-14  Simon Josefsson  <jas@extundo.com>
74731
74732         * modules/mempcpy: New file.
74733         * MODULES.html.sh (func_all_modules): Add mempcpy.
74734
74735 2003-07-14  Simon Josefsson  <jas@extundo.com>
74736
74737         * m4/mempcpy.m4: New file.
74738
74739 2003-07-14  Simon Josefsson  <jas@extundo.com>
74740
74741         * lib/mempcpy.h: New file.
74742         * lib/mempcpy.c: New file.
74743
74744 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74745
74746         * modules/getdate, modules/posixtm: Depend on mktime.
74747
74748 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74749
74750         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74751         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74752         unicodeio.c, unicodeio.h, unlocked-io.h:
74753         Switch from LGPL to GPL.
74754
74755 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74756
74757         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74758         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74759         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74760         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74761         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74762         updated automatically by ../config/srclist-update.  This changes
74763         their license from LPGL to GPL.
74764
74765 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74766
74767         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74768         assumed to refer to the root of the most recent stable gettext version.
74769         * config/srclistvars.sh: Add defaults for eggert.
74770         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74771         Match "This program" as well as "The program".  This is needed
74772         for gettext.
74773
74774 2003-07-14  Jim Meyering  <jim@meyering.net>
74775
74776         Don't emit diagnostics.  Let callers do that.
74777         * lib/save-cwd.c: Don't include "error.h".
74778         (save_cwd): Don't call error.  Ensure that errno is valid
74779         when returning nonzero.
74780
74781         * lib/save-cwd.h (restore_cwd): Update prototype.
74782         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74783         Simplify.  Don't call error upon failure.  Let callers do that.
74784         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74785         when auditing is enabled.  But don't bother updating the #if.
74786
74787 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74788
74789         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74790         it breaks C++ compilation.
74791         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74792
74793 2003-07-10  Simon Josefsson  <jas@extundo.com>
74794
74795         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74796
74797 2003-07-10  Jim Meyering  <jim@meyering.net>
74798
74799         * m4/clock_time.m4: Remove trailing blank.
74800         * m4/intmax_t.m4: Likewise.
74801
74802 2003-07-10  Jim Meyering  <jim@meyering.net>
74803
74804         * lib/vasnprintf.c: Remove trailing blanks.
74805         Make cpp indentation consistent.
74806
74807 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74808
74809         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74810         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74811         Switch from LGPL to GPL.
74812
74813 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74814
74815         * config/srclist.txt: Sort sublists.  Add
74816         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74817         that differ from gnulib for one reason or another; we'd like this list
74818         to be smaller but for now let's document what we have.
74819
74820 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74821
74822         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74823         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74824         and sweeter "eval x=$x".
74825         * config/srclist.txt: Get lib/argp* from glibc.
74826
74827 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74828
74829         * lib/mktime.c: Fix some boundary cases and remove need for floating
74830         point.
74831
74832         Issue a compile-time diagnostic if time_t is floating point, or if
74833         two's complement arithmetic is not in effect, or if arithmetic
74834         right shift does not propagate the sign.  These assumptions were
74835         all in the original code but they weren't checked.
74836
74837         (TIME_T_MIDPOINT, verify): New macros.
74838         (__isleap): Remove; it has integer overflow problems.
74839         (leapyear): New function, without those problems.
74840         (ydhms_tm_diff): Remove; splitting into two parts.
74841         (ydhms_diff): New function, containing the arithmetic part of
74842         the old ydhms_tm_diff function.  Issue a compile-time
74843         diagnostic if we are not using C99 integer division.
74844         Avoid casts when possible.
74845         (guess_time_tm): New function, containing the checking part of
74846         the old ydhms_tm_diff function.  Return the new value, rather than
74847         the difference between it and the old.  Accept a new argument T
74848         so that *T specifies the old value.  Check for overflow in the result.
74849
74850         (__mktime_internal): Use a time_t offset, not a long int offset.
74851         This undoes the 2003-06-04 change, which is no longer needed now
74852         that we have better overflow checking.
74853         (localtime_offset): Likewise.
74854
74855         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74856         and long are 64-bit but int is only 32-bit.
74857         (ydhms_diff): Use long int to store year1 and yday1.
74858         Issue a compile-time diagnostic if long int is not wide enough.
74859
74860         (__mktime_internal): Use long int to store adjusted year and yday.
74861         Use plain C rather than preprocessor commands, if that doesn't
74862         affect efficiency.
74863         Check for overflow (and try to repair) after each probe
74864         rather than checking only at the very end.  This avoids some bugs
74865         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74866         does not equal GMT offset at maximum time).
74867         Use integer to check for overflow rather than floating point; this
74868         is more portable to non-IEEE hosts, and is a tad faster.
74869         When we detect that we are oscillating between two values,
74870         don't check whether tm_isdst has the requested value, since
74871         we already know the answer.  When tm_isdst has the wrong value,
74872         use a different heuristic to find the right one, based on the
74873         extreme values actually observed in practice in tz2003a,
74874         rather than the (overly optimistic) "previous 3 calendar quarters".
74875
74876         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74877         "T const" to accommodate glibc style.
74878         (check_result): Use less-confusing report format.  "long" -> "long int.
74879         (main): Likewise.
74880         Don't loop if the iteration overflows time_t.
74881         Allow a negative step in the iteration.
74882
74883 2003-07-06  Karl Berry  <karl@gnu.org>
74884
74885         * config/depcomp: update from automake.
74886         * config/config.sub: update from prep.
74887
74888 2003-07-03  Karl Berry  <karl@gnu.org>
74889
74890         * config/config.guess: update from prep.
74891
74892 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74893
74894         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74895         xreadlink.c now includes it unconditionally.
74896
74897 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74898
74899         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74900         having it depend on HAVE_SYS_TYPES_H.
74901
74902 2003-07-01  Bruno Haible  <bruno@clisp.org>
74903
74904         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74905         <sys/types.h> should be sufficient.
74906         Reported by Paul Eggert.
74907
74908 2003-06-26  Karl Berry  <karl@gnu.org>
74909
74910         * config/depcomp: update from automake.
74911
74912 2003-06-26  Bruno Haible  <bruno@clisp.org>
74913
74914         * modules/human: Depend on module stdbool.
74915
74916 2003-06-25  Bruno Haible  <bruno@clisp.org>
74917
74918         * modules/readlink: New file.
74919         * modules/xreadlink: Depend on it.
74920         * MODULES.html.sh (func_all_modules): Add readlink.
74921
74922 2003-06-25  Bruno Haible  <bruno@clisp.org>
74923
74924         * m4/readlink.m4: New file.
74925
74926 2003-06-25  Bruno Haible  <bruno@clisp.org>
74927
74928         * lib/readlink.c: New file.
74929
74930 2003-06-22  Karl Berry  <karl@gnu.org>
74931
74932         * config/srclist.txt: update mkinstalldirs from automake.
74933         * config/mkinstalldirs: update.
74934
74935 2003-06-22  Bruno Haible  <bruno@clisp.org>
74936
74937         Portability to mingw32.
74938         * m4/ssize_t.m4: New file, from GNU gettext.
74939         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74940         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74941
74942 2003-06-22  Bruno Haible  <bruno@clisp.org>
74943
74944         * modules/safe-read: Add m4/ssize_t.m4.
74945         * modules/xreadlink: Add m4/ssize_t.m4.
74946
74947 2003-06-20  Bruno Haible  <bruno@clisp.org>
74948
74949         Assume C89, so PARAMS isn't needed.
74950         * lib/unicodeio.h (PARAMS): Remove.
74951         * lib/unicodeio.c: Don't use PARAMS.
74952
74953 2003-06-18  Karl Berry  <karl@gnu.org>
74954
74955         * config/config.{guess,sub}: update from prep.
74956
74957 2003-06-18  Jim Meyering  <jim@meyering.net>
74958
74959         Merge changes from coreutils.
74960         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74961         Remove explicit declarations of xmalloc and realloc.
74962         Include xalloc.h.
74963         (read_utmp): Remove anachronistic cast of xmalloc.
74964
74965 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74966
74967         Assume C89, so PARAMS isn't needed.
74968         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74969         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74970         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74971         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74972         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74973         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74974         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74975         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74976         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74977         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74978         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74979         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74980         no longer needed. Anyway, config.h should always be included before any
74981         other file.
74982
74983 2003-06-11  Simon Josefsson  <jas@extundo.com>
74984
74985         * modules/sysexits: New file.
74986         * MODULES.html.sh (func_all_modules): Add sysexits.
74987
74988 2003-06-11  Simon Josefsson  <jas@extundo.com>
74989
74990         * lib/sysexit_.h: New file.
74991
74992 2003-06-11  Derek Price  <derek@ximbiot.com>
74993
74994         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74995         necessary.
74996
74997 2003-06-11  Bruno Haible  <bruno@clisp.org>
74998
74999         * m4/sysexits.m4: New file.
75000
75001 2003-06-10  Simon Josefsson  <jas@extundo.com>
75002
75003         * lib/argp.h: New file, from glibc.
75004         * lib/argp-ba.c: New file, from glibc.
75005         * lib/argp-eexst.c: New file, from glibc.
75006         * lib/argp-fmtstream.c: New file, from glibc.
75007         * lib/argp-fmtstream.h: New file, from glibc.
75008         * lib/argp-fs-xinl.c: New file, from glibc.
75009         * lib/argp-help.c: New file, from glibc.
75010         * lib/argp-namefrob.h: New file, from glibc.
75011         * lib/argp-parse.c: New file, from glibc.
75012         * lib/argp-pv.c: New file, from glibc.
75013         * lib/argp-pvh.c: New file, from glibc.
75014         * lib/argp-xinl.c: New file, from glibc.
75015
75016 2003-06-10  Simon Josefsson  <jas@extundo.com>
75017
75018         * modules/strchrnul: New file.
75019
75020 2003-06-10  Simon Josefsson  <jas@extundo.com>
75021
75022         * modules/argp: New file.
75023
75024 2003-06-10  Simon Josefsson  <jas@extundo.com>
75025
75026         * m4/strchrnul.m4: New file.
75027
75028 2003-06-10  Simon Josefsson  <jas@extundo.com>
75029
75030         * lib/strchrnul.h: New file.
75031         * lib/strchrnul.c: New file.
75032
75033 2003-06-10  Bruno Haible  <bruno@clisp.org>
75034
75035         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
75036
75037 2003-06-07  Karl Berry  <karl@gnu.org>
75038
75039         * config/config.{guess,sub}: update from prep.
75040
75041 2003-06-07  Jim Meyering  <jim@meyering.net>
75042
75043         * modules/strtod: Use $(...) notation, not @...@ for
75044         AC_REPLACE'd variables.
75045         * modules/localcharset: Likewise.
75046
75047 2003-06-07  Jim Meyering  <jim@meyering.net>
75048
75049         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
75050         in place of my name in the copyright comment.
75051         Remove definition and uses of __P.
75052
75053         From coreutils.
75054         * lib/stat.c: Don't declare xmalloc explicitly.
75055         Instead, include "xalloc.h".
75056         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
75057         xrealloc, and xcalloc return values.
75058         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
75059         Improve comment.
75060         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
75061
75062 2003-06-07  Bruno Haible  <bruno@clisp.org>
75063
75064         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
75065         avoid AC_CONFIG_LINKS.
75066         * modules/fnmatch (Makefile.am): Use explicit creation rule for
75067         fnmatch.h, to avoid AC_CONFIG_LINKS.
75068         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
75069
75070 2003-06-07  Bruno Haible  <bruno@clisp.org>
75071
75072         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
75073         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
75074         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75075         directory.
75076         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
75077         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75078         directory.
75079
75080 2003-06-06  Jim Meyering  <jim@meyering.net>
75081
75082         Merge from coreutils.
75083         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
75084         Consolidate declarations and initializations of *_base* locals.
75085
75086         Merge from coreutils.
75087         This avoids a core dump on systems without GNU putenv,
75088         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
75089         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
75090         (unsetenv): New static function, from GNU libc.
75091         (rpl_putenv): Use it.
75092
75093         * lib/modechange.c: Remove trailing blanks.
75094
75095         Merge from coreutils.
75096         * lib/fsusage.c: Remove declaration of statfs.
75097         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
75098
75099         * lib/posixtm.c: Include <stdbool.h> unconditionally.
75100
75101 2003-06-06  Jim Meyering  <jim@meyering.net>
75102
75103         * lib/stdbool_.h: Renamed from stdbool.h.in.
75104
75105 2003-06-06  Jim Meyering  <jim@meyering.net>
75106             Bruno Haible  <bruno@clisp.org>
75107
75108         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
75109         Adjust Makefile.am snippet not to redirect directly to target.
75110         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
75111
75112 2003-06-05  Paul Eggert  <eggert@twinsun.com>
75113
75114         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
75115         mismatch, look in future quarters as well as past.  This fixes a
75116         bug when processing fall-backwards gaps immediately after a long
75117         period of daylight-saving time.
75118
75119         * lib/mktime.c: Assume freestanding C89 or better.
75120         (HAVE_LIMITS_H): Remove.  Assume it's 1.
75121         (__P): Remove; not used.
75122         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
75123         (mktime, not_equal_tm, print_tm, check_result,
75124         main): Use prototypes.  Use const * where appropriate.
75125         (main): Fix typo in testing code that uncovered by above changes.
75126         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
75127
75128 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75129
75130         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
75131         locale.h, localeconv.  This merges changes from coreutils.
75132
75133         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
75134         It can be removed after the next Autoconf is released.
75135         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
75136         needed.
75137
75138 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75139
75140         * lib/mktime.c: Fix Debian bug 177940
75141         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
75142         (localtime_offset): Now long int, not time_t, because we want it
75143         to be guaranteed to be signed.  All uses changed.
75144         (__mktime_internal): If overflow would occur when adding offset,
75145         don't add it.
75146
75147         Merge 'human' changes from coreutils.  Rewrite to support
75148         locale-specific notations like thousands separators.
75149         * lib/human.c: Simplify authorship notice.
75150         Include human.h immediately after config.h.
75151         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
75152         <limits.h>: Do not include, since human.h does.
75153         (SIZE_MAX, UINTMAX_MAX): New macros.
75154         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
75155         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
75156         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
75157         (power_letter): Renamed from suffixes.
75158         (generate_suffix_backwards): Remove.
75159         (adjust_value): Now takes int style (because of human.h changes)
75160         and long double value (for greater precision on some platforms).
75161         (group_number): New function.
75162         (human_readable): Use it.  Use integer options, not enum.
75163         Put the options before the sizes in the arg list.
75164         Support all the new options.
75165         The old human_readable function has been removed;
75166         use inttostr.h instead.
75167         (human_readable, default_block_size, humblock):
75168         Use uintmax_t, not int, for block sizes.
75169         (human_readable_inexact, block_size_types): Remove.
75170         (block_size_opts): New constant.
75171         (human_options): Renamed from human_block_size, with new signature
75172         that allows block sizes up to UINTMAX_MAX.  All callers changed.
75173         * lib/human.h: Add copyright and authorship notice.
75174         Include <limits.h> and <stdbool.h> unconditionally.
75175         (PARAMS): Remove.  All uses removed.
75176         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
75177         (enum human_inexact_style): Remove tag; now a nameless enum.
75178         (human_floor, human_ceiling, human_round_to_even): Now have
75179         values 2, 0, 1 rather than -1, 1, 0.
75180         (human_group_digits, human_suppress_point_zero, human_autoscale,
75181         human_base_1024, human_SI, human_B): New constants.
75182         (human_readable_inexact, human_block_size): Remove.
75183         (human_readable): Size args are now uintmax_t, not int.
75184         (human_options): New decl.
75185
75186         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
75187         unnecessary now that we assume C89 or better.  This change
75188         imported from coreutils.
75189
75190         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75191         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
75192         in the 2003-05-30 sync from glibc.
75193
75194         .h files should stand alone, but we shouldn't include <sys/types.h>
75195         if we can get away with just <stddef.h>.
75196
75197         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
75198         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
75199         rather than <sys/types.h>, as we merely need size_t.
75200         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
75201         to get size_t.
75202         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
75203         Include <stdio.h>, to get FILE.
75204         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
75205         memcasecmp.h has included <stddef.h> and all we need is size_t.
75206         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
75207         our interface, instead of including <sys/types.h>
75208
75209 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75210
75211         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
75212         now, as glibc mktime is buggy on non-glibc systems.
75213
75214 2003-06-03  Karl Berry  <karl@gnu.org>
75215
75216         * config/config.sub: update from prep.
75217
75218 2003-06-02  Paul Eggert  <eggert@twinsun.com>
75219
75220         [from coreutils]
75221         Fix some minor time-related bugs with POSIX time arguments.
75222         Some valid time stamps were being rejected (notably -1, and
75223         time stamps before 1900 on 64-bit hosts).  And some invalid
75224         time stamps were being accepted, e.g. September 31.
75225
75226         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
75227         that we can return (time_t) -1 successfully.
75228         * lib/posixtm.c: Likewise.
75229         [HAVE_STDBOOL_H]: Include <stdbool.h>.
75230         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
75231         (t): Remove static var.
75232         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
75233         of static var.  All uses changed.
75234         (year): Do not reject years before 1900; they can occur with
75235         64-bit time_t.
75236         (posix_time_parse): Do not check for out-of-range components;
75237         that is now the caller's responsibility, since our checks were
75238         only approximations.
75239         (posixtime): Use mktime to check for out-of-range components,
75240         since it knows them exactly.
75241         If mktime returns (time_t) -1, check whether an error actually occurred
75242         by invoking localtime on -1.
75243         (main) [TEST_POSIXTIME]: Check for input data errors, and report
75244         posixtime failures better.
75245         Improve the test data (in comments only).
75246
75247 2003-06-02  Karl Berry  <karl@gnu.org>
75248
75249         * config/mkinstalldirs (version): new variable.
75250         (--version): new option.
75251         (usage): improve message.
75252
75253 2003-05-30  Karl Berry  <karl@gnu.org>
75254
75255         * lib/mktime.c: update from libc.
75256
75257 2003-05-30  Bruno Haible  <bruno@clisp.org>
75258
75259         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
75260         * config/config.rpath: Upgrade to gettext-0.12.1.
75261
75262 2003-05-30  Bruno Haible  <bruno@clisp.org>
75263
75264         * m4/gettext.m4: Upgrade to gettext-0.12.1.
75265         * m4/nls.m4: New file, from gettext-0.12.1.
75266         * m4/po.m4: New file, from gettext-0.12.1.
75267         * m4/progtest.m4: Upgrade to gettext-0.12.1.
75268
75269 2003-05-30  Bruno Haible  <bruno@clisp.org>
75270
75271         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
75272         * lib/localcharset.h: Likewise.
75273         * lib/localcharset.c: Likewise.
75274
75275 2003-05-29  Karl Berry  <karl@gnu.org>
75276
75277         * config/config.rpath: update from gettext.
75278
75279 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75280
75281         Assume the headers required for C89 freestanding compilers.
75282         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
75283         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
75284         * m4/human.m4 (gl_HUMAN): Likewise.
75285         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
75286         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
75287         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75288         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
75289         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75290         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
75291
75292 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75293
75294         Assume the headers required for C89 freestanding compilers.
75295         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
75296         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
75297         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
75298         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
75299         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
75300         define, since <limits.h> is guaranteed to do that.
75301         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
75302         * lib/exclude.c: Include <stdbool.h> unconditionally.
75303         * lib/tempname.c: Include <stddef.h> unconditionally.
75304         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
75305         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
75306         <stddef.h> does that.
75307         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
75308         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
75309         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
75310         needed.
75311         * lib/xstrtol.c: Likewise.
75312         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
75313         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
75314
75315         * lib/addext.c (addext): Use assignment rather than cast, to avoid
75316         warnings on some platforms.
75317
75318         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75319         arbitrarily.
75320
75321 2003-05-26  Jim Meyering  <jim@meyering.net>
75322
75323         Merge in a change from coreutils:
75324         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
75325         that is guaranteed to be `no'.  Use `no_such_member' to indicate
75326         that condition, rather than `-1' which is slightly misleading.
75327         Change the name of the cache variable to have the gl_ prefix.
75328         Prompted by a patch from Richard Dawe for DJGPP.
75329
75330 2003-05-24  Karl Berry  <karl@gnu.org>
75331
75332         * config/config.guess: update from prep.
75333
75334 2003-05-22  Karl Berry  <karl@gnu.org>
75335
75336         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
75337
75338 2003-05-20  Karl Berry  <karl@gnu.org>
75339
75340         * config/config.guess: update from prep.
75341
75342 2003-05-18  Karl Berry  <karl@gnu.org>
75343
75344         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
75345         might actually be set by the user.
75346
75347         * config/depcomp, install-sh, mdate-sh: update from automake.
75348
75349 2003-05-17  Bruno Haible  <bruno@clisp.org>
75350
75351         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
75352         invalid expansion for AC_EGREP_CPP.
75353         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
75354         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
75355         Suggested by Akim Demaille <akim@epita.fr> in
75356         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
75357
75358 2003-05-12  Jim Meyering  <jim@meyering.net>
75359
75360         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
75361         the space-padded-by-default conversion specifiers, %e, %k, %l.
75362
75363 2003-05-12  Bruno Haible  <bruno@clisp.org>
75364
75365         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
75366         the string is longer than 4 KB.
75367
75368 2003-05-11  Karl Berry  <karl@gnu.org>
75369
75370         * config/config.{guess,sub}: update from prep.
75371
75372 2003-05-09  Bruno Haible  <bruno@clisp.org>
75373
75374         * modules/error: Add m4/strerror_r.m4 to file list.
75375
75376 2003-05-03  Bruno Haible  <bruno@clisp.org>
75377
75378         Upgrade to Unicode-4.0.
75379         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
75380         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
75381         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
75382         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
75383         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
75384         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
75385         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
75386         Change width of U+E0100..U+E01EF from 1 to 0.
75387
75388 2003-04-25  Jim Meyering  <jim@meyering.net>
75389
75390         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
75391         of type size_t, not int.
75392
75393 2003-04-25  Bruno Haible  <bruno@clisp.org>
75394
75395         * lib/copy-file.c: Include <stddef.h>, for size_t.
75396
75397 2003-04-21  Paul Eggert  <eggert@twinsun.com>
75398
75399         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
75400         code which expansion is under static control.  Patch imported from
75401         Akim Demaille's patch to Bison; see
75402         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
75403
75404 2003-04-14  Bruno Haible  <bruno@clisp.org>
75405
75406         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
75407
75408 2003-04-11  Jim Meyering  <jim@meyering.net>
75409
75410         Merge changes from Coreutils.
75411
75412         2003-03-22  Jim Meyering  <jim@meyering.net>
75413
75414         * lib/strftime.c (widen): Cast alloca return value to proper type.
75415
75416         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
75417
75418         From GNU libc.
75419         * lib/strftime.c (my_strftime): Handle very large width
75420         specifications for numeric values correctly.  Improve checks for
75421         overflow.
75422
75423         2003-01-19  Jim Meyering  <jim@meyering.net>
75424
75425         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
75426         definitions.
75427         (nl_get_alt_digit) [! defined my_strftime]: Define.
75428         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
75429         _nl_get_alt_digit and _nl_get_walt_digit.
75430
75431         * lib/strftime.c (my_strftime): Merge in locale-related changes from
75432         libc. These changes have no effect outside of _LIBC.
75433
75434 2003-04-10  Bruno Haible  <bruno@clisp.org>
75435
75436         * modules/findprog: New file.
75437         * MODULES.html.sh (func_all_modules): Add it.
75438
75439 2003-04-10  Bruno Haible  <bruno@clisp.org>
75440
75441         * m4/findprog.m4: New file.
75442         * m4/eaccess.m4: New file.
75443
75444 2003-04-10  Bruno Haible  <bruno@clisp.org>
75445
75446         * lib/findprog.h: New file, from GNU gettext.
75447         * lib/findprog.c: New file, from GNU gettext.
75448
75449 2003-04-05  Jim Meyering  <jim@meyering.net>
75450
75451         Merge changes from Coreutils.
75452
75453         * lib/exclude.h (PARAMS): Remove definition and uses.
75454         * lib/exclude.c: Remove uses of `PARAMS'.
75455
75456         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
75457         Add test-cases for DOS filenames. Declare program_name.
75458         (main): Set up program_name.  Patch by Rich Dawe.
75459
75460         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75461         error from mntctl.
75462         Use mntctl's return value to drive the entry-processing loop, since
75463         we can't rely on the value of the vmt_length member in the last
75464         entry.  On some systems doing so could result in exhausting
75465         virtual memory.  Based in part on a patch from Mike Jetzer.
75466
75467 2003-04-04  Bruno Haible  <bruno@clisp.org>
75468
75469         * modules/linebreak: New file.
75470         * MODULES.html.sh (func_all_modules): Add it.
75471
75472 2003-04-04  Bruno Haible  <bruno@clisp.org>
75473
75474         * m4/linebreak.m4: New file.
75475
75476 2003-04-04  Bruno Haible  <bruno@clisp.org>
75477
75478         * lib/linebreak.h: New file, from GNU gettext.
75479         * lib/linebreak.c: New file, from GNU gettext with slight
75480         modifications.
75481         * lib/lbrkprop.h: New file, from GNU gettext.
75482
75483 2003-04-03  Bruno Haible  <bruno@clisp.org>
75484
75485         * modules/utf8-ucs4: New file.
75486         * modules/utf16-ucs4: New file.
75487         * modules/ucs4-utf8: New file.
75488         * modules/ucs4-utf16: New file.
75489         * MODULES.html.sh (func_all_modules): Add them.
75490
75491 2003-04-03  Bruno Haible  <bruno@clisp.org>
75492
75493         * m4/utf-ucs4.m4: New file.
75494         * m4/ucs4-utf.m4: New file.
75495
75496 2003-04-03  Bruno Haible  <bruno@clisp.org>
75497
75498         * lib/utf8-ucs4.h: New file, from GNU gettext.
75499         * lib/utf16-ucs4.h: New file, from GNU gettext.
75500         * lib/ucs4-utf8.h: New file, from GNU gettext.
75501         * lib/ucs4-utf16.h: New file, from GNU gettext.
75502
75503 2003-04-02  Bruno Haible  <bruno@clisp.org>
75504
75505         * modules/binary-io: New file.
75506         * MODULES.html.sh (func_all_modules): Add it.
75507
75508 2003-04-02  Bruno Haible  <bruno@clisp.org>
75509
75510         * lib/binary-io.h: New file, from GNU gettext.
75511
75512 2003-04-01  Bruno Haible  <bruno@clisp.org>
75513
75514         * modules/pathname: New file.
75515         * MODULES.html.sh (func_all_modules): Add it.
75516
75517 2003-04-01  Bruno Haible  <bruno@clisp.org>
75518
75519         * lib/pathname.h: New file, from GNU gettext.
75520         * lib/concatpath.c: New file, from GNU gettext.
75521
75522 2003-03-30  Bruno Haible  <bruno@clisp.org>
75523
75524         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
75525
75526 2003-03-30  Bruno Haible  <bruno@clisp.org>
75527
75528         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
75529         function chown() doesn't exist.
75530
75531 2003-03-28  Bruno Haible  <bruno@clisp.org>
75532
75533         * modules/copy-file: New file.
75534         * MODULES.html.sh (func_all_modules): Add it.
75535
75536 2003-03-28  Bruno Haible  <bruno@clisp.org>
75537
75538         * m4/copy-file.m4: New file.
75539
75540 2003-03-28  Bruno Haible  <bruno@clisp.org>
75541
75542         * lib/copy-file.h: New file, from GNU gettext.
75543         * lib/copy-file.c: New file, from GNU gettext.
75544
75545 2003-03-18  Jim Meyering  <jim@meyering.net>
75546
75547         * lib/quote.c (quote_n): Fix typo in comment.
75548
75549 2003-03-18  Bruno Haible  <bruno@clisp.org>
75550
75551         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
75552         checking.
75553         * m4/onceonly_2_57.m4: Likewise.
75554
75555 2003-03-17  Bruno Haible  <bruno@clisp.org>
75556
75557         * m4/onceonly.m4: Require autoconf 2.54 or newer.
75558         (m4_quote): Remove macro.
75559         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
75560
75561 2003-03-14  Jim Meyering  <jim@meyering.net>
75562
75563         Merge changes from Coreutils.
75564         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
75565         to be const, in order to avoid warnings.
75566         (obstack_room): Likewise.
75567         (obstack_empty_p): Likewise.
75568
75569 2003-03-14  Bruno Haible  <bruno@clisp.org>
75570
75571         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
75572         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
75573
75574 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75575
75576         Merge changes from Bison.
75577         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
75578         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
75579         when compiling Bison 1.875's `bitset bset = obstack_alloc
75580         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
75581         * lib/hash.c: Include <stdbool.h> unconditionally.
75582
75583 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75584
75585         * m4/onceonly.m4 (m4_quote): New macro.
75586         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
75587         Quote AC_FOREACH variable-expansions properly.
75588
75589 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75590
75591         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
75592
75593 2003-03-09  Paul Eggert  <eggert@twinsun.com>
75594
75595         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
75596         Reported by Bruce Becker; see:
75597         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
75598
75599 2003-03-03  Paul Eggert  <eggert@twinsun.com>
75600             Bruno Haible  <bruno@clisp.org>
75601
75602         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
75603         Reported by John Hughes, see
75604         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
75605
75606 2003-02-20  Bruno Haible  <bruno@clisp.org>
75607
75608         * MODULES.html.sh (func_all_modules): Add poll.
75609
75610 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75611
75612         * modules/poll: New file.
75613
75614 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75615
75616         * lib/poll_.h: New file.
75617         * lib/poll.c: New file.
75618
75619 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75620
75621         * m4/poll.m4: New file.
75622
75623 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75624
75625         * modules/mathl: New file.
75626
75627 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75628
75629         * lib/mathl.h: New file.
75630         * lib/acosl.c: New file.
75631         * lib/asinl.c: New file.
75632         * lib/atanl.c: New file.
75633         * lib/ceill.c: New file.
75634         * lib/cosl.c: New file.
75635         * lib/expl.c: New file.
75636         * lib/floorl.c: New file.
75637         * lib/frexpl.c: New file.
75638         * lib/ldexpl.c: New file.
75639         * lib/logl.c: New file.
75640         * lib/sincosl.c: New file.
75641         * lib/sinl.c: New file.
75642         * lib/sqrtl.c: New file.
75643         * lib/tanl.c: New file.
75644         * lib/trigl.c: New file.
75645         * lib/trigl.h: New file.
75646
75647 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75648
75649         * m4/mathl.m4: New file.
75650
75651 2003-02-18  Bruno Haible  <bruno@clisp.org>
75652
75653         * MODULES.html.sh (func_all_modules): Add mathl.
75654
75655 2003-02-17  Bruno Haible  <bruno@clisp.org>
75656
75657         * modules/mkdtemp: New module.
75658         * MODULES.html.sh (func_all_modules): Add it.
75659
75660 2003-02-17  Bruno Haible  <bruno@clisp.org>
75661
75662         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75663
75664 2003-02-17  Bruno Haible  <bruno@clisp.org>
75665
75666         * lib/mkdtemp.h: New file, from GNU gettext.
75667         * lib/mkdtemp.c: New file, from GNU gettext.
75668
75669 2003-02-02  Jim Meyering  <jim@meyering.net>
75670
75671         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75672         e.g. glibc-2.2.93.
75673
75674 2003-01-31  Bruno Haible  <bruno@clisp.org>
75675
75676         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75677         'rpl_rename'.
75678         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75679         'rpl_strnlen'.
75680         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75681         'rpl_strtod'.
75682         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75683         'rpl_utime'.
75684
75685 2003-01-31  Bruno Haible  <bruno@clisp.org>
75686
75687         * lib/rename.c: #undef rename before defining rpl_rename.
75688         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75689
75690 2003-01-30  Bruno Haible  <bruno@clisp.org>
75691
75692         * modules/vasnprintf, modules/vasprintf: New modules.
75693         * MODULES.html.sh (func_all_modules): Add them.
75694
75695 2003-01-30  Bruno Haible  <bruno@clisp.org>
75696
75697         * m4/signed.m4: New file, from GNU gettext.
75698         * m4/longdouble.m4: New file, from GNU gettext.
75699         * m4/wchar_t.m4: New file, from GNU gettext.
75700         * m4/wint_t.m4: New file, from GNU gettext.
75701         * m4/vasnprintf.m4: New file.
75702         * m4/vasprintf.m4: New file.
75703
75704 2003-01-30  Bruno Haible  <bruno@clisp.org>
75705
75706         * lib/printf-args.h: New file, from GNU gettext.
75707         * lib/printf-args.c: New file, from GNU gettext.
75708         * lib/printf-parse.h: New file, from GNU gettext.
75709         * lib/printf-parse.c: New file, from GNU gettext.
75710         * lib/vasnprintf.h: New file, from GNU gettext.
75711         * lib/vasnprintf.c: New file, from GNU gettext.
75712         * lib/asnprintf.c: New file, from GNU gettext.
75713         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75714         * lib/vasprintf.c: New file, from GNU gettext.
75715         * lib/asprintf.c: New file, from GNU gettext.
75716
75717 2003-01-29  Bruno Haible  <bruno@clisp.org>
75718
75719         * modules/stpncpy: New module.
75720         * MODULES.html.sh (func_all_modules): Add it.
75721
75722 2003-01-29  Bruno Haible  <bruno@clisp.org>
75723
75724         * m4/stpncpy.m4: New file.
75725
75726 2003-01-29  Bruno Haible  <bruno@clisp.org>
75727
75728         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75729         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75730
75731 2003-01-28  Bruno Haible  <bruno@clisp.org>
75732
75733         * modules/c-ctype: New module.
75734         * MODULES.html.sh (func_all_modules): Add it.
75735
75736 2003-01-28  Bruno Haible  <bruno@clisp.org>
75737
75738         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75739         Paul Eggert.
75740         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75741         Paul Eggert.
75742
75743 2003-01-27  Bruno Haible  <bruno@clisp.org>
75744
75745         * modules/xsetenv: New module.
75746         * MODULES.html.sh (func_all_modules): Add it.
75747
75748 2003-01-27  Bruno Haible  <bruno@clisp.org>
75749
75750         * lib/xsetenv.h: New file, from GNU gettext.
75751         * lib/xsetenv.c: New file, from GNU gettext.
75752
75753 2003-01-23  Jim Meyering  <jim@meyering.net>
75754
75755         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75756         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75757
75758 2003-01-23  Bruno Haible  <bruno@clisp.org>
75759
75760         * modules/minmax: New module.
75761         * MODULES.html.sh (func_all_modules): Add it.
75762
75763 2003-01-23  Bruno Haible  <bruno@clisp.org>
75764
75765         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75766         Eggert.
75767
75768 2003-01-22  Bruno Haible  <bruno@clisp.org>
75769
75770         * modules/exit: New module.
75771         * MODULES.html.sh (func_all_modules): Add it.
75772
75773 2003-01-22  Bruno Haible  <bruno@clisp.org>
75774
75775         * lib/exit.h: New file, from GNU gettext.
75776
75777 2003-01-19  Bruno Haible  <bruno@clisp.org>
75778
75779         * gnulib-tool: Recognize option --extract-maintainer.
75780         (func_get_maintainer): New function.
75781         * modules/*: Add Maintainer entry.
75782
75783 2003-01-16  Jim Meyering  <jim@meyering.net>
75784
75785         * m4/regex.m4: The `regex' struct is both input and output.
75786         Initialize it before each use.  Patch by Tim Waugh.
75787
75788 2003-01-16  Bruno Haible  <bruno@clisp.org>
75789
75790         * MODULES.html.sh: Add a table of contents. Add the module name as
75791         leftmost column. Add hyperlinks.
75792
75793 2003-01-15  Bruno Haible  <bruno@clisp.org>
75794
75795         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75796
75797 2003-01-15  Bruno Haible  <bruno@clisp.org>
75798
75799         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75800         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75801         suffix.
75802
75803 2003-01-15  Bruno Haible  <bruno@clisp.org>
75804
75805         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75806
75807 2003-01-15  Bruno Haible  <bruno@clisp.org>
75808
75809         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75810         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75811
75812 2003-01-14  Jim Meyering  <jim@meyering.net>
75813
75814         * lib/same.c (same_name): Tweak a comment.
75815
75816 2003-01-14  Bruno Haible  <bruno@clisp.org>
75817
75818         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75819         when a string comparison is sufficient.
75820
75821 2003-01-14  Bruno Haible  <bruno@clisp.org>
75822
75823         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75824         'unsigned int'.
75825
75826 2003-01-14  Bruno Haible  <bruno@clisp.org>
75827
75828         * lib/hash-pjw.c: Add comment about low quality of this function.
75829
75830 2003-01-13  Bruno Haible  <bruno@clisp.org>
75831
75832         * modules/stpcpy: Distribute lib/stpcpy.h.
75833         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75834
75835 2003-01-13  Bruno Haible  <bruno@clisp.org>
75836
75837         * modules/*: Add a description.
75838         * modules/strpbrk: Fix Makefile.am snippet.
75839         * modules/strtoimax: Fix dependencies.
75840         * modules/strtoumax: Likewise.
75841
75842 2003-01-13  Bruno Haible  <bruno@clisp.org>
75843
75844         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75845         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75846         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75847
75848 2003-01-13  Bruno Haible  <bruno@clisp.org>
75849
75850         * gnulib-tool (func_create_testdir): Store config/* files in the main
75851         directory.
75852         * config.rpath: Move to ...
75853         * config/config.rpath: ... here.
75854         * modules/gettext: Contains config/config.rpath, not config.rpath.
75855         * modules/iconv: Likewise.
75856
75857 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75858
75859         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75860         to avoid collisions with libcurses and libreadline.
75861
75862         * m4/getstr.m4: Remove.
75863         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75864
75865 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75866
75867         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75868         to avoid collisions with libcurses and libreadline.
75869
75870         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75871         * lib/getstr.h, getstr.c: Remove.
75872         * lib/getline.c: Include "getline.h", to check interface.
75873         Move body of old getstr.c here: this defines MIN_CHUNK and
75874         declares getdelim2, which is renamed from getstr.
75875         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75876
75877         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75878         All uses changed.
75879         * lib/linebuffer.h: Likewise.
75880         (readline): Remove backward-compatibility macro.
75881
75882 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75883
75884         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75885         to avoid collisions with libcurses and libreadline.
75886         * getstr: Remove.
75887         * MODULES.html.sh: Remove getstr.
75888         * modules/getline: Depend on unlocked-io, not getstr.
75889
75890 2003-01-12  Jim Meyering  <jim@meyering.net>
75891
75892         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75893
75894 2003-01-10  Bruno Haible  <bruno@clisp.org>
75895
75896         * modules/alloca: Change Makefile.am requirements. Simplify Include
75897         requirements. Add lib/alloca_.h to file list.
75898
75899 2003-01-10  Bruno Haible  <bruno@clisp.org>
75900
75901         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75902
75903 2003-01-10  Bruno Haible  <bruno@clisp.org>
75904
75905         * lib/alloca_.h: New file.
75906         * lib/getdate.y: Unconditionally include alloca.h.
75907         * lib/makepath.c: Likewise.
75908         * lib/setenv.c: Likewise.
75909         * lib/userspec.c: Likewise.
75910
75911 2003-01-09  Karl Berry  <karl@gnu.org>
75912
75913         * MODULES.html.sh: include `dirname $0` in PATH, to find
75914         gnulib-tool.
75915
75916 2003-01-09  Bruno Haible  <bruno@clisp.org>
75917
75918         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75919         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75920
75921 2003-01-09  Bruno Haible  <bruno@clisp.org>
75922
75923         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75924
75925 2003-01-09  Bruno Haible  <bruno@clisp.org>
75926
75927         * lib/stdbool.h.in: New file.
75928
75929 2003-01-09  Bruno Haible  <bruno@clisp.org>
75930
75931         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75932         * MODULES.html.sh: Likewise.
75933
75934 2003-01-08  Jim Meyering  <jim@meyering.net>
75935
75936         * lib/full-write.c: Undefine and define-away `const' after inclusion
75937         of errno.h, not before.  Suggestion from Bruno Haible.
75938
75939 2003-01-08  Bruno Haible  <bruno@clisp.org>
75940
75941         * modules/full-read: Depend on full-write.
75942
75943 2003-01-08  Bruno Haible  <bruno@clisp.org>
75944
75945         * lib/safe-read.c: Include specification header first, to ensure its
75946         selfcontainedness.
75947         * lib/full-write.c: Likewise.
75948
75949 2003-01-07  Jim Meyering  <jim@meyering.net>
75950
75951         * lib/full-write.c: Rework so that it may serve to define full_read,
75952         too.
75953         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75954
75955 2003-01-07  Bruno Haible  <bruno@clisp.org>
75956
75957         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75958         <inttypes.h>.
75959         * lib/xstrtol.h: Likewise.
75960         * lib/xstrtoimax.c: Likewise.
75961         * lib/xstrtoumax.c: Likewise.
75962         * lib/human.h: Likewise.
75963
75964         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75965         on systems that have <inttypes.h> but not <stdint.h>.
75966
75967 2003-01-07  Bruno Haible  <bruno@clisp.org>
75968
75969         * MODULES.html.sh: Add copyright notice.
75970         (missed_files): Omit CVS directory entries.
75971         (func_module): Make it work with sed-3.02.
75972         * MODULES.txt: Remove file.
75973
75974 2003-01-06  Jim Meyering  <jim@meyering.net>
75975
75976         * lib/version-etc.c: Update year in translatable copyright string.
75977
75978 2003-01-03  Karl Berry  <karl@gnu.org>
75979
75980         * config/config.{guess,sub}: update from prep.
75981
75982 2003-01-02  Karl Berry  <karl@gnu.org>
75983
75984         * doc/COPYING.DOC: belatedly updated to 1.2.
75985
75986 2003-01-01  Karl Berry  <karl@gnu.org>
75987
75988         * gnulib-tool (func_verify_module): report module name $module in
75989         error message, not $1.
75990         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75991         be created, only if it doesn't exist.
75992         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75993
75994 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75995
75996         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75997
75998 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75999
76000         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
76001         memcmp if strcoll doesn't work.
76002
76003 2002-12-31  Bruno Haible  <bruno@clisp.org>
76004
76005         * lib/utime.c (utime_null): No need to call ftruncate if the file was
76006         nonempty.
76007
76008 2002-12-31  Bruno Haible  <bruno@clisp.org>
76009
76010         * lib/memcoll.c (STRCOLL): New macro.
76011         (memcoll): Use it.
76012
76013 2002-12-31  Bruno Haible  <bruno@clisp.org>
76014
76015         * lib/localcharset.h: New file.
76016         * lib/localcharset.c: Include it.
76017         * lib/unicodeio.c: Likewise.
76018
76019 2002-12-31  Bruno Haible  <bruno@clisp.org>
76020
76021         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
76022         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
76023
76024 2002-12-31  Bruno Haible  <bruno@clisp.org>
76025
76026         * lib/getline.h: Include <stddef.h>, for size_t.
76027
76028         * lib/unicodeio.h: Include <stddef.h>, for size_t.
76029         * lib/unicodeio.c: Don't include <stddef.h>.
76030
76031 2002-12-31  Bruno Haible  <bruno@clisp.org>
76032
76033         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
76034         HAVE_TM_ZONE.
76035
76036 2002-12-24  Karl Berry  <karl@gnu.org>
76037
76038         * config/config.guess: update from prep.
76039
76040 2002-12-24  Bruno Haible  <bruno@clisp.org>
76041
76042         General infrasructure.
76043         * m4/README: Rewritten.
76044         * m4/onceonly.m4: New file.
76045         * m4/onceonly_2_57.m4: New file.
76046
76047         Module atexit.
76048         * m4/atexit.m4: New file.
76049
76050         Module strtod.
76051         * m4/strtod.m4: New file.
76052
76053         Module strtol.
76054         * m4/strtol.m4: New file.
76055
76056         Module strtoul.
76057         * m4/strtoul.m4: New file.
76058
76059         Module memchr.
76060         * m4/memchr.m4: New file.
76061
76062         Module memcmp.
76063         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
76064         (jm_FUNC_MEMCMP): Invoke it.
76065
76066         Module memcpy.
76067         * m4/memcpy.m4: New file.
76068
76069         Module memmove.
76070         * m4/memmove.m4: New file.
76071
76072         Module memset.
76073         * m4/memset.m4: New file.
76074
76075         Module strcspn.
76076         * m4/strcspn.m4: New file.
76077
76078         Module strpbrk.
76079         * m4/strpbrk.m4: New file.
76080
76081         Module strstr.
76082         * m4/strstr.m4: New file.
76083
76084         Module strerror.
76085         * m4/strerror.m4: New file.
76086
76087         Module mktime.
76088         * m4/mktime.m4: Renamed from jm-mktime.m4.
76089         (gl_PREREQ_MKTIME): New macro.
76090         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
76091
76092         Module malloc.
76093         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
76094         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
76095         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
76096
76097         Module realloc.
76098         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
76099         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
76100         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
76101
76102         Module strftime.
76103         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
76104         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
76105         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
76106         gl_TM_GMTOFF.
76107         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
76108
76109         Module xalloc.
76110         * m4/xalloc.m4: New file.
76111
76112         Module alloca.
76113         * m4/alloca.m4: New file.
76114
76115         Module putenv.
76116         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
76117         (jm_FUNC_PUTENV): Invoke it.
76118
76119         Module setenv.
76120         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
76121         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
76122         when invoked twice.
76123         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
76124         gt_FUNC_SETENV.
76125
76126         Module memrchr.
76127         * m4/memrchr.m4: New file.
76128
76129         Module stpcpy.
76130         * m4/stpcpy.m4: New file.
76131
76132         Module strcase.
76133         * m4/strcase.m4: New file.
76134
76135         Module strdup.
76136         * m4/strdup.m4: New file.
76137
76138         Module strnlen.
76139         * m4/strnlen.m4: New file.
76140
76141         Module strndup.
76142         * m4/strndup.m4: New file.
76143
76144         Module xstrtod.
76145         * m4/xstrtod.m4: New file.
76146
76147         Module xstrtol.
76148         * m4/xstrtol.m4: New file.
76149
76150         Module getdate.
76151         * m4/getdate.m4: New file.
76152
76153         Module unlocked-io.
76154         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
76155         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
76156         * m4/jm-glibc-io.m4n: Remove file.
76157
76158         Module long-options.
76159         * m4/long-options.m4: New file.
76160
76161         Module md5.
76162         * m4/md5.m4: New file.
76163
76164         Module sha.
76165         * m4/sha.m4: New file.
76166
76167         Module getstr.
76168         * m4/getstr.m4: New file.
76169
76170         Module getline.
76171         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
76172         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
76173         <sys/types.h>, for size_t. Use the function name gnu_getline, not
76174         simply getline. Infoke gl_PREREQ_GETLINE.
76175
76176         Module obstack.
76177         * m4/obstack.m4: New file.
76178
76179         Module hash.
76180         * m4/hash.m4: New file.
76181
76182         Module readtokens.
76183         * m4/readtokens.m4: New file.
76184
76185         Module strverscmp.
76186         * m4/strverscmp.m4: New file.
76187
76188         Module stdbool.
76189         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
76190         OSF/1.
76191
76192         Module strtoll.
76193         * m4/strtoll.m4: New file.
76194
76195         Module strtoull.
76196         * m4/strtoull.m4: New file.
76197
76198         Module strtoimax.
76199         * m4/strtoimax.m4: New file.
76200
76201         Module strtoumax.
76202         * m4/strtoumax.m4: New file.
76203
76204         Module xstrtoimax.
76205         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
76206         jm_AC_PREREQ_XSTRTOIMAX.
76207         Moved the strtol prerequisites to strtol.m4.
76208         Moved the strtoll prerequisites to strtoll.m4.
76209         Moved the strtoimax prerequisites to strtoimax.m4.
76210
76211         Module xstrtoumax.
76212         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
76213         jm_AC_PREREQ_XSTRTOUMAX.
76214         Moved the strtoul prerequisites to strtoul.m4.
76215         Moved the strtoull prerequisites to strtoull.m4.
76216         Moved the strtoumax prerequisites to strtoumax.m4.
76217
76218         Module chown.
76219         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
76220         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
76221
76222         Module dup2.
76223         * m4/dup2.m4: New file.
76224
76225         Module ftruncate.
76226         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
76227         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
76228
76229         Module getgroups.
76230         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
76231         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
76232
76233         Module gettimeofday.
76234         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
76235         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
76236         gl_PREREQ_GETTIMEOFDAY.
76237
76238         Module mkdir.
76239         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
76240         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
76241
76242         Module mkstemp.
76243         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
76244         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
76245         jm_AC_TYPE_UINTMAX_T.
76246         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
76247
76248         Module stat.
76249         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
76250         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
76251
76252         Module lstat.
76253         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
76254         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
76255
76256         Module timespec.
76257         * m4/timespec.m4 (gl_TIMESPEC): New macro.
76258         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
76259         * m4/st_mtim.m4: Indentation.
76260
76261         Module nanosleep.
76262         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
76263         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
76264         gl_PREREQ_NANOSLEEP.
76265
76266         Module regex.
76267         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
76268         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
76269         (gl_REGEX): New macro.
76270
76271         Module rename.
76272         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
76273         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
76274
76275         Module rmdir.
76276         * m4/rmdir.m4: New file.
76277
76278         Module utime.
76279         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
76280         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
76281         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
76282
76283         Module dirname.
76284         * m4/dirname.m4: New file.
76285
76286         Module getopt.
76287         * m4/getopt.m4: New file.
76288
76289         Module unistd-safer.
76290         * m4/unistd-safer.m4: New file.
76291
76292         Module fnmatch.
76293         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
76294         declaration.
76295         (gl_PREREQ_FNMATCH_EXTRA): New macro.
76296         (gl_FUNC_FNMATCH_POSIX): New macro.
76297         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
76298         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
76299         simply fnmatch.
76300
76301         Module exclude.
76302         * m4/exclude.m4: New file.
76303
76304         Module human.
76305         * m4/human.m4: New file.
76306
76307         Module acl.
76308         * m4/acl.m4: Nop.
76309
76310         Module backupfile.
76311         * m4/backupfile.m4: New file.
76312         * m4/d-ino.m4: Indentation.
76313
76314         Module fsusage.
76315         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
76316         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
76317         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
76318
76319         Module dirfd.
76320         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
76321         requirements.
76322
76323         Module euidaccess.
76324         * m4/euidaccess.m4: New file.
76325
76326         Module file-type.
76327         * m4/file-type.m4: New file.
76328
76329         Module fileblocks.
76330         * m4/fileblocks.m4: New file.
76331
76332         Module filemode.
76333         * m4/filemode.m4: New file.
76334
76335         Module isdir.
76336         * m4/isdir.m4: New file.
76337
76338         Module lchown.
76339         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
76340         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
76341
76342         Module makepath.
76343         * m4/makepath.m4: New file.
76344
76345         Module modechange.
76346         * m4/modechange.m4: New file.
76347
76348         Module mountlist.
76349         * m4/mountlist.m4: New file.
76350         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
76351         Indentation.
76352
76353         Module path-concat.
76354         * m4/path-concat.m4: New file.
76355
76356         Module pathmax.
76357         * m4/pathmax.m4: New file.
76358
76359         Module same.
76360         * m4/same.m4: New file.
76361
76362         Module save-cwd.
76363         * m4/save-cwd.m4: New file.
76364
76365         Module savedir.
76366         * m4/savedir.m4: New file.
76367
76368         Module xgetcwd.
76369         * m4/xgetcwd.m4: New file.
76370         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
76371
76372         Module xreadlink.
76373         * m4/xreadlink.m4: New file.
76374
76375         Module safe-read.
76376         * m4/safe-read.m4: New file.
76377
76378         Module safe-write.
76379         * m4/safe-write.m4: New file.
76380
76381         Module closeout.
76382         * m4/closeout.m4: New file.
76383
76384         Module stdio-safer.
76385         * m4/stdio-safer.m4: New file.
76386
76387         Module getpass.
76388         * m4/getpass.m4: New file.
76389
76390         Module getugroups.
76391         * m4/getugroups.m4: New file.
76392
76393         Module group-member.
76394         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
76395         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
76396
76397         Module idcache.
76398         * m4/idcache.m4: New file.
76399
76400         Module userspec.
76401         * m4/userspec.m4: New file.
76402
76403         Module gettime.
76404         * m4/clock_time.m4: New file.
76405         * m4/gettime.m4: New file.
76406
76407         Module settime.
76408         * m4/settime.m4: New file.
76409
76410         Module posixtm.
76411         * m4/posixtm.m4: New file.
76412
76413         Module gethostname.
76414         * m4/gethostname.m4: New file.
76415
76416         Module canon-host.
76417         * m4/canon-host.m4: New file.
76418
76419         Module gettext.
76420         * m4/codeset.m4: New file, from gettext-0.11.5.
76421         * m4/gettext.m4: New file, from gettext-0.11.5.
76422         * m4/glibc21.m4: New file, from gettext-0.11.5.
76423         * m4/iconv.m4: New file, from gettext-0.11.5.
76424         * m4/intdiv0.m4: New file, from gettext-0.11.5.
76425         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
76426         * m4/inttypes.m4: New file, from gettext-0.11.5.
76427         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
76428         * m4/isc-posix.m4: New file, from gettext-0.11.5.
76429         * m4/lcmessage.m4: New file, from gettext-0.11.5.
76430         * m4/lib-ld.m4: New file, from gettext-0.11.5.
76431         * m4/lib-link.m4: New file, from gettext-0.11.5.
76432         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
76433         * m4/progtest.m4: New file, from gettext-0.11.5.
76434         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
76435         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
76436         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
76437
76438         Module localcharset.
76439         * m4/localcharset.m4: New file.
76440
76441         Module hard-locale.
76442         * m4/hard-locale.m4: New file.
76443
76444         Module mbswidth.
76445         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
76446         onceonly macros.
76447         * m4/mbrtowc.m4: Add comment.
76448
76449         Module memcasecmp.
76450         * m4/memcasecmp.m4: New file.
76451
76452         Module memcoll.
76453         * m4/memcoll.m4: New file.
76454
76455         Module unicodeio.
76456         * m4/unicodeio.m4: New file.
76457
76458         Module rpmatch.
76459         * m4/rpmatch.m4: New file.
76460
76461         Module yesno.
76462         * m4/yesno.m4: New file.
76463
76464         Module exitfail.
76465         * m4/exitfail.m4: New file.
76466
76467         Module c-stack.
76468         * m4/c-stack.m4 (gl_C_STACK): New macro.
76469         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
76470
76471         Module error.
76472         * m4/error.m4 (gl_ERROR): New macro.
76473         (jm_PREREQ_ERROR): Use onceonly macros.
76474
76475         Module fatal.
76476         * m4/fatal.m4: New file.
76477
76478         Module getloadavg.
76479         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
76480         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
76481
76482         Module getpagesize.
76483         * m4/getpagesize.m4: New file.
76484
76485         Module getusershell.
76486         * m4/getusershell.m4: New file.
76487
76488         Module physmem.
76489         * m4/physmem.m4: New file.
76490
76491         Module posixver.
76492         * m4/posixver.m4: New file.
76493
76494         Module quotearg.
76495         * m4/quotearg.m4: New file.
76496
76497         Module quote.
76498         * m4/quote.m4: New file.
76499
76500         Module readutmp.
76501         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
76502
76503         Module sig2str.
76504         * m4/sig2str.m4: New file.
76505
76506         Other.
76507         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
76508         ulonglong.m4.
76509         * m4/intmax_t.m4: New file.
76510         * m4/d-type.m4: Indentation.
76511         * m4/jm-macros.m4: Update.
76512         * m4/prereq.m4 (jm_PREREQ): Update.
76513         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
76514         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
76515         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
76516         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
76517         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
76518         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
76519         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
76520         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
76521         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
76522         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
76523         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
76524         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
76525         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
76526         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
76527         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
76528         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
76529         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
76530         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
76531         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
76532
76533 2002-12-24  Bruno Haible  <bruno@clisp.org>
76534
76535         * MODULES.txt: Update according to m4/ changes.
76536
76537         Module gettext.
76538         * config.rpath: New file, from gettext-0.11.5.
76539
76540         * modules/*: New module descriptions.
76541         * gnulib-tool: New file.
76542         * MODULES.html.sh: New file.
76543
76544 2002-12-21  Karl Berry  <karl@gnu.org>
76545
76546         * doc/fdl.texi: update to version 1.2.
76547
76548 2002-12-19  Karl Berry  <karl@gnu.org>
76549
76550         * config/config.guess: update from prep.
76551
76552 2002-12-18  Bruno Haible  <bruno@clisp.org>
76553
76554         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
76555         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
76556
76557 2002-12-17  Bruno Haible  <bruno@clisp.org>
76558
76559         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
76560         stdlib.h, string.h.
76561
76562 2002-12-17  Bruno Haible  <bruno@clisp.org>
76563
76564         * lib/canon-host.c (strdup): Remove unused declaration.
76565
76566         * lib/fsusage.c: Include full_read.h.
76567         (get_fs_usage): Use full_read instead of safe_read.
76568
76569         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
76570
76571 2002-12-12  Karl Berry  <karl@gnu.org>
76572
76573         * config/config.guess: update from prep.
76574
76575 2002-12-11  Bruno Haible  <bruno@clisp.org>
76576
76577         * m4/setenv.m4: New file, from gettext-0.11.5.
76578
76579 2002-12-11  Bruno Haible  <bruno@clisp.org>
76580
76581         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
76582         not unsetenv().
76583         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
76584         modifications:
76585
76586         2002-12-11  Bruno Haible  <bruno@clisp.org>
76587
76588                 * setenv.c (alloca): Fall back to malloc.
76589                 (freea): New macro.
76590                 (setenv): Use freea() to free memory allocated with alloca().
76591
76592         2002-11-13  Bruno Haible  <bruno@clisp.org>
76593
76594                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
76595                 function declarations.
76596                 * unsetenv.c (unsetenv): Likewise.
76597
76598         2002-03-04  Bruno Haible  <bruno@clisp.org>
76599
76600                 Portability to AIX 4.3.3.
76601                 * unsetenv.c: New file, extracted from setenv.c.
76602                 * setenv.c: Move the unsetenv() function to unsetenv.c.
76603
76604         2001-12-20  Bruno Haible  <bruno@clisp.org>
76605
76606                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
76607                 use malloc instead. For SunOS 4.
76608
76609         2001-12-11  Bruno Haible  <bruno@clisp.org>
76610
76611                 * setenv.c: Declare alloca.
76612                 (compar_fn_t): New typedef.
76613                 (KNOWN_VALUE, STORE_VALUE): Use it.
76614
76615         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
76616         setenv.h.
76617
76618 2002-12-10  Paul Eggert  <eggert@twinsun.com>
76619
76620         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
76621         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
76622         Choose values that are less likely to collide with system fnmatch
76623         options.
76624         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
76625         defined (e.g., a pure POSIX system).
76626         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
76627         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
76628
76629 2002-12-06  Paul Eggert  <eggert@twinsun.com>
76630
76631         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
76632         a pain in practice to deal with generated m4 files.  This change
76633         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
76634
76635         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
76636         and jm-glibc-io.m4, as they are no longer a special case.
76637         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
76638         kludge and the auto-generation stuff.  Check only whether the
76639         functions are declared, not whether they exist, since older hosts
76640         that don't declare the functions can't use the optimization anyway.
76641
76642 2002-12-06  Jim Meyering  <jim@meyering.net>
76643
76644         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76645
76646         Merge in changes from libc's misc/error.c, in preparation
76647         for the merge of gnulib's changes back into libc.
76648
76649         * lib/error.c (_): Define only if not already defined.
76650         Move definition to follow all #include directives.
76651         Include unlocked-io.h only if !_LIBC.
76652         [_LIBC]: Include <libio/libioP.h>.
76653         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76654         (fflush): Tweak definition to use INTUSE.
76655         (putc): Define.
76656
76657 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76658
76659         * lib/alloca.c [defined emacs]: Include "lisp.h".
76660         (xalloc_die) [defined emacs]: New macro.
76661         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76662         [! defined emacs]: Include <xalloc.h>.
76663         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76664         (pointer): Typedef to POINTER_TYPE *.
76665         (malloc): Remove decl; we now always use xmalloc.
76666         (alloca): Use old-style definition, since Emacs needs this.
76667         Check for arithmetic overflow when computing combined size.
76668
76669 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76670
76671         Do not generate unlocked-io.h automatically, since it's easier to
76672         maintain it by hand.
76673
76674         * lib/unlocked-io.h: New file, from GNU diffutils,
76675         but with proper copyright notice and attribution.
76676         * lib/gen-uio: Remove.
76677         * lib/Makefile.am: Add copyright notice.
76678         (libfetish_a_SOURCES): Add unlocked-io.h.
76679         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76680         (DISTCLEANFILES, io_functions): Remove macros.
76681         (EXTRA_DIST): Remove gen_uio.
76682         (unlocked-io.h): Remove rule.
76683
76684 2002-12-04  Jim Meyering  <jim@meyering.net>
76685
76686         Reflect the fact that stat.c and lstat.c are no longer generated.
76687         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76688         (DISTCLEANFILES): Likewise.
76689         (EXTRA_DIST): Likewise.
76690         (all_local): Don't depend on stat.c or lstat.c.
76691         (stat.c, lstat.c): Remove rules.
76692         (EXTRA_DIST): Remove xstat.in.
76693
76694         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76695         * lib/stat.c: New file.  Contents mostly from xstat.in.
76696         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76697         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76698
76699         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76700         too.
76701         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76702
76703 2002-12-03  Jim Meyering  <jim@meyering.net>
76704
76705         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76706         but not semantics, to minimize the differences between these two files.
76707         (safe_read): Change comment to mention SAFE_READ_ERROR.
76708
76709         * lib/safe-read.c (IS_EINTR): Define.
76710         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76711
76712 2002-12-02  Jim Meyering  <jim@meyering.net>
76713
76714         * lib/safe-read.c (EINTR): Define.
76715         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76716         (INT_MAX): Provide fallback.
76717         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76718
76719         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76720
76721 2002-12-02  Bruno Haible  <bruno@clisp.org>
76722
76723         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76724         Define, taken from safe-read.c.
76725         (INT_MAX): Provide fallback.
76726         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76727         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76728
76729         * lib/safe-read.c (EINTR): Remove definition.
76730         (safe_read): Don't use EINTR if it is absent.
76731
76732 2002-12-01  Jim Meyering  <jim@meyering.net>
76733
76734         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76735         zero.
76736         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76737
76738 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76739
76740         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76741         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76742         with `if (! (value < limit)) abort ();', for readability.
76743
76744 2002-11-26  Karl Berry  <karl@gnu.org>
76745
76746         * lib/strdup.c: copy from libc again, with jim's ok.
76747         * lib/.cppi-disable: re-add strdup.c
76748
76749 2002-11-25  Karl Berry  <karl@gnu.org>
76750
76751         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76752         instead of "strtol.c".
76753
76754 2002-11-25  Karl Berry  <karl@gnu.org>
76755
76756         * config/install-sh: update from automake for variable quoting, $0 in
76757         error msgs, etc.
76758
76759         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76760         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76761         entry.
76762
76763 2002-11-25  Jim Meyering  <jim@meyering.net>
76764
76765         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76766
76767 2002-11-24  Karl Berry  <karl@gnu.org>
76768
76769         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76770         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76771
76772 2002-11-24  Jim Meyering  <jim@meyering.net>
76773
76774         Update from coreutils:
76775
76776         * lib/mktime.c: Merge in changes from libc.
76777
76778         Avoid a link-time failure on some Linux systems.
76779         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76780         (otherwise).
76781         (__mon_yday): Declare with the STATIC attribute.
76782         (__mktime_internal): Likewise.
76783         Based on a report from Greg Schafer.
76784
76785 2002-11-23  Jim Meyering  <jim@meyering.net>
76786
76787         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76788         Use `unsigned', not `int', as type of index.
76789
76790         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76791
76792         * lib/fsusage.c: Remove unneeded parentheses around operands of
76793         `defined'.
76794
76795 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76796
76797         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76798         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76799         so that we can be included first.
76800         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76801         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76802         No need to include stddef.h or sys/types.h any more.
76803         Surround local include files with "", not "<>".
76804         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76805         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76806         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76807         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76808         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76809         (ISPRINT): Remove; no longer needed now that we assume C89.
76810
76811         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76812         Preserve errno.
76813
76814         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76815         quotearg_char): Use SIZE_MAX rather than
76816         (size_t) -1 when we are talking about "infinity".
76817
76818         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76819
76820 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76821
76822         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76823         hint that one should use `if (! x) abort ();' rather than `assert
76824         (x);', and anyway it's one less thing to worry about configuring.
76825         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76826         hash_rehash, hash_insert): Use abort rather than assert.
76827
76828 2002-11-22  Bruno Haible  <bruno@clisp.org>
76829
76830         * lib/safe-read.h: Assume C89. Add comments.
76831         (safe_read): Change return type to size_t.
76832         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76833         byte counts > SSIZE_MAX correctly.
76834         * lib/safe-write.h: New file.
76835         * lib/safe-write.c: New file.
76836         * lib/full-read.h: New file.
76837         * lib/full-read.c: New file.
76838         * lib/full-write.h: Assume C89. Add comments.
76839         * lib/full-write.c: Include safe-write.h.
76840         (full_write): Rewritten to use safe_write.
76841         Suggested by Jim Meyering and Paul Eggert.
76842
76843 2002-11-21  Jim Meyering  <jim@meyering.net>
76844
76845         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76846
76847         Merge in changes from the coreutils.
76848
76849         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76850         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76851         <stdint.h>.
76852         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76853         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76854         int.  Work more efficiently if X is the same width as uintmax_t.
76855         Do not compare X to -1, to avoid bogus compiler warning.
76856         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76857         Don't assume that f_frsize and f_bsize are the same type.
76858
76859         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76860         warning on FreeBSD.
76861
76862         * lib/makepath.c (make_path): Restore umask *before* creating the final
76863         component.
76864         (make_path): Minor reformatting.
76865
76866         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76867         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76868         HAVE_MALLOC/HAVE_REALLOC.
76869
76870         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76871         dummy ones.  At least on GNU/Linux systems, `auto' means something
76872         else.
76873         From Michael Stone.
76874
76875 2002-11-21  Bruno Haible  <bruno@clisp.org>
76876
76877         Remove case insensitive option matching.
76878         * lib/argmatch.h (argcasematch): Remove declaration.
76879         (ARGCASEMATCH): Remove macro.
76880         (__xargmatch_internal): Remove case_sensitive argument.
76881         (XARGMATCH): Update.
76882         (XARGCASEMATCH): Remove macro.
76883         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76884         case_sensitive argument.
76885         (argcasematch): Remove function.
76886         (__xargmatch_internal): Remove case_sensitive argument.
76887         (main): Use XARGMATCH instead of XARGCASEMATCH.
76888
76889         * lib/xmalloc.c: Change compile-time error message. Add comment about
76890         required autoconf version.
76891
76892 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76893
76894         Merge argmatch cleanups from Bison.  Assume C89.
76895
76896         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76897         Include stdlib.h, for EXIT_FAILURE.
76898         Always include <string.h>, since we assume C89.
76899         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76900         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76901         Include <stddef.h> instead, since it's all we need for size_t.
76902         (PARAMS): Remove.  All uses removed.
76903         (ARRAY_CARDINALITY): Do not bother to #undef.
76904         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76905         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76906         Remove unnecessary parentheses.
76907         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76908         Insert necessary parentheses.
76909         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76910         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76911
76912 2002-11-19  Bruno Haible  <bruno@clisp.org>
76913
76914         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76915         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76916
76917         * lib/mbswidth.h (PARAMS): Remove macro.
76918         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76919         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76920
76921         * lib/gcd.h (PARAMS): Remove macro.
76922         (gcd): Use ANSI C function declarations.
76923         * lib/gcd.c (gcd): Likewise.
76924
76925 2002-11-15  Bruno Haible  <bruno@clisp.org>
76926
76927         * lib/strcspn.c: Include <stddef.h>.
76928         (strcspn): Use ANSI C function declaration. Change return type to
76929         size_t. Use NULL.
76930         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76931         (strpbrk): Use NULL.
76932         * lib/strpbrk.h (PARAMS): Remove macro.
76933         (strpbrk): Use ANSI C function declaration.
76934         * lib/strstr.c: Don't include <sys/types.h>.
76935         * lib/strstr.h (PARAMS): Remove macro.
76936         (strstr): Use ANSI C function declarations.
76937
76938 2002-11-14  Karl Berry  <karl@gnu.org>
76939
76940         * config/mkinstalldirs: `do' on separate line, instead of
76941         `for var; do'.
76942
76943 2002-11-06  Bruno Haible  <bruno@clisp.org>
76944
76945         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76946         * lib/gcd.c (gcd): Likewise.
76947
76948 2002-11-05  Bruno Haible  <bruno@clisp.org>
76949
76950         * lib/gcd.h: New file, from gettext-0.11.5.
76951         * lib/gcd.c: New file, from gettext-0.11.5.
76952
76953 2002-11-05  Bruno Haible  <bruno@clisp.org>
76954
76955         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76956         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76957         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76958         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76959
76960         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76961         <libintl.h>.
76962         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76963         <libintl.h>.
76964
76965         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76966         * lib/human.c: Include gettext.h instead of <libintl.h>.
76967         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76968         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76969         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76970         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76971         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76972         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76973         (textdomain): Remove definition.
76974         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76975
76976         * lib/long-options.c: Remove include of <libintl.h> and definition of
76977         _.
76978         * lib/same.c: Remove include of <libintl.h> and definition of _.
76979
76980 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76981
76982         * lib/config.charset: A few additions for Solaris.
76983
76984 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76985
76986         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76987         * lib/localcharset.c (locale_charset): Declare as extern "C".
76988
76989 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76990
76991         * lib/config.charset: msdos in uk_UA uses CP1125.
76992
76993 2002-11-04  Bruno Haible  <bruno@clisp.org>
76994
76995         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76996         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76997         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76998         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76999         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
77000
77001 2002-11-04  Bruno Haible  <bruno@clisp.org>
77002
77003         * lib/localcharset.c (locale_charset): Don't return an empty string.
77004
77005 2002-11-04  Bruno Haible  <bruno@clisp.org>
77006
77007         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
77008         aliases.
77009
77010 2002-11-04  Bruno Haible  <bruno@clisp.org>
77011
77012         * lib/config.charset: Update for newest glibc. Add canonical names
77013         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
77014
77015 2002-11-04  Bruno Haible  <bruno@clisp.org>
77016
77017         * lib/config.charset: Add support for NetBSD.
77018
77019 2002-11-04  Bruno Haible  <bruno@clisp.org>
77020
77021         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
77022
77023 2002-11-01  Bruno Haible  <bruno@clisp.org>
77024
77025         * configure.in: Add AC_CONFIG_AUX_DIR call.
77026         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
77027         test/Makefile.
77028         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
77029
77030 2002-09-28  Karl Berry  <karl@gnu.org>
77031
77032         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
77033         installed automake until the next release, since changes have been
77034         made.
77035
77036 2002-09-25  Karl Berry  <karl@gnu.org>
77037
77038         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
77039         * lib/getopt*: copy from libc/posix.
77040         * lib/gettext.h: copy from gettext.
77041         * lib/.cppi-disable: add strdup.c, gettext.h.
77042
77043 2002-09-25  Karl Berry  <karl@gnu.org>
77044
77045         * config/srclist.txt: enable gettext.h check.
77046         * config/config.{guess,sub}: update from prep.
77047         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
77048                 from automake 1.6.3.
77049         See srclist*.
77050
77051 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
77052
77053         * regex.c (PATFETCH): Remove the translating fetch.
77054         (PATFETCH_RAW): Rename to PATFETCH.
77055         (set_image_of_range): New fun.
77056         (SET_RANGE_TABLE_WORK_AREA): Use it.
77057         (regex_compile): Don't translate the pattern chars so eagerly.
77058         Only do it when inserting an `exactn' bytecode or when handling
77059         a char-range.
77060         (mutually_exclusive_p): Avoid empty statement.
77061
77062 2002-07-06  Jim Meyering  <meyering@lucent.com>
77063
77064         * m4/README: Don't mention Makefile.am.in.
77065         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
77066
77067 2002-07-01  Jim Meyering  <meyering@lucent.com>
77068
77069         * lib/c-stack.c: Include sys/time.h.
77070         From Volker Borchert.
77071
77072 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77073
77074         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
77075
77076 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77077
77078         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
77079         New macro.  Use it uniformly instead of
77080         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
77081         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
77082         reported by Vin Shelton.
77083
77084 2002-06-22  Paul Eggert  <eggert@twinsun.com>
77085
77086         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
77087         Do not assume SA_SIGINFO behavior.
77088         Bug reported by Jim Meyering on NetBSD 1.5.2.
77089
77090 2002-06-22  Jim Meyering  <meyering@lucent.com>
77091
77092         * m4/c-stack.m4: New file, from diffutils-2.8.2.
77093         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
77094
77095         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
77096         now that configure.ac uses AC_GNU_SOURCE.
77097         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
77098         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
77099
77100         Update to latest tools.  Suggestions from Paul Eggert.
77101         * m4/stdbool.m4: New file, from diffutils-2.8.2.
77102         * m4/gnu-source.m4: Update from diffutils-2.8.2.
77103         * m4/fnmatch.m4: Likewise.
77104         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
77105         to AC_HEADER_STDBOOL
77106
77107 2002-06-22  Jim Meyering  <meyering@lucent.com>
77108
77109         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
77110         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
77111
77112 2002-06-22  Jim Meyering  <meyering@lucent.com>
77113
77114         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
77115
77116         * lib/exitfail.c, exitfail.h: Likewise.
77117         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
77118
77119         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
77120         of fnmatch.h.
77121         (EXTRA_DIST): Add fnmatch_loop.c.
77122         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
77123
77124         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
77125         * lib/fnmatch.c: Update from diffutils-2.8.2.
77126         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
77127         * lib/fnmatch.h: Remove file.
77128
77129 2002-06-21  Jim Meyering  <meyering@lucent.com>
77130
77131         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
77132         * m4/mbrtowc.m4: Likewise.
77133
77134         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
77135         * m4/mbswidth.m4: Reflect name change:
77136         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
77137         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77138
77139         * m4/lib-link.m4: Update from gettext-0.11.2.
77140         * m4/gettext.m4: Likewise.
77141
77142         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
77143         From Alfred M. Szmidt.
77144
77145 2002-06-18  Paul Eggert  <eggert@twinsun.com>
77146
77147         * lib/file-type.h: Report an error if neither S_ISREG nor
77148         S_IFREG is defined, instead of using a test specific to glibc
77149         2.2.  This should be safe, since POSIX requires S_ISREG and
77150         Unix Version 7 had S_IFREG.  We don't need to check for
77151         <sys/types.h> since we don't use any symbols that it defines.
77152
77153 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
77154
77155         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
77156         $@-t, so that each temporary file name is unique and valid in the first
77157         8 characters, for operation under DOS.
77158
77159 2002-06-15  Paul Eggert  <eggert@twinsun.com>
77160
77161         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
77162
77163 2002-06-15  Jim Meyering  <meyering@lucent.com>
77164
77165         Work even with DJGPP 2.03, which lacks support for symlinks.
77166         From Richard Dawe.
77167         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
77168         is defined.
77169         * lib/lchown.c (S_ISLNK): Likewise.
77170
77171 2002-06-15  Jim Meyering  <meyering@lucent.com>
77172
77173         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
77174         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
77175         have been included before this file.
77176
77177 2002-06-14  Jim Meyering  <meyering@lucent.com>
77178
77179         * lib/file-type.h: Use the version from diffutils-2.8.2.
77180         * lib/file-type.c: Likewise.
77181
77182 2002-06-07  Jim Meyering  <meyering@lucent.com>
77183
77184         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
77185         They're needed at least for NetBSD 1.5.2.
77186         ($statxfs_includes): Include those same headers.
77187         ($statxfs_includes): Include sys/vfs.h if available.
77188         ($statxfs_includes): Likewise for sys/statvfs.h.
77189         Check for the following members in both structs statfs and statvfs:
77190         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
77191
77192 2002-06-01  Jim Meyering  <meyering@lucent.com>
77193
77194         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
77195         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
77196
77197 2002-05-28  Jim Meyering  <meyering@lucent.com>
77198
77199         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
77200         Reported by Volker Borchert.
77201
77202 2002-05-27  Jim Meyering  <meyering@lucent.com>
77203
77204         Fix a problem seen only on nonconforming systems whereby ls.c's
77205         use of localtime, and then of gettimeofday would cause trouble:
77206         the localtime call used to initialize rpl_gettimeofday's save
77207         mechanism would clobber ls's current local time information so
77208         that in any long listing the first file would always be listed
77209         with date 1970-01-01.  Analysis by Volker Borchert.
77210
77211         * lib/gettimeofday.c (localtime): Undefine.
77212         (rpl_localtime): New function.
77213
77214 2002-05-27  Jim Meyering  <meyering@lucent.com>
77215
77216         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
77217         localtime.
77218
77219         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
77220         use the replacement function; it wouldn't resolve at link time.
77221         Reported by Volker Borchert.
77222
77223 2002-05-22  Jim Meyering  <meyering@lucent.com>
77224
77225         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
77226         file-type.h.
77227         * lib/file-type.h: New file.
77228         * lib/file-type.c (file_type): New file/function.  Extracted from
77229         diffutils.
77230
77231 2002-04-30  Jim Meyering  <meyering@lucent.com>
77232
77233         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
77234
77235 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77236
77237         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
77238
77239 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77240
77241         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
77242         Do not check for alloca.h (no longer used) or stdbool.h (was never
77243         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
77244
77245 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77246
77247         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
77248
77249 2002-04-29  Jim Meyering  <meyering@lucent.com>
77250
77251         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
77252         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
77253         Use AC_FUNC_STRNLEN here instead.
77254
77255         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
77256         With autoconf-2.53a, it's part of AC_PROG_CC.
77257
77258 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77259
77260         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
77261         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
77262
77263 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77264
77265         * lib/sig2str.h, lib/sig2str.c: New files.
77266         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
77267
77268 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77269
77270         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
77271         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
77272         of 127, since 64 is the largest conceivable number for ancient
77273         nonstandard hosts.
77274         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
77275
77276 2002-04-28  Jim Meyering  <meyering@lucent.com>
77277
77278         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
77279
77280 2002-04-24  Jim Meyering  <meyering@lucent.com>
77281
77282         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
77283         (jm_PREREQ): Use it.
77284
77285         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
77286         mach/mach.h fcntl.h.
77287         Check for this function: setlocale.
77288
77289 2002-04-24  Jim Meyering  <meyering@lucent.com>
77290
77291         * lib/gettext.h: New file, from Gettext.
77292         * lib/Makefile.am (INCLUDES): Remove -I../intl.
77293         (libfetish_a_SOURCES): Add gettext.h.
77294
77295 2002-04-16  Jim Meyering  <meyering@lucent.com>
77296
77297         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
77298         ut_pid, ut_id, ut_exit.
77299
77300 2002-04-16  Jim Meyering  <meyering@lucent.com>
77301
77302         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
77303         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
77304         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
77305
77306 2002-04-12  Jim Meyering  <meyering@lucent.com>
77307
77308         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
77309         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
77310         existence of the getmntinfo function.  Needed for Darwin 5.3.
77311
77312         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
77313         This is necessary at least on Darwin 5.3.
77314
77315         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
77316         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
77317         strnlen.o in the library, and that makes some versions of ranlib
77318         object.
77319
77320 2002-04-12  Jim Meyering  <meyering@lucent.com>
77321
77322         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
77323
77324 2002-04-09  Jim Meyering  <meyering@lucent.com>
77325
77326         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
77327         to be more precise.  Rather than saying we're checking whether the
77328         function `works', say what we're testing.
77329         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
77330         Reported by Bruno Haible.
77331
77332 2002-03-10  Jim Meyering  <meyering@lucent.com>
77333
77334         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
77335         Suggestion from Santiago Vila.
77336
77337 2002-03-08  Jim Meyering  <meyering@lucent.com>
77338
77339         * lib/rename.c: Mention that this wrapper is needed also on
77340         mips-dec-ultrix4.4 systems.
77341
77342 2002-03-02  Jim Meyering  <meyering@lucent.com>
77343
77344         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
77345         not HAVE_CLOCK_SETTIME.
77346
77347 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77348
77349         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
77350         Check for clock_settime.
77351
77352 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77353
77354         * lib/nanosleep.h: Rename to....
77355         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
77356
77357         * lib/gettime.c: New file.
77358         * lib/settime.c: New file.
77359         * lib/stime.c: Remove.
77360
77361         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
77362         timespec.h.  Remove nanosleep.h.
77363
77364 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77365
77366         * m4/acl.m4: New file.
77367         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
77368         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
77369
77370 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77371
77372         * lib/acl.c, lib/acl.h: New files.
77373         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
77374
77375 2002-02-24  Jim Meyering  <meyering@lucent.com>
77376
77377         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
77378         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
77379         cause trouble.  Reported by Nelson Beebe.
77380
77381 2002-02-23  Paul Eggert  <eggert@twinsun.com>
77382
77383         * lib/path-concat.c (xpath_concat): Reorder code to pacify
77384         compilers that don't know that xalloc_die never returns.
77385
77386 2002-02-20  Jim Meyering  <meyering@lucent.com>
77387
77388         * lib/getdate.c: Regenerate using bison-1.33.
77389
77390 2002-02-17  Jim Meyering  <meyering@lucent.com>
77391
77392         * config/config.guess (main): Don't use `head -1'; it's no longer
77393         portable. Use `sed 1q' instead.
77394
77395 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
77396
77397         * m4/codeset.m4: Upgrade to gettext-0.11.
77398         * m4/gettext.m4: Upgrade to gettext-0.11.
77399         * m4/glibc21.m4: Upgrade to gettext-0.11.
77400         * m4/iconv.m4: Upgrade to gettext-0.11.
77401         * m4/isc-posix.m4: Upgrade to gettext-0.11.
77402         * m4/lcmessage.m4: Upgrade to gettext-0.11.
77403         * m4/lib-ld.m4: New file, from gettext-0.11.
77404         * m4/lib-link.m4: New file, from gettext-0.11.
77405         * m4/lib-prefix.m4: New file, from gettext-0.11.
77406         * m4/progtest.m4: Upgrade to gettext-0.11.
77407
77408 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77409
77410         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
77411         (jm_PREREQ): Use it.
77412
77413 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77414
77415         * lib/posixver.c, lib/posixver.h: New files.
77416         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77417
77418 2002-02-02  Paul Eggert  <eggert@twinsun.com>
77419             Bruno Haible  <bruno@clisp.org>
77420
77421         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
77422         (fwrite_success_callback): New declaration.
77423         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
77424         print_unicode_char. Call failure callback instead of error.
77425         (fwrite_success_callback): New function.
77426         (exit_failure_callback): New function.
77427         (fallback_failure_callback): New function.
77428         (print_unicode_char): Call unicode_to_mb.
77429
77430 2002-01-26  Jim Meyering  <meyering@lucent.com>
77431
77432         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
77433         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
77434
77435 2002-01-26  Jim Meyering  <meyering@lucent.com>
77436
77437         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
77438
77439 2002-01-22  Paul Eggert  <eggert@twinsun.com>
77440
77441         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
77442
77443 2002-01-22  Jim Meyering  <meyering@lucent.com>
77444
77445         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
77446         Otherwise, some versions of automake would omit the rule that makes
77447         Makefile from Makefile.in.
77448
77449 2002-01-21  Paul Eggert  <eggert@twinsun.com>
77450
77451         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
77452         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77453         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
77454         (memcoll): Set errno to zero if there is no error.
77455
77456         * lib/quotearg.c (quotearg_buffer_restyled):
77457         Fix bug with quoting buffers containing NUL when backslashing escapes.
77458         This bug was exposed by the other changes in this patch.
77459         (quotearg_n_options): New arg ARGSIZE.
77460         All callers changed.
77461         (quoting_options_from_style): New function.
77462         (quotearg_n_style): Use it.
77463         (quotearg_n_style_mem): New function.
77464
77465         * lib/quotearg.h (quotearg_n_style_mem): New function.
77466
77467 2002-01-19  Jim Meyering  <meyering@lucent.com>
77468
77469         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
77470         Remove useless quotes: DF_PROG="df".
77471         * m4/strnlen.m4: New file.
77472
77473 2002-01-16  Paul Eggert  <eggert@twinsun.com>
77474
77475         * lib/backupfile.c (ISDIGIT): Comment fix.
77476         * lib/getdate.y (ISDIGIT): Likewise.
77477         * lib/posixtm.c (ISDIGIT, year): Likewise.
77478         * lib/strverscmp.c (ISDIGIT): Likewise.
77479         * lib/userspec.c (ISDIGIT): Likewise.
77480
77481 2002-01-16  Jim Meyering  <meyering@lucent.com>
77482
77483         * lib/getdate.y: Add three semicolons, each just before a closing
77484         brace. Bison (as of version 1.31) no longer papers over that mistake.
77485
77486 2002-01-05  Jim Meyering  <meyering@lucent.com>
77487
77488         * lib/version-etc.c (version_etc_copyright): Update copyright year.
77489
77490 2001-12-19  Paul Eggert  <eggert@twinsun.com>
77491
77492         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
77493         not silently exit merely because the output buffer happens to
77494         have nothing pending.
77495
77496 2001-12-18  Paul Eggert  <eggert@twinsun.com>
77497
77498         See the big note in ../ChangeLog.
77499         * lib/human.c (suffixes): Prefer K to k for 1024.
77500         (generate_suffix_backwards): New function.
77501         (human_readable_inexact): Use it.
77502         * lib/xstrtol.c (__xstrtol): If there is no number but there
77503         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
77504         Accept 'K' as well as 'k'.
77505
77506 2001-12-15  Jim Meyering  <meyering@lucent.com>
77507
77508         * lib/regex.h (__restrict_arr): Update from libc.
77509
77510         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
77511         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
77512         (STREQ): Define.
77513
77514 2001-12-14  Jim Meyering  <meyering@lucent.com>
77515
77516         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
77517         Suggestion from Bruno Haible.
77518
77519 2001-12-10  Jim Meyering  <meyering@lucent.com>
77520
77521         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
77522         xrealloc, Instead, include "xalloc.h".
77523         (initbuffer): Don't cast xmalloc return value to char*.
77524         (readline): Reword comment.
77525         Don't cast xrealloc return value to char*
77526         Return NULL, not 0.
77527
77528 2001-12-09  Jim Meyering  <meyering@lucent.com>
77529
77530         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
77531         about `signed and unsigned type in conditional expression'.
77532         * lib/posixtm.c (posix_time_parse): Likewise.
77533
77534         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
77535
77536         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
77537         to avoid a pedantic warning.
77538
77539         * lib/getstr.c: Don't include assert.h.
77540         (getstr): Remove warning-evoking assertions.
77541         Return -1 if offset parameter is out of bounds.
77542         Change the type of a local from int to size_t.
77543
77544         * lib/strftime.c (my_strftime_localtime_r): Include this function
77545         definition in the `#if ! HAVE_TM_GMTOFF' block.
77546
77547         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
77548         Include xalloc.h instead.
77549
77550 2001-12-02  Jim Meyering  <meyering@lucent.com>
77551
77552         * lib/tempname.c: Don't declare getenv, thus reverting the change of
77553         2001-11-18.  It's no longer necessary, now that stdlib.h is always
77554         included.
77555
77556         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
77557         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
77558
77559 2001-11-30  Akim Demaille  <akim@epita.fr>
77560
77561         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
77562         before being defined.
77563
77564 2001-11-27  Paul Eggert  <eggert@twinsun.com>
77565
77566         * lib/quotearg.h (quotearg_n, quotearg_n_style):
77567         First arg is int, not unsigned.
77568         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
77569         (SIZE_MAX, UINT_MAX): New macros.
77570         (quotearg_n_options): Abort if N is negative.
77571         Avoid overflow check on hosts where size_t is 64 bits and int
77572         is 32 bits, as overflow is impossible there.
77573         Fix off-by-one typo that caused unnecessary reallocation.
77574
77575 2001-11-27  Jim Meyering  <meyering@lucent.com>
77576
77577         * lib/tempname.c: Merge with version from libc.
77578         * lib/regex.c: Likewise.
77579
77580         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
77581         systems for which STDC_HEADERS is 0, it was not included, resulting in
77582         a warning about an integer-to-pointer conversion problem with getenv.
77583         Reported by Volker Borchert.
77584
77585 2001-11-26  Jim Meyering  <meyering@lucent.com>
77586
77587         * lib/gtod.h: Remove file.
77588         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
77589         * lib/gettimeofday.c: Don't include gtod.h.
77590         (GTOD_init): Remove function.
77591         (rpl_gettimeofday): Do its job here instead, rather than aborting.
77592         Suggestion from Volker Borchert.
77593
77594 2001-11-23  Jim Meyering  <meyering@lucent.com>
77595
77596         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
77597         it.
77598         * lib/hash.c (struct hash_table): Define it here instead.
77599
77600 2001-11-22  Jim Meyering  <meyering@lucent.com>
77601
77602         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
77603
77604 2001-11-20  Jim Meyering  <meyering@lucent.com>
77605
77606         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
77607         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
77608
77609 2001-11-19  Jim Meyering  <meyering@lucent.com>
77610
77611         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
77612         directory.  Use "conftestXXXXXX" as the template.
77613         Suggestion from Paul Eggert.
77614
77615         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
77616         immediately, so the test doesn't mistakenly hit the max-open-files
77617         limit.
77618
77619 2001-11-18  Paul Eggert  <eggert@twinsun.com>
77620
77621         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
77622         (TEMPORARIES): New macro.
77623         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
77624         removes an artificial limitation (e.g. HP-UX 10.20, where
77625         TMP_MAX is 17576).
77626
77627 2001-11-18  Jim Meyering  <meyering@lucent.com>
77628
77629         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
77630
77631 2001-11-18  Jim Meyering  <meyering@lucent.com>
77632
77633         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
77634         on SunOS 4.
77635
77636         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
77637         files will be created before anything else.
77638
77639 2001-11-17  Paul Eggert  <eggert@twinsun.com>
77640
77641         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
77642         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
77643
77644 2001-11-17  Jim Meyering  <meyering@lucent.com>
77645
77646         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77647         Prompted by a report from Bob Proulx.
77648
77649         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77650         Instead, require UTILS_FUNC_MKSTEMP.
77651
77652 2001-11-17  Jim Meyering  <meyering@lucent.com>
77653
77654         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77655         Now, that's done as part of AC_FUNC_STRTOD.
77656
77657 2001-11-17  Jim Meyering  <meyering@lucent.com>
77658
77659         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77660         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77661         rather than group writable.  Patch by Juan F. Codagnone.
77662
77663         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77664         xrealloc, Instead, include "xalloc.h".
77665
77666         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77667         Remove explicit declarations of xmalloc, xrealloc,
77668         and xstrdup.  Instead, include "xalloc.h".
77669
77670         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77671         unlocked-io.h.
77672         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77673         Likewise.
77674         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77675
77676         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77677         Reported by Padraig Brady.
77678
77679         * lib/mkstemp.c: #undef mkstemp.
77680         Include config.h.
77681         (rpl_mkstemp): Rename from mkstemp.
77682         Protoize.
77683
77684 2001-11-16  Jim Meyering  <meyering@lucent.com>
77685
77686         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77687         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77688         determine the amount of total physical memory, use pstat_getstatic.
77689         HPUX-11 doesn't define _SC_PHYS_PAGES.
77690         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77691         If sysconf couldn't be used to determine the amount of available
77692         physical memory, use both pstat_getstatic and pstat_getdynamic.
77693         Based on a patch from Bob Proulx.
77694
77695 2001-11-10  Jim Meyering  <meyering@lucent.com>
77696
77697         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77698         (jm_PREREQ): Use it.
77699
77700 2001-11-09  Jim Meyering  <meyering@lucent.com>
77701
77702         * m4/jm-macros.m4: Require autoconf-2.52f.
77703         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77704         Use these AC_-prefixed names, not the AM_-prefixed ones.
77705
77706         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77707
77708 2001-11-05  Jim Meyering  <meyering@lucent.com>
77709
77710         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77711
77712 2001-11-04  Jim Meyering  <meyering@lucent.com>
77713
77714         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77715         $DEFS.
77716
77717 2001-11-03  Jim Meyering  <meyering@lucent.com>
77718
77719         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77720         of AC_DEFUN.
77721
77722         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77723         know the name of the variable in the macro definition.
77724
77725 2001-11-03  Jim Meyering  <meyering@lucent.com>
77726
77727         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77728         in argmatch_to_argument call.
77729
77730         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77731         argument.
77732
77733         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77734         e.g., a fault due to an attempt to free a NULL pointer.
77735
77736 2001-11-01  Jim Meyering  <meyering@lucent.com>
77737
77738         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77739         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77740
77741 2001-11-01  Jim Meyering  <meyering@lucent.com>
77742
77743         * lib/dirfd.c, lib/dirfd.h: New files.
77744         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77745
77746         * lib/hash.c (hash_print) [TESTING]: Clean up.
77747
77748 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77749
77750         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77751         to avoid a warning if -Wall.
77752
77753 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77754
77755         * README: New file
77756         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77757         (per RMS's instructions, this is now the canonical source)
77758         * lgpl/, gpl/: New directories.
77759
77760 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77761
77762         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77763
77764 2001-10-21  Jim Meyering  <meyering@lucent.com>
77765
77766         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77767         this code would end up calling gettext even in packages built
77768         with --disable-nls.
77769         * lib/getopt.c (_): Likewise.
77770         * lib/regex.c (_): Likewise.
77771
77772 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77773
77774         * m4/error.m4 (jm_PREREQ_ERROR):
77775         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77776         AC_FUNC_STRERROR_R does that.
77777         Check for strerror declaration.
77778
77779         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77780         are supposed to have them these days.
77781         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77782         Merge changes from latest Autoconf CVS.
77783         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77784         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77785         POSIX decided to standardize on the int flavor of strerror_r.
77786
77787 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77788
77789         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77790         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77791         Use strerror_r that is only a macro, even if it is not a function.
77792         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77793         (private_strerror): Use prototypes, not old-style function definition.
77794         (print_errno_message): New function.
77795         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77796         char*-flavored one.
77797         (error_tail, error, error_at_line): Use it.
77798
77799 2001-10-11  Jim Meyering  <meyering@lucent.com>
77800
77801         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77802         and quote_n (1, ... to avoid clobbering a buffer.
77803
77804 2001-10-05  Jim Meyering  <meyering@lucent.com>
77805
77806         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77807         hash-pjw.h.
77808         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77809         * lib/hash-pjw.h: New file.
77810
77811 2001-09-30  Jim Meyering  <meyering@lucent.com>
77812
77813         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77814         `struct fsstat' has the `f_fstypename' member.
77815         Use that to define FS_TYPE, which is now used to make
77816         the getfsstat link test tighter.
77817
77818 2001-09-30  Jim Meyering  <meyering@lucent.com>
77819
77820         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77821         Include <sys/ucred.h>, for Apple Darwin.
77822         Include sys/mount.h and sys/fs_types.h only if available.
77823         (FS_TYPE): Define.
77824         (read_filesystem_list): Use FS_TYPE.
77825
77826 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77827
77828         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77829         a boolean context.
77830
77831 2001-09-29  Jim Meyering  <meyering@lucent.com>
77832
77833         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77834         [one-argument getmntent function]): Include stdio.h before mntent.h.
77835         SunOS 4.1.x needs it for the declaration of `FILE'.
77836         Patch by Volker Borchert.
77837
77838         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77839         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77840         sys/fs_types.h, and make the link-test for getfsstat guard #include
77841         directives with appropriate #if HAVE_*_H tests so that we can
77842         detect getfsstat on Apple Darwin1.3.7 systems.
77843         Reported by Nelson Beebe.
77844         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77845
77846 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77847
77848         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77849         #defines strtoimax.  Also treat the other strto* functions
77850         like strtoimax.
77851
77852         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77853         Check for strtoul and strtoumax,
77854         as those declarations are made even in the signed case.
77855         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77856         Likewise, for strtol and strtoimax.
77857
77858 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77859
77860         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77861         #defines strtoimax.  Also treat the other strto* functions
77862         like strtoimax.
77863
77864         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77865         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77866         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77867
77868 2001-09-26  Jim Meyering  <meyering@lucent.com>
77869
77870         Most macros in unlocked-io.h had the wrong number of arguments.
77871         * lib/gen-uio: New script.
77872         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77873         * lib/unlocked-io.hin: Remove file.
77874         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77875         rather than trying to embed it here.
77876         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77877         Reported by Padraig Brady.
77878
77879 2001-09-25  Volker Borchert  <bt@teknon.de>
77880
77881         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77882         `result'.
77883
77884 2001-09-24  Jim Meyering  <meyering@lucent.com>
77885
77886         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77887
77888 2001-09-23  Jim Meyering  <meyering@lucent.com>
77889
77890         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77891         instead of the mere test for existence of mntent.h.  The latter
77892         would get a false-positive on AIX 3.4 systems.
77893         In the outer getmntent if-block, don't die if neither of the getmntent
77894         tests succeeds.  Instead, just fall through and continue with the
77895         remaining tests.
77896
77897 2001-09-23  Jim Meyering  <meyering@lucent.com>
77898
77899         * lib/mountlist.c: Remove useless parentheses in #if directives.
77900         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77901         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77902
77903 2001-09-22  Jim Meyering  <meyering@lucent.com>
77904
77905         * m4/gettext.m4: New file.  From gettext.
77906         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77907         * m4/progtest.m4: Likewise
77908         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77909         * m4/glibc21.m4: Likewise.
77910
77911         * m4/libintl.m4: Remove.  No longer used.
77912
77913 2001-09-22  Jim Meyering  <meyering@lucent.com>
77914
77915         * lib/localcharset.c: Update from latest gettext.
77916         * lib/config.charset: Likewise.
77917
77918 2001-09-20  Jim Meyering  <meyering@lucent.com>
77919
77920         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77921         strtoimax.
77922         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77923         strtoumax.
77924
77925 2001-09-20  Jim Meyering  <meyering@lucent.com>
77926
77927         * lib/xstrtol.c (strtoimax): Guard declaration with
77928         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77929         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77930         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77931         (strtoumax): Likewise, for completeness (it wasn't necessary).
77932
77933 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77934
77935         * lib/strtoimax.c (HAVE_LONG_LONG):
77936         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77937         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77938         to work around bug in IBM C compiler.
77939
77940 2001-09-17  Jim Meyering  <meyering@lucent.com>
77941
77942         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77943         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77944         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77945         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77946         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77947         whenever the right hand side need not be expanded by the shell.
77948
77949 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77950
77951         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77952         library.  It's not correct, as some older glibcs are buggy.
77953         fnmatch wasn't fixed until glibc 2.2.
77954
77955         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77956         special shell magic here.
77957
77958 2001-09-16  Jim Meyering  <meyering@lucent.com>
77959
77960         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77961         * m4/jm-macros.m4: Require it.
77962
77963 2001-09-16  Jim Meyering  <meyering@lucent.com>
77964
77965         * lib/mkdir.c: New file.
77966
77967 2001-09-15  Jim Meyering  <meyering@lucent.com>
77968
77969         * m4/jm-macros.m4: Check for help2man.
77970
77971 2001-09-11  Jim Meyering  <meyering@lucent.com>
77972
77973         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77974         The body, by Paul Eggert, was moved here from configure.in.
77975         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77976
77977 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77978
77979         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77980         (jm_PREREQ): Use it.
77981
77982 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77983
77984         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77985         Use ssize_t, not int, to store result of readlink.
77986         Check for ssize_t overflow as well as size_t overflow,
77987         as POSIX says the result of readlink is implementation-defined
77988         when ssize_t overflows.
77989         Remove unnecessary cast to char*.
77990         Use free+malloc instead of realloc, as the storage doesn't need
77991         to be preserved and it's clearer and can be more efficient that way.
77992         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77993         * lib/xreadlink.h (xreadlink): Update prototype.
77994
77995 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77996
77997         * lib/xgetcwd.c: Revert some of the previous change; intead,
77998         fix the HAVE_GETCWD_NULL code to behave more like the
77999         !HAVE_GETCWD_NULL code used to.
78000
78001         Include "xalloc.h".
78002         (xgetcwd): Do not return NULL when memory is exhausted; instead,
78003         invoke xalloc_die.
78004
78005 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78006
78007         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
78008         sys/param.h, as pathmax.h includes them.
78009
78010 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78011
78012         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
78013         (jm_PREREQ_XGETCWD): New macro.
78014
78015         * m4/getcwd.m4: New file.
78016
78017 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78018
78019         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
78020         like the HAVE_GETCWD_NULL code.
78021         Include pathmax.h if not HAVE_GETCWD.
78022         Do not include xalloc.h.
78023         (INITIAL_BUFFER_SIZE): New symbol.
78024         Do not use xmalloc / xrealloc, since the caller is responsible for
78025         handling errors.  Preserve errno around `free' during failure.
78026         Do not overrun buffer when using getwd.
78027
78028 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78029
78030         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
78031         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
78032         getcwd (NULL, 0).
78033
78034 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78035
78036         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
78037         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
78038         spotted by Jim Meyering.
78039
78040 2001-09-03  Jim Meyering  <meyering@lucent.com>
78041
78042         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
78043         failure.
78044
78045 2001-09-02  Jim Meyering  <meyering@lucent.com>
78046
78047         * lib/error.c: Update from GNU libc.
78048
78049 2001-09-01  Jim Meyering  <meyering@lucent.com>
78050
78051         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
78052         Used by df.
78053
78054 2001-09-01  Jim Meyering  <meyering@lucent.com>
78055
78056         * lib/xreadlink.c: New file.
78057         * lib/xreadlink.h: New file.
78058         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
78059         xreadlink.h.
78060
78061         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
78062         doesn't conflict with sparc Solaris 7's definition in
78063         /usr/include/sys/int_types.h.
78064
78065         * lib/exclude.c: Use `""', not `<>' to #include non-system header
78066         files.
78067         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
78068         and strncasecmp as r-values.  Unixware didn't have declarations.
78069
78070 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78071
78072         * lib/xstrtol.h: Add copyright notice.
78073         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
78074         LONGINT_INVALID_SUFFIX_CHAR.
78075
78076 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78077
78078         * lib/xstrtol.c (strtoimax): New decl.
78079
78080 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78081
78082         * lib/xgetcwd.c: Don't include pathmax.h.
78083         Include stdlib.h and unistd.h if available.
78084         Include xalloc.h.
78085         (xmalloc, xstrdup, free): Remove decls.
78086         (xgetcwd): Don't assume sizes fit in unsigned.
78087         Check for overflow when computing sizes.
78088         Simplify reallocation code.
78089
78090 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78091
78092         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
78093         a directory's st_size can have an arbitrary value, so the old
78094         usage could waste an arbitrary amount of memory.  All uses
78095         changed.
78096         * lib/savedir.h: Update prototype.
78097
78098 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78099
78100         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
78101
78102         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
78103         old strtoimax.c.
78104
78105         Also, make the following further changes to make this file's
78106         configuration more similar to that of strtol.c:
78107         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
78108         (strtoumax, uintmax_t, strtoull, strtol): Remove.
78109         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
78110         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
78111         changed to signed values.
78112
78113         And make the following changes as well:
78114         Fix copyright notice, as 1999 was missing.
78115         (verify): New macro.
78116         (strtoimax): Check sizes at compile-time, not run-time.
78117         Prefer strtol to strtoll if both work.
78118         (main): Remove; it was not that useful and was a pain to maintain.
78119
78120         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
78121
78122 2001-08-31  Jim Meyering  <meyering@lucent.com>
78123
78124         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
78125         Use an initial, malloc'd, buffer of length 128 rather than
78126         a statically allocated one of length 1024.
78127
78128 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78129
78130         Simplify code, partly by assuming autoconf 2.52 semantics.
78131
78132         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
78133
78134         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
78135         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
78136         All uses removed.
78137         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
78138         Move AC_REQUIRE to next-to-top level, to avoid confusion.
78139         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
78140         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
78141         jm_AC_HEADER_INTTYPES_H.
78142         * m4/jm-macros.m4 (jm_MACROS): Likewise.
78143
78144         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
78145
78146         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78147         Quote first arg of AC_DEFUN.
78148         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
78149         since they are needed to parse the include file even if we need
78150         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
78151         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
78152         but with opposite signedness.
78153
78154 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78155
78156         Merge 'exclude' changes from tar 1.13.22.
78157         This fixes one or two unlikely storage allocation overflow bugs,
78158         but doesn't change user-visible behavior otherwise.
78159
78160 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78161
78162         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
78163         (jm_PREREQ_EXCLUDE): New macro.
78164
78165 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78166
78167         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
78168         tm to be declared.
78169
78170 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78171
78172         * lib/hash.c: Remove '2001' from copyright notice.
78173
78174 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78175
78176         * lib/full-write.h: New file.
78177         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
78178         * lib/full-write.c: Correct credits, as cccp.c no longer
78179         exists and anyway it was so heavily changed from the old cccp
78180         code as to be unrecognizable.  Include full-write.h.
78181         (full_write): Return size_t, with short writes meaning failure.
78182         All callers changed.  This fixes a bug with large buffers
78183         on 64-bit hosts.
78184         * lib/utime.c: Include full-write.h.
78185
78186 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78187
78188         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
78189         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
78190         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
78191         Include if available.
78192         (<xalloc.h>): Include
78193         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
78194         (verify): New macro.  Use it to verify that EXCLUDE macros do not
78195         collide with FNM macros.
78196         (struct patopts): New struct.
78197         (struct exclude): Use it, as exclude patterns now come with options.
78198         (new_exclude): Support above changes.
78199         (new_exclude, add_exclude_file):
78200         Initial size must now be a power of two to simplify overflow checking.
78201         (free_exclude, fnmatch_no_wildcards): New function.
78202         (excluded_filename): No longer requires options arg, as the options
78203         are determined by add_exclude.  Now returns bool, not int.
78204         (excluded_filename, add_exclude):
78205         Add support for the fancy new exclusion options.
78206         (add_exclude, add_exclude_file): Now takes int options arg.
78207         Check for arithmetic overflow when computing sizes.
78208         (add_exclude_file): xrealloc might modify errno, so don't
78209         realloc until after errno might be used.
78210
78211         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
78212         New macros.
78213         (free_exclude): New decl.
78214         (add_exclude, add_exclude_file): Now takes int options arg.
78215         (excluded_filename): No longer requires options arg, as the options
78216         are determined by add_exclude.  Now returns bool, not int.
78217
78218 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78219
78220         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
78221
78222 2001-08-27  Jim Meyering  <meyering@lucent.com>
78223
78224         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
78225
78226         * lib/version-etc.c (N_): Remove definition.
78227         Revert most of last change.
78228         Instead, simply don't mark the `Copyright...' string for translation.
78229         Based on advice from Paul Eggert.
78230
78231         * lib/strtoxmax.c: Tweak comment.
78232
78233 2001-08-26  Jim Meyering  <meyering@lucent.com>
78234
78235         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
78236
78237         * m4/xstrtoimax.m4: New file.
78238         * m4/xstrtoumax.m4: Add comments explaining why we
78239         AC_REPLACE_FUNCS(strtol).
78240
78241 2001-08-26  Jim Meyering  <meyering@lucent.com>
78242
78243         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
78244         of copyright with `%s' so translators don't get an untranslated
78245         message in 2002.
78246         (COPYRIGHT_YEAR): Define.
78247         (version_etc): Use fprintf rather than fputs.
78248         Suggestion from Ulrich Drepper.
78249
78250         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
78251
78252         * lib/strtoll.c: New file, from GNU libc.
78253         * lib/xstrtoimax.c: New file.
78254
78255         * lib/xstrtol.h: Add xstrtoimax.
78256         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
78257         * lib/strtoimax.c: New file.  Likewise, but first define
78258         STRTOUXMAX_SIGNED.
78259
78260         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
78261         ...
78262         * lib/strtoxmax.c: ... then renamed to this.
78263
78264 2001-08-18  Paul Eggert  <eggert@twinsun.com>
78265
78266         * m4/inttypes.m4: Add AC_PREREQ(2.13).
78267         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
78268         (jm_AC_TYPE_INTMAX_T): New macro.
78269         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
78270
78271         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
78272
78273         * m4/longlong.m4: Renamed from ulonglong.m4.
78274         * m4/inttypes.m4: Renamed from inttypes_h.m4.
78275         * m4/uintmax_t.m4: Removed.
78276
78277 2001-08-13  Paul Eggert  <eggert@twinsun.com>
78278
78279         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
78280         Port to Solaris 8, where 'sed' requires a space after the 'r'
78281         command, and where sh dislikes "$/".  Clean up the spacing a bit.
78282         Redirect output to $tmp just once.
78283
78284 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
78285
78286         * lib/addext.c (<errno.h>): Include.
78287         (errno): Declare if not defined.
78288         (addext): Work correctly when pathconf returns -1 and leaves
78289         errno alone because there is no limit.  Also, work even if
78290         pathconf returns a value greater than SIZE_MAX.
78291
78292 2001-08-12  Jim Meyering  <meyering@lucent.com>
78293
78294         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
78295         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
78296         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
78297         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
78298         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
78299         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
78300         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
78301         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
78302         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
78303         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
78304         utime.m4, utimes.m4, xstrtoumax.m4:
78305         Quote the first argument in each use of AC_DEFUN.
78306
78307 2001-08-12  Jim Meyering  <meyering@lucent.com>
78308
78309         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
78310         Simply `return getcwd (NULL, 0);'.
78311         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
78312         Use 1300 as initial value for length, not PATH_MAX.
78313
78314         * lib/pathmax.h: Clean up cpp syntax.
78315
78316 2001-08-12  Jim Meyering  <meyering@lucent.com>
78317
78318         * lib/gettimeofday.c: New file.
78319         * lib/gtod.h: New file.
78320         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
78321
78322 2001-08-05  Jim Meyering  <meyering@lucent.com>
78323
78324         * m4/jm-macros.m4: Require autoconf-2.52.
78325
78326 2001-08-04  Jim Meyering  <meyering@lucent.com>
78327
78328         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
78329         stmt, to get in sync with glibc.
78330
78331 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78332
78333         The following changes are from gettext 0.10.39 as maintained by
78334         Bruno Haible.
78335
78336         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
78337         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
78338         with inverted sense.  All uses changed.
78339
78340         * lib/mbswidth.c: Don't include <limits.h>.
78341         Include <stdlib.h> and <string.h> unconditionally.
78342         (iswcntrl, mbsinit, ISCNTRL): New macros.
78343         (mbsnwidth): Use K&R style function declarations.
78344         Don't bother checking for MB_LEN_MAX == 1, since the compiler
78345         can optimize it when MB_CUR_MAX == 1.
78346         The width of control characters is zero, not 1.
78347
78348 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78349
78350         The following changes are from gettext 0.10.39 as maintained by
78351         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
78352
78353         * m4/codeset.m4: Upgrade to serial AM1.
78354         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
78355         all uses changed.  Quote first arg of AC_DEFUN.
78356         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
78357
78358         * m4/iconv.m4: Upgrade to serial AM2.
78359         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
78360         Add --with-libconv-prefix.
78361         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
78362         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
78363         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
78364         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
78365         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
78366
78367         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
78368         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
78369         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
78370         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
78371         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
78372         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
78373         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
78374         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
78375         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78376
78377         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
78378         string.h any more.
78379
78380         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
78381         not the default value.
78382
78383         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
78384         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
78385         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
78386         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
78387         Also check for iswcntrl, used for wcwidth fallback.
78388         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
78389         to Autoconf 2.13.
78390
78391 2001-08-03  Jim Meyering  <meyering@lucent.com>
78392
78393         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
78394         as it was in the original.  Reported by Paul Eggert.
78395
78396 2001-07-16  Jim Meyering  <meyering@lucent.com>
78397
78398         * m4/gettimeofday.m4: New file.
78399         Prompted by a report from Bernhard Baehr.
78400
78401 2001-07-15  Jim Meyering  <meyering@lucent.com>
78402
78403         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
78404         stuff. Now it's in ../Makefile.cfg.
78405
78406 2001-07-15  Jim Meyering  <meyering@lucent.com>
78407
78408         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
78409         (BUILT_SOURCES): Add unlocked-io.h.
78410         (io_functions): Define.
78411         (unlocked-io.h): New rule.
78412         (DISTCLEANFILES): Add unlocked-io.h.
78413         (all-local): Depend on unlocked-io.h, to ensure it is created.
78414
78415         * lib/unlocked-io.hin: New file
78416
78417         * lib/regex.c: Update from glibc.
78418
78419 2001-07-05  Jim Meyering  <meyering@lucent.com>
78420
78421         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
78422         recommendation.
78423         (libfetish_a_SOURCES): Put all .h files here instead.
78424         Remove a thus-exposed (better checks in automake) duplicate and
78425         two unnecessary .h files.
78426
78427 2001-07-04  Jim Meyering  <meyering@lucent.com>
78428
78429         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
78430         that generates jm-glibc-io.m4 so that it doesn't trigger any make
78431         distcheck failure.
78432
78433 2001-07-02  Jim Meyering  <meyering@lucent.com>
78434
78435         The following changes were prompted by suggestions from Bruno Haible.
78436
78437         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
78438         is now generated.
78439         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
78440         definition of EXTRA_DIST.
78441         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
78442         ensure that the generated file is created/updated whenever the list
78443         of $(unlocked_functions) is changed.
78444         (jm-glibc-io.m4): New rule.
78445         (unlocked-io.h): New rule -- currently unused.
78446
78447 2001-06-24  Jim Meyering  <meyering@lucent.com>
78448
78449         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
78450         unmatched right bracket, rather than kludging it with an extra,
78451         falsely-matching quote in a comment.  Patch by Akim Demaille.
78452
78453 2001-06-11  Jim Meyering  <meyering@lucent.com>
78454
78455         * lib/regex.c: Update from GNU libc.
78456
78457 2001-05-27  Jim Meyering  <meyering@lucent.com>
78458
78459         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
78460         Check for ut_type in struct utmp.
78461
78462 2001-05-27  Jim Meyering  <meyering@lucent.com>
78463
78464         * lib/readutmp.h (UT_TYPE): Define.
78465
78466 2001-05-24  Jim Meyering  <meyering@lucent.com>
78467
78468         * lib/argmatch.c: Include "quote.h".
78469         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
78470         quote function.  Reported by Göran Uddeborg.
78471
78472 2001-05-22  Jim Meyering  <meyering@lucent.com>
78473
78474         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
78475         now that we use the package-supplied version unconditionally.
78476         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
78477
78478 2001-05-21  Jim Meyering  <meyering@lucent.com>
78479
78480         * m4/regex.m4: Change a couple backticks to single quotes to avoid
78481         shell syntax errors.
78482
78483 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78484
78485         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
78486
78487 2001-05-20  Paul Eggert  <eggert@twinsun.com>
78488
78489         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
78490         Don't bother to check library strftime, since
78491         we'll be using our own my_strftime function anyway.
78492         Define my_strftime instead of strftime.
78493
78494 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
78495
78496         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
78497         which is not yet declared.
78498
78499 2001-05-15  Jim Meyering  <meyering@lucent.com>
78500
78501         * m4/regex.m4: Use proper quoting so brackets appear in the test
78502         program.
78503         Reported by, and with help from, Bruno Haible.
78504
78505 2001-05-13  Jim Meyering  <meyering@lucent.com>
78506
78507         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
78508         undefined.
78509
78510 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78511
78512         dirname code cleanup.  base_name now behaves more compatibly
78513         with POSIX basename when given file names that have trailing
78514         slashes, and similarly for dir_name.  Add new primitives
78515         base_len and dir_len.  Put the directory-name-related decls
78516         into dirname.h.
78517
78518         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
78519         * lib/backupfile.c (base_name): Likewise.
78520         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
78521         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
78522         * lib/makepath.c (strip_trailing_slashes): Likewise.
78523         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
78524         ISSLASH): Likewise.
78525         * lib/rename.c (strip_trailing_slashes): Likewise.
78526         * lib/same.c (base_name): Likewise.
78527         * lib/stripslash.c (ISSLASH): Likewise.
78528
78529         * lib/addext.c: Include <dirname.h> after size_t is defined.
78530         * lib/backupfile.c: Likewise.
78531
78532         * lib/addext.c (addext): Use base_len to trim redundant
78533         trailing slashes instead of doing it ourselves.
78534         But do not trim the last slash if it is not redundant.
78535
78536         * lib/backupfile.c (find_backup_file_name,
78537         max_backup_version): Use base_len instead of rolling it ourselves.
78538         Handle the case of "" and (on DOS) "C:" correctly.
78539
78540         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
78541         needed. Include <string.h>, <dirname.h>.
78542         (base_name): Allow file names ending in slashes, other than names
78543         that are all slashes.  In this case, return the basename followed
78544         by the slashes.  This is more general, and can be used in places
78545         where the original base_name purposely had an assertion failure.
78546         (base_len): New function.
78547
78548         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
78549         Do not include <assert.h>; no longer needed.
78550         Include xalloc.h.
78551         (memrchr): Remove decl.
78552         (dir_name_r): Remove.
78553         (dir_len): Renamed from dirlen.  All callers changed.
78554         Rewrite in terms of base_name, for simplicity and consistency.
78555         (dir_name): Never return NULL.  All callers changed.
78556         Do not include <stdlib.h> in test program; no longer needed.
78557         return 0; is fine for test program.
78558
78559         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
78560         New macros.
78561         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
78562
78563         * lib/path-concat.c (path_concat): Use base_len to compute
78564         base length, not strlen; this means we cannot rely on memcpy
78565         to null-terminate.
78566
78567         * lib/same.c (STREQ): Remove.
78568         (same_name): Handle the case where the basename ends in trailing '/'.
78569
78570         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
78571         a slash was stripped.  Do not strip the last slash after a
78572         file system prefix.
78573
78574 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78575
78576         * lib/Makefile.am (libfetish_a_SOURCES):
78577         Add strftime.c, since we now compile it on all hosts.
78578
78579         * lib/strftime.c (my_strftime):
78580         Define to nstrftime if emacs, but only if my_strftime is not defined.
78581         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
78582         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
78583         Add one more extra argument: a nanoseconds value.
78584         All uses changed.
78585         (ns): New macro.
78586         (my_strftime function): Add %N format.
78587         (emacs_strftimeu): Renamed from emacs_strftime,
78588         with extra ut argument.
78589
78590 2001-05-09  Paul Eggert  <eggert@twinsun.com>
78591
78592         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
78593
78594 2001-04-21  Jim Meyering  <meyering@lucent.com>
78595
78596         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
78597         doesn't interfere.
78598
78599 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78600
78601         * m4/ftruncate.m4: Check for chsize.
78602         Link with ftruncate.o unconditionally if ftruncate is missing.
78603         This was required when cross-compiling to i586-mingw32msvc.
78604
78605 2001-04-08  Jim Meyering  <meyering@lucent.com>
78606
78607         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
78608         recomputed; that's necessary when the offset spans a DST transition.
78609         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
78610
78611 2001-04-02  Jim Meyering  <meyering@lucent.com>
78612
78613         * lib/regex.h, regex.c: Update from GNU libc.
78614
78615 2001-03-24  Jim Meyering  <meyering@lucent.com>
78616
78617         * m4/jm-macros.m4: Require autoconf-2.49d.
78618
78619 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
78620
78621         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
78622
78623 2001-03-19  Paul Eggert  <eggert@twinsun.com>
78624
78625         * lib/version-etc.c (version_etc_copyright): Update to 2001.
78626
78627 2001-03-17  Jim Meyering  <meyering@lucent.com>
78628
78629         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
78630         now that the version in autoconf is equivalent.
78631         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
78632
78633         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
78634         Suggestion from Akim Demaille.
78635
78636         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
78637         (jm_PREREQ_TEMPNAME): New function.
78638
78639 2001-03-16  Paul Eggert  <eggert@twinsun.com>
78640
78641         * lib/tempname.c (uint64_t): Define to uintmax_t if
78642         not defined, and if UINT64_MAX is not defined.
78643         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78644         Reported by John David Anglin.
78645
78646 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78647
78648         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78649         resolve alias if codeset is empty.
78650         * lib/config.charset (BeOS): Use wildcard syntax.
78651
78652 2001-03-13  Jim Meyering  <meyering@lucent.com>
78653
78654         * lib/path-concat.c (path_concat)
78655         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78656         concatenating e.g., `C:' and `foo'.
78657         From Bruno Haible.
78658
78659 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78660
78661         * lib/localcharset.c (locale_charset): Don't use
78662         setlocale(LC_CTYPE,NULL). Don't return NULL.
78663         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78664
78665 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78666
78667         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78668         support for DOS/DJGPP.
78669
78670 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78671
78672         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78673         lacks mkstemp.  Compile our own tempname.c if we compile our own
78674         mkstemp.c, as mkstemp relies on tempname.
78675
78676 2001-03-01  Jim Meyering  <meyering@lucent.com>
78677
78678         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78679         AH_VERBATIM really does output its argument verbatim.
78680
78681 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78682
78683         * lib/Makefile.am (libfetish_a_SOURCES):
78684         Add dup-safer.c, fopen-safer.c.
78685         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78686
78687         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78688         * lib/unistd-safer.h: New files.
78689
78690 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78691
78692         The mkstemp replacement is taken from glibc 2.2.2, with some
78693         portability fixes for use outside glibc, as follows:
78694
78695         * lib/tempname.c (struct_stat64): New macro.
78696         (direxists, __gen_tempname): Use it.
78697         This avoids a portability problem with Solaris 8.
78698
78699         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78700         (<stddef.h>, <stdint.h>, <string.h>):
78701         Include only if STDC_HEADERS || _LIBC.
78702         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78703         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78704         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78705         (__set_errno): Define this macro if <errno.h> doesn't.
78706         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78707         Define these macros if <stdio.h> doesn't.
78708         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78709         Define these macros if <sys/stat.h>
78710         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78711         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78712         __xstat64): Define if not _LIBC.
78713         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78714         (__gen_tempname): Invoke gettimeofday only if
78715         HAVE_GETTIMEOFDAY || _LIBC;
78716         otherwise, fall back on plain "time".
78717         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78718
78719         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78720
78721         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78722
78723 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78724
78725         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78726
78727 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78728
78729         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78730         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78731         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78732         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78733
78734 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78735
78736         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78737         Remove workaround macros for hosts that have mbrtowc but not
78738         mbstate_t, as we now insist on proper declarations for both
78739         before using mbrtowc.
78740
78741 2001-02-17  Jim Meyering  <meyering@lucent.com>
78742
78743         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78744         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78745         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78746         UnixWare 7.1.1.
78747
78748         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78749         rather than AC_CACHE_VAL.
78750
78751 2001-02-17  Jim Meyering  <meyering@lucent.com>
78752
78753         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78754         around included file name.
78755
78756         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78757
78758         * lib/strftime.c: Update from GNU libc (the only changes were to
78759         comments).
78760
78761 2001-02-17  Jim Meyering  <meyering@lucent.com>
78762
78763         * lib/regex.c: Update from libc.
78764
78765 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78766
78767         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78768         clash.
78769
78770 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78771
78772         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78773         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78774         Reported by Mark Hounschell via Paul Eggert.
78775
78776 2001-02-07  Jim Meyering  <meyering@lucent.com>
78777
78778         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78779
78780 2001-02-05  Jim Meyering  <meyering@lucent.com>
78781
78782         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78783         it includes the patch required for `large file' support with at least
78784         HP-UX's 10.20 /bin/cc.
78785
78786 2001-02-03  Jim Meyering  <meyering@lucent.com>
78787
78788         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78789         AS_IF, now that it works once again (mysteriously).
78790         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78791
78792 2001-01-30  Jim Meyering  <meyering@lucent.com>
78793
78794         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78795         * m4/chown.m4: Rename conftestchown to conftest.chown.
78796         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78797         s/conftestdir2/conftest.d2/.
78798         * m4/utimes.m4: s/conftestdata/conftest.data/
78799         Inspired by Pavel Roskin's change in autoconf.
78800
78801 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78802
78803         * lib/config.charset: Update for FreeBSD 4.2.
78804
78805 2001-01-27  Jim Meyering  <meyering@lucent.com>
78806
78807         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78808         a use of AS_IF.
78809         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78810
78811 2001-01-26  Jim Meyering  <meyering@lucent.com>
78812
78813         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78814         quotearg.c includes it.
78815
78816 2001-01-26  Jim Meyering  <meyering@lucent.com>
78817
78818         * lib/quotearg.c: Include stddef.h.
78819         * lib/quote.c: Include stddef.h.
78820         Reported by Axel Kittenberger.
78821
78822         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78823         line in double quotes so that it evokes a better diagnostic.
78824         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78825         Reported by Axel Kittenberger.
78826
78827 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78828
78829         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78830         as if it was a `charset'.
78831
78832 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78833
78834         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78835         has const.
78836
78837 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78838
78839         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78840         to avoid a warning.  Add back 'const' to inptr.
78841
78842 2001-01-20  Jim Meyering  <meyering@lucent.com>
78843
78844         Be sure that headers are checked before used in code compiled
78845         for the type checks.
78846         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78847         In place of that, invoke jm_CHECK_ALL_TYPES.
78848         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78849         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78850         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78851         The check for ssize_t was mistakenly run before the test for unistd.h.
78852
78853         The configure-time check for stdbool.h was missing.
78854         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78855         (jm_PREREQ_HASH): New function.
78856
78857 2001-01-17  Jim Meyering  <meyering@lucent.com>
78858
78859         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78860         for autoconf-2.49c.
78861         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78862
78863 2001-01-16  Jim Meyering  <meyering@lucent.com>
78864
78865         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78866         From Bruno Haible.
78867
78868 2001-01-14  Jim Meyering  <meyering@lucent.com>
78869
78870         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78871         foo and bar.  Create conftestdir/ in the script, not in the C code.
78872         Remove directories in the script, not in the C code.
78873         Remove conftestdir{,2} before trying to create the directory.
78874         Make the entire configure script fail if the mkdir fails.
78875
78876 2001-01-14  Jim Meyering  <meyering@lucent.com>
78877
78878         * lib/rename.c: New file.  From Volker Borchert.
78879         Include stdlib.h, string.h or strings.h, and xalloc.h.
78880         Use strip_trailing_slashes rather than open-coding it.
78881
78882 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78883
78884         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78885
78886 2001-01-03  Jim Meyering  <meyering@lucent.com>
78887
78888         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78889         of local `inptr' to avoid warning with some system declarations of
78890         iconv.
78891
78892 2001-01-02  Volker Borchert  <bt@teknon.de>
78893
78894         * m4/rename.m4: New file.
78895         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78896
78897 2001-01-01  Jim Meyering  <meyering@lucent.com>
78898
78899         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78900         even on systems with utmpx.h.  It's necessary for the declaration of
78901         utmp's ut_user member.  Reported by Andreas Jaeger.
78902
78903         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78904         available. They are required for the declarations of getgrgid and
78905         getpwuid resp.
78906         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78907         Reported by Andreas Jaeger.
78908
78909 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78910
78911         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78912         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78913         so `make install' also works in VPATH builds.
78914
78915 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78916
78917         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78918         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78919         can be used in subdirectories.
78920
78921 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78922
78923         * lib/modechange.c: Do not assume that mode_t uses the
78924         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78925         the other-execute bit of FOO even if S_IXOTH != 1.
78926
78927         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78928         WOTH, XOTH, ALLM): New macros.
78929         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78930          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78931         Use them.
78932         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78933         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78934         (mode_compile):
78935         No need to use uintmax_t; unsigned long is long enough.
78936         Don't bother to get suffix since we don't use it.
78937
78938 2000-12-26  Jim Meyering  <meyering@lucent.com>
78939
78940         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78941         better with autoheader.
78942
78943 2000-12-24  Jim Meyering  <meyering@lucent.com>
78944
78945         * lib/hash.c (is_prime): Return explicit boolean values.
78946         (hash_get_first): Return NULL to appease Irix5.6's 89.
78947         Reported by Nelson Beebe.
78948
78949 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78950
78951         * lib/localcharset.c (locale_charset): Add support for Win32.
78952
78953 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78954
78955         * lib/physmem.h, lib/physmem.c: New files.
78956
78957         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78958         (noinst_HEADERS): Add physmem.h.
78959
78960         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78961         't' for compatibility with Solaris 8 sort.
78962
78963 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78964
78965         * lib/config.charset: Add support for BeOS.
78966
78967 2000-12-17  Jim Meyering  <meyering@lucent.com>
78968
78969         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78970         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78971
78972 2000-12-16  Jim Meyering  <meyering@lucent.com>
78973
78974         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78975         N and M) would have treated it like `chown N:N FILE'.
78976
78977         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78978
78979 2000-12-16  Jim Meyering  <meyering@lucent.com>
78980
78981         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78982         SHELLS_FILE to a file name that's useful on djgpp systems.
78983         Include stdlib.h.
78984         (ADDITIONAL_DEFAULT_SHELLS): Define.
78985         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78986         Based mostly on a patch from Prashant TR.
78987
78988 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78989
78990         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78991         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78992         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78993
78994 2000-12-08  Andreas Schwab  <schwab@suse.de>
78995
78996         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78997         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78998
78999 2000-12-07  Jim Meyering  <meyering@lucent.com>
79000
79001         * lib/stripslash.c (ISSLASH): Define.
79002         (strip_trailing_slashes): Use ISSLASH rather than comparing against
79003         `/'.
79004         From Prashant TR.
79005
79006         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
79007         (dir_name_r): Declare this function as static.
79008         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
79009         manifest itself on a name containing a mix of slashes and
79010         backslashes.
79011         Make this function work with names starting with a DOS-style
79012         drive letter and colon prefix.
79013         (dir_name): Append `.' if necessary.
79014         Based mostly on patches from Prashant TR and Eli Zaretskii.
79015
79016         * lib/dirname.h (dir_name_r): Remove prototype.
79017
79018 2000-12-06  Paul Eggert  <eggert@twinsun.com>
79019
79020         * m4/off_t-format.m4: Remove this file.
79021         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
79022
79023 2000-12-06  Jim Meyering  <meyering@lucent.com>
79024
79025         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
79026         replacement strtoull, we may well need the replacement strtoul, too.
79027         Check for declarations of strtoul and strtoull.
79028         Check for strtol.  Mainly as a cue to cause automake to include
79029         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
79030         Check for limits.h -- strtol.c needs it.
79031
79032 2000-12-05  Jim Meyering  <meyering@lucent.com>
79033
79034         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
79035
79036 2000-12-04  Jim Meyering  <meyering@lucent.com>
79037
79038         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
79039         Also include memory.h, stdlib.h, unistd.h if appropriate.
79040         Reported by Andreas Jaeger (conflicting declaration of malloc).
79041
79042 2000-12-02  Jim Meyering  <meyering@lucent.com>
79043
79044         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
79045         * m4/jm-macros.m4 (jm_MACROS): require it.
79046
79047 2000-12-02  Jim Meyering  <meyering@lucent.com>
79048
79049         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
79050
79051 2000-12-01  Paul Eggert  <eggert@twinsun.com>
79052
79053         * lib/memrchr.c: Include <config.h> before any system include file.
79054
79055 2000-11-30  Jim Meyering  <meyering@lucent.com>
79056
79057         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
79058
79059 2000-11-30  Jim Meyering  <meyering@lucent.com>
79060
79061         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
79062
79063 2000-11-29  Paul Eggert  <eggert@twinsun.com>
79064
79065         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
79066
79067 2000-11-26  Jim Meyering  <meyering@lucent.com>
79068
79069         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
79070
79071 2000-11-22  Paul Eggert  <eggert@twinsun.com>
79072
79073         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
79074         size of (size_t) -1; it's not portable.
79075
79076 2000-11-17  Jim Meyering  <meyering@lucent.com>
79077
79078         * lib/strstr.c: Update from GNU libc.
79079
79080 2000-11-17  Akim Demaille  <akim@epita.fr>
79081
79082         * lib/obstack.h: Formatting changes.
79083         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
79084         prevent type checking.
79085         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
79086         cast the value to (void *): assigning a `foo *' to a `void *'
79087         variable is valid.
79088         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
79089
79090 2000-11-16  Jim Meyering  <meyering@lucent.com>
79091
79092         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
79093
79094 2000-11-11  Jim Meyering  <meyering@lucent.com>
79095
79096         * lib/error.c: Add a couple #includes, merging from GNU libc version.
79097
79098 2000-11-10  Jim Meyering  <meyering@lucent.com>
79099
79100         * lib/obstack.h: Update from GNU libc.
79101         * lib/obstack.c: Likewise.
79102
79103 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
79104
79105         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
79106
79107 2000-11-06  Paul Eggert  <eggert@twinsun.com>
79108
79109         * lib/getusershell.c (setusershell): Use rewind rather than
79110         fseek/fseeko, to avoid configuration hassles with fseeko.
79111         Don't bother opening SHELLS_FILE if shellstream is NULL;
79112         it's not necessary.
79113
79114 2000-11-05  Jim Meyering  <meyering@lucent.com>
79115
79116         * lib/makepath.h (make_dir): Declare.
79117         * lib/makepath.c (make_dir): Remove `static' attribute.
79118         Tweak a comment.
79119
79120 2000-11-04  Jim Meyering  <meyering@lucent.com>
79121
79122         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
79123
79124 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
79125
79126         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
79127         last one in a bucket, advance to the next bucket.
79128
79129 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
79130
79131         * lib/fnmatch.c: Do not comment out all the code if we are using
79132         the GNU C library, because in some cases we are replacing buggy
79133         code in the GNU C library itself.
79134
79135 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
79136
79137         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
79138         (regex_compile): Catch bogus \(\1\).
79139
79140 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79141
79142         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
79143         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
79144         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
79145
79146 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79147
79148         * lib/error.h, getline.h, modechange.h:
79149         Remove "2000" from Copyright line, as the file hasn't been
79150         changed this year other than in the copyright notice.
79151
79152         * lib/xalloc.h: Add "2000" to Copyright line, as this file
79153         was changed this year.
79154
79155 2000-10-29  Jim Meyering  <meyering@lucent.com>
79156
79157         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
79158         renaming.
79159         * m4/ls-mntd-fs.m4: Likewise
79160
79161 2000-10-29  Jim Meyering  <meyering@lucent.com>
79162
79163         * lib/xstat.in: Fix grammar in comment.
79164
79165 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
79166
79167         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
79168         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
79169         doesn't define __restrict_arr.
79170
79171 2000-10-28  Jim Meyering  <meyering@lucent.com>
79172
79173         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
79174         (jm_PREREQ_MEMCHR): New function.
79175
79176 2000-10-28  Jim Meyering  <meyering@lucent.com>
79177
79178         * lib/memchr.c: Update from libc.
79179         Adjust for portability:
79180         [HAVE_STDLIB_H]: Include stdlib.h.
79181         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
79182         Undef __memchr, too.
79183         [!weak_alias]: Define __memchr to memchr.
79184
79185         * lib/regex.c: Update from libc.
79186         * lib/regex.h: Likewise.
79187         * lib/getopt1.c: Likewise.
79188         * lib/memcmp.c: Likewise.
79189
79190         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
79191         Avoid using fseek, when possible -- it's broken by design.
79192         Patch by Ulrich Drepper.
79193
79194 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
79195
79196         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
79197         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
79198         Giving in to popular pressure to shut up the compiler with casts.
79199
79200 2000-10-26  Jim Meyering  <meyering@lucent.com>
79201
79202         * lib/strftime.c: Update from libc.
79203
79204 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
79205
79206         * regex.c: More `unsigned char' -> `re_char' changes.
79207         Also change several `int' into `re_wchar_t'.
79208         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
79209         (PUSH_FAILURE_POINTER): Don't cast any more.
79210         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
79211         We want GCC to complain, since this piece of code makes
79212         re_match non-reentrant, which *should* be fixed.
79213         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
79214         (EXTEND_BUFFER): Use RETALLOC.
79215         (SET_LIST_BIT): Don't cast.
79216         (re_wchar_t): New type.
79217         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
79218         that those two functions will always properly return.
79219         (IMMEDIATE_QUIT_CHECK): Cast to void.
79220         (analyse_first): Use recursion rather than an explicit stack.
79221         (re_compile_fastmap): Can't fail anymore.
79222         (re_search_2): Don't check re_compile_fastmap for failure.
79223         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
79224         Now also sets the new value (passed in a new argument).
79225         (re_match_2_internal): Use it.
79226         Also, use a new var `reg' of type size_t when looping through regs
79227         rather than reuse the inappropriate `mcnt'.
79228
79229 2000-10-25  Jim Meyering  <meyering@lucent.com>
79230
79231         * lib/obstack.c: Update from libc.
79232
79233 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
79234
79235         * regex.c (regex_compile): Change the way of handling a range from
79236         a char less than 256 to a char not less than 256.
79237
79238 2000-10-24  Andrew Innes  <andrewi@gnu.org>
79239
79240         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
79241         NT-Emacs only.
79242         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
79243         so that re_search functions only quit when callers expect them to.
79244
79245 2000-10-23  Jim Meyering  <meyering@lucent.com>
79246
79247         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
79248         wrong.  That set_locale call must not have any side effects.
79249         From Paul Eggert.
79250
79251 2000-10-22  Jim Meyering  <meyering@lucent.com>
79252
79253         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
79254         [CYCLIC]: Remove now-unused definition.
79255
79256         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
79257         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
79258         Suggestion from Ulrich Drepper.
79259
79260 2000-10-21  Jim Meyering  <meyering@lucent.com>
79261
79262         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
79263         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
79264         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
79265
79266 2000-10-21  Jim Meyering  <meyering@lucent.com>
79267
79268         * lib/dirname.c (memrchr): Declare if necessary.
79269         (dir_name): Remove the restriction that there be no
79270         trailing slashes.  Now, this code skips past them, effectively
79271         ignoring them.
79272         [TEST_DIRNAME] (main): New unit tests.
79273
79274         * lib/memrchr.c: New file from GNU libc.
79275         Undef __memrchr, too.
79276         [!weak_alias]: Define __memrchr to memrchr.
79277         Guard weak_alias use with `#ifdef weak_alias'.
79278
79279 2000-10-21  Jim Meyering  <meyering@lucent.com>
79280
79281         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
79282         (dir_name): Use dir_name_r.
79283         * lib/dirname.h (dir_name_r): Declare it.
79284
79285 2000-10-17  Jim Meyering  <meyering@lucent.com>
79286
79287         * lib/quote.h (PARAMS): Define and use.
79288         Reported by Akim Demaille.
79289
79290         * lib/getopt.c: Update from libc.
79291
79292 2000-10-16  Jim Meyering  <meyering@lucent.com>
79293
79294         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
79295         setlocale.
79296         From Jan Fedak.
79297
79298 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
79299
79300         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
79301
79302 2000-09-25  Jim Meyering  <meyering@lucent.com>
79303
79304         * lib/md5.h (rol): Define (from GnuPG).
79305
79306         * lib/sha.c: Give credit (GnuPG) where due.
79307         (M): Use rol rather than open-coding it.
79308         Add a FIXME comment.
79309
79310 2000-09-21  Jim Meyering  <meyering@lucent.com>
79311
79312         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
79313         Reported by Michael Stone.
79314
79315 2000-09-20  Jim Meyering  <meyering@lucent.com>
79316
79317         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
79318         (noinst_HEADERS): Add sha.h.
79319         Based on code from Scott G. Miller and from GnuPG.
79320
79321 2000-09-18  Jim Meyering  <meyering@lucent.com>
79322
79323         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
79324         LIBS. Otherwise, everyone ends up linking with -lelf for some
79325         configurations.
79326         Reported by Mike Stone.
79327
79328 2000-09-15  Jim Meyering  <meyering@lucent.com>
79329
79330         * lib/regex.c: Update from libc.
79331
79332 2000-09-10  Jim Meyering  <meyering@lucent.com>
79333
79334         * lib/getopt.c (_getopt_internal): Update from glibc.
79335
79336 2000-09-09  Jim Meyering  <meyering@lucent.com>
79337
79338         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
79339         think it should be used as a general replacement for isascii.
79340         * lib/fnmatch.c: Likewise.
79341         * lib/mbswidth.c: Likewise
79342         * lib/regex.c: Likewise.
79343
79344         Don't use atoi.
79345         * lib/userspec.c: Include sys/param.h and limits.h.
79346         Include xstrtol.h.
79347         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79348         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
79349         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
79350         UID, GID.  Check range.
79351
79352 2000-09-06  Jim Meyering  <meyering@lucent.com>
79353
79354         * lib/getopt.c (_getopt_internal): Update from glibc.
79355
79356 2000-08-30  Jim Meyering  <meyering@lucent.com>
79357
79358         * lib/strftime.c: Merge in changes from GNU libc.
79359
79360 2000-08-26  Jim Meyering  <meyering@lucent.com>
79361
79362         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
79363         * m4/fpending.m4: New file.
79364
79365 2000-08-26  Jim Meyering  <meyering@lucent.com>
79366
79367         * lib/closeout.c: Include "__fpending.h".
79368         (close_stdout_status): Return right away if there's nothing to flush.
79369
79370         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
79371         * lib/__fpending.c: New file.
79372         * lib/__fpending.h: New file.
79373
79374 2000-08-20  Jim Meyering  <meyering@lucent.com>
79375
79376         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
79377         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
79378         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
79379
79380 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
79381
79382         Improve fileutils installation on systems where running
79383         programs (like install) can't be unlinked.
79384         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
79385         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
79386
79387 2000-08-07  Paul Eggert  <eggert@twinsun.com>
79388
79389         Standardize on "memory exhausted" instead of "Memory exhausted"
79390         or "virtual memory exhausted".
79391         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
79392         "virtual memory exhausted".
79393         * lib/same.c (same_name): Invoke xalloc_die instead of printing
79394         our own message.
79395         * lib/userspec.c (parse_user_spec): Likewise.
79396         * lib/bumpalloc.h: comment fix
79397         * lib/same.c, userspec.c: Include xalloc.h.
79398
79399         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
79400         not char *const and pointing to a constant array.
79401         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
79402         (xrealloc): Comment fix.
79403
79404         * lib/userspec.c (parse_user_spec):
79405         Don't translate a message until just before returning,
79406         to avoid unnecessary translation.
79407
79408 2000-08-07  Jim Meyering  <meyering@lucent.com>
79409
79410         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
79411         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
79412         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
79413         getgroups.c, gethostname.c, getopt.h, group-member.c,
79414         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
79415         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
79416         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
79417         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
79418         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
79419         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
79420         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
79421         yesno.c: Back out Copyright date changes for each file with no change
79422         this year.  This eases coordination with other programs using the same
79423         source code modules.  From Paul Eggert.
79424
79425 2000-08-06  Paul Eggert  <eggert@twinsun.com>
79426
79427         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
79428         not char, for compatibility with glibc 2.1.3 strftime.c.
79429
79430 2000-08-03  Greg McGary  <greg@mcgary.org>
79431
79432         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
79433         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
79434         (EXTEND_BUFFER): Use them.
79435
79436 2000-08-01  Jim Meyering  <meyering@lucent.com>
79437
79438         * lib/dirname.c (ISSLASH): Define.
79439         (BACKSLASH_IS_PATH_SEPARATOR): Define.
79440         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
79441         both `\' and `/' may be use as path separators.
79442         Based on a patch from Prashant TR.
79443
79444 2000-07-31  Paul Eggert  <eggert@twinsun.com>
79445
79446         * lib/quotearg.c (quotearg_n_options): Don't make the initial
79447         slot vector a constant, since it might get modified.
79448
79449 2000-07-31  Jim Meyering  <meyering@lucent.com>
79450
79451         * lib/xmalloc.c: Use `virtual memory exhausted', not
79452         `Memory exhausted'.
79453         * lib/obstack.c (print_and_abort): Likewise.
79454
79455 2000-07-30  Paul Eggert  <eggert@twinsun.com>
79456
79457         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
79458         buffer, so that the caller can always quote one small
79459         component of a "memory exhausted" message in slot 0.
79460         From a suggestion by Jim Meyering.
79461
79462 2000-07-30  Jim Meyering  <meyering@lucent.com>
79463
79464         * lib/makepath.c (make_path): Quote the other instance, too.
79465
79466         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
79467         (STATIC_BUF_SIZE): Define.
79468         (quotearg_n_options): Use only statically allocated storage when
79469         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
79470         than STATIC_BUF_SIZE.
79471
79472 2000-07-29  Jim Meyering  <meyering@lucent.com>
79473
79474         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
79475         * lib/dirname.c (dir_name): Likewise.
79476
79477         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
79478         `/'.
79479
79480         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
79481         (dir_name): Assert that there are no trailing slashes.
79482
79483 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
79484
79485         * lib/mbswidth.h (mbswidth): Add a flags argument.
79486         (mbswidth): New declaration.
79487         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
79488         * lib/mbswidth.c (mbswidth): Add a flags argument.
79489         (mbsnwidth): New function.
79490
79491 2000-07-24  Jim Meyering  <meyering@lucent.com>
79492
79493         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
79494
79495 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79496
79497         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
79498
79499 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79500
79501         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
79502         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
79503         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
79504         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
79505         invoke multibyte primitives.
79506
79507 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79508
79509         * lib/quotearg.c:
79510         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
79511         so that mbstate_t is always defined.
79512
79513         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
79514         be 1 in at least one GCC installation, and this configuration
79515         error is likely to be common.  Ignoring MB_LEN_MAX hurts
79516         performance on hosts that have mbrtowc but have only unibyte
79517         locales, but I assume these hosts are rare.
79518
79519 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79520
79521         * lib/mbswidth.c (_XOPEN_SOURCE):
79522         Don't define; this causes problems on Solaris 7.
79523         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
79524
79525 2000-07-23  Jim Meyering  <meyering@lucent.com>
79526
79527         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
79528         too: getgrgid, getpwuid, getuid.
79529
79530 2000-07-23  Jim Meyering  <meyering@lucent.com>
79531
79532         * lib/basename.c (base_name): Add an assertion.
79533
79534 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
79535
79536         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
79537         shadow its mbsinit function.
79538
79539 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79540
79541         * lib/mbswidth.h: New file.
79542         * lib/mbswidth.c: New file.
79543         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
79544         (noinst_HEADERS): Add mbswidth.h.
79545
79546 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79547
79548         * lib/config.charset: Add support for FreeBSD. Improve support for
79549         HP-UX and IRIX 6.
79550
79551 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
79552
79553         * m4/mbswidth.m4: New file.
79554         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
79555
79556 2000-07-15  Jim Meyering  <meyering@lucent.com>
79557
79558         * lib/makepath.c: Include quote.h.
79559         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
79560         corresponding argument in a `quote (...)' call.
79561         Give better diagnostics.
79562
79563         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
79564         (noinst_HEADERS): Add quote.h.
79565
79566         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
79567         from tar's src/misc.c.
79568         * lib/quote.h: New file.  Prototypes for same.
79569
79570 2000-07-14  Paul Eggert  <eggert@twinsun.com>
79571
79572         From a suggestion by Bruno Haible.
79573         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
79574         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
79575         to decide whether to define the BeOS workaround macro;
79576         this adjusts to the change to AC_MBSTATE_T.
79577
79578 2000-07-14  Jim Meyering  <meyering@lucent.com>
79579
79580         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
79581         jm_AC_TYPE_UINTMAX_T.
79582
79583 2000-07-13  Paul Eggert  <eggert@twinsun.com>
79584
79585         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
79586
79587         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
79588         quotearg_buffer_restyled): Add support for
79589         clocale_quoting_style.  Undo previous change to
79590         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
79591         and "{RIGHT QUOTATION MARK}" msgids.
79592
79593 2000-07-10  Paul Eggert  <eggert@twinsun.com>
79594
79595         From a suggestion by Bruno Haible.
79596         * m4/mbstate_t.m4 (AC_MBSTATE_T):
79597         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
79598         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
79599         and mbstate_t, to a single-part test that simply defines mbstate_t.
79600         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
79601         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
79602
79603 2000-07-10  Jim Meyering  <meyering@lucent.com>
79604
79605         * m4/strerror_r.m4: Mirror the correction made in autoconf.
79606
79607         * m4/gnu-source.m4: Output to confdefs.h directly.
79608         Suggestion from Akim Demaille.
79609
79610 2000-07-09  Paul Eggert  <eggert@twinsun.com>
79611
79612         The old behavior of quoting `like this' doesn't look good with
79613         newer, ISO-style fonts.  See:
79614         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
79615
79616         Instead, quote "like this" by default.  Let the translator
79617         tailor the locale-specific quoting behavior by providing
79618         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
79619
79620         * lib/quotearg.c (N_): New macro.
79621         (gettext_default): New function.
79622         (quotearg_buffer_restyled): Use
79623         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
79624         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
79625
79626 2000-07-09  Jim Meyering  <meyering@lucent.com>
79627
79628         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
79629         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
79630
79631         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
79632         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
79633
79634 2000-07-09  Jim Meyering  <meyering@lucent.com>
79635
79636         * lib/Most files: Update copyright dates to include 2000.
79637
79638 2000-07-08  Jim Meyering  <meyering@lucent.com>
79639
79640         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
79641         if not defined.
79642         (xgethostname): Remove now-unnecessary #ifdef.
79643         Move declaration of `err' into loop where it's used.
79644
79645 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79646         and Bruno Haible  <haible@clisp.cons.org>
79647
79648         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79649         only if the test for an object-type mbstate_t fails.  This
79650         prevents us from mistakenly reporting that mbstate_t is a
79651         system object type after we "#define mbstate_t int" to work
79652         around its lack.
79653
79654 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79655         and Bruno Haible  <haible@clisp.cons.org>
79656
79657         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79658
79659 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79660
79661         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79662         to strerror_r.
79663         Include <ctype.h> for use of isalpha.
79664
79665 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79666
79667         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79668         by allocating a larger buffer. Test the gethostname return value for
79669         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79670         returns an error and ENAMETOOLONG isn't defined.
79671
79672 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79673
79674         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79675         dimension.
79676
79677 2000-07-04  Jim Meyering  <meyering@lucent.com>
79678
79679         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79680         of the deprecated AC_CHECKING.
79681
79682 2000-07-04  Jim Meyering  <meyering@lucent.com>
79683
79684         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79685         Reported by Bruno Haible.
79686
79687 2000-07-04  Jim Meyering  <meyering@lucent.com>
79688
79689         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79690         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79691         lacks mbrtowc.
79692
79693 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79694
79695         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79696         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79697
79698 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79699         and Bruno Haible  <haible@clisp.cons.org>
79700
79701         * lib/quotearg.c (mbrtowc):
79702         Assign to *pwc, and return 1 only if result is nonzero.
79703         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79704
79705 2000-07-03  Jim Meyering  <meyering@lucent.com>
79706
79707         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79708
79709 2000-07-03  Jim Meyering  <meyering@lucent.com>
79710
79711         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79712         This is necessary to get a definition of e.g., UTMP_FILE on
79713         HP-UX 10.20.
79714         From Bob Proulx.
79715
79716 2000-07-02  Jim Meyering  <meyering@lucent.com>
79717
79718         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79719
79720         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79721         AC_LIBOBJ(function_name).
79722         * m4/chown.m4: Likewise.
79723         * m4/fnmatch.m4: Likewise.
79724         * m4/ftruncate.m4: Likewise.
79725         * m4/getgroups.m4: Likewise.
79726         * m4/getline.m4: Likewise.
79727         * m4/group-member.m4: Likewise.
79728         * m4/jm-macros.m4: Likewise.
79729         * m4/lstat.m4: Likewise.
79730         * m4/malloc.m4: Likewise.
79731         * m4/memcmp.m4: Likewise.
79732         * m4/nanosleep.m4: Likewise.
79733         * m4/putenv.m4: Likewise.
79734         * m4/realloc.m4: Likewise.
79735         * m4/regex.m4: Likewise.
79736         * m4/stat.m4: Likewise.
79737         * m4/strftime.m4: Likewise.
79738
79739 2000-07-02  Jim Meyering  <meyering@lucent.com>
79740
79741         * lib/quotearg.c (mbstate_t): Don't define here.
79742
79743 2000-07-02  Jim Meyering  <meyering@lucent.com>
79744
79745         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79746
79747 2000-07-01  Jim Meyering  <meyering@lucent.com>
79748
79749         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79750
79751 2000-07-01  Jim Meyering  <meyering@lucent.com>
79752
79753         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79754         problem.
79755
79756 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79757
79758         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79759         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79760
79761 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79762
79763         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79764         per change in ../m4/ls-mntd-fs.m4.
79765         (read_filesystem_list): Ignore symbolic links.
79766
79767 2000-06-29  Jim Meyering  <meyering@lucent.com>
79768
79769         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79770         for declaration of strcmp.
79771
79772         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79773
79774         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79775         Avoid warning by casting result to `char *' to remove `const'.
79776
79777 2000-06-28  Jim Meyering  <meyering@lucent.com>
79778
79779         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79780         included by quotearg.c, for which we perform this test.  From
79781         Bruno Haible.
79782
79783 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79784
79785         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79786         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79787         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79788
79789 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79790
79791         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79792
79793 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79794
79795         savedir now sets errno on failure and invokes xmalloc to get memory.
79796         Fix a couple of other minor bugs while we're at it.
79797
79798         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79799         (NAMLEN): Remove macro.
79800         (malloc, realloc): Remove decls.
79801         (stpcpy): Likewise.
79802         ("xalloc.h"): Include.
79803         (NAME_SIZE_DEFAULT): New macro.
79804         (savedir): Use xmalloc / xrealloc to allocate memory.
79805         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79806         Skip "" directory entries.
79807         Use strlen to calculate directory entry length, since the old method
79808         is rarely used these days and isn't worth supporting.
79809         Don't use a pointer after freeing it.
79810         Check for integer overflow when calculating allocation size.
79811         Use memcpy to copy entries, instead of stpcpy.
79812         Set errno properly when returning NULL.
79813         Check for readdir error.
79814
79815 2000-06-26  Jim Meyering  <meyering@lucent.com>
79816
79817         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79818
79819 2000-06-25  Jim Meyering  <meyering@lucent.com>
79820
79821         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79822         Linux header bug when _XOPEN_SOURCE is defined to 500.
79823
79824 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79825
79826         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79827         deficiency.
79828
79829 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79830
79831         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79832         Include xalloc.h.
79833         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79834
79835 2000-06-24  Jim Meyering  <meyering@lucent.com>
79836
79837         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79838         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79839         for which strerror does return char*, but which lacks a conveniently
79840         accessible declaration of the function.  If the compile-test says
79841         strerror_r doesn't work, then resort to a `run'-test that works on
79842         BeOS and segfaults on DEC Unix.
79843
79844 2000-06-24  Jim Meyering  <meyering@lucent.com>
79845
79846         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79847
79848 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79849
79850         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79851         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79852
79853 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79854
79855         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79856         (mbrtowc, mbstate_t): Define substitutes if
79857         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79858         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79859         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79860
79861 2000-06-23  Jim Meyering  <meyering@lucent.com>
79862
79863         * m4/afs.m4: Add missing AC_MSG_RESULT.
79864         Reported by Bruno Haible.
79865
79866         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79867         Suggestion from Bruno Haible.
79868
79869 2000-06-23  Jim Meyering  <meyering@lucent.com>
79870
79871         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79872
79873 2000-06-21  Jim Meyering  <meyering@lucent.com>
79874
79875         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79876
79877 2000-06-21  Jim Meyering  <meyering@lucent.com>
79878
79879         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79880         (noinst_HEADERS): Add getstr.h.
79881
79882         * lib/getline.c (getstr): Move into a separate file.
79883         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79884         the following changes: new parameter, delim2; both delim[12]
79885         parameters have type `int', not `char'.  The latter would lose
79886         with 8-bit delimiters.
79887         * lib/getstr.h: New file.
79888
79889 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79890
79891         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79892         than 1024, return a memory chunk of least possible size, instead
79893         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79894         Use free/xmalloc instead of xrealloc to avoid copying for very long
79895         paths.
79896
79897 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79898
79899         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79900         the empty string.
79901
79902 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79903
79904         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79905         address, not strdup.  Include <stdlib.h> and don't declare free().
79906
79907 2000-06-19  Jim Meyering  <meyering@lucent.com>
79908
79909         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79910
79911 2000-06-18  Jim Meyering  <meyering@lucent.com>
79912
79913         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79914
79915         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79916         `checking whether...' message to be consistent with that of the
79917         lstat test.
79918
79919 2000-06-18  Jim Meyering  <meyering@lucent.com>
79920
79921         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79922         Besides, these days every porting target provides a mkdir function.
79923
79924         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79925         needed. (this snippet comes from src/system.h).
79926
79927 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79928
79929         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79930
79931 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79932
79933         * lib/human.c (adjust_value): New function.
79934         (human_readable_inexact): Apply rounding style even when
79935         printing approximate values.
79936
79937 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79938
79939         * lib/human.c (human_readable_inexact): Allow an input block
79940         size that is not a multiple of the output block size, and vice versa.
79941         Reported by Piergiorgio Sartor.
79942
79943 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79944
79945         * lib/getdate.y (get_date): Apply relative times after time
79946         zone indicator, not before.  Reported by Todd A. Jacobs.
79947
79948 2000-06-13  Jim Meyering  <meyering@lucent.com>
79949
79950         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79951
79952         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79953
79954 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79955
79956         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79957
79958 2000-06-12  Jim Meyering  <meyering@lucent.com>
79959
79960         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79961         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79962         optional argument.
79963         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79964         the optional argument, `lib'.
79965
79966 2000-06-08  Jim Meyering  <meyering@lucent.com>
79967
79968         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79969
79970 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79971
79972         Rewrite largefile configuration so that we don't need to run
79973         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79974         AC_CANONICAL_HOST in configure.in -- jmm]
79975
79976         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79977         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79978         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79979         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79980         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79981         All uses changed.
79982         Instead of inspecting the output of getconf, try to compile the
79983         test program without and with the macro definition.
79984         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79985         for getconf.  Instead, check for the needed flags by compiling
79986         test programs.
79987
79988 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79989
79990         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79991
79992 2000-06-04  Jim Meyering  <meyering@lucent.com>
79993
79994         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79995         SunOS 4.1.4 for which gid_t is an unsigned type.
79996
79997 2000-06-03  Jim Meyering  <meyering@lucent.com>
79998
79999         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
80000         now that autoconf requires that.
80001
80002         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
80003         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
80004         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
80005
80006 2000-06-03  Jim Meyering  <meyering@lucent.com>
80007
80008         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
80009
80010 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80011
80012         * m4/glibc21.m4: New file.
80013         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
80014
80015 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80016
80017         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
80018         newer, don't install charset.alias.
80019         * lib/config.charset: Change the Linux/glibc rules so they become empty
80020         on glibc-2.1 or newer.
80021
80022 2000-06-02  Jim Meyering  <meyering@lucent.com>
80023
80024         * lib/mountlist.c: Back out last change.  Instead, do this...
80025         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
80026         me_dummy member using the same `ignore'-testing code.
80027         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
80028         fs_type strings.
80029         From Mark D. Roth.
80030
80031 2000-05-29  Jim Meyering  <meyering@lucent.com>
80032
80033         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
80034         mounts with the `ignore' attribute.  Based on a patch from
80035         Mark D. Roth.
80036
80037 2000-05-28  Jim Meyering  <meyering@lucent.com>
80038
80039         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
80040         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80041         * m4/stat.m4: Likewise.
80042         * m4/lstat.m4: Likewise.
80043         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
80044
80045         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
80046         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
80047
80048 2000-05-26  Jim Meyering  <meyering@lucent.com>
80049
80050         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
80051
80052 2000-05-24  Jim Meyering  <meyering@lucent.com>
80053
80054         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
80055         autoconf requires that.
80056         * m4/lib-check.m4: Likewise.
80057         * m4/jm-macros.m4: Likewise.
80058         * m4/strftime.m4: Likewise.
80059
80060         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
80061         AC_CHECK_DECLS, now that autoconf requires that.
80062
80063 2000-05-22  Jim Meyering  <meyering@lucent.com>
80064
80065         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80066         * m4/lstat.m4: Likewise.
80067
80068 2000-05-22  Jim Meyering  <meyering@lucent.com>
80069
80070         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
80071
80072 2000-05-20  Jim Meyering  <meyering@lucent.com>
80073
80074         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
80075         (jm_PREREQ): Use it.
80076
80077 2000-05-18  Jim Meyering  <meyering@lucent.com>
80078
80079         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
80080         back, too, since it may have been modified by allocate_entry.
80081         (hash_delete): Rewrite to use neither the assignment operator
80082         nor the comma operator in an if-expression.
80083
80084 2000-05-15  Paul Eggert  <eggert@twinsun.com>
80085
80086         * lib/closeout.c:
80087         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
80088         Remove; no longer needed.
80089         "quotearg.h": Add include.
80090         (file_name): Do not bother to explicitly initialize to NULL; it's less
80091         efficient on some hosts.
80092         (close_stdout_status): Remove test as to whether stdout was already
80093         closed; it breaks for the case "echo x | sort >&-".
80094         Quote file name colons.
80095         Do not assume that _("write error") lacks format strings.
80096
80097 2000-05-15  Jim Meyering  <meyering@lucent.com>
80098
80099         * lib/version-etc.c (version_etc_copyright): Update the copyright
80100         string used in all --version output.
80101
80102 2000-05-14  Jim Meyering  <meyering@lucent.com>
80103
80104         * lib/closeout.c (close_stdout_set_file_name): New function.
80105         (close_stdout_status): Use new file-scoped global.
80106         Return right away if fstat says the stdout file descriptor is invalid.
80107         * lib/closeout.h (close_stdout_set_file_name): Declare.
80108
80109 2000-05-10  Jim Meyering  <meyering@lucent.com>
80110
80111         * lib/closeout.c [default_exit_status]: New file-scoped variable.
80112         (close_stdout_set_status): New function.
80113         * lib/closeout.h (close_stdout_set_status): Declare.
80114
80115 2000-05-09  Jim Meyering  <meyering@lucent.com>
80116
80117         * m4/gettext.m4: Rename this...
80118         * m4/libintl.m4: ...to this.
80119
80120 2000-05-08  Jim Meyering  <meyering@lucent.com>
80121
80122         * lib/long-options.c: Don't include closeout.h.
80123         (parse_long_options): Don't call close_stdout for --version.
80124
80125 2000-05-06  Paul Eggert  <eggert@twinsun.com>
80126
80127         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
80128         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
80129         2.1.3 bug.  This avoids a clash when files like regex.c define
80130         _GNU_SOURCE.
80131
80132 2000-05-06  Jim Meyering  <meyering@lucent.com>
80133
80134         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
80135         (AC_REPLACE_FUNCS): Add strnlen.
80136
80137         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
80138         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
80139
80140         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
80141         AC_SEARCH_LIBS call for nanosleep.
80142         (LIB_NANOSLEEP): Set and AC_SUBST.
80143
80144 2000-05-06  Jim Meyering  <meyering@lucent.com>
80145
80146         * lib/strnlen.c: Undefine __strnlen and strnlen.
80147         [!weak_alias]: Define __strnlen to strnlen.
80148
80149         * lib/atexit.c: New file, from libiberty.
80150
80151 2000-05-06  Jim Meyering  <meyering@lucent.com>
80152
80153         * lib/closeout.c (close_stdout_status): Also check for errors on the
80154         stderr stream.
80155
80156 2000-05-05  Jim Meyering  <meyering@lucent.com>
80157
80158         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
80159         AC_SEARCH_LIBS call for clock_gettime.
80160         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
80161
80162         * m4/search-libs.m4: Update from autoconf.
80163
80164         su doesn't work on Solaris 2.6.
80165         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
80166         <shadow.h>.  Reported by Dragos Harabor.
80167
80168 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
80169
80170         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
80171         memcpy instead of xmalloc, xrealloc, path_concat.
80172         (locale_charset): Treat empty environment variables as absent.
80173         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
80174
80175 2000-05-04  Jim Meyering  <meyering@lucent.com>
80176
80177         * lib/getopt.c: Update from glibc.
80178         * lib/obstack.c: Likewise.
80179         * lib/obstack.h: Likewise.
80180         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
80181         file
80182
80183         * lib/regex.h: Likewise.
80184         * lib/strndup.c: Likewise.
80185         * lib/strnlen.c: New file, from glibc.
80186
80187 2000-05-03  Jim Meyering  <meyering@lucent.com>
80188
80189         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
80190
80191 2000-05-02  Paul Eggert  <eggert@twinsun.com>
80192
80193         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
80194         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
80195         compile-time test, rather than inspecting host and OS, to
80196         decide whether to define _LARGEFILE_SOURCE.
80197
80198 2000-05-01  Jim Meyering  <meyering@lucent.com>
80199
80200         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
80201
80202         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
80203         Based on a patch from Bruno Haible.
80204
80205 2000-05-01  Jim Meyering  <meyering@lucent.com>
80206
80207         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
80208
80209 2000-04-29  Jim Meyering  <meyering@lucent.com>
80210
80211         * lib/path-concat.c: Declare strdup only if it's not defined.
80212         * lib/canon-host.c: Likewise.
80213
80214 2000-04-28  Jim Meyering  <meyering@lucent.com>
80215
80216         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
80217         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
80218         is included first, then limits.h is included by locale.h by libintl.h.
80219         From John David Anglin.
80220
80221 2000-04-25  Jim Meyering  <meyering@lucent.com>
80222
80223         * lib/makepath.c (S_IRWXUGO): Define.
80224         (make_path): Always perform explicit chmod if MODE specifies any
80225         of the `special' permission bits.  Prompted by a bug report against
80226         install from Mate Wierdl and Joost van Baal.
80227
80228 2000-04-18  Jim Meyering  <meyering@lucent.com>
80229
80230         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
80231         (jm_PREREQ): Use it.
80232
80233 2000-04-18  Jim Meyering  <meyering@lucent.com>
80234
80235         * lib/README: New file.
80236
80237         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
80238         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
80239
80240 2000-04-17  Jim Meyering  <meyering@lucent.com>
80241
80242         Get it right :-)
80243         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
80244         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
80245         Suggestion from Akim Demaille.
80246
80247 2000-04-17  Jim Meyering  <meyering@lucent.com>
80248
80249         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
80250         the definition of it to rpl_strftime also defined-away the system's
80251         declaration.
80252
80253 2000-04-15  Jim Meyering  <meyering@lucent.com>
80254
80255         Use `C' to denote so-called `contiguous' files, the same way
80256         that tar does.
80257         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
80258         (ftypelet): Use S_ISCTG.
80259         From Michael Deutschmann.
80260
80261 2000-04-14  Jim Meyering  <meyering@lucent.com>
80262
80263         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
80264         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
80265         clobbered.
80266
80267 2000-04-14  Jim Meyering  <meyering@lucent.com>
80268
80269         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
80270
80271 2000-04-13  Jim Meyering  <meyering@lucent.com>
80272
80273         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
80274         AH_VERBATIM to insert required #ifndef into config.h.in.
80275         Suggestion from Akim Demaille.
80276
80277 2000-04-12  Jim Meyering  <meyering@lucent.com>
80278
80279         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
80280         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
80281         Christian Krackowizer.
80282
80283         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
80284         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
80285         (AC_SYS_LARGEFILE): Require.
80286         (AM_C_PROTOTYPES): Require.
80287
80288 2000-04-08  Jim Meyering  <meyering@lucent.com>
80289
80290         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
80291         names don't conflict.  Reported by Eli Zaretskii.
80292
80293 2000-04-07  Jim Meyering  <meyering@lucent.com>
80294
80295         * lib/putenv.c: Move inclusion of errno.h so it follows that of
80296         sys/types.h, to work around system header problems on AIX 3.2.5.
80297         From Bruno Haible.
80298
80299 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
80300
80301         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
80302         bug.  Deal with the different error behavior of Irix iconv.
80303
80304 2000-04-05  Paul Eggert  <eggert@twinsun.com>
80305
80306         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
80307         IRIX if the installer said otherwise.
80308
80309 2000-04-05  Jim Meyering  <meyering@lucent.com>
80310
80311         Portability tweaks required for ultrix4.3.
80312         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
80313         (jm_CHECK_DECLS): Add getutent to the list of functions.
80314         (_jm_DECL_HEADERS): Add utmpx.h.
80315         From John David Anglin.
80316
80317         * m4/strftime.m4: Back out the 2000-04-02 change.
80318         Instead of that change, simply undefine putenv in the test program.
80319
80320 2000-04-05  Jim Meyering  <meyering@lucent.com>
80321
80322         Portability tweaks required for ultrix4.3.
80323         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
80324         getutent.
80325         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
80326         * lib/canon-host.c: Declare strdup.
80327         * lib/path-concat.c: Likewise.
80328         From John David Anglin.
80329
80330 2000-04-04  Jim Meyering  <meyering@lucent.com>
80331
80332         Be more DOS 8.3-friendly.
80333         * lib/ref-add.sin: Renamed from ref-add.sed.in.
80334         * lib/ref-del.sin: Renamed from ref-del.sed.in.
80335         * lib/Makefile.am: Reflect renaming.
80336         Reported by Eli Zaretskii.
80337
80338         Use a temporary file name that won't clash with `charset.alias'
80339         in the DOS 8.3 name space.
80340         * lib/Makefile.am (charset_tmp): Define.
80341         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
80342         (uninstall-local): Likewise.
80343         Reported by Eli Zaretskii.
80344
80345 2000-04-03  Jim Meyering  <meyering@lucent.com>
80346
80347         * m4/gettext.m4: Fix typo in comment.
80348
80349         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
80350         textutils/configure.in).  Suggestion from Paul Eggert.
80351         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
80352
80353 2000-04-02  Paul Eggert  <eggert@twinsun.com>
80354
80355         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
80356         variable in the shell rather than using putenv, which isn't
80357         portable.  This avoids the configure-time inter-test dependency
80358         on the potentially-renamed putenv function.
80359
80360 2000-03-30  Paul Eggert  <eggert@twinsun.com>
80361
80362         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
80363         before checking struct stat.st_blksize, so that
80364         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
80365
80366 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80367
80368         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
80369         since strftime.c uses HAVE_STRFTIME to decide whether to use
80370         the underlying strftime.
80371
80372 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80373
80374         * lib/time/strftime.c (my_strftime): Make sure we call the system
80375         strftime, not ourselves, when invoking the underlying strftime.
80376
80377 2000-03-24  Jim Meyering  <meyering@lucent.com>
80378
80379         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
80380         (charset_alias): Define.
80381         (install-exec-local): Factor out common code.
80382         (uninstall-local): Split lines longer than 80.
80383         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
80384         (SUFFIXES): Define.
80385         (.sed.in.sed): New rule.  Don't redirect directly to $@.
80386         (CLEANFILES): Add ref-add.sed and ref-del.sed.
80387
80388 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
80389
80390         * lib/config.charset: Output a line containing "Packages using this
80391         file".
80392         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
80393         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
80394         ref-del.sed): New rules.
80395
80396 2000-03-17  Jim Meyering  <meyering@lucent.com>
80397
80398         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
80399         Otherwise, include <strings.h>
80400
80401 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
80402
80403         * lib/unicodeio.c (utf8_wctomb): New function.
80404         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
80405         format instead of in UCS-4 with platform dependent endianness.
80406
80407 2000-03-10  Jim Meyering  <meyering@lucent.com>
80408
80409         * m4/lib-check.m4: Look for getspnam in -lgen, too.
80410         From Marco Franzen.
80411
80412 2000-03-07  Paul Eggert  <eggert@twinsun.com>
80413
80414         * lib/savedir.c (savedir): Work even if directory size is
80415         negative; this can happen with some screwy NFS configurations.
80416
80417 2000-03-06  Jim Meyering  <meyering@lucent.com>
80418
80419         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
80420         if it's NULL (because we ran out of memory).  From Bruno Haible.
80421
80422 2000-03-05  Jim Meyering  <meyering@lucent.com>
80423
80424         * lib/localcharset.c ("path-concat.h"): Include.
80425         (get_charset_aliases): Use path_concat instead of ANSI string
80426         concatenation.
80427
80428         * lib/unicodeio.h (PARAMS): Define.
80429         Use it to guard prototype.
80430
80431 2000-03-04  Jim Meyering  <meyering@lucent.com>
80432
80433         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
80434         for lib/localcharset.c.
80435
80436 2000-03-04  Jim Meyering  <meyering@lucent.com>
80437
80438         * lib/Makefile.am (install-exec-local): Create $(libdir) before
80439         installing into it.
80440         (uninstall-local): Uncomment this rule so `make distcheck' works
80441         once again.
80442
80443         * lib/unicodeio.c (<errno.h>): Include it.
80444         (errno): Declare if not defined.
80445
80446         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
80447
80448         * lib/config.charset: New version, incorporating remarks from a linux
80449         i18n mailing list.  From Bruno Haible.
80450
80451 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
80452
80453         * m4/codeset.m4: New file.
80454         * m4/iconv.m4: New file.
80455         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
80456
80457 2000-03-03  Jim Meyering  <meyering@lucent.com>
80458
80459         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
80460
80461 2000-03-02  Jim Meyering  <meyering@lucent.com>
80462
80463         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
80464         the messages come out on separate lines.
80465
80466         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
80467         rather than jm_CHECK_DECLARATIONS.
80468         * m4/decl.m4: Remove now-unused file.
80469
80470         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
80471         geteuid.
80472
80473 2000-03-02  Jim Meyering  <meyering@lucent.com>
80474
80475         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
80476
80477 2000-03-01  Jim Meyering  <meyering@lucent.com>
80478
80479         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
80480         * lib/unicodeio.c: Likewise.
80481
80482 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
80483
80484         * lib/config.charset: New file.
80485         * lib/localcharset.c: New file.
80486         * lib/unicodeio.h, lib/unicodeio.c: New files.
80487         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
80488         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
80489         (noinst_HEADERS): Add unicodeio.h.
80490         (all-local, install-exec-local, charset.alias): New targets.
80491
80492 2000-02-28  Paul Eggert  <eggert@twinsun.com>
80493
80494         * lib/quotearg.c (ALERT_CHAR): New macro.
80495         (quotearg_buffer_restyled): Use it.
80496
80497 2000-02-27  Jim Meyering  <meyering@lucent.com>
80498
80499         * m4/check-decl.m4: Add getenv to the list.
80500
80501 2000-02-27  Jim Meyering  <meyering@lucent.com>
80502
80503         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
80504         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
80505
80506         * lib/backupfile.c: Guard inclusion of stdlib.h with
80507         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
80508         Declare malloc if needed.
80509
80510         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
80511         `#ifndef HAVE_DECL..'
80512         now that autoconf always defines the HAVE_DECL_ symbols.
80513         * lib/human.c: Likewise.
80514         * lib/same.c: Likewise.
80515         * lib/strtoumax.c: Likewise.
80516
80517         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
80518         declaration check was not run.
80519         * lib/hash.c: Likewise.
80520         * lib/human.c: Likewise.
80521         * lib/same.c: Likewise.
80522         * lib/strtoumax.c: Likewise.
80523
80524         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
80525         `.', then first look up the entire `.'-containing string as a login
80526         name.
80527
80528 2000-02-23  Jim Meyering  <meyering@lucent.com>
80529
80530         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
80531         in place of my hack.
80532
80533 2000-02-18  Paul Eggert  <eggert@twinsun.com>
80534
80535         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
80536         (textint): New typedef.
80537         (parser_control): Member year changed from int to textint.
80538         All uses changed.
80539         (YYSTYPE): Removed; replaced by %union with int and textint members.
80540         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
80541         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
80542         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
80543         (tSNUMBER, tUNUMBER): Now of type <textintval>.
80544         (date, number, to_year): Use width of number in digits, not its value,
80545         to determine whether it's a 2-digit year, or a 2-digit time.
80546         (yylex): Store number of digits of numeric tokens.
80547         Reported by John Kendall.
80548
80549         (parser_control): Changed from struct parser_control to typedef (for
80550         consistency).  All uses changed.
80551
80552         (tID): Removed; not used.
80553         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
80554
80555 2000-02-14  Paul Eggert  <eggert@twinsun.com>
80556
80557         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
80558         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
80559
80560 2000-02-12  Jim Meyering  <meyering@lucent.com>
80561
80562         * lib/userspec.c (ISDIGIT): Define it.
80563         (isdigit): Remove definition.
80564         (is_number): Use ISDIGIT, not isdigit.
80565         <libintl.h>: Include.
80566         (_ and N_): Define.
80567         (parse_user_spec): Mark translatable strings.
80568
80569 2000-02-10  Jim Meyering  <meyering@lucent.com>
80570
80571         With these changes, nanosleep.[ch] are finally enough like the other
80572         lib/* replacement files to compile on a few more losing systems.
80573
80574         * lib/nanosleep.h: Don't include config.h.
80575         Remove prototype from declaration of nanosleep.
80576         (PARAMS): Remove now-unneeded definition.
80577         * lib/nanosleep.c: #undef nanosleep.
80578         (rpl_nanosleep): Rename from nanosleep.
80579
80580 2000-02-10  Jim Meyering  <meyering@lucent.com>
80581
80582         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
80583         gnu_nanosleep to rpl_nanosleep.
80584
80585 2000-02-09  Jim Meyering  <meyering@lucent.com>
80586
80587         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
80588         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
80589
80590 2000-02-08  Akim Demaille  <akim@epita.fr>
80591
80592         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
80593         `[' and `]' and remove uses of `changequote'.
80594         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
80595         (AC_SYS_LARGEFILE): Likewise.
80596         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
80597         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
80598         of changequote.
80599         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
80600         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
80601         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
80602         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
80603
80604 2000-02-05  Jim Meyering  <meyering@lucent.com>
80605
80606         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
80607         Remove explicit use of AC_HEADER_TIME.  It is required by
80608         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
80609         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
80610         in autoconf whereby the expansion of the latter ended up preceding
80611         the expansion of its prerequisite, AC_HEADER_TIME.
80612         Reported by Volker Borchert.
80613
80614 2000-02-03  Jim Meyering  <meyering@lucent.com>
80615
80616         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
80617
80618 2000-02-03  Jim Meyering  <meyering@lucent.com>
80619
80620         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
80621         rather than with `#if HAVE_UTMPNAME'.
80622
80623 2000-02-02  Jim Meyering  <meyering@lucent.com>
80624
80625         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
80626         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
80627         Reported by Eli Zaretskii.
80628
80629 2000-02-01  Jim Meyering  <meyering@lucent.com>
80630
80631         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
80632
80633 2000-01-31  Jim Meyering  <meyering@lucent.com>
80634
80635         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
80636         functions.  Add the time.h and sys/time.h headers along with the
80637         AC_REQUIRE'ment of AC_HEADER_TIME.
80638
80639 2000-01-31  Jim Meyering  <meyering@lucent.com>
80640
80641         * lib/nanosleep.h (nanosleep): Guard declaration with
80642         `#if ! HAVE_DECL_NANOSLEEP'.
80643         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80644         the declaration in that vendor's sys/timers.h.
80645         Reported by Christian Krackowizer.
80646
80647         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80648         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80649         (ISPRINT): Likewise.
80650         Reported by Tom Tromey.
80651
80652 2000-01-30  Jim Meyering  <meyering@lucent.com>
80653
80654         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80655
80656         * m4/prereq.m4 (utmp_includes): Define.
80657         Check for ut_user and ut_name members in both struct utmpx
80658         and struct utmp.
80659
80660 2000-01-30  Jim Meyering  <meyering@lucent.com>
80661
80662         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80663         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80664         header files where only utmpx.ut_user is declared.
80665
80666         * lib/readutmp.h (UT_USER): Define.
80667
80668 2000-01-29  Jim Meyering  <meyering@lucent.com>
80669
80670         * m4/lib-check.m4: New file containing library-related checks from
80671         fileutils and sh-utils (textutils had none).
80672
80673 2000-01-28  Jim Meyering  <meyering@lucent.com>
80674
80675         * m4/perl.m4: Change format of warning message to look more like that
80676         from the missing script.  Suggestion from François Pinard.
80677
80678 2000-01-25  Jim Meyering  <meyering@lucent.com>
80679
80680         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80681         well as time.h in the compile check.
80682         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80683         Fix typo in cross-compiling case: s/yes/no/.
80684
80685 2000-01-23  Jim Meyering  <meyering@lucent.com>
80686
80687         * m4/jm-macros.m4: Move df-related tests here from
80688         fileutils/configure.in
80689
80690         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80691         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80692
80693         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80694         s/space/ac_fsusage_space/.
80695         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80696
80697         * m4/ftruncate.m4: New file (derived from part of
80698         fileutils/configure.in).
80699         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80700         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80701
80702         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80703         AC_SUBST these here, rather than just in sh-util/configure.in, so
80704         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80705         all the same.
80706         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80707         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80708         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80709         (AC_SUBST(POW_LIBM)): Likewise.
80710         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80711
80712 2000-01-23  Jim Meyering  <meyering@lucent.com>
80713
80714         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80715         obstack.c.
80716
80717 2000-01-22  Jim Meyering  <meyering@lucent.com>
80718
80719         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80720
80721         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80722
80723         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80724         configure.in
80725         (AC_CHECK_HEADERS): Likewise for sh-utils.
80726         (AC_CHECK_HEADERS): Likewise for textutils.
80727         Merge the three lists of headers.
80728
80729         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80730         from fileutils' configure.in.
80731
80732         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80733         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80734         check-decl.m4.
80735
80736         * m4/check-decl.m4: Use #if rather than #ifdef.
80737         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80738         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80739         (_jm_DECL_HEADERS): Define new function.
80740         (jm_CHECK_DECLARATIONS): Require it.
80741
80742 2000-01-22  Jim Meyering  <meyering@lucent.com>
80743
80744         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80745         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80746         Required for some AIX systems.  Reported by Christian Krackowizer.
80747         [TESTING] (main): New function.
80748
80749         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80750         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80751         letters.
80752
80753         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80754         iswprint.
80755
80756         * lib/strverscmp.c (ISDIGIT): Define.
80757         (strverscmp): Use ISDIGIT, not isdigit.
80758
80759 2000-01-19  Jim Meyering  <meyering@lucent.com>
80760
80761         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80762         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80763         defines `struct timespec' in <sys/time.h>
80764
80765         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80766         Thanks to Akim for explaining.
80767
80768 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80769
80770         * lib/nanosleep.c (nanosleep):
80771         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80772         POSIX.1 doesn't require SA_INTERRUPT and some systems
80773         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80774         it's been part of POSIX.1 since day 1 (in 1988).
80775
80776 2000-01-17  Jim Meyering  <meyering@lucent.com>
80777
80778         * lib/interlock: Remove unused file.  Reported by François Pinard.
80779
80780 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80781
80782         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80783         alert, backslash, formfeed, and vertical tab unnecessarily in
80784         shell quoting style.
80785
80786 2000-01-16  Jim Meyering  <meyering@lucent.com>
80787
80788         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80789         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80790         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80791         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80792
80793 2000-01-16  Jim Meyering  <meyering@lucent.com>
80794
80795         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80796         because the latter didn't work.
80797
80798 2000-01-15  Jim Meyering  <meyering@lucent.com>
80799
80800         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80801         (AC_REPLACE_FUNCS): Add memcpy and memset.
80802         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80803         Add strpbrk.
80804         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80805
80806 2000-01-12  Jim Meyering  <meyering@lucent.com>
80807
80808         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80809         (jm_PREREQ): Use it.
80810         (jm_PREREQ_READUTMP): New macro.
80811         (jm_PREREQ): Use it.
80812
80813 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80814
80815         Quote multibyte characters correctly.
80816         * m4/c-bs-a.m4: New file.
80817         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80818         (jm_PREREQ): Use it.
80819
80820 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80821
80822         * m4/uintmax_t.m4: Port to autoconf 2.13.
80823
80824 2000-01-08  Jim Meyering  <meyering@ascend.com>
80825
80826         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80827         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80828
80829 2000-01-04  Jim Meyering  <meyering@ascend.com>
80830
80831         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80832         jm_STRUCT_DIRENT_D_TYPE.
80833         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80834         jm_STRUCT_DIRENT_D_INO.
80835         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80836         jm_STRUCT_UTIMBUF.
80837         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80838         renamings.
80839         * m4/utime.m4: Likewise.
80840
80841         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80842         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80843
80844 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80845
80846         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80847         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80848
80849 2000-01-02  Jim Meyering  <meyering@ascend.com>
80850
80851         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80852         remember if this is necessary.
80853
80854 1999-12-26  Jim Meyering  <meyering@ascend.com>
80855
80856         * m4/jm-macros.m4: Use it here.
80857         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80858
80859 1999-12-23  Jim Meyering  <meyering@ascend.com>
80860
80861         * m4/jm-macros.m4: Check for clock_gettime (moved from
80862         fileutils/configure.in)
80863         Check for gettimeofday.
80864
80865 1999-12-20  Jim Meyering  <meyering@ascend.com>
80866
80867         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80868         autoconf-2.14a-1999-12-20.
80869
80870 1999-12-19  Jim Meyering  <meyering@ascend.com>
80871
80872         * m4/lstat-slash.m4: New file.
80873         * m4/jm-macros.m4: Use the new macro:
80874         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80875
80876 1999-12-07  Jim Meyering  <meyering@ascend.com>
80877
80878         * m4/perl.m4: Require that File::Compare be available, too.
80879         Too many systems seem to lack it.
80880
80881         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80882         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80883
80884 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80885
80886         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80887         problem with the QNX 4.25 shell, which doesn't propagate exit
80888         status of failed commands inside shell assignments.
80889
80890 1999-11-17  Jim Meyering  <meyering@ascend.com>
80891
80892         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80893
80894 1999-11-07  Jim Meyering  <meyering@ascend.com>
80895
80896         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80897
80898 1999-11-06  Jim Meyering  <meyering@ascend.com>
80899
80900         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80901         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80902
80903 1999-11-05  Jim Meyering  <meyering@ascend.com>
80904
80905         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80906         configure.in of textutils, fileutils, and sh-utils into this one
80907         (shared between those packages) file.
80908         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80909         AC_STRUCT_ST_BLKSIZE.
80910
80911 1999-11-03  Jim Meyering  <meyering@ascend.com>
80912
80913         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80914         of AC_CHECK_TYPE checks includes unistd.h.
80915         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80916         Suggestion from Akim Demaille.
80917
80918 1999-10-30  Jim Meyering  <meyering@ascend.com>
80919
80920         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80921         m4-quoted string.
80922         * m4/ls-mntd-fs.m4: Likewise.
80923         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80924         * m4/jm-winsz1.m4: Likewise.
80925
80926         * m4/const.m4: Remove file, since the fix made it into the experimental
80927         version of autoconf.
80928         * m4/mktime.m4: Likewise.
80929
80930         * m4/check-type.m4: Remove file, now that the latest version of
80931         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80932
80933         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80934         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80935         AC_CHECK_TYPE.
80936
80937 1999-10-04  Jim Meyering  <meyering@ascend.com>
80938
80939         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80940
80941 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80942
80943         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80944         2.95.1 bug with HP-UX 10.20.
80945
80946 1999-09-17  Jim Meyering  <meyering@ascend.com>
80947
80948         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80949         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80950         due to missing strdup (against sh-utils-2.0).
80951
80952 1999-08-29  Jim Meyering  <meyering@ascend.com>
80953
80954         * m4/jm-macros.m4: Require jm_BISON.
80955         * m4/bison.m4: New file.
80956
80957 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80958
80959         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80960         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80961
80962 1999-08-05  Jim Meyering  <meyering@ascend.com>
80963
80964         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80965         to avoid conflicts with `conftest' on 8+3 filesystems.
80966         Suggestion from Eli Zaretskii.
80967
80968 1999-08-04  Jim Meyering  <meyering@ascend.com>
80969
80970         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80971         fileutils and sh-utils (textutils's getline test was inadequate).
80972         (AM_FUNC_GETLINE): Run this test.
80973         (AC_CHECK_FUNCS): Check for getdelim.
80974         Reported by Bob Proulx.
80975
80976 1999-08-02  Jim Meyering  <meyering@ascend.com>
80977
80978         * m4/jm-macros.m4: Add a comment.
80979
80980 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80981
80982         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80983         <inttypes.h> defines strtoumax as a macro (and not as a
80984         function).
80985
80986 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80987
80988         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80989         that we can shift, multiply and divide unsigned long long
80990         values; Ultrix cc can't do it.
80991
80992 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80993
80994         * m4/mktime.m4: New file, which is a preview of what should appear
80995         in the next public autoconf release.
80996
80997 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80998
80999         * m4/lfs.m4: Remove this file.
81000         * m4/largefile.m4: New file.  It contains the old contents of
81001         lfs.m4, except that all names with prefix AC_LFS have been
81002         changed to use the prefix AC_SYS_LARGEFILE instead, to be
81003         compatible with future autoconf versions.  Also, some minor m4
81004         quoting problems have been fixed.
81005
81006 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81007
81008         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
81009         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
81010         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
81011         and simplify the shell code.
81012
81013 1999-08-01  Jim Meyering  <meyering@ascend.com>
81014
81015         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
81016         m4.
81017
81018 1999-07-20  Jim Meyering  <meyering@ascend.com>
81019
81020         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
81021
81022 1999-07-15  Jim Meyering  <meyering@ascend.com>
81023
81024         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
81025
81026 1999-05-22  Jim Meyering  <meyering@ascend.com>
81027
81028         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
81029
81030 1999-05-20  Jim Meyering  <meyering@ascend.com>
81031
81032         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
81033         Add a colon after each `then' in case $4 is empty.
81034
81035 1999-05-16  Jim Meyering  <meyering@ascend.com>
81036
81037         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
81038
81039 1999-05-10  Jim Meyering  <meyering@ascend.com>
81040
81041         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
81042
81043         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
81044         AC_FUNC_MKTIME.
81045
81046 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
81047
81048         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
81049
81050 1999-05-04  Paul Eggert  <eggert@twinsun.com>
81051
81052         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
81053         not CPPFLAGS, so that linking works correctly in IRIX.
81054
81055 1999-04-30  Paul Eggert  <eggert@twinsun.com>
81056
81057         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
81058
81059 1999-04-20  Paul Eggert  <eggert@twinsun.com>
81060
81061         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
81062         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
81063         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
81064         jm_AC_TYPE_UNSIGNED_LONG_LONG.
81065         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
81066
81067         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
81068
81069 1999-04-20  Jim Meyering  <meyering@ascend.com>
81070
81071         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
81072         AC_REPLACE xstroull if necessary.  From Paul Eggert.
81073         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
81074
81075 1999-04-18  Jim Meyering  <meyering@ascend.com>
81076
81077         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
81078         * m4/jm-macros.m4: Use it.
81079
81080 1999-04-06  Jim Meyering  <meyering@ascend.com>
81081
81082         * m4/strftime.m4: Remove test for %f.
81083
81084 1999-03-29  Jim Meyering  <meyering@ascend.com>
81085
81086         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
81087         superset of the AC_TYPE_* checks in the textutils, fileutils,
81088         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
81089         AC_TYPE_PID_T.
81090
81091 1999-03-28  Jim Meyering  <meyering@ascend.com>
81092
81093         * m4/jm-macros.m4: Define GNU_PACKAGE here.
81094         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
81095         replaced e.g., in the *.sh files of the sh-utils.
81096
81097 1999-03-20  Jim Meyering  <meyering@ascend.com>
81098
81099         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
81100         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
81101         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
81102
81103 1999-03-19  Jim Meyering  <meyering@ascend.com>
81104
81105         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
81106
81107 1999-03-12  Jim Meyering  <meyering@ascend.com>
81108
81109         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
81110
81111 1999-03-07  Jim Meyering  <meyering@ascend.com>
81112
81113         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
81114         declared.
81115
81116 1999-02-17  Jim Meyering  <meyering@ascend.com>
81117
81118         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
81119         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
81120
81121 1999-02-07  Jim Meyering  <meyering@ascend.com>
81122
81123         * m4/group-member.m4: New file -- extracted from sh-utils'
81124         configure.in.
81125
81126         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
81127         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
81128
81129 1999-02-06  Jim Meyering  <meyering@ascend.com>
81130
81131         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
81132         * m4/fnmatch.m4: Likewise.
81133         * m4/getgroups.m4: Likewise.
81134         * m4/lstat.m4: Likewise.
81135         * m4/malloc.m4: Likewise.
81136         * m4/putenv.m4: Likewise.
81137         * m4/realloc.m4: Likewise.
81138         * m4/regex.m4: Likewise.
81139         * m4/stat.m4: Likewise.
81140         * m4/strftime.m4: Likewise.
81141         Suggestion from Alain Magloire.
81142
81143         * m4/chown.m4: Use `.$ac_objext', not `.o'.
81144         * m4/fnmatch.m4: Likewise.
81145         * m4/getgroups.m4: Likewise.
81146         * m4/getline.m4: Likewise.
81147         * m4/lstat.m4: Likewise.
81148         * m4/malloc.m4: Likewise.
81149         * m4/memcmp.m4: Likewise.
81150         * m4/putenv.m4: Likewise.
81151         * m4/realloc.m4: Likewise.
81152         * m4/regex.m4: Likewise.
81153         * m4/stat.m4: Likewise.
81154         * m4/strftime.m4: Likewise.
81155         Suggestion from Alain Magloire.
81156
81157         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
81158         an argument.
81159
81160         * m4/regex.m4: Add a run-time Test for proper operation of
81161         re_compile_pattern.
81162
81163 1999-01-31  Jim Meyering  <meyering@ascend.com>
81164
81165         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
81166
81167 1999-01-30  Jim Meyering  <meyering@ascend.com>
81168
81169         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
81170
81171         * m4/jm-mktime.m4: Make this a wrapper around the official
81172         AM_FUNC_MKTIME rather than my private copy, now that the official one
81173         is up to date.
81174         * m4/mktime.m4: Remove file.
81175
81176         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
81177         * m4/uptime.m4: Likewise.
81178         * m4/uintmax_t.m4: Likewise.
81179
81180 1999-01-28  Jim Meyering  <meyering@ascend.com>
81181
81182         * m4/jm-macros.m4: Use jm_AFS.
81183         * m4/afs.m4: New file (from fileutils' configure.in).
81184
81185         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
81186         * m4/chown.m4: Likewise.
81187         * m4/d-ino.m4: Likewise.
81188         * m4/d-type.m4: Likewise.
81189         * m4/fnmatch.m4: Likewise.
81190         * m4/getgroups.m4: Likewise.
81191         * m4/gettext.m4: Likewise.
81192         * m4/jm-mktime.m4: Likewise.
81193         * m4/jm-winsz2.m4: Likewise.
81194         * m4/lcmessage.m4: Likewise.
81195         * m4/ls-mntd-fs.m4: Likewise.
81196         * m4/malloc.m4: Likewise.
81197         * m4/memcmp.m4: Likewise.
81198         * m4/putenv.m4: Likewise.
81199         * m4/realloc.m4: Likewise.
81200         * m4/st_mtim.m4: Likewise.
81201         * m4/strftime.m4: Likewise.
81202
81203 1999-01-16  Jim Meyering  <meyering@ascend.com>
81204
81205         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
81206         (ARGMATCH_DIE_DECL): Define.
81207
81208 1999-01-12  Jim Meyering  <meyering@ascend.com>
81209
81210         * m4/Makefile.am.in: Rewrite to avoid using fmt.
81211         Reported by Lars Hecking.
81212
81213 1999-01-10  Jim Meyering  <meyering@ascend.com>
81214
81215         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
81216         gross kludge.
81217         * m4/inttypes_h.m4: Likewise.
81218         * m4/lstat.m4: Likewise.
81219         * m4/malloc.m4: Likewise.
81220         * m4/readdir.m4: Likewise.
81221         * m4/realloc.m4: Likewise.
81222         * m4/st_dm_mode.m4: Likewise.
81223         * m4/stat.m4: Likewise.
81224         * m4/utimbuf.m4: Likewise.
81225         * m4/utimes.m4: Likewise.
81226
81227         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
81228         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
81229         comments in config.h.in are meaningful.
81230
81231         * m4/jm-macros.m4: Require autoconf-2.13 here.
81232
81233         * m4/regex.m4: By default, don't use the included regex.c on systems
81234         with glibc 2.  Suggestion from Uli Drepper.
81235
81236 1999-01-02  Jim Meyering  <meyering@ascend.com>
81237
81238         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
81239
81240 1998-12-18  Jim Meyering  <meyering@ascend.com>
81241
81242         * m4/Makefile.am.in (Makefile.am): Simplify rule.
81243         Based on a suggestion from Lars Hecking.
81244
81245 1998-11-16  Paul Eggert  <eggert@twinsun.com>
81246
81247         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
81248
81249 1998-11-16  Jim Meyering  <meyering@ascend.com>
81250
81251         * m4/lfs.m4: Double-quote the `uname...` expression.
81252
81253 1998-11-14  Jim Meyering  <meyering@ascend.com>
81254
81255         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
81256         * m4/stat.m4: Likewise.
81257
81258 1998-11-03  Jim Meyering  <meyering@ascend.com>
81259
81260         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
81261         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
81262
81263 1998-10-18  Jim Meyering  <meyering@ascend.com>
81264
81265         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
81266
81267 1998-10-17  Jim Meyering  <meyering@ascend.com>
81268
81269         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
81270         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
81271         calls for those previously hard-coded headers.  Instead, take a new
81272         parameter.
81273         (jm_CHECK_DECLARATIONS): Reflect interface change.
81274         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
81275         (jm_CHECK_DECL_LOCALTIME_R): New macro.
81276
81277         * m4/mktime.m4: Test for spring-forward gap before long-running test.
81278
81279 1998-10-14  Jim Meyering  <meyering@ascend.com>
81280
81281         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
81282         instead of "TZ=America/Vancouver".  From Paul Eggert.
81283
81284 1998-10-11  Jim Meyering  <meyering@ascend.com>
81285
81286         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
81287         This adds a test for a recently added compatibility fix for mktime.c.
81288         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
81289
81290 1998-09-27  Jim Meyering  <meyering@ascend.com>
81291
81292         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
81293
81294         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
81295         ../configure.in, including a change from Gordon Matzigkeit to allow
81296         cross-compiling for the Hurd.
81297
81298         * m4/glibc.m4: New file/macro to test for the GNU C Library
81299         versions 1 and 2.  From Gordon Matzigkeit.
81300         Indent.
81301
81302 1998-09-21  Jim Meyering  <meyering@ascend.com>
81303
81304         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
81305
81306 1998-08-18  Paul Eggert  <eggert@twinsun.com>
81307
81308         Port nanosecond-resolution times to UnixWare 2.1.2 and
81309         pedantic Solaris 2.6.
81310
81311         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
81312         AC_STRUCT_ST_MTIM.
81313         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
81314         Generate name of ns member, instead of just 1 or undef.
81315         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
81316
81317 1998-08-15  Jim Meyering  <meyering@ascend.com>
81318
81319         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
81320         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
81321         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
81322         instead of jm_TYPE_SSIZE_T.
81323
81324 1998-08-12  Jim Meyering  <meyering@ascend.com>
81325
81326         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
81327
81328 1998-08-02  Jim Meyering  <meyering@ascend.com>
81329
81330         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
81331         in acconfig.h manually.
81332
81333 1998-07-31  Paul Eggert  <eggert@twinsun.com>
81334
81335         * m4/st_mtim.m4: New file.
81336
81337 1998-07-28  Jim Meyering  <meyering@ascend.com>
81338
81339         * m4/utimes.m4: Undef stat.
81340
81341 1998-07-25  Jim Meyering  <meyering@ascend.com>
81342
81343         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
81344         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
81345
81346 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
81347
81348         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
81349         uid and gid actually remain unchanged.
81350
81351 1998-07-07  Jim Meyering  <meyering@ascend.com>
81352
81353         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
81354
81355 1998-07-04  Jim Meyering  <meyering@ascend.com>
81356
81357         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
81358         to prove that this macro can be used in packages without regex.c.
81359
81360 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
81361
81362         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
81363         is to be used.
81364
81365 1998-07-03  Jim Meyering  <meyering@ascend.com>
81366
81367         * m4/gettext.m4: Add -lintl if it's found to be necessary.
81368
81369         * m4/gettext.m4: New file -- from gettext-0.10.35.
81370         * m4/lcmessage.m4: Likewise.
81371         * m4/progtest.m4: Likewise.
81372
81373         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
81374         * m4/jm-macros.m4: Require the new macro.
81375
81376 1998-06-29  Jim Meyering  <meyering@ascend.com>
81377
81378         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
81379         for the definition of NGROUPS (used in a system header included
81380         by sys/mount.h).
81381
81382 1998-06-28  Jim Meyering  <meyering@ascend.com>
81383
81384         * m4/ls-mntd-fs.m4: New file.
81385         * m4/fstypename.m4: New file.
81386
81387         * m4/jm-macros.m4: Require the new macro.
81388         * m4/jm-glibc-io.m4: New file.
81389
81390 1998-05-19  Jim Meyering  <meyering@ascend.com>
81391
81392         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
81393         * m4/lchown.m4: New file.
81394
81395         * m4/Makefile.am.in: New file.
81396         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
81397
81398 1998-05-14  Jim Meyering  <meyering@ascend.com>
81399
81400         * m4/Makefile.am (EXTRA_DIST): Add them.
81401         * m4/jm-macros.m4: New file.
81402         * m4/utimbuf.m4: New file.
81403
81404 1998-05-12  Jim Meyering  <meyering@ascend.com>
81405
81406         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
81407
81408 1998-05-11  Jim Meyering  <meyering@ascend.com>
81409
81410         * m4/isc-posix.m4: New file.
81411
81412 1998-05-10  Jim Meyering  <meyering@ascend.com>
81413
81414         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
81415
81416 1998-05-09  Jim Meyering  <meyering@ascend.com>
81417
81418         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
81419         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
81420         with automake.
81421
81422         * m4/ssize_t.m4: New file.
81423         * m4/mktime.m4: Remove file -- the new automake has this now.
81424
81425 1998-04-26  Jim Meyering  <meyering@ascend.com>
81426
81427         * m4/assert.m4: New file.
81428         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
81429
81430 1998-04-05  Jim Meyering  <meyering@ascend.com>
81431
81432         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
81433         (jm_PREREQ): Use it here.
81434
81435 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
81436
81437         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
81438         in acconfig.h.
81439
81440 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
81441
81442         * m4/prereq.m4: New file.
81443         * m4/error.m4: New file.
81444         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
81445
81446 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
81447
81448         * m4/getline.m4: Don't set am_cv_func_working_getline before the
81449         cache-check for the same variable -- that defeated the purpose of
81450         the test; the test program was never run.  This was a problem only
81451         on systems with losing getline functions -- HP-UX 10.20 is one.
81452         Reported by Bjorn Helgaas.
81453
81454 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
81455
81456         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
81457
81458 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
81459
81460         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
81461
81462         * m4/const.m4: New file.  Use an initializer in this declaration
81463         typedef int charset[2]; const charset x;
81464         Reported by Bob Glickstein.
81465
81466 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
81467
81468         * m4/chown.m4: Fix reversed types on -1 args to chown.
81469         From Kaveh Ghazi.
81470
81471 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
81472
81473         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
81474         Add lseek and memchr.
81475
81476         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
81477         T.E.Dickey <dickey@clark.net> said that some older preprocessors
81478         have a 20-character limit on names.
81479
81480 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
81481
81482         * m4/inttypes_h.m4: New file.
81483         * m4/uintmax_t.m4: New file.
81484         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
81485
81486
81487         -----
81488
81489         Local Variables:
81490         coding: utf-8
81491         End:
81492
81493         Copyright (C) 1997-2011 Free Software Foundation, Inc.
81494
81495         Copying and distribution of this file, with or without
81496         modification, are permitted provided the copyright notice
81497         and this notice are preserved.